Skip to content

feat(web): hide noisy projects from the pull request list - #7506

Closed
bil0ak wants to merge 7 commits into
pingdotgg:mainfrom
bil0ak:feat/pr-list-hide-projects
Closed

bil0ak wants to merge 7 commits into
pingdotgg:mainfrom
bil0ak:feat/pr-list-hide-projects

Conversation

@bil0ak

@bil0ak bil0ak commented Aug 19, 2026 •

Copy link
Copy Markdown

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.

  • Every project starts checked. Unchecking one removes its pull requests from the
    list, and the choice is kept in local UI state so it survives a reload.
  • Each row gains an Only action on hover, which sets the single-project scope
    the radio used to set. Nothing that could be reached before became unreachable.
  • All projects at the top clears both the hidden set and any single-project
    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.projectIds already existed and the server already narrowed
on 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:

image

After — any combination, with Only on hover:

image

Hover action and hiding a repository:

Screen.Recording.2026-08-19.at.12.30.37.mov

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

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 hiddenPullRequestProjectKeys in 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.

pullRequestProjectHideKey keys 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 building environmentQueries (skipping servers with no visible projects) and filters carried feed/partition rows client-side; onProjectSelection replaces onProject so 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

  • Replaces the single-select project radio group in PullRequestFiltersMenu with checkboxes, allowing users to hide individual repositories from the PR feed.
  • Adds an "Only" button per project row (mouse or Shift+Enter) to scope the view to a single project/environment.
  • Hidden project keys are persisted in localStorage via useUiStateStore and restored on reload; keys are de-duplicated across environments sharing a repository using pullRequestProjectHideKey.
  • Hiding is applied to environment queries, the main feed, and priority partitions (authored/reviewing); the empty-state filtered indicator reflects hidden projects.
  • Behavioral Change: PullRequestFiltersMenu now emits onProjectSelection({projectId, environmentId, hiddenKeys}) instead of onProject, and the filter indicator lights when any projects are hidden.

Macroscope summarized fd9ad2a.

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.
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Aug 19, 2026
@coderabbitai

coderabbitai Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ef0a3039-c31a-42a2-81c8-fbde76eff42f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@macroscopeapp macroscopeapp Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@macroscopeapp

macroscopeapp Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: 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.

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ 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.

@macroscopeapp macroscopeapp Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

bil0ak added 3 commits August 19, 2026 14:38
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.

Copy link
Copy Markdown
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants