Commit Graph
34 Commits
Author SHA1 Message Date
larssand f8080ffaeb feat(day): one start time - Race setup's start time and gap are Race Day's, with Race Day's times shown (1.89.17) 2026-11-13 09:40:48 +01:00
larssand 3870510d8c feat(houseofrc): send heats automatically after every heat, show send status, warn before sending (1.85.0) 2026-11-08 23:19:43 +01:00
larssand ebdc6104e6 feat(houseofrc): preview and send results to the event's entries, heats or final placings (1.83.0) 2026-11-08 20:44:23 +01:00
larssand f4a62b92d2 feat(houseofrc): re-fetch late entries and withdrawals, remember class mapping, offer brand differences (1.82.0) 2026-11-08 19:04:27 +01:00
larssand 8a8b2417fd fix(events): easy setup first in Manage; manual heats and branding folded away (1.67.2) 2026-11-05 22:21:47 +01:00
larssand 37076b8490 feat(team-race): one team race setup panel with auto split, car per team and start checks (1.67.0) 2026-11-05 21:55:37 +01:00
larssand d0a5df6992 feat(sponsor): quick setup with guest drivers, shared rental cars, rotating heats and A/B finals (1.63.0) 2026-11-05 18:31:57 +01:00
larssand db6a9f19e4 fix(race): finish the lap you are on, one clock owner, edits survive refresh, participants editable (1.59.0) 2026-11-04 21:34:06 +01:00
larssand 73e3d1ff75 feat(race-setup): group a race's sessions per step, fold run steps, rare actions in a menu (1.53.0) 2026-11-02 08:26:00 +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 74dbbf6ae0 feat(series): ÖRC Winter format, seeding practice and heat order when creating rounds (1.43.0) 2026-10-31 07:58:40 +01: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 Sonnet 5 ba4ed30b11 Split Event Manager's race-mode page into tabs
The race-mode management page (participants, teams, race format,
live grid/standings, and now the schedule/print tools) had grown into
a long scroll. Grouped into four tabs - Participants & teams, Format,
Live & results, Schedule & print - matching the tab pattern already
used for Settings. Only wrapper divs were added; no section's markup
or event bindings moved. The existing step-card overview and warning
links now switch to the right tab before jumping to it, and Open Grid
switches to the Live tab so its target is actually visible. Track/
sponsor events, which never had this length problem, are unaffected.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-11 13:47:35 +02:00
larssandandClaude Sonnet 5 cf89086dff Add a time-of-day race day schedule to Event Manager
Events can now be given a start time and a gap between sessions on a
new "Schedule" panel; every session's planned clock time cascades
automatically in running order (practice, qualifying, finals), and
once a session actually starts or finishes, everything after it
re-anchors to that real time - a late start or a session that ran
long (including any pause) pushes the rest of the day forward with
no manual reschedule step. The scheduled time now also shows on the
printed/PDF start lists.

Printable start lists and manually moving a driver to start last in
their own heat (for a mechanic-time request) already existed, so
this only builds the missing piece: the schedule itself.

Also fixes a real pre-existing bug in the same session-ordering logic
this feature relies on: getSessionSortWeight used `order[type] || 99`,
which silently treated open_practice's own weight of 0 as falsy and
sorted practice sessions dead last instead of first in print/PDF
output.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 22:33:57 +02:00
larssandandClaude Sonnet 5 b1b65a9cf9 Add moving a driver between qualifying heats
The user asked whether a lone driver left in the last heat (e.g. 7
drivers at 3 per heat) could be moved into another heat manually.
Investigated first: neither "Reseed" (redistributes every not-yet-run
heat by current standings, not a targeted move) nor the grid editor
(reorders start position within one heat, never moves a driver
between heats) could do this - there was genuinely no path to it.

moveDriversIntoQualifyingHeat (src/event_race_logic.js) adds the same
"checking them elsewhere is the move" pattern already used for team
rosters: a new driver checklist on the qualification session edit
form pulls a checked driver out of whichever other heat they're
currently on, scoped to the same round only ("Q2 H2" never touches
"Q1"/"Q3", since heat composition can legitimately differ round to
round after a reseed). The checklist names the driver's current heat
before saving, mirroring the team-roster warning.

Also confirmed, per the user's earlier questions, already correct
with no changes needed: practice's per-driver "best 3 laps"/"best
5-minute result" stats, and that heats are already seeded fastest-
first from practice results. Flagged one real, deliberately unbuilt
gap while investigating: a true per-driver rolling "5 minutes from
your own first crossing" qualifying *heat* clock isn't supported -
only the practice stats work that way today.

Verified with new unit tests for moveDriversIntoQualifyingHeat and
the extracted parseQualifyingHeatName helper, and a real headless-
browser run reproducing the exact reported scenario end to end
through the actual UI.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 18:18:01 +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 abf887dccd Split- och depåstatistik är implementerad 2026-08-25 20:00:55 +02:00
larssand 2e6866a013 Add simplified Open Practice flow and reorganize 2026-08-24 19:25:21 +02:00
larssand 3fb2ebe5b3 redigera lag 2026-03-27 21:28:04 +01:00
larssand 5ff81a3f1e nytt lag öppnar inte edit-modal automatiskt längre
det ska bara dyka upp i listan direkt
2026-03-27 21:13:29 +01:00
larssand f5be5b57ad fixa lag 2026-03-27 19:07:19 +01:00
larssand 05e0bf0c1f lag race 2026-03-27 18:56:32 +01:00
larssand 4daee0cd21 gjort om race o lag 2026-03-27 18:47:59 +01:00
larssand a1695e86db ssssss 2026-03-27 18:28:47 +01:00
larssand aeaca807f1 restore 2026-03-27 18:06:39 +01:00
larssand 0df1aba99a deb 2026-03-27 18:01:16 +01:00
larssand f2945edf08 add debug för race event 2026-03-27 17:52:26 +01:00
larssand d81f262966 fix 2026-03-27 16:56:05 +01:00
larssand 0b625c462e Fix race team actions with explicit manager hooks 2026-03-27 16:51:28 +01:00
larssand 1d3dcdf50e fix 2026-03-27 16:41:23 +01:00
larssand 14b8f777f1 Fix passing validation wiring in timing leaderboard" 2026-03-27 16:26:00 +01:00
larssand 0edf328b0b Fix and harden race setup manager field visibility 2026-03-26 20:04:12 +01:00
larssand 06247bcaac Fix race setup manager view field visibility wiring 2026-03-26 19:58:06 +01:00
larssand 63c1d0496b Extract event manager markup into module 2026-03-26 19:55:15 +01:00