Skip to content

feat(home): suggest 'All repos in ORG' in the Add Repo dropdown#361

Merged
jennings merged 1 commit into
mainfrom
jennings/tounnuvnmqlw
Jul 10, 2026
Merged

feat(home): suggest 'All repos in ORG' in the Add Repo dropdown#361
jennings merged 1 commit into
mainfrom
jennings/tounnuvnmqlw

Conversation

@jennings

Copy link
Copy Markdown
Owner

When the user opens the Add Repo dropdown and types a bare org name (non-empty query, no /), surface an "All repos in """ suggestion above the repo search results. Selecting it adds a new org-scoped repo filter that emits org:<name> in the GitHub PR search query, equivalent to the owner/repo-based filters but scoped to the whole organization.

Once the query contains a / the user is narrowing to a specific repo, so the org suggestion disappears from the list.

The org filter is encoded in the existing RepoFilter.name field with an __org__: sentinel prefix (mirroring how __all_repos__ is represented), so the existing storage shape and dedupe/enable/mode plumbing keeps working. buildSearchQueries gains a new branch that groups org filters by mode+authoredBy and emits org:<name> qualifiers (multiple orgs OR just like multiple repo: qualifiers). The chip renders as org:<name> with the same primary tint used by "All Repos". All modes stay available on org filters — unlike __all_repos__, org:<name> is already bounded, so is:pr org:foo is a reasonable query.

Resolves #360

When the user opens the Add Repo dropdown and types a bare org name
(non-empty query, no `/`), surface an "All repos in \"<query>\""
suggestion above the repo search results. Selecting it adds a new
org-scoped repo filter that emits `org:<name>` in the GitHub PR
search query, equivalent to the `owner/repo`-based filters but
scoped to the whole organization.

Once the query contains a `/` the user is narrowing to a specific
repo, so the org suggestion disappears from the list.

The org filter is encoded in the existing RepoFilter.name field with
an `__org__:` sentinel prefix (mirroring how `__all_repos__` is
represented), so the existing storage shape and dedupe/enable/mode
plumbing keeps working. `buildSearchQueries` gains a new branch that
groups org filters by mode+authoredBy and emits `org:<name>`
qualifiers (multiple orgs OR just like multiple `repo:` qualifiers).
The chip renders as `org:<name>` with the same primary tint used by
"All Repos". All modes stay available on org filters — unlike
`__all_repos__`, `org:<name>` is already bounded, so `is:pr org:foo`
is a reasonable query.

Resolves #360
@jennings jennings merged commit 7fbc070 into main Jul 10, 2026
6 checks passed
@jennings jennings deleted the jennings/tounnuvnmqlw branch July 10, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Repo: suggest 'All repos in ORG_NAME' while typing an org

1 participant