feat(race): federation-style race day presets - EFRA off-road/touring/nitro, ROAR, quick club day, rookie/junior, points only (1.89.34)
This commit is contained in:
1 parent
cc286165df
commit
1348b9b57e
13 files changed
+163
-9
No files matched your search
@@ -2983,3 +2983,5 @@ Tests: decoder_diagnostics.test.js covers bounds, isolation, snapshots and outco
|
||||
`lap_chart_logic.js` (pure) turns a heat's passings into a lap chart: `buildLapChart(entries)` gives each driver's place after every lap (order of crossing for that lap, among those who did it), `renderLapChartSvg()` draws it as a self-styled inline SVG (`currentColor` for axes, so it works in every theme and in print). `buildRaceOverview()` adds `heat.lapChart` for qualifying and finals when given `getCompetitorPassings`; the race overview panel shows it in a `<details>`, `renderRaceOverviewHeatsHtml()` prints it (single heat, or finals in the full results), and `buildHeatPdfSection()` sends it as `section.chart`, which `server.js` `normalizePdfLapChart()` checks and `server/pdf_render.js` `drawLapChart()` draws as vector lines.
|
||||
|
||||
`participant_picker.js` is the one driver picker for the new-race wizard (step 2), Manage race → Participants and a series round: `groupParticipantChoices()` groups drivers by class (the race's own class first, then classes with someone ticked), `renderParticipantPicker()` draws search, Only selected, Select all / Clear, per-class All / None and an optional "Same drivers as…" select (`participantCopySources()`: earlier races, the series' rounds first, no open practice); `bindParticipantPicker()` works in the DOM and calls the caller's `onChange(ids)` (search text, Only selected and folded classes are remembered per picker across re-renders). "Select all" never takes the folded classes, only the race's own class or the current search.
|
||||
|
||||
Race format presets (`getRaceFormatPresets()` in `event_race_logic.js`) may carry a `hint` (shown under the select in the wizard and in Manage race) and `wizard.practiceSessions`, which `applyRaceWizardPresetDefaults()` uses for the wizard's practice count. The federation-style presets (`efra_offroad`, `efra_touring`, `efra_nitro`, `roar`, `club_quick`, `rookie_junior`, `points_only`) spread `FEDERATION_BASE` and override what differs; `tests/race_presets.test.js` checks every built-in preset against the values the race settings accept.
|
||||
Reference in new issue
Block a user