Skip to content

conversation-authors - Restore on new PR lists - #10072

Merged
fregante merged 10 commits into
refined-github:mainfrom
IdrisGit:fix-preview-list-author-ui
Sep 12, 2026
Merged

fregante merged 10 commits into
refined-github:mainfrom
IdrisGit:fix-preview-list-author-ui

Conversation

@IdrisGit

Copy link
Copy Markdown
Contributor

Description

Restore self-highlighting and small human avatars on Preview author links and buttons. Preserve legacy behavior and filter interactions, ignore hidden accessibility text, and prevent duplicate avatars after rerenders.

Related to #10065 and #9555. This does not address inbox authors, bot-row dimming, or Contributor badges.

Test URLs

https://github.com/OpenWhispr/openwhispr/pulls
https://github.com/OpenWhispr/openwhispr/issues
https://github.com/pulls/authored
https://github.com/issues/assigned

Screenshot

image image image image

@github-actions github-actions Bot added the bug label Sep 11, 2026
@github-actions github-actions Bot changed the title fix: author highlighting and avatars in new GH Preview lists Author highlighting and avatars in new GH Preview lists Sep 11, 2026

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No.

It should a 2-3 lines change at most, a selector and maybe classes/css, but most likely only a selector

@IdrisGit
IdrisGit requested a review from fregante September 11, 2026 09:43
@IdrisGit

Copy link
Copy Markdown
Contributor Author

Hey @fregante thank you and sorry for it, it was my initial plan as well to keep the changes lean but it was my bad that I listened to AI when it told be this was needed and project follows it. Also thank you for you help on the other PR as well appreciate it.

a.rgh-own-conversation,
a.rgh-own-conversation:hover {
:is(a, button).rgh-own-conversation,
:is(a, button).rgh-own-conversation:hover {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why button? They're still links from what I can tell

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The global PR and Issue page uses button for author tag, here is a screenshot with the extension disabled.

screenshot-2026-09-11_19-40-34

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yikes. Next thing we know they're gonna use divs everywhere.

Let me think about this, most likely I'd want to introduce a new feature to fix this issue at the root since this means you can't cmd-click them either.

We've been implementing more and more features to undo bad coding on GitHub like no-modals and cmd-enter. This sounds like a job for new-tab-links, maybe renamed into real-links

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆 Yeah even I wasn't expecting it to be button, had to double check it 😅.

Yeah I agree, let me know if you want me to remove it from this PR.

CSS.escape(getLoggedInUser()!)
}/hovercard"]`,
`[data-testid="author-filter-link"][aria-label="Filter by author ${CSS.escape(getLoggedInUser()!)}"]`,
`[data-testid="author-filter-link"][data-hovercard-url="/users/${CSS.escape(getLoggedInUser()!)}/hovercard"]`,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're gonna need some comments for each of these selectors like in source/features/small-user-avatars.tsx below.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also would be great to extract CSS.escape(getLoggedInUser()! to a const so we don't have to repeat it

Comment thread source/features/small-user-avatars.tsx Resolved
@fregante fregante changed the title Author highlighting and avatars in new GH Preview lists conversation-authors - Restore on new PR lists Sep 12, 2026
@IdrisGit
IdrisGit force-pushed the fix-preview-list-author-ui branch from d204434 to d931916 Compare September 12, 2026 07:30
@github-actions

Copy link
Copy Markdown

Please don't force-push to this PR, it makes it harder to see what changed since the last review.

We merge commits rather than squash, so we care more about reviewability than a clean history. Feel free to push dirty commits.

@IdrisGit

Copy link
Copy Markdown
Contributor Author

I have created a separate PR for user avatars #10080

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also saw this issue:

Image

But somewhere in my changes I fixed it 🤷‍♂️

Image

`a[class^="IssueItem-module__authorCreatedLink"][data-hovercard-url="/users/${loggedInUser}/hovercard"]`,
// `a` on https://github.com/refined-github/refined-github/pulls
// `button` on https://github.com/pulls/authored
`[aria-label="Filter by author ${loggedInUser}"]`,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped the element type altogether here.

@fregante
fregante merged commit 7cf9149 into refined-github:main Sep 12, 2026
14 checks passed
@fregante

Copy link
Copy Markdown
Member

Thanks for working on this!

@IdrisGit

Copy link
Copy Markdown
Contributor Author

@fregante thanks for the help here

@fregante fregante mentioned this pull request Sep 22, 2026
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants