Link start times from excel import (#903)

* add test for linking start time in excel import

* link ids

* add link to UI

* ensure times with cachedRundown

---------

Co-authored-by: Carlos Valente <carlosvalente@pm.me>
This commit is contained in:
Alex Christoffer Rasmussen
2024-04-26 17:09:59 +01:00
committed by GitHub
parent d8a8f0ad92
commit 74418ce17e
9 changed files with 157 additions and 22 deletions
@@ -1,3 +1,4 @@
import type { ImportMap } from '../spreadsheetImport';
import { isImportMap } from '../spreadsheetImport';
describe('isImportMap()', () => {
@@ -5,6 +6,7 @@ describe('isImportMap()', () => {
const v3ImportMap = {
worksheet: 'event schedule',
timeStart: 'time start',
linkStart: 'link start',
timeEnd: 'time end',
duration: 'duration',
cue: 'cue',
@@ -18,7 +20,7 @@ describe('isImportMap()', () => {
timeWarning: 'warning time',
timeDanger: 'danger time',
custom: {},
};
} as ImportMap;
expect(isImportMap(v3ImportMap)).toBe(true);
});
@@ -27,6 +29,7 @@ describe('isImportMap()', () => {
const v3ImportMap = {
worksheet: 'event schedule',
timeStart: 'time start',
linkStart: 'link start',
timeEnd: 'time end',
duration: 'duration',
cue: 'cue',
@@ -43,7 +46,7 @@ describe('isImportMap()', () => {
userDefined: 'userDefined',
anotherOne: 'anotherOne',
},
};
} as ImportMap;
expect(isImportMap(v3ImportMap)).toBe(true);
});
@@ -6,6 +6,7 @@ export type ImportMap = typeof defaultImportMap & { custom: ImportCustom };
export const defaultImportMap = {
worksheet: 'event schedule',
timeStart: 'time start',
linkStart: 'link start',
timeEnd: 'time end',
duration: 'duration',
cue: 'cue',