Skip to content

feat(navigation): one scope tree with the 401k, pages without prefix, site map - #448

Open
daggerok wants to merge 1 commit into
mainfrom
feat/navigation-tree
Open

daggerok wants to merge 1 commit into
mainfrom
feat/navigation-tree

Conversation

@daggerok

@daggerok daggerok commented Dec 4, 2026

Copy link
Copy Markdown
Owner

What

PR 6a of the navigation tree plan (the flip). PR 6b (the Combined Summary) follows on top of this branch.

  • The strip is the tree: All -> Fidelity -> its groups -> accounts, All -> ADP -> 401k. Short chip labels (All, 401k; one child: ADP 401k), full names in the tooltips. The 401k money sources (Roth, Pre-tax, Employer, Earnings and other) are part chips under the 401k chip, with their own ▶ fold; adpHidden and its rules stay. AdpSourceChips is removed, its tests moved to adp-sources.test.ts
  • Scope as leaves: prefs keep the ticked leaf ids (node ids allowed while the data loads); migrateNav moves the old adpSummary and adpActivity tabs to Summary and Activity with the ADP scope and the old scope words and folds to ids. The derive.ts wrappers the UI no longer calls are gone with their tests
  • Pages without the prefix: Summary, Positions, Activity, Reports, Taxes, shown by the data under the scope (shownPages(pageFacts(...))), the open page = openPage(wanted, shown). Addresses #<page>/<all|fidelity|adp>; a custom scope leaves the word out
  • Reference copies and the site map: the seven pages of before stay at #fidelity-summary ... #adp-activity with their own strip and behaviour, a note line under the tabs and links back; they are never saved as the wanted page. #sitemap lists the pages with their scopes and the reference copies (each with the new page to compare with). Doors: "Site map" next to the copyright, and a row in ⚙️ Settings
  • Summary: Fidelity alone is today's Fidelity Summary, the 401k alone today's ADP Summary, a mix shows both one after the other (Separate; the Combined view is PR 6b). Activity under a mix: the two tables one under the other. Taxes unchanged
  • As of: the oldest read of the sources shown, each source in the tooltip
  • RU lines for every new text

Why

The owner's navigation tree plan (2026-12-03): one tree for every source instead of separate ADP pages, while the pages of before stay reachable from the site map "just in case we will want to check and compare your new calculations with our newly created pages"

Checks

  • bun test: 640 pass, 0 fail (new: scope-tree, prefs migrateNav, route, pages, sitemap, part chips, and happy-dom smoke tests of the strip with the 401k, the site map and a reference note; use-route and a11y tests moved to the tree API)
  • parcel build --dist-dir ./.check/out then DIST=.check/out bun src/build/postbuild.ts: ok
  • .claude/tools/etfs/tc/check.sh on every changed .ts/.tsx (both modes): prints nothing
  • git diff --check: clean
  • Headless Chrome on localhost:1237 with made-up data (the grid fixture and a made-up 401k), EN and RU at 1400, 820 and 390 px: All, Fidelity alone, the 401k alone, Activity under a mix, the site map, six reference copies, Back and Forward, the Settings row; no console errors. Fidelity alone vs #fidelity-summary: the same 150 text lines except the Balance title (Fidelity vs All accounts); the 401k alone vs #adp-summary: identical 88 lines

… site map

- the strip is the whole tree: All -> Fidelity -> groups -> accounts, All -> ADP -> 401k with its money sources as part chips (AdpSourceChips removed, its rules moved to adp-sources)
- the kept scope is leaf or node ids (migrateNav moves the old tabs and scope words), folds by node id
- pages Summary, Positions, Activity, Reports, Taxes shown by the data under the scope; addresses #<page>/<all|fidelity|adp>
- the seven pages of before stay reachable as reference copies at their old addresses, with a note line and a way back
- a site map at #sitemap, linked from the footer and from Settings
- Summary: Fidelity alone and the 401k alone as before, a mix shows both one after the other; Activity under a mix stacks both tables
- As of: the oldest read of the sources shown, each in the tooltip

This branch has not been deployed

No deployments
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