diff --git a/CHANGELOG.md b/CHANGELOG.md index 22c7541..e8a370d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ No changes recorded yet. - **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. -- Run buttons use traffic-light colours: green starts or resumes (also Go now and the count-down's Resume), amber pauses or holds, red finishes. The Start practice button turns green with a pulsing dot while the practice runs, and amber while it is paused. +- 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. - 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/docs/screenshots/race-day.jpg b/docs/screenshots/race-day.jpg index 6229b63..ddf2cda 100644 Binary files a/docs/screenshots/race-day.jpg and b/docs/screenshots/race-day.jpg differ diff --git a/src/race_day_view.js b/src/race_day_view.js index 7d283f5..83a2775 100644 --- a/src/race_day_view.js +++ b/src/race_day_view.js @@ -216,7 +216,7 @@ export function renderRaceDayView(deps) { const layoutAllowed = !session || isPracticeSessionType(session.type); dom.view.innerHTML = `
- + ${layoutAllowed ? `` : ""}
@@ -254,9 +254,9 @@ export function renderRaceDayView(deps) { : isLiveSession ? "" : ``} ${prologue ? "" : ` - ${session?.status === "running" ? `` : ""} + ${session?.status === "running" ? `` : ""} ${session?.status === "paused" ? `` : ""} - ${isLiveSession ? `` : ""} + ${isLiveSession ? `` : ""} ${isPracticeSession ? `` : ""}`} ${isPracticeSession ? "" : `
diff --git a/src/styles.css b/src/styles.css index 7e3dcfc..e514170 100644 --- a/src/styles.css +++ b/src/styles.css @@ -1930,7 +1930,8 @@ body { ); } -/* Traffic-light run controls: green starts or resumes, amber holds, red (.btn-danger) finishes. */ +/* Run controls follow the race flags: green flag starts or resumes, red flag (.btn-danger) stops the + race (pause), checkered flag finishes. Amber only holds the start count-down. */ .btn-go { color: #fff; border-color: color-mix(in srgb, var(--ok) 62%, black 38%); @@ -1943,6 +1944,15 @@ body { background: linear-gradient(180deg, color-mix(in srgb, var(--warn) 85%, white 15%), color-mix(in srgb, var(--warn) 80%, black 20%)); } +.btn-checkered { + color: #111; + border-color: #111; + background-color: #fff; + background-image: repeating-conic-gradient(rgba(0, 0, 0, 0.14) 0 25%, transparent 0 50%); + background-size: 14px 14px; + font-weight: 700; +} + .btn-go:disabled, .btn-hold:disabled { filter: grayscale(0.7);