Skip to content

refactor(viewer): pages table and visible pages rule - #443

Merged
daggerok merged 1 commit into
mainfrom
refactor/pages-table
Dec 4, 2026
Merged

daggerok merged 1 commit into
mainfrom
refactor/pages-table

Conversation

@daggerok

@daggerok daggerok commented Dec 4, 2026

Copy link
Copy Markdown
Owner

What

  • src/viewer/app/pages.ts + test: PAGES (Summary, Positions, Activity, Reports, Taxes, Salary), pageName, pageFacts(leaves) -> { fidelity, taxable, roth, k401, pay }, visiblePages(facts), openPage(wanted, visible), leaf ids adp:401k, adp:pay, fidelity:<number>
  • REFERENCE_PAGES: today's seven pages (Fidelity Summary, Positions, Activity, Reports, Taxes, ADP Summary, ADP Activity) with their source and the new page each becomes; referenceName, referenceSource, referenceTabs({ adp, taxYears })
  • App.tsx draws today's tabs from that table: the tabName map, the order-1..order-8 chain and the adpPage test are gone (the order comes from the table, the merge switch keeps place 2)
  • RU lines for the new page names

Why

Step 1 of the scope tree plan (one tree of accounts, pages shown only where the scope has data). Nothing the owner sees changes: the same seven tabs, same order, same rules (ADP pages once the 401k is read, Fidelity Taxes once a tax year is read)

Checks

  • bun test: 603 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 changed files: no output
  • git diff --check
  • Chrome on localhost:1237 with made-up data (fixture grid, made-up history, tax summary fixture, made-up 401k rows): text, position, size, selection and checkbox state of every tab, stripe, strip chip, money-source chip and card title on all 7 pages at full width and Summary, Positions, ADP Summary in a 390 px iframe, main vs this branch: identical (only the removed order-N classes differ)

@daggerok
daggerok merged commit 5cd535c into main Dec 4, 2026
1 check passed
@daggerok
daggerok deleted the refactor/pages-table branch December 4, 2026 00:33
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