feat(race): driver picker grouped by class with all/none per class, search and copy from an earlier race (1.89.33)
This commit is contained in:
1 parent
eac897c774
commit
cc286165df
17 files changed
+339
-102
No files matched your search
@@ -2981,3 +2981,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.
|
||||
Reference in new issue
Block a user