Repository navigation
refactor(ui): one chip and one tree strip - #446
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/ui/Chip.tsx: one chip for the navbar strip (role="button", Enter and Space press it, the checkbox keys stay the checkbox's, Alt+Left and Alt+Right move a movable chip, the fold ▶). The chip lines live here too, with two new kinds for the tree:source(thick dashed) andpart(thin solid, plain name).chip.tsis folded into it: on a Mac's case-insensitive disk./chipand./Chipresolved to the same filesrc/viewer/ui/ScopeStrip.tsx: the strip drawn from a scope tree (app/scope-tree.ts): the pinned root chip, the rest inEdgeScrollRow, folds, frames fromframedNodes, checkboxes throughtoggleNodeandtoggleLeaf, a click on an account throughonlyNode, drag and Alt+arrows among the chips of one parent, the focus kept after a key move, a level with one child drawn as one chip (chipKids,chipLabel)AccountTabs.tsxdeleted: App feeds ScopeStrip a Fidelity-only tree; the scope, folds and orders stay saved in today's words throughleavesOfScope,scopeOfLeaves,foldKey,moveChipin derive.ts (+ test)AdpSourceChipsuses Chip and loses its copy of the key handlerdata-scopeis now the node id)Why
Step 4 of the scope tree plan: one chip and one strip for every source. The strip looks and acts exactly as before
Checks
bun test: 621 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