sindresorhus/refined-github

Do you want to work on this issue?

You can request for a bounty in order to promote it!

`open-all-notifications` should also visible when i select some notifications #3503

muescha posted onGitHub

Summary

  • show the open-notifications-button when i select the checkbox on a notification

Where

What i see

  • when i not select acheckbox - the button open-notifications-button
  • when i select a checkbox - the button open-notifications-button

What i Expect

  • the button open-notifications-button should also visible when i select checkboxes

Screenshots

<img width="669" alt="Bildschirmfoto 2020-08-26 um 21 15 07" src="https://user-images.githubusercontent.com/184316/91346600-610b2680-e7e1-11ea-885b-737f9e66d0fa.png">

<img width="668" alt="Bildschirmfoto 2020-08-26 um 21 15 16" src="https://user-images.githubusercontent.com/184316/91346614-66687100-e7e1-11ea-835a-1b8e53688001.png">

PoC

<img width="651" alt="Bildschirmfoto 2020-08-26 um 21 18 34" src="https://user-images.githubusercontent.com/184316/91346876-c232fa00-e7e1-11ea-968b-209f9d32762c.png">

Modifications

a) Show a second Button Open Selected

a add a second button, like the current button it can visible/hidden with css

b) change to get the selected notifications

depending on the button clicked the selection of notification can handled different (adding a data-selection-type="all" /data-selection-type="selected" to distinct the buttons

c) edge cases

hide the button, when a user clicks on "select all" and then on "select all 20.212 notifications" (selected counter is > count of checkboxes on the page)

current behavior:

<img width="681" alt="Bildschirmfoto 2020-08-26 um 21 23 10" src="https://user-images.githubusercontent.com/184316/91347335-72086780-e7e2-11ea-94bc-a91b61f07ef5.png"> <img width="868" alt="Bildschirmfoto 2020-08-26 um 21 23 21" src="https://user-images.githubusercontent.com/184316/91347361-7af93900-e7e2-11ea-811d-0f285c820321.png">

Environment

Chrome: Version 84.0.4147.135 (Offizieller Build) (64-Bit) Refined GitHub: 20.8.16

  • issue #3487 PR #3488 batch-open-conversations add checkboxes to repo without read access`

There are only 2 situations where this makes sense:

If you intend to select each notification and then open them all at once, you'd be wasting a click!

Instead of "check, check, check, open all" (4 clicks) Use "ctrl-click, ctrl-click, ctrl-click" (3 clicks) to directly open each link in a new tab.

posted by fregante over 4 years ago

select-notifications has been implemented by @cheap-glitch now ☺️

posted by fregante over 3 years ago

Should this be implemented as a special case in open-all-notifications, or as a separate button handled by select-notifications? (The second approach makes the most sense to me, but I still want to check)

posted by cheap-glitch over 3 years ago

@cheap-glitch The way https://github.com/sindresorhus/refined-github/pull/4526 was implemented, it would indeed make more sense as part of select-notifications as you can select issues across repositories, and the open-all-notifications buttons are shown on the individual repository lists. I would expect the button to be right next to the Select dropdown instead.

posted by janpio over 3 years ago

a separate button handled by select-notifications?

The two are unrelated, one can select notifications without that button, even by clicking "All"

While technically it would be a separate button from "Open unread notifications", it still matches that feature and name almost exactly, except it defaults to "open unread"

posted by fregante over 3 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests