feat(race-day): day schedule for all classes, autopilot, pause the day, printed running order and drivers' board (1.50.0)

This commit is contained in:
larssand committed 2026-11-01 22:06:59 +01:00
1 parent 0ba858d638
commit fdc6c179dc
18 files changed
+735 -20

No files matched your search

+11
View File
@@ -984,6 +984,17 @@ Asked for after the first ÖRC Winter round, where a qualifying went wrong and t
- [ ] **Readable day PDF per class (optional, after the CSV).** The day result used for series points (manual ✎ Result if set), then every session in running order with its full result. Lap-by-lap times stay in the CSV.
- [ ] **Publish to an external results site (e.g. House of RC).** Create the race / series there over its API and push the results (and optionally laps) after each session or at the end of the day, so the club's racing gets more exposure. Open questions before building: is there a public API and how is it authenticated (club account / API key stored in Settings), what format it expects (class, heats, qualifying, finals, points), whether it can be updated afterwards when a result is corrected by hand, and what happens when the club PC is offline (queue and retry). Start by investigating the API; keep the integration as a separate server module so a different site can be added later.
## Race day schedule, autopilot and drivers' board (2026-11-01)
Asked for after the first ÖRC Winter round: a schedule for the whole day, one button that runs it, a pause button, a printed running order for the board, and a heads-up for drivers 10 minutes before their heat.
- [x] One schedule per date across every class (`src/day_schedule_logic.js`): practice, each qualifying round with the classes taking turns, finals leg by leg from the lowest; ▲▼ stored as `state.raceDays[].sessionOrder`. Late, long or paused heats push the rest of the day.
- [x] Race Day panel with first start, gap, ▲▼, print and the drivers' board link (`src/day_schedule_view.js`).
- [x] Autopilot in the tab where it is turned on (sessionStorage): starts the next heat's count-down at planned start minus the count-down length; waits while anything runs, the decoder is offline or preflight fails. Pause the day pauses the heat on track or holds the count-down.
- [x] Drivers' board at `/public-overlay/schedule` with the next three heats, drivers in grid order and a heads-up within 10 minutes.
- [x] Race Setup's schedule follows the ▲▼ running order.
- [ ] Spoken heads-up ("Q2 H1 2WD starts in 10 minutes") - not asked for yet.
## Documentation maintenance
- [x] Update the architecture's module/dependency inventory as modules change.