Skip to content

feat(repo): add quick repository switcher to repo header#38188

Open
bircni wants to merge 4 commits into
go-gitea:mainfrom
bircni:feature/quick-repo-switch
Open

feat(repo): add quick repository switcher to repo header#38188
bircni wants to merge 4 commits into
go-gitea:mainfrom
bircni:feature/quick-repo-switch

Conversation

@bircni

@bircni bircni commented Jun 21, 2026

Copy link
Copy Markdown
Member

Add a GitHub-style quick repo switcher: a caret next to the owner/repo breadcrumb opens a popover that lists and searches the current owner's repositories and navigates to the selected one. The current repository is marked with a check, and private/fork repos show an icon.

Reuses the existing /repo/search endpoint and the attachSearchBox module, which gains an optional onSelect callback, leading icon/ active slots, an imperative refresh() handle, and a fix that cancels the deferred blur-hide on refocus so results render on every open.

Screenshots

grafik

Fixes #38187

Add a GitHub-style quick repo switcher: a caret next to the owner/repo
breadcrumb opens a popover that lists and searches the current owner's
repositories and navigates to the selected one. The current repository
is marked with a check, and private/fork repos show an icon.

Reuses the existing `/repo/search` endpoint and the `attachSearchBox`
module, which gains an optional `onSelect` callback, leading `icon`/
`active` slots, an imperative `refresh()` handle, and a fix that cancels
the deferred blur-hide on refocus so results render on every open.
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jun 21, 2026
@bircni

bircni commented Jun 21, 2026

Copy link
Copy Markdown
Member Author

This still needs some work - feedback is appreciated as always

@bircni bircni marked this pull request as ready for review June 28, 2026 12:14
@github-actions github-actions Bot added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. type/feature Completely new functionality. Can only be merged if feature freeze is not active.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ui): add repository switcher dropdown in repository header

2 participants