Repository navigation
Conversation
The project filter was all-or-one, so a cloned popular repo drowned the list and the only way out was narrowing to a single project at a time. The project group is now checkboxes: uncheck a repository and it drops out, and the choice persists in local UI state so it stays muted on the next visit. Each row keeps a hover "Only" action for the single-project scope the radio used to set. A one-project scope and "every other project hidden" are the same statement, so switching between them carries the set across rather than snapping back to all projects. Hidden projects are subtracted from the per-server project assignment before the request goes out, so a server whose every project is hidden is not read at all. PullRequestListInput already carried projectIds, so nothing changed on the wire or in the server.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Reviewed the menu changes for consistency with the shared control system. Two narrow findings on the new per-row "Only" action in PullRequestListFilters.tsx; everything else (checkbox-item migration, group/label structure, MenuPopup width contract, store wiring) looks consistent with the existing primitives.
Posted via Macroscope — UI Consistency
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR introduces a new user-facing feature that changes how project filtering works in the PR list - from radio selection to checkbox-based hide/show with persistence. While well-tested and authored by the primary maintainer of these files, new features with behavior changes to user workflows warrant human review. You can add or adjust custom eligibility rules. Learn more. |
Review findings on the project filter, all of them cases where the checkboxes and the listing disagreed. Hidden state is keyed by repository rather than by project copy. Two servers holding one repository list it once between them, so keying per copy meant hiding the listed copy left the other reading as shown while its rows were gone, and hiding the unlisted copy did nothing at all. Rows are dropped where they are rendered, not only where they are requested. A listing carried over from the previous filters, and the first read of a session taken before the projects are known, both arrive holding repositories the reader has hidden. Hiding now goes through updateListScope, so a detail panel whose row just left the list closes with it instead of staying open over a selection the list no longer holds. A key naming a project the page cannot see no longer lights the filter indicator or leaves "All projects" unchecked over a list that holds every project. Such keys are kept in storage rather than pruned: a disconnected server is not a deleted one, and its repositories should still be hidden when it returns. The per-row action stretches to the full row height, so a near miss no longer toggles the project it was aimed at, and the row takes its accessible name from the project alone rather than folding the action's label into it.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d6ba9be. Configure here.
Leaving a one-project scope by checking another project made two updates: one dropping the scope, one writing the hidden set. Each rebuilds the URL from the committed location, so the second arrived before the first had landed and put the scope back — leaving the list narrowed to one project and the hidden set ignored, since a scope is read ahead of it. The menu now states the whole selection at once, scope and hidden set together, because they answer the same question and only ever want one navigation between them.
Arrow keys reach a project row but never the button inside it, so narrowing to one project was a pointer-only action and a keyboard reader had to uncheck every other project by hand. Shift+Enter on the highlighted row now does it. A plain letter would be taken by the menu's typeahead and a bare Enter is the checkbox's, so the action wears the modifier, and the row's label names it. The press stops the menu's own handling through preventBaseUIHandler, which is the flag the menu reads: preventing the default alone leaves the row toggling after the action, and the later of the two selections is what would stick.
There was a problem hiding this comment.
One finding: the new per-row "Only" action has no coarse-pointer path, so on touch the menu loses the "list only this project" capability the radio group previously gave every pointer type.
Posted via Macroscope — UI Consistency
A touch screen highlights nothing, so the row action stayed invisible and untouchable there while a tap on the row itself hid the project — the opposite of what the action offers. Tapping a project row used to narrow the list to it, so touch readers had lost the action rather than only its pointer affordance. It now stays put on small screens, the way the other row actions in the app's menus already do.
With involvement left at all, the Authored and Reviewing groups are their own reads rather than a slice of the feed, and they carry rows the feed has not paged to. Nothing took hidden repositories out of them, so a muted repository kept its pull requests on screen under those two headings, and a snapshot of them predating the hiding said the same. They now take the same narrowing the feed does.
|
Note This comment is posted by Julius' dot Closing under prior approval. Persistent repository hiding replaces the existing all-or-one project selection with a new multi-project workflow, including shared hiding across environments. No maintainer approval of that direction and scope is linked. The noisy-repository problem is worth discussing; obtain approval in an Ideas discussion and link it for reconsideration. |

