Skip to content

feat(web): filter issues and pull requests from a row's right-click menu - #46065

Draft
Today20092 wants to merge 1 commit into
pingdotgg:mainfrom
Today20092:feat/row-filter-menu
Draft

Today20092 wants to merge 1 commit into
pingdotgg:mainfrom
Today20092:feat/row-filter-menu

Conversation

@Today20092

@Today20092 Today20092 commented Nov 30, 2026 •

Copy link
Copy Markdown

Implements the idea in #40467. This is a feature, not a bug fix, and I'm not vouched, so it is opened as a draft for you to look at. Close it if it doesn't fit; the branch stays on my fork.

Summary

Right-clicking a thread in the sidebar already offers "Filter by {project}". Issue and pull request rows had nothing (PR rows only had Copy link / Open on the #number). Now right-clicking anywhere on a row adds filters taken from that row:

The new right-click menu on a pull request row

Each filter item comes from a value on the row: the repository, the author, and each label. On issue rows, the project item uses the project name, and there is no author item yet.

When a filter is on, its item changes to remove that filter: "Show all projects", "Show all authors" or "Remove the {label} filter".

How it works

Step What happens Where
1 You right-click a row. The whole row opens the menu, not only the #number. PullRequestRow, IssueRow
2 The page makes the filter items from the values on that row. It does this only when the menu opens. rowFiltersOf in PullRequestsPage and IssuesPage
3 The menu shows the link items, a separator, then the filter items. showPullRequestLinkContextMenu
4 You select an item. The page sets the same URL filters that the Filters menu sets. applyFilters (pull requests), updateSearch (issues)
  • There is no new filter state. The toolbar shows the result, and Views can save it.
  • The menu does not show the project item when the list has only one project.
  • Pull requests: a filter that you type in the search box (label:bug, author:alice) counts as on. "Remove" also removes it from the search text. To do this, pullRequestMenuFilters and applyPullRequestFilterChange now also read author and labels. The Filters menu on web and mobile uses these functions, so it now also shows typed filters as on.

Evidence

  • Before: right-clicking a pull request row does nothing (only the #number had a link menu).
    before
    After: the row menu offers repository, author and label filters.
    after menu
    After, filter applied: list narrowed to saphid, Filters shows 1, the item turned into "Show all authors".
    after filtered

  • Tests: pullRequestLinkContextMenu.test.ts (filter items after the link actions, one separator), issuesSearch.logic.test.ts (project item: none, active, other hidden, single project), pullRequestQuery.test.ts (typed author/labels merge into and leave the query). vp run check:changed passes.

Not checked: the Issues page in a running client (the dev server went down mid-session), the desktop native menu, and mobile (no long-press menu added).

Merge Danger

Door: two-way

Client-only; no contract or server change. Reverting removes the menu items.

Blast Radius: small

Row right-click on the Issues and Pull requests pages, and how the Filters menu displays typed label:/author: qualifiers (now shown as active instead of ignored).

Written with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XXL 1,000+ changed lines (additions + deletions). size:L 100-499 changed lines (additions + deletions). and removed size:XXL 1,000+ changed lines (additions + deletions). labels Nov 30, 2026
Right-clicking an issue or pull request row now offers filters taken from
that row: its repository or project, its author (pull requests), and each
label. An active filter's item becomes its undo. Items reuse the URL filter
state of the Filters menu, and typed label:/author: qualifiers count as on.

Refs pingdotgg#40467

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant