You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Group the GitHub setup dialog's repositories by organization - #48351
The "Add a bot to GitHub" dialog was a wall of text. Now it lists each organization once with its repo count, shows who can ask as chips, and uses short buttons.
Files
Added
Deleted
Net
Test
0
0
0
0
Prod
17
$\color{#1a7f37}{\Huge{\mathbf{+}}}$1036
$\color{#cf222e}{\Huge{\mathbf{−}}}$314
$\color{#1a7f37}{\Huge{\mathbf{+}}}$722
What Changed
Repositories: one row per account or organization with N repos, which expands to that org's repos (click, Enter or Space). The list is capped at about six rows and scrolls. A whole-account install shows All repos.
Who can ask: chips (You, then each person), with + Add on the label row and the outsiders rule behind an ⓘ. Once someone else is added, one warning line shows ("They act as you on this computer."). It is keyboard-focusable, and its tooltip and screen-reader text carry the full sentence.
Header: a bare GitHub mark, Add <bot>, and @login · Not you? on one line. With several linked logins, it lists them, truncated, with no "Not you?". The status line under the title stays on one line with …, and the full text is its tooltip.
Buttons:Cancel / Add (was Close / Turn on ), and Install app.
Corner button: × ends setup like Cancel. It is Minimize while setup still follows GitHub: connect, waiting, install, or a pending install trip in either browser, including after a failed read and on the sign-in screens setup can fall back to. A pending install is never dropped by the corner.
Copy: the repository-scope labels and the dialog's "Who can ask" caption are protected copy, so a plugin language pack cannot restate them in this trust dialog. Unused strings were removed.
Why
The old dialog repeated the org name on every repo, packed repos into a comma-joined block, and explained sharing risk in long paragraphs, which made a trust decision hard to read. Checked against how comparable products handle this.
Visual Proof
Component fixtures with invented data.
Two organizations (440px, light)
One organization expanded (440px, dark)
People added, 340px, light
People added, 340px, dark
Testing
I manually tested these changes locally. In component fixtures in Chromium, at 340px and 440px, light and dark:
expand and collapse by click, Enter and Space
scrolling a 30-repo org
Tab to the warning line and its tooltip
the people picker
×, Minimize, Cancel and Escape, including a pending install after a failed read and on the sign-in fallbacks
Automated tests added/updated, or explained why not below. No committed tests: this is UI behavior, per the repo's testing rule. A scripted fixture run instead checked the corner and pill lifecycle, protected copy through the real language-pack parser, and narrow-width text containment; each check failed with its fix reverted.
Every added test fails without this change and avoids the test anti-patterns (none added)
macOS. Web typecheck, oxfmt, oxlint and the localization catalog checks pass locally.
Performance
None, because this only renders while the GitHub setup dialog is open. Org rows render their repos only when expanded, and the list is height-capped. No new polling, IPC or disk work.
Risk
Level: Low. Renderer-only. The riskiest part is the corner button: if its Minimize condition were wrong, × could end a setup still following GitHub, or leave a pill after a real end. Back out with a plain revert.
The Add <bot> to GitHub dialog lists one row per account or organization with
its repository count, folded open on click, instead of a comma-joined block.
Who can ask is a row of chips with the outsiders rule behind an info icon, and
one warning line shows once someone else is added. Labels are shorter (Cancel,
Add, Install app) and the corner button is a normal close.
The corner button ends setup unless the setup waits on GitHub in the browser,
where it minimizes. The dialog opens with focus on itself, an expanded
organization scrolls past six and a half rows, and the warning line takes
keyboard focus.
…eral linked logins in a fixture
The screen-reader "Signed in as" text was positioned against the dialog, so a
long login widened the dialog's scroll width past its box. Its truncating line
now contains it. Adds 440px and 340px fixtures with three linked GitHub logins,
one 48 characters long.
…s safe in the setup dialog
- The corner stays Minimize while setup still follows an install trip in either
browser, including after a failed read, so it cannot drop the pending install.
Cancel still ends setup.
- The repository list's scope labels (All repos, N repos, New) are protected
copy again, so a language pack cannot restate them in this trust dialog.
- The status line under the title wraps a long name with no spaces instead of
overflowing at narrow widths.
Fixtures: the review shots move to github-setup-dialog-shots.fixture.tsx, with a
shared stub module, plus states for a failed read during an in-app install,
checking and failed with a long name, and every scope label.
A long name in the line under the title (checking, failed and connect steps)
now ends in an ellipsis, with the whole line as its tooltip, instead of
wrapping mid-word. Only the compact header changes; other setup headers still
wrap.
…tate
- "Who can ask" above the people in the GitHub setup is its own protected
string, so a language pack cannot relabel who gets access. Other places that
show the list keep the shared, translatable caption.
- The sign-in screens the setup can fall back to (this computer's sign-in
lapsed, or Orca Cloud signed out) keep the Minimize button while an install
is still followed on GitHub. With nothing followed they look as before.
- The compact status line shows one plain string and uses the same string as
its tooltip, so what you hover is what you see, whatever the translation.
Fixtures: signed-out states with and without a pending install, and the
compact header for a paired server's bot with names that need escaping.
…tatus line
The plain text the compact setup header shows (and uses as its tooltip) kept
only ordinary spaces at its ends: a translation's leading or trailing no-break
space was dropped, and two paragraphs ran together. Now only HTML whitespace
collapses or drops, and a paragraph edge reads as a space, like a line break.
No actionable comments were generated in the recent review.
Walkthrough
The GitHub setup dialog now has updated header and action controls, compact bot-access details, and grouped repository listings with expandable account rows. Shared fixtures and screenshot scenarios cover setup states, repository layouts, and narrow dialog sizes. Translation strings and protected-copy keys are updated for the revised interface.
Merge Risk: Minimal · up to 5d5b7
This change regroups the GitHub setup dialog's repositories by organization and updates its controls. No concrete merge-blocking risk was found, and the change is easy to revert.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: repositories in the GitHub setup dialog are now grouped by organization. The description and file summaries show one expandable row per account or organization with re…
Description check
The description follows the template well. It has ELI5, What Changed, Why, Visual Proof with before/after-style fixture images, Testing with a checklist, Performance, and Risk with a level and rollbac…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: repositories in the GitHub setup dialog are now grouped by organization. The description and file summaries show one expandable row per account or organization with repo counts, which matches the title. The title is short, specific, and does not use vague terms.
Full details: Description check
Explanation
The description follows the template well. It has ELI5, What Changed, Why, Visual Proof with before/after-style fixture images, Testing with a checklist, Performance, and Risk with a level and rollback plan. The Linked Issue section is missing: 'Fixes #' is left blank and no issue is linked. The AI Disclosure section is blank, which is allowed for internal contributors. The Review, Agent skill upstream boundary, and Notes sections are not filled in, and the Checklist is not ticked. The Visual Proof section uses images, not a true before/after pair. These gaps are minor relative to the overall completeness, so the check passes.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
If either helper exhausts its 80 polls, it returns as if the click succeeded. Callers can then capture a collapsed dialog or continue without starting an install trip.
Add a timeout error after each loop. Include the requested text or selector in the error. This will make missing controls and selector drift visible in fixture runs.
Also applies to: 193-193
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 551b5f36-d64d-4645-b884-e4eb6630eb3c
Commits
Reviewing files that changed from the base of the PR and between cd5c7e7 and 5d3d302.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
The fixture click helpers returned quietly after polling, so a fixture could
capture a state it never reached. They now wait up to 10 s and throw, naming
the missing control.
@coderabbitai The nitpick about the fixture click helpers in github-setup-dialog.test-fixture.tsx is fixed in 5d5b7c2. clickWhenShown and clickAddRepositories now poll for up to 10 s, then throw an error naming the missing control, so a fixture fails instead of capturing a state it never reached.
For best results, initiate chat on the files or code changes.
Analysis chain
Script executed:
#!/bin/bashset -euo pipefail
file=$(fd -t f -F 'github-setup-dialog.test-fixture.tsx'.| head -n 1)if [ -z"$file" ];thenecho"Fixture file not found"exit 1
fiecho"File: $file"
ast-grep outline "$file" --items all --match 'clickWhenShown|clickAddRepositories'||true
rg -n -A 35 -B 5 'function (clickWhenShown|clickAddRepositories)\b'"$file"
Length of output: 2938
@AmethystLiang Thanks for fixing this. I checked the current code: both helpers poll for 10 seconds and throw an error naming the missing button. I did not run the fixtures.
If you found this review helpful, would you consider giving us a shout-out on X?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
The "Add a bot to GitHub" dialog was a wall of text. Now it lists each organization once with its repo count, shows who can ask as chips, and uses short buttons.
What Changed
N repos, which expands to that org's repos (click, Enter or Space). The list is capped at about six rows and scrolls. A whole-account install showsAll repos.+ Addon the label row and the outsiders rule behind an ⓘ. Once someone else is added, one warning line shows ("They act as you on this computer."). It is keyboard-focusable, and its tooltip and screen-reader text carry the full sentence.Add <bot>, and@login · Not you?on one line. With several linked logins, it lists them, truncated, with no "Not you?". The status line under the title stays on one line with …, and the full text is its tooltip.Cancel/Add(was Close / Turn on ), andInstall app.Why
The old dialog repeated the org name on every repo, packed repos into a comma-joined block, and explained sharing risk in long paragraphs, which made a trust decision hard to read. Checked against how comparable products handle this.
Visual Proof
Component fixtures with invented data.
Testing
macOS. Web typecheck, oxfmt, oxlint and the localization catalog checks pass locally.
Performance
None, because this only renders while the GitHub setup dialog is open. Org rows render their repos only when expanded, and the list is height-capped. No new polling, IPC or disk work.
Risk
Level: Low. Renderer-only. The riskiest part is the corner button: if its Minimize condition were wrong, × could end a setup still following GitHub, or leave a pill after a real end. Back out with a plain revert.