Repository navigation
quick-mention - Restore feature on issues - #9352
Conversation
| `[data-testid="issue-viewer-issue-container"] a[class^="Avatar-module__avatarLink"]:not([href="/${getLoggedInUser()!}"])`, | ||
| ]; | ||
| const issueAvatarSelector | ||
| = `a[class^="Avatar-module__avatarLink"][class*="avatarOuter"]:not([href$="/${loggedInUser}"])`; |
There was a problem hiding this comment.
href= -> href$= because URLs are absolute now
| + is( | ||
| 'div.TimelineItem-avatar > [data-hovercard-type="user"]:first-child', | ||
| 'a.TimelineItem-avatar', | ||
| // `:first-child` avoids app badges #2630 |
There was a problem hiding this comment.
Seems to be outdated
It will make adding support for future React-based PR conversation page much easier |
A more global overhaul can be attempted once we drop current view support |
|
Leaving a comment because GitHub is failing to register my reviews.
We already have URL-based detections, let's not duplicate the effort via selectors. The check was ok because it tackled Dom-based changes ("or old view")
If you want to optimize/cache this value for the duration of the 4f2fd40#diff-10ea2ac1855ba73fe69bd22a445847d89960717eef20641fb46c5ddaab234ee8 |
fregante
left a comment
There was a problem hiding this comment.
The diff actually showed me why we don't do this: it may be called too early: #8648 (comment)
|
I just deduplicated existing calls. There is no practical difference between refined-github/source/features/quick-mention.tsx Lines 20 to 31 in 1684d08 and refined-github/source/features/quick-mention.tsx Lines 24 to 36 in 888412e |
I don't think this is better: |
Also, we will still revert to the |
Why did you also change the waitElement part? I don't see how that's related. Without that, yes it is better. Anyway since |
This reverts commit ab8ea07.
True that. |
🤷♂️ |
I had agreed and said
|
+ refactor. See commits
Follow up to #9325:
Test URLs
#8867
Screenshot