feat(export): CSV for a whole race day from the results archive and series rounds (1.89.40)

This commit is contained in:
larssand committed 2026-11-15 21:40:54 +01:00
1 parent 10b5d0a447
commit 7af4a81aaa
12 files changed
+212 -14

No files matched your search

+1 -1
View File
@@ -980,7 +980,7 @@ Verified: unit tests in `tests/local_cache.test.js`; `tests/browser_decoder_url.
Asked for after the first ÖRC Winter round, where a qualifying went wrong and the club had to rebuild the day's result by hand. Today the only exports are a summary PDF per race (practice/qualifying/final standings, no heat details or lap times) and a raw JSON package. Nothing covers "everything run today, per class" in a form people can read or open in Excel, and results only live in RC RaceCore.
- [ ] **CSV export for a whole race day.** Pick a date and a class (or all classes). One row per lap from every session that day: class, session (in running order), driver, transponder, lap number, lap time, time of day, plus a session summary (position, laps, total time, best lap, average). Frontend only: reuse `buildLeaderboard`, `orderSessionsForRunning` and the existing file download helper; no server or schema change. Button in the Results archive when filtered on a date, with a shortcut on the series round.
- [x] **CSV export for a whole race day.** Done in 1.89.40 (`src/race_day_export_logic.js`; semicolon CSV with BOM so Excel opens it in columns). Pick a date and a class (or all classes). One row per lap from every session that day: class, session (in running order), driver, transponder, lap number, lap time, time of day, plus a session summary (position, laps, total time, best lap, average). Frontend only: reuse `buildLeaderboard`, `orderSessionsForRunning` and the existing file download helper; no server or schema change. Button in the Results archive when filtered on a date, with a shortcut on the series round.
- [ ] **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).** Planned in detail in [House of RC integration](#house-of-rc-integration-entries-in-results-out-planned-2026-11-07) below.