git_ui: Align repo and branch pickers#47752
Merged
danilo-leal merged 7 commits intozed-industries:mainfrom Jan 28, 2026
Merged
Conversation
- Show git status icon next to repositories with uncommitted changes using the same GitStatusIcon component as the git panel - Add "Repositories" header for consistency with branch picker - Align popover width (20 rems) and offset with branch picker
- Add a check icon next to the currently selected repo - Show the current branch under the repo item - Implement case-insenstive sort for repositories
danilo-leal
approved these changes
Jan 28, 2026
Member
There was a problem hiding this comment.
Thanks for the PR & congrats on your first contribution! I pushed a few commits cleaning the design up a bit:
- Don't think we need the branch name here because that's displayed right to the side of the project name already, no need to repeat it. Having it in the project list item was also messing up the height; particularly given this is a uniform list (i.e., all items must have the same height), the fact that some had it and some didn't meant a lot of layout shift
- Improved the icon alignment
- Made the currently selected list item when you open the picker be the active repo, instead of just resetting the active index to 0 always
- Made the button trigger have a default color when available (it was muted before). Also removed the "Switch Active Repository" tooltip when in a single repo scenario
- Removed the header because in this case, it's always repositories, so the header becomes unnecessary. We have one in the branch picker because the header changes depending on whether you have the filter for remotes toggled on
Contributor
Author
|
Thanks for the touch ups . Especially for the branch name under the repo: it was nice to see but then effectively not that valuable, and as you identified, some repos might have had no branch available making the item unbalanced. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When working in a workspace with multiple repositories, the git panel provides a repository picker to switch between them. However, there was no visual indication of which repositories have uncommitted changes: users had to either select each repository individually or check the project panel where modified directories are highlighted.
This change adds git status icons to the repository picker, allowing users to see at a glance which repositories contain changes (modified, added, deleted, or conflicted files). The icons use the same visual language already established for file status throughout the git panel.
Additionally, the repository picker now matches the branch picker's styling for visual consistency:
Before:
After:
Branch picker for style reference:
Release Notes: