Repository navigation
A reload keeps your place - #140
Merged
Merged
Conversation
Brett: "can we make the repo jump silent on the other wheels? currently we take the user back to home page and the user must drill back to where they were." The jump is not the only offender — it is one of FIVE controls that store a key and reload: the repository jump, the repository selector, the project selector, a refresh, and clearing a drill-in. None of them remembered anything, so every one landed on the first tab. A jump taken FROM the wheel arrived on the funnel, and the human re-navigated to the place they had just been looking at. Fixing the jump alone would have left the same complaint waiting behind four other buttons. The active view is now remembered on every activation — a click, a keyboard arrow, or a programmatic `goto` from a wheel verb, all of which go through the one `show()` — and restored on mount when that view still exists on the plane (a remembered view that is gone falls back to the first, exactly as before). It rides the same guarded storage seam every other stored preference uses, where blocked site data throws from the getter itself and a preference that cannot be stored is not an error. THE TAB IS THE ONLY THING KEPT, deliberately. After a repository jump the tile you were on does not exist in the repository you jumped to — that is the point of jumping. Restoring the view puts you back where you were looking; restoring a tile would restore something that is gone. WHAT THIS DOES NOT DO: the reload still happens. Making the swap truly in-place means re-running the shell's whole mount — every view, the workbench overlay, the selector, the tab router — which is a refactor with real regression surface across surfaces that currently mount exactly once. The complaint was losing your place, and your place is kept. Suites 2816 passed (exit 0). Live: on the wheel, switching project reloads and lands on THE WHEEL (it landed on the realization funnel before). Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
Pull request overview
This PR improves the ideation dashboard UX by persisting and restoring the active tab (“view”) across the various controls that trigger a full page reload, so users return to the same surface (e.g., wheel vs funnel) after reload.
Changes:
- Add guarded sessionStorage helpers to persist the active tab and restore it on mount when the tab exists for the current “plane”.
- Persist the active tab on every activation path by funneling through
show()(click, keyboard navigation, and programmaticgoto()). - Add a regression test asserting the persistence/restoration wiring, and document the behavior in the session runbook.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| tests/ideation-dashboard/test_bullseye_widget.py | Adds a regression test verifying active-tab persistence + restoration hooks exist in app.js. |
| scripts/ideation_dashboard/web/app.js | Persists the active tab on show() and restores it during initTabs() using guarded sessionStorage access. |
| docs/ideation-dashboard-session-runbook.md | Documents the “reload keeps your place” behavior and rationale. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+433
to
+438
| // The tab is the right thing to keep, and the only thing: after a repository | ||
| // jump the tile you were on does not exist in the repository you jumped to, | ||
| // which is the point of jumping. Restoring the VIEW puts you where you were | ||
| // looking; restoring a tile would be restoring something that is gone. | ||
| const ACTIVE_TAB_STORAGE = "opendox.active-view"; | ||
|
|
brettheap
added a commit
that referenced
this pull request
Oct 7, 2026
…ged evidence Records the realization lane's own merged acts in tasks.md, on 5.1's pattern (PR #1254). Edits only the 5.2-5.5 lines; 5.6 stays unticked, and 5.7 is left exactly as #1255 merged it. - 5.2: opensoft/openRepoShape#164 -> 1a9fc537 (squash, 2026-10-06T22:52:05Z); tests, tests-macos, tests-windows and SonarCloud green; full suite 1159 -> 1200 passed, 33 skipped. - 5.3: this PR (#1260) -> 9af2207, the pin advance; openreposhape-pin-gate green on it (run 37550154276). - 5.4: opensoft/openBenches#139 -> 9fbe609c and #140 -> d86ba59b; post-merge main CI green; bootstrap suite 1042 PASS; workBenches#138 closed completed. - 5.5: the private brettheap/new-workstation, cited by merged sha and file name only: #52 -> e081c5ab, #53 -> cb411460; no CI there; the live ~/.agents files are byte-identical to cb411460. Each tick holds on main only through this pull request's merge, which waits on Brett Heap's merge word and its required checks. Lane: codeXfactory-5 Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Oct 7, 2026
…c537, the commit that realizes 5.2 (#1260) Task 5.3 of the ratified change prefer-triad-project-shape. contracts/openreposhape-pin.yaml moves from e9c4827b to 1a9fc537bcce37301c85fc108fabd8a599b02000. That is openRepoShape #164, the commit that realizes 5.2, so the move also carries the 56 openRepoShape commits before it. Each file is classified by the pin's own digested-or-path-only rule. The result is 37 digested and 67 path-only members over a 104-file surface: 28 files are new since e9c4827b (6 digested, 22 path-only), 21 of the 31 earlier digests moved, and nothing was removed or renamed upstream. Template .gitattributes files are path-only, following the .gitignore, Makefile and validate.yml precedent. docs/project-repo-schema.md gains a dated currency note in the form its 2026-09-04 and 2026-09-05 notes set, and no doctrine sentence changes. The verifier's test constants move with the pin. tasks.md ticks 5.2 (openRepoShape #164 → 1a9fc537), 5.3 (this PR), 5.4 (workBenches #139 → 9fbe609c and #140 → d86ba59b) and 5.5 (brettheap/new-workstation #52 → e081c5ab and #53 → cb411460). 5.6 stays open with lane openRepoProject-1 (openRepoProject#3, #5). Checks: openreposhape-pin-gate is green, the pinned OpenSpec CLI result equals main's, doc-health finds nothing new, and every required check is green, merge-master-approval included. Merged on Brett Heap's word "merge the 5.3 pin PR when green" (2026-10-07). Copilot review not requested (Brett Heap, 2026-10-06). Lane: codeXfactory-5 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
The jump wasn't the only offender
It's one of five controls that store a key and reload: the repository jump,
the repository selector, the project selector, a refresh, and clearing a
drill-in. None of them remembered anything, so every one landed on the first
tab — a jump taken from the wheel arrived on the funnel. Fixing the jump
alone would have left the same complaint waiting behind four other buttons.
What changed
The active view is remembered on every activation — a click, a keyboard arrow,
or a programmatic
gotofrom a wheel verb, all of which funnel through the oneshow()— and restored on mount when that view still exists on the plane. Aremembered view that's gone falls back to the first, exactly as before. It
rides the same guarded storage seam every other stored preference uses, where
blocked site data throws from the getter itself and an unstorable preference
isn't an error.
The tab is the only thing kept, deliberately. After a repository jump the
tile you were on doesn't exist in the repository you jumped to — that's the
point of jumping. Restoring the view puts you back where you were looking;
restoring a tile would restore something that's gone.
What this doesn't do
The reload still happens. Making the swap genuinely in-place means re-running
the shell's entire mount — every view, the workbench overlay, the selector, the
tab router — a refactor with real regression surface across surfaces that
currently mount exactly once. The complaint was losing your place, and your
place is kept. Say the word if you want the flash gone too and I'll scope that
separately.
Verification
pytest— 2816 passed, 19 skipped, exit 0.(it landed on the realization funnel before).