From 64082ceac0b490bf37cc6a21a901f11731e7f788 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Tue, 14 Jul 2026 14:52:50 +0200 Subject: [PATCH] refactor(rundown): improve visibility of count to end --- .../entry-editor/composite/EventEditorTimes.tsx | 1 - .../rundown/rundown-event/RundownEvent.module.scss | 7 ++++++- .../rundown/rundown-event/RundownEventInner.tsx | 12 +++++++++--- .../rundown/time-input-flow/TimeInputFlow.tsx | 6 ------ 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/apps/client/src/features/rundown/entry-editor/composite/EventEditorTimes.tsx b/apps/client/src/features/rundown/entry-editor/composite/EventEditorTimes.tsx index 76d0d6942..3634dcde0 100644 --- a/apps/client/src/features/rundown/entry-editor/composite/EventEditorTimes.tsx +++ b/apps/client/src/features/rundown/entry-editor/composite/EventEditorTimes.tsx @@ -88,7 +88,6 @@ function EventEditorTimes({ timeStrategy={timeStrategy} linkStart={linkStart} delay={delay} - countToEnd={countToEnd} showLabels /> diff --git a/apps/client/src/features/rundown/rundown-event/RundownEvent.module.scss b/apps/client/src/features/rundown/rundown-event/RundownEvent.module.scss index 84397cfaf..5a159acfd 100644 --- a/apps/client/src/features/rundown/rundown-event/RundownEvent.module.scss +++ b/apps/client/src/features/rundown/rundown-event/RundownEvent.module.scss @@ -7,6 +7,7 @@ $skip-opacity: 0.2; background-color: $block-bg; margin-block: 0.25rem; overflow: initial; + position: relative; display: grid; grid-template-areas: @@ -155,7 +156,7 @@ $skip-opacity: 0.2; align-items: center; justify-content: space-between; - .nextTag { + .warningMeta { font-size: 1rem; color: $orange-500; letter-spacing: 0.03px; @@ -231,6 +232,10 @@ $skip-opacity: 0.2; color: var(--status-color-active-override, $active-indicator); } + .statusIcon.countToEndStatus { + color: $orange-400; + } + .statusIcon.warning { color: $orange-500; } diff --git a/apps/client/src/features/rundown/rundown-event/RundownEventInner.tsx b/apps/client/src/features/rundown/rundown-event/RundownEventInner.tsx index 90f545a83..a0b53e715 100644 --- a/apps/client/src/features/rundown/rundown-event/RundownEventInner.tsx +++ b/apps/client/src/features/rundown/rundown-event/RundownEventInner.tsx @@ -115,12 +115,12 @@ function RundownEventInner({ delay={delay} timeStrategy={timeStrategy} linkStart={linkStart} - countToEnd={countToEnd} />
- {isNext && UP NEXT} + {isNext && UP NEXT} + {!isNext && countToEnd && COUNT TO END}
}> - + }> diff --git a/apps/client/src/features/rundown/time-input-flow/TimeInputFlow.tsx b/apps/client/src/features/rundown/time-input-flow/TimeInputFlow.tsx index ba1e33a9a..1fb6796eb 100644 --- a/apps/client/src/features/rundown/time-input-flow/TimeInputFlow.tsx +++ b/apps/client/src/features/rundown/time-input-flow/TimeInputFlow.tsx @@ -14,7 +14,6 @@ import style from './TimeInputFlow.module.scss'; interface TimeInputFlowProps { eventId: string; - countToEnd: boolean; timeStart: number; timeEnd: number; duration: number; @@ -27,7 +26,6 @@ interface TimeInputFlowProps { export default memo(TimeInputFlow); function TimeInputFlow({ eventId, - countToEnd, timeStart, timeEnd, duration, @@ -56,10 +54,6 @@ function TimeInputFlow({ warnings.push('Over midnight'); } - if (countToEnd) { - warnings.push('Count to End'); - } - const hasDelay = delay !== 0; const isLockedEnd = timeStrategy === TimeStrategy.LockEnd; const isLockedDuration = timeStrategy === TimeStrategy.LockDuration;