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:
larssand
2026-10-07 19:53:23 +02:00
parent 3cc4fa0845
commit 8601954ea2
24 changed files with 556 additions and 60 deletions

View File

@@ -4517,3 +4517,46 @@ select:focus {
#raceDayWarmup .panel-header .pill {
white-space: nowrap;
}
/* Suspect (likely shortcut) practice laps */
.suspect-flag {
color: #f5a623;
font-weight: 700;
}
.suspect-laps-panel {
border-color: rgba(245, 166, 35, 0.6);
}
.suspect-laps-list {
display: grid;
gap: 6px;
}
.suspect-lap-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.lap-actions {
display: inline-flex;
gap: 6px;
white-space: nowrap;
}
tr.is-suspect td {
background: rgba(245, 166, 35, 0.08);
}
tr.is-removed td {
opacity: 0.55;
text-decoration: line-through;
}
tr.is-removed td.lap-actions {
opacity: 1;
text-decoration: none;
}