Skip to content

Commit

Permalink
refactor: update import fields (#433)
Browse files Browse the repository at this point in the history
* refactor: update import fields

+ remove end message
+ add timer type
+ add end action

* chore: update tests

* version bump
  • Loading branch information
cpvalente authored Jun 11, 2023
1 parent 971a766 commit b273ac5
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 897 deletions.
2 changes: 1 addition & 1 deletion apps/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ontime-ui",
"version": "2.0.0",
"version": "2.0.2",
"private": true,
"dependencies": {
"@chakra-ui/react": "^2.5.5",
Expand Down
2 changes: 1 addition & 1 deletion apps/electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ontime",
"version": "2.0.0",
"version": "2.0.2",
"author": "Carlos Valente",
"description": "Time keeping for live events",
"repository": "https://github.com/cpvalente/ontime",
Expand Down
2 changes: 1 addition & 1 deletion apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ontime-server",
"type": "module",
"main": "src/index.ts",
"version": "2.0.0",
"version": "2.0.2",
"exports": "./src/index.js",
"dependencies": {
"body-parser": "^1.20.0",
Expand Down
19 changes: 14 additions & 5 deletions apps/server/src/utils/__tests__/parser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,10 +587,10 @@ describe('test parseExcel function', () => {
['Ontime ┬À Schedule Template'],
[],
['Event Name', 'Test Event'],
['Event URL', 'www.carlosvalente.com'],
['Public URL', 'www.public.com'],
['Backstage URL', 'www.backstage.com'],
['Public Info', 'test public info'],
['Backstage Info', 'test backstage info'],
['End Message', 'test end message'],
[],
[],
[
Expand All @@ -599,6 +599,8 @@ describe('test parseExcel function', () => {
'Event Title',
'Presenter Name',
'Event Subtitle',
'End Action',
'Timer type',
'Is Public? (x)',
'Skip? (x)',
'Notes',
Expand All @@ -620,6 +622,8 @@ describe('test parseExcel function', () => {
'Guest Welcome',
'Carlos',
'Getting things started',
'',
'',
'x',
'',
'Ballyhoo',
Expand All @@ -645,6 +649,8 @@ describe('test parseExcel function', () => {
'A song from the hearth',
'Still Carlos',
'Derailing early',
'clock',
'load-next',
'',
'',
'Rainbow chase',
Expand All @@ -669,11 +675,10 @@ describe('test parseExcel function', () => {

const expectedParsedEvent = {
title: 'Test Event',
publicUrl: '',
backstageUrl: '',
publicUrl: 'www.public.com',
backstageUrl: 'www.backstage.com',
publicInfo: 'test public info',
backstageInfo: 'test backstage info',
endMessage: 'test end message',
};

const expectedParsedRundown = [
Expand All @@ -683,6 +688,8 @@ describe('test parseExcel function', () => {
title: 'Guest Welcome',
presenter: 'Carlos',
subtitle: 'Getting things started',
timerType: 'count-down',
endAction: 'none',
isPublic: true,
skip: false,
note: 'Ballyhoo',
Expand All @@ -705,6 +712,8 @@ describe('test parseExcel function', () => {
title: 'A song from the hearth',
presenter: 'Still Carlos',
subtitle: 'Derailing early',
timerType: 'clock',
endAction: 'load-next',
isPublic: false,
skip: true,
note: 'Rainbow chase',
Expand Down
Loading

0 comments on commit b273ac5

Please sign in to comment.