Add staggered-start car call-outs and a per-driver done indicator

Staggered-start qualifying heats now announce each car's transponder
number in grid order (~3s apart) right after the official start,
matching what a track announcer does when releasing cars one at a
time; mass/position starts are unaffected. The Timing leaderboard and
every overlay variant now also show a green "Done" flag next to a
driver's name once their own personal timing window (which already
started at their own first crossing) has elapsed, even while the
session is still running for other drivers.

Also confirmed two things already worked correctly: finals already
always start everyone together with the shared countdown/lights/tone
sequence, and practice's time-up announcement already says "finish
the lap you are on" - only a "2 minutes remaining" cue is genuinely
missing from the existing 1min/30s/10s ladder, left as an open
question for the user.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
larssandandClaude Sonnet 5 committed 2026-09-10 21:31:01 +02:00
1 parent ba2d78779f
commit 1565baab2a
12 files changed
+167 -9

No files matched your search

+11
View File
@@ -221,8 +221,19 @@ export function buildLeaderboard(session, { ensureSessionResult, getSessionTarge
? "warn"
: "late";
const invalidPending = latestAnyPassing?.validLap === false;
// In staggered mode, each competitor's own window runs from their own first crossing
// (row.startTimestamp), independent of the session's shared clock - so one driver can
// be done for the day while the session itself is still "running" for others who
// started their own window later. Only meaningful in staggered mode: mass/position
// starts already share one clock, which the session-level countdown already covers.
const personalStartTs = Number(row.startTimestamp || 0) || 0;
const personalTimeUp = Boolean(
session.startMode === "staggered" && targetMs !== null && personalStartTs
&& (nowTs - personalStartTs - totalPausedMs) >= targetMs
);
return {
...row,
personalTimeUp,
laps: Math.max(0, Number(row.laps || 0) + manualLapAdjustment),
lastLapMs,
bestLapMs,