Skip to content

sticky-notifications-actions - New feature - #6465

Merged
fregante merged 9 commits into
refined-github:mainfrom
jdeniau:sticky-notifications-actions
Dec 1, 2023
Merged

fregante merged 9 commits into
refined-github:mainfrom
jdeniau:sticky-notifications-actions

Conversation

@jdeniau

@jdeniau jdeniau commented Apr 7, 2023 •

Copy link
Copy Markdown
Contributor

Closes #6176

Outdated demos

Test URLs

https://github.com/notifications

Screenshot

image

2022-11-25.09-28-15.mp4

@jdeniau
jdeniau force-pushed the sticky-notifications-actions branch 2 times, most recently from 45bad62 to defef2b Compare April 7, 2023 09:21
@jdeniau
jdeniau marked this pull request as ready for review April 7, 2023 09:23
@jdeniau
jdeniau force-pushed the sticky-notifications-actions branch 2 times, most recently from 067330e to 98ae1a8 Compare April 7, 2023 09:27
@fregante fregante changed the title Notification page : keep the action bar sticky Add sticky-notifications-actions feature Apr 7, 2023
@kidonng

kidonng commented Apr 7, 2023

Copy link
Copy Markdown
Member

Hah! Guess I should have just submitted this to RGH first 😆

@fregante
fregante marked this pull request as draft April 9, 2023 14:42
@fregante fregante closed this May 2, 2023
@jdeniau

jdeniau commented May 15, 2023

Copy link
Copy Markdown
Contributor Author

Hi @fregante .

It seems that you closed this PR, but the commits have not been merged in master. Is this a mistake ?

Thanks

@fregante fregante reopened this Nov 21, 2023
@jdeniau
jdeniau force-pushed the sticky-notifications-actions branch 2 times, most recently from 2c5c331 to d7c168e Compare November 21, 2023 14:15
@jdeniau

jdeniau commented Nov 21, 2023

Copy link
Copy Markdown
Contributor Author

@fregante I handled all the review and the CI, and rebased on main .

I kept the :has selector because otherwise all .Box-header were targeted, so the code did not work. Furthermore, firefox did enabled the feature behind a feature-flag and should be available in firefox 121 according to caniuse that should be released on 19 December 2023

@jdeniau
jdeniau marked this pull request as ready for review November 21, 2023 14:57

@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.

thank you!

Comment thread readme.md Outdated
- [](# "linkify-notification-repository-header") [Linkifies the header of each notification group (when grouped by repository).](https://user-images.githubusercontent.com/1402241/80849887-81531c00-8c19-11ea-8777-7294ce318630.png)
- [](# "stop-redirecting-in-notification-bar") [Stops redirecting to notification inbox from notification bar actions while holding <kbd>Alt</kbd>.](https://user-images.githubusercontent.com/202916/80318782-c38cef80-880c-11ea-9226-72c585f42a51.png)
- [](# "last-notification-page-button") [Adds a link to the last page of notifications.](https://user-images.githubusercontent.com/16872793/199828181-3ff2cef3-8740-4efa-8122-8f2f222bd657.png)
- [](# "sticky-notifications-actions") [Make the notifications action bar sticky.](https://user-images.githubusercontent.com/1398469/230582441-aed8bb24-4180-488e-b1d5-4e4a45a5d31c.png)

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.

It's not clear from the screenshot, can you make a very short gif? Also don't include the browser UI

@fregante fregante changed the title Add sticky-notifications-actions feature sticky-notifications-actions - New feature Nov 22, 2023

@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.

It doesn't work correctly

gif2

@fregante
fregante marked this pull request as draft November 23, 2023 04:41
@jdeniau

jdeniau commented Nov 24, 2023

Copy link
Copy Markdown
Contributor Author

It doesn't work correctly

gif2 gif2

I am investigating, but for the record, it does work fine for me in the "default" notification view, but does not work when I filter on a repository.

2023-11-24.16-03-44.mp4

@jdeniau

jdeniau commented Nov 24, 2023

Copy link
Copy Markdown
Contributor Author

OK it's because sometime the "select all" box is above the first bloc:

image

But when you have one block only, the "select all" box is "grouped" with the notifications:

image

@jdeniau
jdeniau force-pushed the sticky-notifications-actions branch from dc9bede to 923c466 Compare November 24, 2023 15:43
@jdeniau

jdeniau commented Nov 24, 2023

Copy link
Copy Markdown
Contributor Author

@fregante I did updated the CSS to handle the two use-cases and uploaded the following GIF

https://user-images.githubusercontent.com/1398469/285497350-95ead695-a023-4aeb-b3bc-7c815157b439.gif

I tested on chrome and firefox with :has selector enabled. It looks OK to me on both.

@fregante
fregante marked this pull request as ready for review December 1, 2023 05:28
@fregante

fregante commented Dec 1, 2023

Copy link
Copy Markdown
Member
By date By repo
Dark mode + wide screen demo
Screenshot 1

@fregante
fregante enabled auto-merge (squash) December 1, 2023 05:36
@fregante
fregante merged commit 233f3f6 into refined-github:main Dec 1, 2023
@jdeniau
jdeniau deleted the sticky-notifications-actions branch December 1, 2023 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Notification page : keep the action bar sticky

3 participants