fix(dashboard): mode toggle survives the auto-refresh; installed leve… - #32
Merged
contactacefleetdev merged 1 commit intoAug 28, 2026
Merged
Conversation
…rs are visible Two bugs, both reported from actually using the page. THE TOGGLE SNAPPED BACK TO OFF. Not the handler -- a programmatic click set shadow and held. The page carries <meta http-equiv='refresh' content='20'>, so it reloads itself every 20 seconds and the mode, being client-side state with nowhere to live, reset. It reads as a broken control rather than as the page refreshing, which is exactly how it was reported. The selection now persists in localStorage and is restored on load: a per-viewer display preference, nothing another viewer needs, and it survives the reload that caused the problem. Reads and writes are wrapped -- a private window or blocked site data returns 'off' rather than throwing. AN INSTALLED LEVER WAS INVISIBLE. Discovery found all three, the payload carried them, every mode resolved them -- and the rail rendered only the simulated headroom rows and the measured ones, so `installed` was in the payload and read by nothing. A developer who installed a lever package saw no evidence anywhere on the page that it had worked. They now render as their own group, carrying no figure. A registered lever that is `off` has produced neither a measurement nor a simulation, and inventing a number would put a third claim on a rail that already has to keep two apart. What it shows is what is actually actionable: the providing package, the declared risk, whether the lever needs the proxy path, and the one word standing between it and doing something. Also fixed on the empty-scope path, which returned early and skipped both the measured and installed rows -- whether a package registered a lever has nothing to do with whether there are sessions to score it against, so an empty range was hiding the only evidence the package was present.
contactacefleetdev
deleted the
fix/lever-rail-visibility-and-mode-persistence
branch
August 28, 2026 18:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…rs are visible
Two bugs, both reported from actually using the page.
THE TOGGLE SNAPPED BACK TO OFF. Not the handler -- a programmatic click set shadow and held. The page carries , so it reloads itself every 20 seconds and the mode, being client-side state with nowhere to live, reset. It reads as a broken control rather than as the page refreshing, which is exactly how it was reported. The selection now persists in localStorage and is restored on load: a per-viewer display preference, nothing another viewer needs, and it survives the reload that caused the problem. Reads and writes are wrapped -- a private window or blocked site data returns 'off' rather than throwing.
AN INSTALLED LEVER WAS INVISIBLE. Discovery found all three, the payload carried them, every mode resolved them -- and the rail rendered only the simulated headroom rows and the measured ones, so
installedwas in the payload and read by nothing. A developer who installed a lever package saw no evidence anywhere on the page that it had worked.They now render as their own group, carrying no figure. A registered lever that is
offhas produced neither a measurement nor a simulation, and inventing a number would put a third claim on a rail that already has to keep two apart. What it shows is what is actually actionable: the providing package, the declared risk, whether the lever needs the proxy path, and the one word standing between it and doing something.Also fixed on the empty-scope path, which returned early and skipped both the measured and installed rows -- whether a package registered a lever has nothing to do with whether there are sessions to score it against, so an empty range was hiding the only evidence the package was present.
Description
Summarize the changes made in this Pull Request and the problem being solved.
Type of Change
Verification
Describe the tests and checks performed to verify changes:
pytestpasses cleanly.python -m buildandtwine check dist/*pass.scripts/e2e_test.pypasses.Checklist
CHANGELOG.mdwith my changes.