Repository navigation
feat(viewer): page in the address - #444
Merged
Merged
Conversation
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.
What
src/viewer/app/route.ts+ test:parseHash,hashOf,tabOfHash,hashToWrite. Today's pages get addresses:#fidelity-summary,#fidelity-positions,#fidelity-activity,#fidelity-reports,#fidelity-taxes,#adp-summary,#adp-activity(kept later as the addresses of the reference pages). Parsed already, drawn later:#<page>and#<page>/<all|fidelity|adp>for the pages of the scope tree,#sitemapreserved. Only fixed words ever go into an address, never an account number or a group name (tested)src/viewer/ui/useRoute.ts+ happy-dom test: the address andprefs.tabin step. On load a page in the address wins over the saved one (before the first paint) and the address is fixed in place; a page chosen later (tab, logo, merge switch, phone stripes) adds a history step, so Back and Forward walk the pages; a typed address opens its page, one that names no page is written overApp.tsxcallsuseRoute(pr.tab)Why
Step 2 of the scope tree plan: a page can be bookmarked and Back works. The only visible change is the address bar
Checks
bun test: 609 pass, 0 failparcel build --dist-dir ./.check/out+DIST=.check/out bun src/build/postbuild.ts.claude/tools/etfs/tc/check.shon the new and changed files: no outputgit diff --check#adp-activityopens ADP Activity; clicks write#fidelity-positions,#fidelity-taxes; Back, Back, Forward walk them; the logo writes#fidelity-summary; a typed#adp-summaryopens it,#nopeand#bogusare written over. Tabs, strip chips and card titles of all 7 pages (full width) and 3 pages (390 px iframe): same as before this branch