Skip to content

feat(desktop): add list/tree toggle to history commit file list#61

Merged
devlint merged 5 commits into
devlint:mainfrom
t1gu1:feat/add-to-history-the-file-tree-toggle
Jun 19, 2026
Merged

feat(desktop): add list/tree toggle to history commit file list#61
devlint merged 5 commits into
devlint:mainfrom
t1gu1:feat/add-to-history-the-file-tree-toggle

Conversation

@t1gu1

@t1gu1 t1gu1 commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

Now the list/tree file view works with earlier commits (Already pushed ones in the history).
Before this PR, it was only working when looking at the changes / WIP.

The history commit sidebar now supports the same list/tree file view toggle as the Changes view. The layout choice is shared across both views via changesLayout state, and useFileTree is generalized so the tree builder works for commit diffs as well as repo entries.

Changes

  • Reuse the shared changesLayout state in the history file list so list/tree selection stays in sync with the Changes view
  • Generalize useFileTree with a PathLike-based generic so the tree builder handles commit diffs and repo entries
  • Indent the history "Files" header icon by one space unit to align with the chevron-prefixed change sections
  • Add changelog entries documenting the file-tree view for the history commit sidebar

Test plan

  • Open a commit in history and toggle between list and tree views
  • Switch list/tree in the Changes view and confirm history view reflects the same choice
  • Verify the history "Files" header icon aligns with change section headers
  • Confirm tree rendering is correct for nested commit diff paths

How it looks / example

Here i'm looking at the last main branch commit.

image

t1gu1 added 3 commits June 18, 2026 21:16
The history file list now reuses the shared changesLayout state, so the
list/tree choice stays in sync with the changes view. Generalize
useFileTree with a PathLike-based generic so the tree builder works for
commit diffs as well as repo entries.

🪄 Commit via GitWand
The history "Files" header lacks a chevron, so its lone "H" icon sat
misaligned. Indent it by one space unit to match the chevron-prefixed
change sections.

🪄 Commit via GitWand
Add changelog entries for the list/tree toggle now applying to
committed-commit file lists, with shared layout state across the
Changes and history views.

🪄 Commit via GitWand
@t1gu1 t1gu1 force-pushed the feat/add-to-history-the-file-tree-toggle branch from f833dc2 to 6d86408 Compare June 19, 2026 01:17
@devlint devlint merged commit e361404 into devlint:main Jun 19, 2026
4 checks passed
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