feat(training): Standard / Pro switch on the driver's page; purple day-best lap and stint consistency (1.87.0)

This commit is contained in:
larssand committed 2026-11-09 22:44:47 +01:00
1 parent 73e1c0ccf3
commit 0caf50254a
13 files changed
+204 -28

No files matched your search

+2 -2
View File
@@ -424,8 +424,8 @@ export function renderTrainingView(deps) {
const allStintRows = stintAnalysis.rows.map((row) => renderStintRow(row, { t, escapeHtml, formatLap, formatRaceClock, state })).join("");
// The 10 latest stints as fold-out cards with every lap, above the analysis table.
const stintLapCards = renderStintLapCards(stintAnalysis.rows.slice(0, 10), {
formatLap, formatDuration: formatRaceClock, escapeHtml, openIds: openStintLapCardIds(document),
labels: { stint: t("training.stint"), laps: t("training.laps"), best: t("training.best_lap"), average: t("training.stint_average"), duration: t("training.stint_duration"), lap: t("training.stint_lap_times"), excluded: t("training.stint_out_lap"), empty: t("training.no_stints") },
formatLap, formatDuration: formatRaceClock, escapeHtml, openIds: openStintLapCardIds(document), allStints: stintAnalysis.rows,
labels: { stint: t("training.stint"), laps: t("training.laps"), best: t("training.best_lap"), average: t("training.stint_average"), duration: t("training.stint_total_time"), consistency: t("training.consistency"), lap: t("training.stint_lap_times"), excluded: t("training.stint_out_lap"), empty: t("training.no_stints") },
});
// Stints are for practice only; with "Races" chosen the race-session table replaces them.
const stintSectionMarkup = `