Repository navigation
notifications-ui - Warn against "oldest first" sort - #9718
Conversation
notifications-ui warn of oldestnotifications-ui - Warn against oldest sort
notifications-ui - Warn against oldest sortnotifications-ui - Warn against "oldest first" sort
| } | ||
|
|
||
| function init(): void { | ||
| for (const dropdown of $$(['.notification-sort-by', '.notification-group-by'])) { |
There was a problem hiding this comment.
Not sure why the observer was not used here. If we have issues on slow connections we should just implement element-ready's waitForChildren logic
There was a problem hiding this comment.
Not sure why the observer was not used here
To avoid this:
This issue is unrelated to slow connections
There was a problem hiding this comment.
This is bad and I'm not sure if anything can be done:
![]()
I don't see anything worse than all other features in Refined GitHub and on slower connections using awaitDomReady will actually make it worse, in fact I see that all the time on 5.24 already, with notifications-ui kicking in way too late on every load:
ScreenRecording_06-13-2026.13-48-49_1.mov
Will drop the awaitDomReady in the followup PR because I forgot here
| label.replaceChildren( | ||
| <span className='fgColor-severe'>Oldest first</span>, | ||
| <SortAscIcon className='fgColor-severe' />, | ||
| ); |
| {buttons.map(button => transform(button))} | ||
| </ul> | ||
| </segmented-control> | ||
| </segmented-control>, |
There was a problem hiding this comment.
No changes here other than just extracting this callback
| } | ||
| .notification-group-by { | ||
| order: 6; | ||
| } |
| dropdown.classList.add('d-inline-block', 'width-auto'); | ||
| function compactDropdown(dropdown: Element): void { | ||
| dropdown.classList.replace('width-full', 'width-auto'); | ||
| dropdown.classList.replace('ml-0', 'ml-auto'); |







notifications-ui- highlight "oldest" as "bad" option #9656Test URLs
https://github.com/notifications
Screenshot
the other benefit is that on mobile it's also shorter vertically