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>
This commit is contained in:
@@ -107,6 +107,8 @@ test("preflight shortcuts respect driver, shared-car and team setup", async () =
|
||||
assert.equal(action(missing, { mode: "race", type: "team_race" }).view, "race_setup");
|
||||
assert.equal(action({ id: "participants", level: "error" }, { mode: "track" }).view, "events");
|
||||
assert.equal(action({ id: "decoder", level: "error" }).view, "settings");
|
||||
assert.equal(action({ id: "decoder", level: "error" }).settingsTab, "connection", "the decoder fix opens the Connection tab");
|
||||
assert.equal(action({ id: "audio", level: "warning" }).settingsTab, "audio", "the audio fix opens the Audio tab");
|
||||
assert.equal(action({ id: "session", level: "error" }).view, "timing");
|
||||
assert.equal(action({ id: "lap_window", level: "warning" }, { mode: "race" }).field, "minLapSec");
|
||||
assert.equal(action({ id: "decoder", level: "ok" }), null);
|
||||
|
||||
Reference in New Issue
Block a user