The project filter was all-or-one, so a cloned popular repo drowned the list and the only way out was narrowing to a single project at a time.
The project group is now checkboxes: uncheck a repository and it drops out, and the choice persists in local UI state so it stays muted on the next visit. Each row keeps a hover "Only" action for the single-project scope the radio used to set. A one-project scope and "every other project hidden" are the same statement, so switching between them carries the set across rather than snapping back to all projects.
Hidden projects are subtracted from the per-server project assignment before the request goes out, so a server whose every project is hidden is not read at all. PullRequestListInput already carried projectIds, so nothing changed on the wire or in the server.
What Changed
The pull request list's Project filter was a radio group — all projects, or
exactly one. It's now a checkbox list, so any number of projects can be left out.
list, and the choice is kept in local UI state so it survives a reload.
the radio used to set. Nothing that could be reached before became unreachable.
scope.
A one-project scope and "every other project hidden" say the same thing, so
moving between them carries the set across instead of snapping back to all
projects.
Hidden projects are subtracted from the per-server project assignment before the
request is sent, so a server whose every project is hidden isn't read at all —
hiding a repository removes a round trip rather than filtering rows after they
arrive.
PullRequestListInput.projectIdsalready existed and the server already narrowedon it, so this is client-only: no contract change, no server change. Mobile has
no pull request surface, so nothing to mirror there.
5 files, +259 / −93 — three source files and two test files.
Why
Cloning a busy upstream repository floods the list. Its pull requests bury mine,
and the only escape was narrowing to one project at a time, which hides the other
four I actually want to see. The filter could express "just this one" but not
"anything but this one".
Checkboxes cover both: all-checked is today's default, unchecking is the new
capability, and checking exactly one is the old single-select. Persisting the
choice matters because the problem is durable — a repository worth muting is
still worth muting tomorrow, and re-hiding it every session is the same
annoyance wearing a different hat.
Doing the narrowing in the request rather than over the returned rows keeps it
honest with paging: the list only ever holds a page per repository, so a
client-side filter would quietly shrink pages instead of excluding a repository.
UI Changes
Before — all projects, or one:
After — any combination, with
Onlyon hover:Hover action and hiding a repository:
Screen.Recording.2026-08-19.at.12.30.37.mov
Checklist
Note
Medium Risk
Touches pull-request list query construction, URL scope, and persisted UI state; behavior is well covered by tests but wrong hide-key or merge logic could omit repositories or skew paging.
Overview
The Project filter on the pull requests page switches from a radio group (all vs one) to checkboxes so any combination of repositories can be shown or hidden. Hidden choices persist in
hiddenPullRequestProjectKeysin local UI state; each row keeps an Only action (click or Shift+Enter) for the old single-project scope, and All projects clears both scope and hidden set in one update.pullRequestProjectHideKeykeys hiding by repository identity when available (so duplicate clones on two servers share one hidden state), with a per-project fallback. The route applies hidden keys when buildingenvironmentQueries(skipping servers with no visible projects) and filters carried feed/partition rows client-side;onProjectSelectionreplacesonProjectso URL scope and hidden keys update atomically.Reviewed by Cursor Bugbot for commit fd9ad2a. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add per-project hiding to the pull requests filter with persistent state
PullRequestFiltersMenuwith checkboxes, allowing users to hide individual repositories from the PR feed.localStorageviauseUiStateStoreand restored on reload; keys are de-duplicated across environments sharing a repository usingpullRequestProjectHideKey.PullRequestFiltersMenunow emitsonProjectSelection({projectId, environmentId, hiddenKeys})instead ofonProject, and the filter indicator lights when any projects are hidden.Macroscope summarized fd9ad2a.