Repository navigation
conversation-authors - Restore on new PR lists - #10072
Conversation
fregante
left a comment
There was a problem hiding this comment.
No.
It should a 2-3 lines change at most, a selector and maybe classes/css, but most likely only a selector
|
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 { |
There was a problem hiding this comment.
Why button? They're still links from what I can tell
There was a problem hiding this comment.
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
There was a problem hiding this comment.
😆 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"]`, |
There was a problem hiding this comment.
We're gonna need some comments for each of these selectors like in source/features/small-user-avatars.tsx below.
There was a problem hiding this comment.
Also would be great to extract CSS.escape(getLoggedInUser()! to a const so we don't have to repeat it
conversation-authors - Restore on new PR lists
d204434 to
d931916
Compare
|
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. |
|
I have created a separate PR for user avatars #10080 |
| `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}"]`, |
There was a problem hiding this comment.
Dropped the element type altogether here.
|
Thanks for working on this! |
|
@fregante thanks for the help here |



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