Skip to content

feat(native): show one thing at a time in the Git panel - #1274

Merged
omartelo merged 1 commit into
mainfrom
feat/git-panel-tabs
Dec 4, 2026
Merged

omartelo merged 1 commit into
mainfrom
feat/git-panel-tabs

Conversation

@omartelo

@omartelo omartelo commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

The Git panel showed the branch tree, four filters, the log and the commit form at once, and no diff. It now does one job at a time.

  • Changes: the files and the message at the left, the diff of one file at the right. The panel opens here when there is something to commit.
  • History: the log on the whole width. Clicking a commit opens it beside the log; clicking it again closes it. Author, Date and Path are behind the filter icon.
  • Branches open from the branch in the header. A click checks one out (asking first under a session, as before), a typed name that no branch has creates it and goes to it, and the rest is in the row's ⋯. Narrowing the log to a branch is now "Show its history" there.
  • Push, Pull and Publish stand after the branch, outline while there is something to commit, since Commit is then the filled button.

Also fixed on the way: the box that checks every file no longer stages conflicted files, which would have marked them resolved.

Copy added

Text Why it stays
History the second tab's name
Filter / Clear the filters tooltip of an icon
Find or create a branch, Create {name}, Remote branches the branches' field, its action and a group that folds
Show its history menu entry, the only way to narrow the log to a branch
Commit {count} files replaces "Commit" and the "2 of 3" count
All, Check every file the box of every file and its tooltip
No uncommitted changes. the empty Changes tab
Back to the commit tooltip, was "Back to the log"

Removed: Git, Local, Files, Uncommitted changes, "{checked} of {count}", "Select a commit to see its files."

Tests changed because the contract did

The panel no longer selects an uncommitted row or HEAD by itself, the branch tree and its folders are gone, and Commit names its count. The tests of those assert the new behaviour; the ones on index, commit, sparkle, push and pull keep what they asserted.

Test plan

  • Local gate green, and the panel's tests with -race.
  • Headless shots of both tabs, an open commit, a file of it, the filters, the branches (at rest, unfolded, typed), a failed commit and the empty tab, in dark and light, and at 700dp wide.

@omartelo
omartelo merged commit 8e5a6da into main Dec 4, 2026
7 of 8 checks passed
@omartelo
omartelo deleted the feat/git-panel-tabs branch December 4, 2026 15:15
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.

1 participant