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
Commit 4f1cd5a
Browse filesBrowse the repository at this point in the historyBrowse files
feat(hovercard): show PR co-authors as a facepile (#132275)
* feat(hovercard): show PR co-authors as a facepile
GitHub link hovercards named only the PR author, so a co-authored PR looked
like solo work. Co-authors now appear as overlapping faces after the author,
with "+N" for anyone past the three the card fetches.
Trailers carry their own identity: GitHub's noreply form is
`<accountId>+<login>@users.noreply.github.com`, so one commits page yields both
the login and the avatar URL with no lookup per person, and the avatar goes
through the existing inlining rather than being hotlinked. That keeps this to a
single extra request, and it works anonymously — a GraphQL commit-authors query
would have resolved trailers too, but only with a token.
Co-authors are decoration on an already-useful card, so a failed, rate-limited,
or oversized commits page degrades to no faces instead of failing the preview.
Issues skip the request entirely.
* fix(hovercard): use the defined --muted token for the co-author overflow
--text-muted is not an OpenClaw Control UI token, so base-theme-tokens flagged
it as an undefined reference. The card's own author row already uses --muted.
* fix(hovercard): guard the co-author commits fetch against redirects
The commits request carried the operator's token but no redirect guard, so a
rename or transfer could carry it into a repository the token can read and the
viewer cannot, and co-author data derived from that private repository would
reach the browser.
The item fetch already had this guard inline. It is now a named local shared by
every credentialed fetch here, and the redirect parser accepts the commits
suffix so a legitimate rename still resolves to its repository for the
visibility check instead of failing shape validation.
Reported by ClawSweeper as P1 on 826f5e9.
* fix(hovercard): count faceless co-authors in the overflow
The overflow was derived from fetched co-authors rather than rendered faces.
Avatar inlining is optional, so a co-author whose avatar failed produced no face
and was not counted in "+N" either: five co-authors with one failed avatar
rendered two faces and "+2", silently dropping a person.
Reported by ClawSweeper as P2 on f7a028d.
* fix(hovercard): give the co-author facepile an accessible name
The faces are decorative images and the logins lived only in a title attribute,
which assistive tech does not reliably announce, so the whole co-author signal
was sighted-only. The group is now one labelled image carrying the same names,
matching the role="img" pattern used elsewhere in the sidebar.
Reported by ClawSweeper as P2 on 9026545.
0 commit comments