feat: time to next flag

This commit is contained in:
Carlos Valente
2025-07-13 16:52:35 +02:00
parent 637454f73d
commit 445cc9e845
43 changed files with 550 additions and 310 deletions
@@ -225,6 +225,7 @@ export function makeRundownMetadata(customFields: CustomFields) {
playableEventOrder: [],
timedEventOrder: [],
flatEntryOrder: [],
flags: [],
entries: {},
order: [],
@@ -300,6 +301,11 @@ function processEntry<T extends OntimeEntry>(
processedData.firstStart = currentEntry.timeStart;
}
// check if event is flagged
if (currentEntry.flag) {
processedData.flags.push(currentEntry.id);
}
currentEntry.gap = getTimeFrom(currentEntry, processedData.latestEvent);
if (currentEntry.gap === 0) {