feat(ux): run sessions from Race Day with quick actions

Race Day gets Start practice, New track layout and Create race, a session
picker, only the buttons that apply, and New practice day (replaces Reset
data on Timing; laps stay in the training stats). Timing is for following
and links to Race Day. The Dashboard shows the three common tasks first.
Guide, READMEs, screenshot and the "Run a session" video follow the flow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
larssandandClaude Opus 5.5 committed 2026-10-17 18:32:01 +02:00
1 parent 3a6789f42f
commit c4df90706a
23 files changed
+344 -111

No files matched your search

+2 -2
View File
@@ -30,7 +30,7 @@ export async function runCorrectionsScopeSmoke({ evaluate, navigate, savedState,
try {
// Race: Timing details are read-only and point to Judging.
await navigate("timing", "resetSession");
await navigate("timing", "activeSessionSelect");
await evaluate(`document.getElementById("leaderboard-detail-driver_cs_driver").click()`);
await waitFor(async () => exists("#corrOpenJudging"), "Open in Judging in a race");
assert.equal(await exists("#corrLapPlus"), false, "no penalty buttons on Timing");
@@ -43,7 +43,7 @@ export async function runCorrectionsScopeSmoke({ evaluate, navigate, savedState,
// Practice: no penalties anywhere, lap clean-up on Timing.
await patchState({ sessions: (await savedState()).sessions.map((session) => (session.id === heat.id ? { ...session, status: "finished", endedAt: Date.now() } : session.id === practice.id ? { ...session, status: "running", startedAt } : session)), activeSessionId: practice.id });
await navigate("timing", "resetSession");
await navigate("timing", "activeSessionSelect");
await evaluate(`document.getElementById("leaderboard-detail-driver_cs_driver").click()`);
await waitFor(async () => exists('#leaderboardModalOverlay [data-lap-action="remove"]'), "Remove per lap in practice");
assert.equal(await exists("#corrOpenJudging"), false, "no corrections block in practice");