Repository navigation
EXC-2110 Open a shield's code owner details in a dialog - #75
Merged
macintacos merged 7 commits intoOct 29, 2026
Conversation
- readTeamMembers resolves the listed logins and the team's member count, counting the logins when GitHub gives no total - teamMembersReader memoizes each team's read for a visit, ignoring case, and both visits share one reader with withMemberTeams - owningTeams lists the teams among a set of code owners, once each
- A click, or Enter or Space, on a file or folder shield closes its hover popover and opens a modal dialog that repeats the popover's list, then excerpts each owning team's first 15 members, linking the team page when it has more - The dialog says when a team has no members or GitHub hides them - The hover popover ends in a sticky hint: "Click the shield for details" - The click no longer pins the popover; focus moves to the shield's row and returns there when the dialog closes
- A click on a code-owner shield in a Reviewers list, GitHub's or gh-prism's, closes its files popup and opens the code owner details dialog: the popup's list, then each owning team's members - One document click listener serves every shield, since GitHub replaces the classic sidebar's nodes mid-visit - The files popup ends in the same sticky "Click the shield for details" hint as the sidebar's popover
- The browser's own [popover] padding still applied at the bottom, so a scrolled list showed a strip beneath the sticky hint, in the sidebar's owners popover and the reviewer's files popup alike
- A file or folder shield's click swaps its hover popover for a modal dialog that excerpts 15 members and links the rest; Escape and the backdrop close it, and focus lands on the row - A reviewer shield's click, GitHub's or gh-prism's, opens the dialog with one members read, and Escape returns to the shield - Both hover popups hint at the click, flush with their bottom - Tests that clicked a shield for its popover now hover or focus it
- A reviewer shield's click opens only the last-clicked shield's dialog when the read settles after several clicks - detailsHint builds the whole sticky footer, so its inset and coupling to each popup's padding live once - owners-popover describes a shield's listing once for the popover and the dialog; showSections takes the visit's members reader - withMemberTeams reuses owningTeams, so a team takes the spelling first seen - Chromium proves the keyboard path: Enter opens the dialog and Escape returns to the row - Docs name the reader's contracts and the dialog's copied shell
…y hold - closeButton, latestClick, and a shield's listing read as nouns - Tests name a team members reader teamMembers, as production does
macintacos
deleted the
EXC-2110/open-a-shields-code-owner-details-in-a-modal
branch
October 29, 2026 00:09
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: EXC-2110
Change Kind: new feature
What changed
Clicking a code-owner shield now opens a code owner details dialog. That covers a file or folder shield in the Files changed sidebar, and a reviewer's shield in the Conversation tab's Reviewers list, GitHub's or gh-prism's own. The dialog repeats what the shield's hover popup lists, then shows each owning team's first 15 members, linked, and a "See all N members" link to the team's page when it has more; a team GitHub hides from you, or one with no members, says so instead. Each hover popup now ends in a subdued "Click the shield for details" footer that stays put while a long list scrolls. A sidebar shield's click no longer pins its popover open: hover and focus still open the popover, and the click opens the dialog instead.
What to test
web/app.ts's shield andapi/'s: each popover ends in the hint. Click each: a modal dialog lists the owners (or the folder's files) and excerpts@excessive-dev/frontendwith@macintacosand@excessive-dev/platformas "This team has no members." Escape returns focus to the row.api / modules' shield and scroll its 50-file list: the hint stays at the bottom, flush, with nothing of the list showing under it.excessive-dev/frontend's shield in Reviewers: the card ends in the hint. Click it: the dialog, headed@excessive-dev/frontend, lists the team's two files and@macintacos, and Escape returns focus to the shield.Reviewer hand checks
No command can run these.
What the live check couldn't show
team-members-large.jsonfixture (214 members, 20 listed) proves the cap in the unit and Chromium cases.Follow-ups this change surfaced
j/kmove the page behind the dialog. This is the first gh-prism modal on the Files changed page, andfollowFileKeys(diffs/file-keys.ts) still handlesj/kwhile it is open. The fix belongs there: skip a keydown whose target is inside an opendialog.classic/notice.tsandui/owners-dialog.ts(and their sheets). A sharedui/dialog.tswould keep an accessibility or Primer fix from landing in one only.followHoverIntentcould exposeclose(), replacing thecloseOwners/closeCardmirrors both callers keep.CodeOwner(kind: "team" | "user" | "email") would replace thetoken.includes("/") && urlchecks repeated acrosscode-owners.tsand its callers.Screenshots
Captured by the live check with the built extension at 1400 × 900, signed in, on the code-owners sandbox. Each pair is light, then dark.
A file shield's hover popover, ending in the hint (PR #1,
web/app.ts).A folder's details dialog (PR #1,
api/): its files with their owners, then frontend's member and platform's empty team.A long folder list scrolled midway (PR #3,
api / modules): the hint stays flush at the bottom.A reviewer's files card on the Conversation tab, ending in the same hint (PR #1,
excessive-dev/frontend).That reviewer's details dialog: the card's list, then the team's member.