Commit Graph
23 Commits
Author SHA1 Message Date
larssand b2e08db3d8 feat(race-day): call the next heat - asked by hand, automatic with the autopilot (1.51.0) 2026-11-01 22:25:43 +01:00
larssand fdc6c179dc feat(race-day): day schedule for all classes, autopilot, pause the day, printed running order and drivers' board (1.50.0) 2026-11-01 22:06:59 +01:00
larssand bb0fa7ede4 feat(race-setup): list sessions in running order and move them with up/down (1.49.0) 2026-11-01 20:13:15 +01:00
larssand 54487a18a6 feat(race-day): live race for the race controller with order, laps, gaps and estimated finish (1.47.0) 2026-11-01 16:38:08 +01:00
larssand b57e15b428 fix click on user to se training stats 2026-11-01 10:54:38 +01:00
larssand ab1c26a89b fix(race-day): reset a heat to ready with its clock at zero, keep recent races listed (1.45.2) 2026-11-01 10:49:17 +01:00
larssand 71aa149a4d feat(series): next-step button per round and Race Day next session (1.44.0) 2026-10-31 09:03:34 +01:00
larssand dbda06d101 fix(series): report created races, delete a series with its races; group Race Day sessions by today's races (1.43.1) 2026-10-31 08:34:44 +01:00
larssand 35eb3eb059 feat(decoder): warn when the decoder's clock is off (1.42.4)
The decoder's time is never changed. Passings (also during warm-up)
measure it against the computer's clock, and Race Day's preflight and
the decoder diagnostics warn when it is over a minute off, e.g. after
the switch to winter time.
2026-10-25 18:40:35 +01:00
larssandandClaude Opus 5.5 c8a797fe6f fix(race-day): bring back Reset data for race sessions
It went away with Timing's run controls; practice has New practice day,
heats and finals get Reset data on Race Day when not running.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 15:35:20 +02:00
larssandandClaude Opus 5.5 8120ebc1b5 feat(race-day): run buttons follow the race flags
Green starts or resumes, red pauses (stops the race), checkered finishes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 18:50:40 +02:00
larssandandClaude Opus 5.5 ba35f9e7d2 feat(race-day): traffic-light colours on the run buttons
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 18:45:21 +02:00
larssandandClaude Opus 5.5 c4df90706a feat(ux): run sessions from Race Day with quick actions
Race Day gets Start practice, New track layout and Create race, a session
picker, only the buttons that apply, and New practice day (replaces Reset
data on Timing; laps stay in the training stats). Timing is for following
and links to Race Day. The Dashboard shows the three common tasks first.
Guide, READMEs, screenshot and the "Run a session" video follow the flow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 18:32:01 +02:00
larssandandClaude Opus 5.5 3a6789f42f fix(timing): keep timing the running session when another one is selected
Passings and the session clock followed only the selected session, so
selecting another practice or the next heat while one was running
dropped every lap. They now go to the running session, and Timing and
Race Day show where laps are being recorded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 17:31:59 +02:00
larssandandClaude Opus 5.5 7f267e17fe fix(settings): open the right Settings tab from the update link and Race Day
The sidebar update notice now lands on System & backup at Updates, and
Race Day's decoder/backend/audio fix buttons open the matching tab,
instead of whichever tab was used last.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 20:44:28 +02:00
larssandandClaude Opus 5.5 8601954ea2 feat(practice): flag suspiciously short laps and remove any lap in one click
Practice laps under 85% of the driver's own median (a likely shortcut)
are flagged: counted, but never a best lap, record or training stat
until approved. Timing and Race Day get a one-click Approve/Remove
panel, overlays show a warning mark, and any lap can be removed or
restored from Timing and Judging with undo.

Also sends judge corrections straight to the server so its hot-results
protection can no longer hold back a correction made right after a
passing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 19:53:23 +02:00
larssandandClaude Opus 5.5 5bfb67ea02 feat(race-day): start heats with an EFRA/IFMAR count-down and flying start
Race Day Start now runs a count-down (Go, 30 s - 5 min, default per
event) with calls every minute, 30 s and 10 s, grid call and 9..3
count for grid starts, hold/resume/+1 min/to 30 s/to 10 s/Go now, and
starts the heat by itself when it runs out. The transponder check runs
during the count-down, replacing the separate warm-up.

Adds a flying start mode (horn + clock is running, own clock per car)
as the qualifying default, and the latest personal clock start rules
from EFRA 9.3 / IFMAR 4.2.3 for flying and staggered starts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 21:27:20 +02:00
larssandandClaude Opus 5.5 1bc75f8ec1 feat(race-day): add warm-up transponder check before a heat
Race Day gets a 1-3 minute warm-up per heat with a green check per
driver when their transponder is seen, countdown announcements
(sv/en), quick transponder fix from the panel, and a start warning
that still allows starting when someone is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 20:47:15 +02:00
larssandandClaude Opus 5.5 627179b95a feat(layouts): switch track layout mid-practice and view stats per layout
A club can run one Open Practice all season and re-lay the track now and then.
Previously a session's layout was frozen at start and every training lap inherited
it, so a season-long practice stayed on its first layout forever, and changing layout
was hidden under Settings -> Appearance.

- Each practice lap now counts toward the layout active when it was driven; a running
  practice session moves onto a new layout when one is added
- "New layout" strip on Training stats, Race Day and the Dashboard, offered only around
  practice; a running race session blocks layout changes everywhere
- "Stats for" selector (current / older layout / before layouts / all layouts) on
  Training stats and in the driver's mobile profile (?layout= on the public API)
- A layout that has practice laps on it can no longer be deleted
- Fix: the buildDriverTrainingStats wrapper in app.js dropped extra arguments

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 21:24:44 +02:00
larssandandClaude Sonnet 5 15b574a37d Fix Team Race duplicate-membership bug and two related team-roster gaps
Reported by the user: creating a team, adding the wrong driver, then
moving that driver to another team by ticking them on the new team's
edit form left the driver on both teams at once. Root cause: there
was never a "move" action - the edit form only ever added a driver to
the team being saved, never removed them from wherever they already
were. Live laps from a driver on two teams were then silently
credited to only the first-matching team, with no clear error.

reassignTeamMembers (event_race_logic.js) now strips a driver/car
being saved onto one team out of every other team in the same event,
and the team checkbox list shows which team a driver is already on
before you move them.

Also fixed two related gaps found while investigating, at the user's
request to fix everything: getTeamDriverPool had regressed to
ignoring the event's class/participant scoping entirely (showing
every driver in the club), and deleting a driver or car left them
behind in team rosters forever. Added a duplicate_team_members Race
Day preflight check as defense in depth for any already-corrupted
saved state.

Verified with new unit tests for reassignTeamMembers, getTeamDriverPool
and the new preflight check, plus a new permanent browser test
reproducing the user's exact reported scenario end to end.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 17:07:45 +02:00
larssand 78c650bde7 raceday kontroller 2026-09-05 09:59:55 +02:00
larssand 483a9dbd5a Fix lap limits and five-minute stint statistics 2026-09-02 19:36:25 +02:00
larssand 28e5c96010 fix tränings länken och race day 2026-08-28 21:55:28 +02:00