feat(git-review): 分支切换下拉增加筛选输入框 - #843
Merged
Loosand merged 1 commit intoSep 20, 2026
Merged
Conversation
The Git Review branch dropdown listed every local/remote branch with no way to narrow it down, unlike the composer GitBranchSelector. Add a filter input at the top of the menu that matches case-insensitively on the full ref name, resets on close, keeps keystrokes out of the menu typeahead, and shows the existing no-match / hidden-remote hints. Closes Stack-Cairn#842
StackCairn
marked this pull request as draft
September 20, 2026 07:41
Contributor
|
PR governance checks passed. Awaiting human review. |
AlphaCatMeow
marked this pull request as ready for review
September 20, 2026 08:12
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.
背景
Git 审查面板顶部的分支切换下拉(
GitReviewBranchMenu)只平铺全部本地/远程分支,没有筛选入口;Composer 里的GitBranchSelector早已有「筛选分支」搜索框。分支多的仓库里只能靠滚动找目标。Closes #842
改动
只改
crates/agent-ui/src/components/project-tools/git-review/Toolbar.tsx:fullName大小写不敏感子串匹配,本地与远程同时过滤stopPropagation,不触发菜单 typeahead;Esc只清空筛选不关菜单;输入法合成中不处理flex-col+max-h-[min(400px,75dvh)],列表区独立滚动,搜索框固定顶部复用现有 i18n 键(
git.branchSelector.filterBranches/noMatches/moreRemoteBranches),无新增翻译。验证
biome check:通过@liveagent/uitsc --noEmit:通过工作记录:
docs/worklog/issue-842-git-review-branch-filter.md截图