Skip to content

feat(desktop): branch switcher dropdown in changes panel (#3482)#3493

Merged
esengine merged 3 commits into
main-v2from
land/3482-branch-switcher
Jun 8, 2026
Merged

feat(desktop): branch switcher dropdown in changes panel (#3482)#3493
esengine merged 3 commits into
main-v2from
land/3482-branch-switcher

Conversation

@esengine

@esengine esengine commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Lands the branch switcher from #3482 (by @ttmouse) on top of the current main-v2. The original PR went stale after today's desktop merges (#3480 command palette appended adjacent CSS); resolved the styles.css conflict by keeping both blocks, app.go/tests auto-merged.

All author commits are preserved with original attribution.

What it does

  • Shows the current Git branch in the changed-files view with a switcher dropdown and a refresh button.
  • Backend: GitBranch on WorkspaceChangesView, plus workspaceGitBranch(), GitBranches(), GitCheckout() (named branch + detached HEAD).

Follow-up worth a look later: reject branch args beginning with - in GitCheckout so they can't be read as git flags.

Closes #3482

ttmouse and others added 3 commits June 8, 2026 03:32
Show current git branch name in the Changed-files view with a dropdown
to switch branches and a refresh button to reload changes.

Backend:
- Add GitBranch field to WorkspaceChangesView
- Add workspaceGitBranch() helper
- Add GitBranches() and GitCheckout() bindings

Frontend:
- Add branch indicator bar with dropdown menu
- Add refresh button with spinning animation
- Add workspace-branch CSS styles
- Add mock implementations for GitBranches/GitCheckout
- Update WorkspaceChangesView type with gitBranch field

Tests:
- Add GitBranch assertion to existing git status test
- Add TestWorkspaceChangesGitBranchDetachedHead
- Add gitOutput test helper
# Conflicts:
#	desktop/frontend/src/styles.css
@esengine esengine requested a review from SivanCola as a code owner June 8, 2026 02:55
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) and removed v2 Go rewrite (1.x) — main-v2 branch, active development labels Jun 8, 2026
@esengine esengine merged commit 6cc7396 into main-v2 Jun 8, 2026
10 checks passed
@esengine esengine deleted the land/3482-branch-switcher branch June 8, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants