diff --git a/CHANGELOG.md b/CHANGELOG.md index e8a370d..807cb79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ No changes recorded yet. - **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. - Run buttons follow the race flags: green flag starts or resumes (also Go now and the count-down's Resume), red flag pauses (stops the race), checkered flag finishes. The Start practice button is green with a pulsing dot while the practice runs, and red while it is paused. Amber is only used to hold the start count-down. +- **Reset data** for heats and finals is on Race Day (e.g. a restart after a false start), shown when the session is not running. - 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). diff --git a/src/app.js b/src/app.js index 4029985..085866e 100644 --- a/src/app.js +++ b/src/app.js @@ -867,6 +867,8 @@ const TRANSLATIONS = { "race_day.quick_layout": "Ny banlayout", "race_day.quick_race": "Skapa race", "race_day.pick_session": "Session", + "race_day.reset_session_hint": "Nollställer sessionens varv och resultat, t.ex. vid omstart. Pausa först om heatet körs.", + "race_day.reset_session_confirm": "Nollställ alla varv och resultat i \"{name}\"?\n\nDet går inte att ångra.", "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.", @@ -2698,6 +2700,8 @@ const TRANSLATIONS = { "race_day.quick_layout": "New track layout", "race_day.quick_race": "Create race", "race_day.pick_session": "Session", + "race_day.reset_session_hint": "Clears the session's laps and results, e.g. for a restart. Pause first if the heat is running.", + "race_day.reset_session_confirm": "Clear every lap and result in \"{name}\"?\n\nThis cannot be undone.", "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.", diff --git a/src/race_day_view.js b/src/race_day_view.js index 83a2775..f7e3874 100644 --- a/src/race_day_view.js +++ b/src/race_day_view.js @@ -257,7 +257,8 @@ export function renderRaceDayView(deps) { ${session?.status === "running" ? `` : ""} ${session?.status === "paused" ? `` : ""} ${isLiveSession ? `` : ""} - ${isPracticeSession ? `` : ""}`} + ${isPracticeSession ? `` + : session && session.status !== "running" ? `` : ""}`} ${isPracticeSession ? "" : `