Skip to content

feat(viewer): page in the address - #444

Merged
daggerok merged 1 commit into
mainfrom
feat/page-address
Dec 4, 2026
Merged

daggerok merged 1 commit into
mainfrom
feat/page-address

Conversation

@daggerok

@daggerok daggerok commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

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, #sitemap reserved. 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 and prefs.tab in 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 over
  • App.tsx calls useRoute(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 fail
  • parcel build --dist-dir ./.check/out + DIST=.check/out bun src/build/postbuild.ts
  • .claude/tools/etfs/tc/check.sh on the new and changed files: no output
  • git diff --check
  • Chrome on localhost:1237 with made-up data: load #adp-activity opens ADP Activity; clicks write #fidelity-positions, #fidelity-taxes; Back, Back, Forward walk them; the logo writes #fidelity-summary; a typed #adp-summary opens it, #nope and #bogus are 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

@daggerok
daggerok merged commit 9f64efc into main Dec 4, 2026
1 check passed
@daggerok
daggerok deleted the feat/page-address branch December 4, 2026 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant