fix: make nightdrive signage reliable and legible

This commit is contained in:
2026-09-03 17:07:00 +03:00
parent 4404c07f93
commit b075041918
50 changed files with 4435 additions and 200 deletions

View File

@@ -206,6 +206,7 @@ describe("navigation epochs and effects", () => {
epoch: 2,
source: "passive-scroll",
destinationId: null,
signDestinationId: null,
});
});
@@ -283,6 +284,23 @@ describe("navigation epochs and effects", () => {
epoch: 2,
source: "history-restoration",
destinationId: "profile",
signDestinationId: null,
});
});
it("marks only an explicitly requested navigator epoch for roadside signage", () => {
const harness = createRuntime(true);
const controller = createNavigationController(sectionIds, harness.runtime);
controller.navigate("profile", target("profile"));
expect(controller.state().signDestinationId).toBeNull();
controller.navigate("experience", target("experience"), { requestSign: true });
expect(controller.state()).toMatchObject({
epoch: 2,
source: "explicit-navigation",
destinationId: "experience",
signDestinationId: "experience",
});
});