Repository navigation
Conversation
Enterprise accounts are listed under a heading per hostname, sorted alphabetically. Every account row now shows the name followed by the login, matching GitHub.com rows, since the host heading replaces the per-row endpoint. Co-authored-by: Copilot App <[email protected]>
Wrap each Accounts section like the other preferences tabs do and give all but the last section a bottom margin, so the Enterprise heading no longer sits right under the "Add GitHub.com account" button. Co-authored-by: Copilot App <[email protected]>
This was referenced Oct 15, 2026
…prise-accounts-by-host Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused UI changes have no identified blocking issues; tests were inspected but not executed.
No open issues 🎉
What changed in this PR
Organizes Accounts settings for multiple accounts, keeping GitHub.com separate and grouping enterprise accounts by host.
Changes:
- Adds alphabetically sorted, accessible host groups while preserving account order.
- Standardizes account rows and section spacing.
- Adds UI tests for grouping, ordering, and row content.
| File | Description |
|---|---|
| app/test/unit/ui/preferences-accounts-test.tsx | Tests host grouping and consistent account rows. |
| app/styles/ui/_preferences.scss | Adds section spacing and host-heading styles. |
| app/src/ui/preferences/accounts.tsx | Groups enterprise accounts and standardizes row rendering. |
Review effort: Balanced
…prise-accounts-by-host Co-authored-by: Copilot App <[email protected]>
…prise-accounts-by-host Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
…prise-accounts-by-host Co-authored-by: Copilot App <[email protected]>
…prise-accounts-by-host Co-authored-by: Copilot App <[email protected]>
This comment was marked as abuse.
This comment was marked as abuse.
1 similar comment
This comment was marked as abuse.
This comment was marked as abuse.
…prise-accounts-by-host Co-authored-by: Copilot App <[email protected]>
…prise-accounts-by-host Co-authored-by: Copilot App <[email protected]>
…prise-accounts-by-host Co-authored-by: Copilot App <[email protected]>
…prise-accounts-by-host Co-authored-by: Copilot App <[email protected]>
sergiou87
approved these changes
Oct 22, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Part of #384 (Manage multiple accounts). Stacked on #23021, which is stacked on #23020.
Description
This covers the remaining #384 scenario, Organize accounts in settings:
<section>labelled by its<h3>hostname heading, so screen readers announce the host.@loginon the second. The per-row endpoint URL is gone because the host heading replaces it..advanced-sectionuses in the Advanced tab.Other #384 scenarios
These already work on this stack and needed no changes:
AccountsStore.onSignedInreplaces the existing endpoint+login entry in place, and signing in never opens the repository-association dialog._signOutAccountclears repository assignments only if the user chooses to.Many accounts
With 4 GitHub.com accounts and 3 Enterprise hosts with 3 accounts each, the Accounts pane scrolls. It has a fixed 500px max height with
overflow: auto, and the content is taller than that. The dialog keeps the same size (600×618) while scrolling and opens scrolled to the top. This was checked with a local ad-hoc E2E run, which was not committed.Screenshots
Grouped by host:
Many accounts, top and scrolled to the bottom:
Release notes
Notes: no-notes