Skip to content

feat(ui): add file tree view to changed files list#68

Merged
johannesjo merged 3 commits intomainfrom
claude/add-file-tree-view-6oIsV
Apr 13, 2026
Merged

feat(ui): add file tree view to changed files list#68
johannesjo merged 3 commits intomainfrom
claude/add-file-tree-view-6oIsV

Conversation

@johannesjo
Copy link
Copy Markdown
Owner

Replace the flat file list with a hierarchical tree view so users can
quickly identify the blast radius of a change by directory structure.
Directories show aggregate line counts and file counts, with
expand/collapse support via click, Enter, and arrow keys. Single-child
directory chains are compacted (e.g. src/components/ui).

https://claude.ai/code/session_0182VcA2o9BnKzEF1GNhjzkK

claude and others added 3 commits April 12, 2026 00:04
Replace the flat file list with a hierarchical tree view so users can
quickly identify the blast radius of a change by directory structure.
Directories show aggregate line counts and file counts, with
expand/collapse support via click, Enter, and arrow keys. Single-child
directory chains are compacted (e.g. src/components/ui).

https://claude.ai/code/session_0182VcA2o9BnKzEF1GNhjzkK
- Snap selection to collapsed directory when the selected item is a
  child being hidden, instead of leaving it on an unrelated row
- Switch from <For> to <Index> for better render performance since
  flattenVisibleTree returns new objects each time
- Avoid unnecessary array allocation in compaction loop

https://claude.ai/code/session_0182VcA2o9BnKzEF1GNhjzkK
…s reduce

- Reduce per-level indentation from 16px to 10px
- Wrap toggleDir state updates in batch() to prevent intermediate flushes
- Replace triple reduce with single loop for directory aggregate stats
- Replace spread push with for-of loop in flattenVisibleTree
@johannesjo johannesjo merged commit 8f2ea49 into main Apr 13, 2026
2 checks passed
@johannesjo johannesjo deleted the claude/add-file-tree-view-6oIsV branch April 13, 2026 14:24
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.

2 participants