From 31ac04616a10eecc7093b79b46a681a1a203fac5 Mon Sep 17 00:00:00 2001 From: larssand Date: Thu, 5 Nov 2026 20:02:08 +0100 Subject: [PATCH] fix(overlay): show the heat's start list before the first passing (1.65.6) --- CHANGELOG.md | 6 ++++++ package-lock.json | 4 ++-- package.json | 2 +- src/misc_views.js | 8 +++++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2c3943..6a88183 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,12 @@ The application version is maintained in `package.json` and displayed in the adm No changes recorded yet. +## 1.65.6 - 2026-11-05 + +### Fixed + +- The overlay was empty before a heat started ("no laps"). Until the first car crosses the line it now shows the heat's start list in grid order, with each driver's transponder (sponsor heats: the car and its transponder); the live order takes over at the first passing. + ## 1.65.5 - 2026-11-05 ### Fixed diff --git a/package-lock.json b/package-lock.json index 3ccffea..d3e60b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "rc-racecore", - "version": "1.65.5", + "version": "1.65.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "rc-racecore", - "version": "1.65.5", + "version": "1.65.6", "hasInstallScript": true, "dependencies": { "better-sqlite3": "^12.11.1", diff --git a/package.json b/package.json index 5b4f438..a267641 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rc-racecore", - "version": "1.65.5", + "version": "1.65.6", "private": true, "description": "RC RaceCore live timing and race control with AMMC ingest and SQLite persistence", "engines": { diff --git a/src/misc_views.js b/src/misc_views.js index 9e4d027..863e49f 100644 --- a/src/misc_views.js +++ b/src/misc_views.js @@ -182,7 +182,13 @@ export function renderOverlayPageView(deps) { const active = getActiveSession(); // Every driver: an Open Practice often has more than 12 cars out (OBS has its own row // setting and cuts the list itself). - const leaderboard = active ? buildLeaderboard(active) : []; + const liveRows = active ? buildLeaderboard(active) : []; + // Before anyone has crossed the line (heat not started yet): the heat's start list, in grid + // order, so the screen shows who is in the heat (sponsor heats: with their car). + const startList = !liveRows.length && active && active.type !== "open_practice" + ? getSessionGridEntries(active).map((entry, index) => ({ key: `grid_${index}`, displayName: entry.name, subLabel: entry.meta, laps: 0, resultDisplay: "-", bestLapMs: null })) + : []; + const leaderboard = liveRows.length ? liveRows : startList; const result = active ? ensureSessionResult(active.id) : null; const sessionTiming = active ? getSessionTiming(active) : null; const overlayClock = sessionTiming?.followUpActive