diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3563165..5f8039d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,16 @@ The application version is maintained in `package.json` and displayed in the adm
No changes recorded yet.
+## 1.41.0 - 2026-10-17
+
+### Changed
+
+- **Race Day is where sessions are run.** Quick actions at the top: **Start practice** (continues today's Open Practice or creates and starts a new one), **New track layout** (only for practice; the running practice moves onto it) and **Create race**. A session picker switches session without going to Timing. Only the buttons that apply are shown (no greyed-out Pause before a start), with practice wording (Pause practice / Finish practice) and no start lights for practice.
+- **New practice day** on Race Day replaces "Reset data" on Timing: clears today's timing for the selected Open Practice while every lap stays in the training stats.
+- **Timing is for following.** Start, stop and reset moved to Race Day; Timing keeps the session picker, the leaderboard and lap clean-up, with a link to Race Day. Opening a session from Race Setup now goes to Race Day.
+- The Dashboard shows the three common tasks first: Start practice, Create race and Series / cup.
+- The guide, both READMEs, the Race Day screenshot and the "Run a session" video follow the new flow (count-down, hold, To 10 s, pause, finish).
+
## 1.40.0 - 2026-10-17
### Fixed
diff --git a/README.md b/README.md
index 69eb976..b0215fd 100644
--- a/README.md
+++ b/README.md
@@ -69,7 +69,7 @@ Click an image to open the full-resolution version.
In-app setup guide
-
+
Race Day
@@ -102,7 +102,9 @@ The menu follows how a race day works: **Start** (Dashboard, Race Day), **Create
### Race day
-**Race Day** is the operator's page:
+**Race Day** is the operator's page; everything that *runs* a session happens here, while Timing is for *following*:
+- **Quick actions** at the top: **Start practice** (continue or start an Open Practice), **New track layout** (during practice) and **Create race**. The Dashboard has the same three common tasks.
+- **A session picker** and the buttons that apply right now: Start, Pause, Resume, Finish, and for practice **New practice day**. Practice uses plain words and has no start lights.
- The **heat queue** shows the current, next and after-next heat.
- **Preflight** checks the decoder, participants, transponders (missing or duplicated), the lap window, the grid and audio. Blockers come first, each with a shortcut to the right setting. The min/max lap time can be edited right there.
- **An automatic SQLite backup** is taken before every start.
@@ -189,7 +191,7 @@ Menu **Series / cup** runs a championship over any number of rounds, with freely
**Practice sessions:**
- Open Practice can run all season; Free Practice is a rolling best-lap session.
-- **Reset data** on Timing clears the session for a new day, but every lap stays in the training statistics.
+- **Start practice** on the Dashboard or Race Day continues the running Open Practice, or creates and starts one. **New practice day** on Race Day clears the day's laps for a new evening; every lap stays in the training statistics.
**Track layouts:**
- Press **New layout** (on Training stats, Race Day or the Dashboard) when the track is rebuilt. A running practice moves onto the new layout, and best laps start over.
diff --git a/README.sv.md b/README.sv.md
index 90d532a..e611372 100644
--- a/README.sv.md
+++ b/README.sv.md
@@ -75,7 +75,7 @@ Klicka på en bild för full upplösning.
Inbyggd guide
-
+
Race Day
@@ -115,7 +115,9 @@ Gränssnittet finns på svenska och engelska.
### Race day
-**Race Day** är operatörens sida:
+**Race Day** är operatörens sida; allt som *kör* en session görs här, medan Tidtagning är till för att *följa*:
+- **Snabbval** överst: **Starta träning** (fortsätt eller starta en Open Practice), **Ny banlayout** (under träning) och **Skapa race**. Översikten har samma tre vanliga uppgifter.
+- **En sessionsväljare** och de knappar som gäller just nu: Start, Pausa, Fortsätt, Avsluta, och för träning **Ny träningsdag**. Träning använder vanliga ord och har inga startljus.
- **Heat-kön** visar aktuellt, nästa och därpå följande heat.
- **Förkontrollen** kontrollerar decoder, deltagare, transpondrar (saknade eller dubbletter), varvtidsgränser, grid och ljud. Blockerare visas först, var och en med en genväg till rätt inställning. Min/max-varvtid kan ändras direkt där.
- **En automatisk SQLite-backup** tas före varje start.
@@ -202,7 +204,7 @@ Menyn **Serier / cup** kör ett mästerskap över valfritt antal deltävlingar,
**Träningspass:**
- Open Practice kan köras hela säsongen; Free Practice rankar på bästa varv.
-- **Nollställ data** i Tidtagning rensar passet inför en ny dag, men alla varv finns kvar i träningsstatistiken.
+- **Starta träning** på Översikten eller Race Day fortsätter pågående Open Practice, eller skapar och startar en. **Ny träningsdag** på Race Day nollställer dagens varv inför en ny kväll; alla varv finns kvar i träningsstatistiken.
**Banlayouter:**
- Tryck **Ny layout** (på Träningsstatistik, Race Day eller Översikt) när banan byggs om. Ett pågående träningspass flyttas till den nya layouten, och bästa varven börjar om.
diff --git a/ROADMAP.md b/ROADMAP.md
index 15106bd..19d4995 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -954,6 +954,19 @@ Verified:
- `tests/browser_live_session.js` runs practice A while B is selected, and sends a real decoder passing. It checks that the passing is counted on A and nothing on B, that the notice shows A, and that Show it selects A and removes the notice.
- The test fails with the old routing ("the passing is counted on the running practice, not dropped") and passes with the fix. 76 browser scenarios pass.
+## Race Day runs sessions, Timing follows (2026-10-17)
+
+Reported by the user: non-technical club members found it too hard to start a new Open Practice or a layout in a running practice, and "Reset data" sat on Timing while pause/start/stop sat on Race Day.
+
+- [x] Race Day quick actions: **Start practice** (`startPracticeNow` continues the running, paused or latest ready Open Practice, otherwise creates and starts one), **New track layout** (practice only) and **Create race**.
+- [x] Session picker on Race Day, and only the buttons that apply (Start / Pause / Resume / Finish), with practice wording; no start lights for practice.
+- [x] **New practice day** (`resetSessionData`) on Race Day with a confirm that says the laps stay in the training stats; removed from Timing together with start/stop.
+- [x] Timing keeps the session picker, leaderboard and lap clean-up, plus a link to Race Day; opening a session from Race Setup goes to Race Day.
+- [x] Dashboard shows Start practice, Create race and Series / cup first.
+- [x] Guide, READMEs, `race-day.jpg` and the "Run a session" video updated to the new flow.
+
+Verified: 266 unit tests and 80 browser scenarios pass, including `tests/browser_race_day_quick.js` (Dashboard Start practice creates, starts and opens a practice on Race Day; the quick layout moves it; the picker switches session; Timing has no run controls). `tests/browser_race_day.js` now checks that buttons are shown only when they apply. Video frames checked: count-down, To 10 s, then Pause/Finish once the heat runs.
+
## Documentation maintenance
- [x] Update the architecture's module/dependency inventory as modules change.
diff --git a/docs/screenshots/overview-active-session.jpg b/docs/screenshots/overview-active-session.jpg
index bc98ff8..8759d77 100644
Binary files a/docs/screenshots/overview-active-session.jpg and b/docs/screenshots/overview-active-session.jpg differ
diff --git a/docs/screenshots/race-day.jpg b/docs/screenshots/race-day.jpg
new file mode 100644
index 0000000..a35dd34
Binary files /dev/null and b/docs/screenshots/race-day.jpg differ
diff --git a/docs/videos/run-a-session.mkv b/docs/videos/run-a-session.mkv
index 8243d46..a64535d 100644
Binary files a/docs/videos/run-a-session.mkv and b/docs/videos/run-a-session.mkv differ
diff --git a/package-lock.json b/package-lock.json
index 2c13586..2ff5b15 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "rc-racecore",
- "version": "1.40.0",
+ "version": "1.41.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "rc-racecore",
- "version": "1.40.0",
+ "version": "1.41.0",
"hasInstallScript": true,
"dependencies": {
"better-sqlite3": "^12.11.1",
diff --git a/package.json b/package.json
index aac6093..0f3157a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "rc-racecore",
- "version": "1.40.0",
+ "version": "1.41.0",
"private": true,
"description": "RC RaceCore live timing and race control with AMMC ingest and SQLite persistence",
"engines": {
diff --git a/scripts/capture-screenshots.mjs b/scripts/capture-screenshots.mjs
index db4b511..ac2c99d 100644
--- a/scripts/capture-screenshots.mjs
+++ b/scripts/capture-screenshots.mjs
@@ -164,6 +164,26 @@ async function captureShot(name, { setup }) {
}
const shots = {
+ "race-day": {
+ async setup({ evaluate, navigate }) {
+ // A running Open Practice with a few laps, selected: Race Day as the club evening sees it.
+ await navigate("dashboard", "#view");
+ await evaluate(`(async () => {
+ const { state } = await (await fetch("/api/state")).json();
+ const startedAt = Date.now() - 25 * 60000;
+ state.events.push({ id: "shot_op_event", name: "Open Practice", date: new Date().toISOString().slice(0, 10), classId: "", mode: "race", raceConfig: { practiceOnly: true } });
+ state.sessions.push({ id: "shot_op", eventId: "shot_op_event", name: "Open Practice", type: "open_practice", status: "running", startedAt, durationMin: 600, mode: "race" });
+ state.activeSessionId = "shot_op";
+ await fetch("/api/state", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(state) });
+ })()`);
+ await navigate("race_day", "#raceDayQuickPractice");
+ },
+ },
+ "overview-active-session": {
+ async setup({ navigate }) {
+ await navigate("dashboard", "#dashboardQuickPractice");
+ },
+ },
series: {
async setup({ evaluate, navigate, scrollTo }) {
// A series over two of four classes (added out of name order on purpose: the page sorts them).
diff --git a/scripts/record-video-guides.mjs b/scripts/record-video-guides.mjs
index ce6943b..d042ddc 100644
--- a/scripts/record-video-guides.mjs
+++ b/scripts/record-video-guides.mjs
@@ -510,26 +510,44 @@ const clips = {
await waitFor(async () => (await evaluate('document.getElementById("raceDayStart")?.disabled')) === false, "start enabled once preflight is ready");
},
steps: [
- { text: "This is Race Day, your control center for running a session live." },
+ { text: "This is Race Day, where every session is run. Practice, a new track layout and new races are one click away at the top." },
{
- text: "Hit Start, and RaceCore runs a countdown before the green light.",
- async action({ click }) { await click("#raceDayStart"); },
+ text: "Pick a count-down - here thirty seconds - and press Start. The track opens and the announcer calls the time.",
+ async action({ evaluate, click }) {
+ await evaluate(`document.getElementById("raceDayPrologueLength").value = "30"`);
+ await click("#raceDayStart");
+ },
+ },
+ {
+ text: "Cars on the grid? Jump to the last ten seconds, or hold the count-down while they line up.",
+ async action({ click }) { await click('[data-prologue="to10"]'); },
+ },
+ {
+ text: "At three seconds the start lights take over, and the heat starts by itself.",
+ async action({ evaluate }) {
+ await waitFor(async () => Boolean(await evaluate('document.getElementById("raceDayPause")')), "heat running", 20000);
+ },
},
- { text: "Start lights count down, then the session goes live and the clock starts." },
{
text: "Pause any time - lap timing stops without losing the session.",
async action({ click }) { await click("#raceDayPause"); },
},
{
text: "Resume picks up right where you left off.",
- async action({ click }) { await click("#raceDayResume"); },
+ async action({ evaluate, click }) {
+ await waitFor(async () => Boolean(await evaluate('document.getElementById("raceDayResume")')), "paused");
+ await click("#raceDayResume");
+ },
},
{
text: "And Finish locks in the results for this session.",
- async action({ click }) { await click("#raceDayFinish"); },
+ async action({ evaluate, click }) {
+ await waitFor(async () => Boolean(await evaluate('document.getElementById("raceDayFinish")')), "running again");
+ await click("#raceDayFinish");
+ },
},
{
- text: "Head over to Timing to see the leaderboard and lap-by-lap results.",
+ text: "Timing is for following: the leaderboard and lap-by-lap results.",
async action({ click }) { await click("#raceDayTiming"); },
},
],
diff --git a/src/app.js b/src/app.js
index 5ed1e04..4029985 100644
--- a/src/app.js
+++ b/src/app.js
@@ -346,6 +346,53 @@ function setRacePrologueRemaining(remainingMs) {
setRacePrologue(setPrologueRemaining(racePrologue, remainingMs));
renderView();
}
+// --- Race Day as the place where things are run --------------------------------------
+// "New practice day": clears the session's laps on Timing for a new day; every lap so far
+// is first put in the training stats, where resultsResetAt keeps it (see syncTrainingLedger).
+function resetSessionData(session) {
+ if (!session) return false;
+ syncTrainingLedger();
+ session.resultsResetAt = Date.now();
+ delete state.resultsBySession[session.id];
+ session.followUpStartedAt = null;
+ lastFinishAnnouncementSessionId = null;
+ delete lastOverlayLeaderKeyBySession[session.id];
+ delete lastOverlayTop3BySession[session.id];
+ overlayEvents = [];
+ saveState();
+ renderView();
+ return true;
+}
+
+// The Open Practice "Start practice" works on: one already running, else a paused one,
+// else the latest not-finished one (a club often runs one all season); null = make a new one.
+function findOpenPracticeToContinue() {
+ const practices = state.sessions.filter((session) => session.type === "open_practice");
+ const latest = (list) => list.sort((a, b) => Number(b.startedAt || 0) - Number(a.startedAt || 0))[0] || null;
+ return latest(practices.filter((session) => session.status === "running"))
+ || latest(practices.filter((session) => session.status === "paused"))
+ || practices.filter((session) => session.status === "ready").at(-1)
+ || null;
+}
+
+// One click from Race Day: continue the Open Practice, or create and start one for today.
+async function startPracticeNow() {
+ let session = findOpenPracticeToContinue();
+ if (!session) {
+ const bundle = buildOpenPracticeBundle({ name: t("events.quick_open_practice_default"), date: new Date().toISOString().slice(0, 10) });
+ state.events.push(bundle.event);
+ state.sessions.push(bundle.session);
+ session = bundle.session;
+ }
+ selectOperationalSession(session.id, { render: false });
+ if (session.status === "paused") return resumeOperationalSession(session);
+ if (session.status === "running") { renderView(); return true; }
+ const result = await startOperationalSession(session);
+ if (!result.ok && result.message) alert(result.message);
+ renderView();
+ return result.ok;
+}
+
function goRacePrologue() {
const session = getPrologueSession();
setRacePrologue(null);
@@ -405,7 +452,7 @@ const processDecoderMessage = (msg, decoderRole = "main") => processDecoderMessa
getTrackRecordMs,
onTransponderSeen,
}, decoderRole);
-const renderDashboard = () => renderDashboardView({ addTrackLayout, state, dom, t, backend, getActiveSession, getStatusLabel, getSessionTypeLabel, getEventName, getModeLabel, getBackendUrl, formatLap, renderSessionsTable, setCurrentView: (view) => { currentView = view; }, updateViewUrl, renderNav, renderView, connectDecoder, disconnectDecoder, openOverlayWindow, ensureAudioContext, playPassingBeep, playFinishSiren, escapeHtml });
+const renderDashboard = () => renderDashboardView({ addTrackLayout, startPracticeNow, state, dom, t, backend, getActiveSession, getStatusLabel, getSessionTypeLabel, getEventName, getModeLabel, getBackendUrl, formatLap, renderSessionsTable, setCurrentView: (view) => { currentView = view; }, updateViewUrl, renderNav, renderView, connectDecoder, disconnectDecoder, openOverlayWindow, ensureAudioContext, playPassingBeep, playFinishSiren, escapeHtml });
const renderClasses = () => renderClassesView({ state, dom, t, selectedClassEditId: () => selectedClassEditId, setSelectedClassEditId: (value) => { selectedClassEditId = value; }, uid, saveState, renderView, renderTable, escapeHtml, setFormError, bindModalShell });
// Driver page "Test pronunciation": the passing sound, then two real announcements with the
// spoken name, through race audio (so the chosen voice / Piper is what you hear).
@@ -424,6 +471,7 @@ const renderRaceDay = () => renderRaceDayView({
getRaceDayWarmupCheck, setDriverTransponder, getDefaultPrologueSec,
startRacePrologue, holdRacePrologue, resumeRacePrologue, setRacePrologueRemaining, cancelRacePrologue, goRacePrologue,
isStartPending: (session) => Boolean(session && pendingStartSessionId === session.id),
+ resetSessionData, startPracticeNow, findOpenPracticeToContinue,
getLiveSession,
renderSuspectLapsPanel: (session) => renderSuspectLapsPanelView(session, { t, escapeHtml, formatLap, ensureSessionResult }),
setCompetitorLapStatus,
@@ -483,7 +531,7 @@ const refreshTimingDynamics = () => {
node.textContent = clock;
});
};
-const renderTiming = () => renderTimingView({ state, dom, t, escapeHtml, formatLap, formatCountdown, formatElapsedClock, formatRaceClock, renderTable, uid, getActiveSession, ensureSessionResult, buildLeaderboard, getSessionTiming, getVisiblePassings, getEventName, getSessionTypeLabel, getStatusLabel, normalizeStartMode, getStartModeLabel, renderPositionGrid, renderSessionChannelAnalysis, connectDecoder, disconnectDecoder, applyCompetitorCorrection, invalidateCompetitorLastLap, restoreCompetitorLastInvalidLap, startOperationalSession, finishOperationalSession, cancelRaceStart, triggerRaceAudio, getStartLightState: () => raceAudioEngine.getStartLightState(), saveState, updateHeaderState, renderView, normalizeDriver, normalizeCar, processDecoderMessage, getSelectedLeaderboardKey: () => selectedLeaderboardKey, setSelectedLeaderboardKey: (value) => { selectedLeaderboardKey = value; }, getQuickAddDraft: () => quickAddDraft, setQuickAddDraft: (value) => { quickAddDraft = value; }, getPassingValidationLabel, isCountedPassing, getCompetitorPassings, getManualCorrectionSummary, formatTeamActiveMemberLabel, lastFinishAnnouncementSessionId: () => lastFinishAnnouncementSessionId, setLastFinishAnnouncementSessionId: (value) => { lastFinishAnnouncementSessionId = value; }, lastOverlayLeaderKeyBySession, lastOverlayTop3BySession, overlayEvents: () => overlayEvents, setOverlayEvents: (value) => { overlayEvents = value; }, sessionReplay, syncTrainingLedger, setCompetitorLapStatus, getLiveSession, selectLiveSession: (id) => selectOperationalSession(id), openJudging: (rowKey) => { selectedJudgeKey = rowKey; selectedLeaderboardKey = null; navigateToView("judging"); } });
+const renderTiming = () => renderTimingView({ state, dom, t, escapeHtml, formatLap, formatCountdown, formatElapsedClock, formatRaceClock, renderTable, uid, getActiveSession, ensureSessionResult, buildLeaderboard, getSessionTiming, getVisiblePassings, getEventName, getSessionTypeLabel, getStatusLabel, normalizeStartMode, getStartModeLabel, renderPositionGrid, renderSessionChannelAnalysis, connectDecoder, disconnectDecoder, applyCompetitorCorrection, invalidateCompetitorLastLap, restoreCompetitorLastInvalidLap, startOperationalSession, finishOperationalSession, cancelRaceStart, triggerRaceAudio, getStartLightState: () => raceAudioEngine.getStartLightState(), saveState, updateHeaderState, renderView, normalizeDriver, normalizeCar, processDecoderMessage, getSelectedLeaderboardKey: () => selectedLeaderboardKey, setSelectedLeaderboardKey: (value) => { selectedLeaderboardKey = value; }, getQuickAddDraft: () => quickAddDraft, setQuickAddDraft: (value) => { quickAddDraft = value; }, getPassingValidationLabel, isCountedPassing, getCompetitorPassings, getManualCorrectionSummary, formatTeamActiveMemberLabel, lastFinishAnnouncementSessionId: () => lastFinishAnnouncementSessionId, setLastFinishAnnouncementSessionId: (value) => { lastFinishAnnouncementSessionId = value; }, lastOverlayLeaderKeyBySession, lastOverlayTop3BySession, overlayEvents: () => overlayEvents, setOverlayEvents: (value) => { overlayEvents = value; }, sessionReplay, syncTrainingLedger, setCompetitorLapStatus, getLiveSession, selectLiveSession: (id) => selectOperationalSession(id), openRaceDay: () => navigateToView("race_day"), openJudging: (rowKey) => { selectedJudgeKey = rowKey; selectedLeaderboardKey = null; navigateToView("judging"); } });
const renderJudging = () => renderJudgingView({ state, dom, t, escapeHtml, formatLap, renderTable, getActiveSession, ensureSessionResult, buildLeaderboard, getSessionTypeLabel, getJudgeFilteredRows, getJudgeFilteredLog, getCompetitorPassings, isCountedPassing, getPassingValidationLabel, undoJudgingAdjustment, applyCompetitorCorrection, invalidateCompetitorLastLap, restoreCompetitorLastInvalidLap, renderView, getSelectedJudgeKey: () => selectedJudgeKey, setSelectedJudgeKey: (value) => { selectedJudgeKey = value; }, getJudgingCompetitorFilter: () => judgingCompetitorFilter, setJudgingCompetitorFilter: (value) => { judgingCompetitorFilter = value; }, getJudgingLogFilter: () => judgingLogFilter, setJudgingLogFilter: (value) => { judgingLogFilter = value; } , setCompetitorLapStatus });
const normalizeTrainingState = (training) => normalizeTrainingStateLogic(training, { uid });
const syncTrainingLedger = () => {
@@ -799,6 +847,29 @@ const TRANSLATIONS = {
"series.step3": "3 · Deltävlingar ({count})",
"series.step4": "4 · Ställning",
"series.classes_all": "Alla",
+ "dashboard.quick_title": "Vanliga uppgifter",
+ "dashboard.quick_practice": "Starta träning",
+ "dashboard.quick_practice_hint": "Fortsätter pågående Open Practice eller startar en ny - direkt till Race Day.",
+ "dashboard.quick_race": "Skapa race",
+ "dashboard.quick_race_hint": "Kval och finaler för en tävling.",
+ "dashboard.quick_series": "Skapa serie",
+ "dashboard.quick_series_hint": "Flera deltävlingar med poäng och ställning.",
+ "timing.run_on_race_day": "Starta, pausa, avsluta och ny träningsdag görs på Race Day.",
+ "timing.open_race_day": "Gå till Race Day",
+ "race_day.quick_title": "Snabbval",
+ "race_day.start_practice": "Starta träning",
+ "race_day.pause_practice": "Pausa",
+ "race_day.resume_practice": "Fortsätt",
+ "race_day.finish_practice": "Avsluta träning",
+ "race_day.quick_practice_new": "Starta träning",
+ "race_day.quick_practice_continue": "Fortsätt träning: {name}",
+ "race_day.quick_practice_show": "Pågående träning: {name}",
+ "race_day.quick_layout": "Ny banlayout",
+ "race_day.quick_race": "Skapa race",
+ "race_day.pick_session": "Session",
+ "race_day.new_practice_day": "Ny träningsdag",
+ "race_day.new_practice_day_hint": "Nollställer dagens varv i tidtagningen. Alla varv finns kvar i träningsstatistiken.",
+ "race_day.new_practice_day_confirm": "Starta en ny träningsdag i \"{name}\"?\n\nDagens varv nollställs i tidtagningen (topplistan börjar om). Alla varv finns kvar i träningsstatistiken.",
"timing.live_elsewhere": "Varv registreras just nu på \"{name}\", som pågår - inte på den valda sessionen.",
"timing.show_live": "Visa den",
"overlay.obs_show_position_change": "Placering sedan start (▲/▼) i race",
@@ -1287,7 +1358,7 @@ const TRANSLATIONS = {
"dashboard.behind": "Efter schema",
"dashboard.live_note": "Snabb driftpanel för anslutning, overlay och ljud. Djupare konfig ligger kvar under Inställningar.",
"dashboard.get_started": "Kom igång",
- "dashboard.get_started_hint": "Följ arbetsordningen första gången. Vid vanlig träning kan du gå direkt till Open Practice.",
+ "dashboard.get_started_hint": "Följ arbetsordningen första gången. För en vanlig träningskväll räcker knappen Starta träning ovan.",
"dashboard.step_system": "1. Anslut systemet",
"dashboard.step_system_hint": "Konfigurera backend, decoder och AMMC i Inställningar.",
"dashboard.step_register": "2. Lägg in register",
@@ -1295,7 +1366,7 @@ const TRANSLATIONS = {
"dashboard.step_create": "3. Skapa körning",
"dashboard.step_create_hint": "Starta enkel Open Practice eller bygg klubbrace, endurance och sponsor-event.",
"dashboard.step_run": "4. Kör och visa",
- "dashboard.step_run_hint": "Starta sessionen i Tidtagning och öppna Overlay på extern skärm.",
+ "dashboard.step_run_hint": "Starta, pausa och avsluta på Race Day. Följ tiderna i Tidtagning och öppna Overlay på en extern skärm.",
"dashboard.open_settings": "Öppna Inställningar",
"dashboard.open_register": "Öppna Förare",
"dashboard.open_race_setup": "Open Practice / Race Setup",
@@ -2305,7 +2376,7 @@ const TRANSLATIONS = {
"guide.sponsor_3": "3. Skapa event med läge Sponsor Event.",
"guide.sponsor_4": "4. Klicka Hantera på eventet och skapa rundor (kval/heat/final).",
"guide.sponsor_5": "5. Tilldela 4 förare till 4 bilar i Heat 1, byt förare till Heat 2/3 osv.",
- "guide.sponsor_6": "6. I Tidtagning: välj session, Sätt aktiv, Starta, Stoppa.",
+ "guide.sponsor_6": "6. På Race Day: välj session och tryck Start, Pausa och Avsluta. Tidtagning visar tiderna.",
"guide.race_title": "Skapa vanligt race (förare har egna transpondrar)",
"guide.race_1": "1. Lägg in förare med personlig transponder. Brandfältet kan användas för team, sponsor eller bilmärke.",
"guide.race_2": "2. Skapa event med läge Race.",
@@ -2344,7 +2415,7 @@ const TRANSLATIONS = {
"guide.open_practice_2": "Om transpondern inte matchar en registrerad förare visas transpondernumret som namn.",
"guide.open_practice_3": "Open Practice påverkar inte seedning, kval eller finaler.",
"guide.open_practice_4": "Gå till Race Setup och använd Snabbstart Open Practice. Du behöver bara ange ett namn; klass, deltagare, preset och racetid behövs inte.",
- "guide.open_practice_5": "Efter skapandet öppnas Tidtagning direkt. Klicka Starta och låt sessionen gå tills du själv stoppar den.",
+ "guide.open_practice_5": "Enklast: tryck Starta träning på Översikten eller Race Day - då fortsätter en pågående Open Practice eller så skapas och startas en ny. Ny träningsdag på Race Day nollställer dagens varv utan att statistiken försvinner, och Ny banlayout finns bland snabbvalen.",
"guide.team_title": "Lagrace / Endurance",
"guide.team_1": "Gå till Race Setup och skapa ett race i rätt klass.",
"guide.team_2": "Öppna Hantera och gå till sektionen Lag.",
@@ -2607,6 +2678,29 @@ const TRANSLATIONS = {
"series.step3": "3 · Rounds ({count})",
"series.step4": "4 · Standings",
"series.classes_all": "All",
+ "dashboard.quick_title": "Common tasks",
+ "dashboard.quick_practice": "Start practice",
+ "dashboard.quick_practice_hint": "Continues the running Open Practice or starts a new one - straight to Race Day.",
+ "dashboard.quick_race": "Create race",
+ "dashboard.quick_race_hint": "Qualifying and finals for one event.",
+ "dashboard.quick_series": "Create series",
+ "dashboard.quick_series_hint": "Several rounds with points and standings.",
+ "timing.run_on_race_day": "Start, pause, finish and new practice day are done on Race Day.",
+ "timing.open_race_day": "Go to Race Day",
+ "race_day.quick_title": "Quick actions",
+ "race_day.start_practice": "Start practice",
+ "race_day.pause_practice": "Pause",
+ "race_day.resume_practice": "Resume",
+ "race_day.finish_practice": "Finish practice",
+ "race_day.quick_practice_new": "Start practice",
+ "race_day.quick_practice_continue": "Continue practice: {name}",
+ "race_day.quick_practice_show": "Practice running: {name}",
+ "race_day.quick_layout": "New track layout",
+ "race_day.quick_race": "Create race",
+ "race_day.pick_session": "Session",
+ "race_day.new_practice_day": "New practice day",
+ "race_day.new_practice_day_hint": "Clears today's laps in timing. Every lap stays in the training statistics.",
+ "race_day.new_practice_day_confirm": "Start a new practice day in \"{name}\"?\n\nToday's laps are cleared in timing (the leaderboard starts over). Every lap stays in the training statistics.",
"timing.live_elsewhere": "Laps are being recorded on \"{name}\", which is running - not on the selected session.",
"timing.show_live": "Show it",
"overlay.obs_show_position_change": "Places since the start (▲/▼) in races",
@@ -3095,7 +3189,7 @@ const TRANSLATIONS = {
"dashboard.behind": "Behind schedule",
"dashboard.live_note": "Quick operations panel for connection, overlay and audio. Deeper configuration remains under Settings.",
"dashboard.get_started": "Getting started",
- "dashboard.get_started_hint": "Follow this order for initial setup. For normal practice, go directly to Open Practice.",
+ "dashboard.get_started_hint": "Follow this order for initial setup. For a normal practice evening, the Start practice button above is all you need.",
"dashboard.step_system": "1. Connect the system",
"dashboard.step_system_hint": "Configure backend, decoder and AMMC in Settings.",
"dashboard.step_register": "2. Build the directory",
@@ -3103,7 +3197,7 @@ const TRANSLATIONS = {
"dashboard.step_create": "3. Create a run",
"dashboard.step_create_hint": "Start a simple Open Practice or build club races, endurance and sponsor events.",
"dashboard.step_run": "4. Run and display",
- "dashboard.step_run_hint": "Start the session in Timing and open Overlay on an external display.",
+ "dashboard.step_run_hint": "Start, pause and finish on Race Day. Follow the times in Timing and open Overlay on an external display.",
"dashboard.open_settings": "Open Settings",
"dashboard.open_register": "Open Drivers",
"dashboard.open_race_setup": "Open Practice / Race Setup",
@@ -4113,7 +4207,7 @@ const TRANSLATIONS = {
"guide.sponsor_3": "3. Create event in Track Event mode.",
"guide.sponsor_4": "4. Click Manage and create rounds (qualification/heat/final).",
"guide.sponsor_5": "5. Assign 4 drivers to 4 cars in Heat 1, rotate drivers for Heat 2/3, then finals.",
- "guide.sponsor_6": "6. In Timing: select session, Set Active, Start, Stop.",
+ "guide.sponsor_6": "6. On Race Day: pick the session and press Start, Pause and Finish. Timing shows the times.",
"guide.race_title": "Create regular race (driver transponders)",
"guide.race_1": "1. Add drivers with personal transponder IDs. The brand field can be used for team, sponsor or car brand.",
"guide.race_2": "2. Create event in Race mode.",
@@ -4152,7 +4246,7 @@ const TRANSLATIONS = {
"guide.open_practice_2": "If the transponder does not match a registered driver, the transponder number is shown as the name.",
"guide.open_practice_3": "Open Practice does not affect seeding, qualifying or finals.",
"guide.open_practice_4": "Go to Race Setup and use Quick Open Practice. Only a name is required; class, participants, preset and race duration are not needed.",
- "guide.open_practice_5": "Timing opens directly after creation. Click Start and let the session run until you stop it yourself.",
+ "guide.open_practice_5": "Easiest: press Start practice on the Dashboard or Race Day - it continues a running Open Practice or creates and starts a new one. New practice day on Race Day clears the day's laps without losing statistics, and New track layout is among the quick actions.",
"guide.team_title": "Team Race / Endurance",
"guide.team_1": "Go to Race Setup and create a race in the correct class.",
"guide.team_2": "Open Manage and go to the Teams section.",
@@ -6013,10 +6107,11 @@ function renderEventWorkspace(mode) {
isValidIsoDate,
saveState,
purgeSessionPassings,
+ // Opens the session where it is run: Race Day (start/pause/finish moved there from Timing).
openTimingSession: (sessionId) => {
state.activeSessionId = sessionId;
saveState();
- currentView = "timing";
+ currentView = "race_day";
updateViewUrl(currentView);
renderNav();
updateHeaderState();
diff --git a/src/core_views.js b/src/core_views.js
index 0f3ef9e..913f65a 100644
--- a/src/core_views.js
+++ b/src/core_views.js
@@ -66,6 +66,7 @@ export function renderDashboardView(deps) {
playFinishSiren,
escapeHtml,
addTrackLayout,
+ startPracticeNow = async () => false,
} = deps;
const active = getActiveSession();
@@ -78,6 +79,11 @@ export function renderDashboardView(deps) {
dom.view.innerHTML = `
${renderTrackLayoutBar({ state, t, escapeHtml, showNewButton: !active || isPracticeSessionType(active.type) })}
+
+
+
+
+
@@ -210,6 +216,13 @@ export function renderDashboardView(deps) {
document.getElementById("workflowDrivers")?.addEventListener("click", () => navigateTo("drivers"));
document.getElementById("workflowRaceSetup")?.addEventListener("click", () => navigateTo("race_setup"));
document.getElementById("workflowRaceDay")?.addEventListener("click", () => navigateTo("race_day"));
+ // The three things a club evening usually starts with.
+ document.getElementById("dashboardQuickPractice")?.addEventListener("click", async () => {
+ navigateTo("race_day");
+ await startPracticeNow();
+ });
+ document.getElementById("dashboardQuickRace")?.addEventListener("click", () => navigateTo("race_setup"));
+ document.getElementById("dashboardQuickSeries")?.addEventListener("click", () => navigateTo("series"));
document.getElementById("workflowTiming")?.addEventListener("click", () => navigateTo("timing"));
document.getElementById("workflowOverlay")?.addEventListener("click", () => navigateTo("overlay"));
diff --git a/src/race_day_view.js b/src/race_day_view.js
index a8cd629..dc323c4 100644
--- a/src/race_day_view.js
+++ b/src/race_day_view.js
@@ -175,6 +175,7 @@ export function renderRaceDayView(deps) {
getRaceDayWarmupCheck, setDriverTransponder, getDefaultPrologueSec,
startRacePrologue, holdRacePrologue, resumeRacePrologue, setRacePrologueRemaining, cancelRacePrologue, goRacePrologue,
isStartPending, renderSuspectLapsPanel = () => "", setCompetitorLapStatus = () => false, getLiveSession = () => null,
+ resetSessionData = () => false, startPracticeNow = async () => false, findOpenPracticeToContinue = () => null,
} = deps;
const queue = buildRaceDayQueue(state);
const session = queue.current;
@@ -200,14 +201,32 @@ export function renderRaceDayView(deps) {
// Another session is running while a different one is selected: say where laps go.
const liveSession = getLiveSession();
const liveElsewhere = liveSession && session && liveSession.id !== session.id && ["running", "paused"].includes(liveSession.status) ? liveSession : null;
+ // Quick actions for the common club evening, so nobody has to know where things live.
+ const practice = findOpenPracticeToContinue();
+ const practiceLabel = !practice ? t("race_day.quick_practice_new")
+ : practice.status === "running" ? t("race_day.quick_practice_show", { name: practice.name })
+ : t("race_day.quick_practice_continue", { name: practice.name });
+ const sessionChoices = state.sessions.slice().sort((a, b) => {
+ const rank = (item) => (["running", "paused"].includes(item.status) ? 0 : item.status === "ready" ? 1 : 2);
+ return rank(a) - rank(b) || Number(b.startedAt || 0) - Number(a.startedAt || 0);
+ });
+ const isPracticeSession = Boolean(session && (isPracticeSessionType(session.type) || session.type === "practice"));
+ const isLiveSession = ["running", "paused"].includes(session?.status);
+ // Layouts are a practice thing: never offered while a race session is in focus.
+ const layoutAllowed = !session || isPracticeSessionType(session.type);
dom.view.innerHTML = `
+
+
+ ${layoutAllowed ? `` : ""}
+
+
${liveElsewhere ? `