Repository navigation
refactor(viewer): scope rules on a tree - #445
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/scope-tree.ts+ test: the scope as one tree, All -> source (Fidelity, ADP) -> group -> account, leavesfidelity:<number>,adp:401k,adp:pay. Pure and immutable:buildTree,groupAccounts,leavesOf,pathTo,nodeOf,parentOf,scopeOf,shownLeaves,onlyNode,toggleNode(the generalised group checkbox),toggleLeaf,framedNodes,checkState,scopeTitle,chipKidsandchipLabel(a level with one child is one chip: "ADP 401k"),validScope,migrateScope(today'sall,none,group:,account:,set:as leaves),migrateFoldedderive.ts:groupsOf,framedChips,toggleGroup,toggleAccountrun on a Fidelity-only tree (one per dataset); the scope is still kept in today's words, so nothing else changesderive.test.tscase unchanged and passing; the plan's five traces; leaf ids of the 401k and the pay in tree-only tests (pages of only the pay, of the ADP source)Why
Step 3 of the scope tree plan: the rules the strip uses move onto the tree the 401k joins later. Nothing the owner sees changes
Checks
bun test: 620 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 --checkOne edge that differs
A browser whose Fidelity accounts are all in ONE group: ticking that group's box while everything is ticked used to change nothing (the group was "all"); on the tree it clears every box like the All box does (none ticked = everything shown, the numbers stay the same). With two or more groups (the owner's case) every step is the same as before