Skip to content

Feature request: unified review navigator with independent layout and grouping #1524

Closed as not planned

Description

@tekumara

Motivation

The current review navigator spreads related functionality across 3 overlapping surfaces: Tree, Git status, and Commits. I'd like to bring them into one cohesive, ergonomic surface: the unified review navigator.

This would make navigation less confusing and remove the need to switch modes to access complementary information. File layout and change grouping should be independent choices, rather than competing navigation modes.

Proposed behaviour

Replace the separate navigation modes with one review navigator containing 2 independent controls:

Control Options Behaviour
File layout Flat / Tree Display files as a flat list or an expandable directory hierarchy
Grouping All / By Git status Display all changes together or separate them by Git status

Changing one control should not change the other. All 4 combinations should be supported.

Grouping by Git status

Show collapsible sections in this order:

  • Staged — changes in the index
  • Unstaged — working-tree changes not staged
  • Committed — individual commits in the selected review range

The Committed section is the key distinction: show each commit as an expandable row, rather than flattening committed work into one file list. Each row shows its commit subject and aggregate additions/deletions.

Expanding a commit reveals the files it changed. Selecting one of those files should show its diff for that commit, not the combined branch diff.

Staged
  files

Unstaged
  files

Committed
  commit subject
    files changed by this commit
  commit subject
    files changed by this commit

All file collections, including those inside commits, should respect the selected Flat or Tree layout.

Showing all changes together

Show one combined set of changed files for the selected review scope, without status sections or individual commit rows. The Flat/Tree control should still work.

File presentation and layout

  • in Flat layout, show the filename first and the parent directory as secondary text
  • in Tree layout, use expandable directories with compact, consistent indentation
  • show each file's change status and additions/deletions in stable trailing columns
  • show aggregate diff totals on status groups and commits, with directory totals where useful
  • suppress redundant totals on single-child directories
  • omit explicit file and commit counts

Keep the existing base-reference selector above the 2 compact segmented controls. Keep this toolbar fixed while the changes below it scroll. Allow the control groups to stack when the panel becomes too narrow.

Long commit subjects should wrap without overlapping the statistics or following rows. Align the disclosure control and statistics with the first text line.

Scope

This request combines the navigation capabilities of Tree, Git status, and Commits. It does not require additional top-level tabs, a commit-message input, or changes to staging and commit workflows.

Prototype

I've prepared a tldraw prototype showing Tree layout with Git-status grouping, including an expanded commit:

Image

Activity

  1. tekumara commented on Sep 14, 2026

    @tekumara
    Author

    Some small followups to improve the UX:

    • Single button with icon that can be toggled on/off, eg: a tree button, rather than two radio buttons with text
    • Collapse single-child directory chains, eg: fakesnow/transforms on one line instead of two
  2. backnotprop commented on Sep 15, 2026

    @backnotprop
    Owner

    Thanks for the detailed proposal and the mock. We built the full thing (PR #1526: both controls, Staged / Unstaged / Committed sections, commits expandable with per-commit file diffs, settings migration, both-runtime server change for per-commit file lists) and compared it in the browser next to the current panel. I didn't like it in practice: it ends up as more control surface for the same information, and the current Tree / Git status / Commits panel already covers what I reach for. So we're keeping the current design.

    The code is yours if you want to make it better. The branch lives on the closed PR: gh pr checkout 1526 (or fetch refs/pull/1526/head) gets you the full implementation, green CI, tests and docs included. If you can turn it into something that feels clearly better than what's there, open a PR against main and we'll look again with fresh eyes.

  3. tekumara commented on Sep 18, 2026

    @tekumara
    Author

    Thank you for building this! It's exactly what I was imagining. Yes it doesn't add anything new, except you get the commit history inside the git status view (and the distinction between staged/unstaged/committed which doesn't exist anywhere else - the current git status only shows all changes not unstaged/staged). This is probably the main thing I was after (that and combining tree view with git status view).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions