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>
This commit is contained in:
larssandandClaude Opus 5.5 committed 2026-10-07 19:53:23 +02:00
1 parent 3cc4fa0845
commit 8601954ea2
24 files changed
+556 -60

No files matched your search

+2
View File
@@ -252,6 +252,8 @@ export function buildLeaderboard(session, { ensureSessionResult, getSessionTarge
return {
...row,
personalTimeUp,
// Practice laps far quicker than the driver's pace, still waiting for approve/remove.
suspectPending: passings.filter((passing) => passing.suspect).length,
laps: Math.max(0, Number(row.laps || 0) + manualLapAdjustment),
lastLapMs,
bestLapMs,