Update test time until (#1809)

* test views

test timeline

* timeline show seconds when less than 2m

* fix: countown typings

* refactor: backstage schedule item

* chore: lint
This commit is contained in:
Alex Christoffer Rasmussen
2025-10-07 12:27:44 +02:00
parent 57315595a5
commit c4e6215b29
13 changed files with 183 additions and 137 deletions
@@ -8,6 +8,7 @@ import {
getTimeFrom,
isNewLatest,
MILLIS_PER_HOUR,
MILLIS_PER_MINUTE,
} from 'ontime-utils';
import { ExtendedEntry } from '../../common/utils/rundownMetadata';
@@ -81,7 +82,7 @@ export function getStatusLabel(timeToStart: number, status: ProgressStatus): str
return 'pending';
}
return formatDuration(timeToStart);
return formatDuration(timeToStart, timeToStart > MILLIS_PER_MINUTE * 2);
}
interface ScopedRundownData {