Page MenuHomePhabricator

Minerva initial notification count does not include messages
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Generate notifications e.g. php extensions/Echo/maintenance/generateSampleNotifications.php --user Admin --agent Jdlrobson --other Jdlrobson making sure you have both alerts AND notices
  • Load any page in Minerva as a logged in user
  • Click the notification icon
  • Close the overlay

What happens?:
The initially displayed count is not the same as the post-overlay count. This is because the initial count is only the number of alerts NOT the number of messages

What should have happened instead?:

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

Event Timeline

Restricted Application added subscribers: Masumrezarock100, Aklapper. · View Herald Transcript

Change 805485 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/Echo@master] Add badge that combines notices and alerts

https://gerrit.wikimedia.org/r/805485

Test wiki created on Patch demo by Jdlrobson using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/9225eb4c81/w/

Test wiki on Patch demo by Jdlrobson using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/9225eb4c81/w/

Change 805485 abandoned by Jdlrobson:

[mediawiki/extensions/Echo@master] Add badge that combines notices and alerts

Reason:

Focusing on Vector 2022 for now.

https://gerrit.wikimedia.org/r/805485

Change 867290 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/skins/MinervaNeue@master] Display correct numbers on the combined notification badge

https://gerrit.wikimedia.org/r/867290

Change 867290 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Display correct numbers on the combined notification badge

https://gerrit.wikimedia.org/r/867290

@matmarex is anyone QAing this one on your side?

Sure, I'll ask the folks to take a look. I think this is the same issue as T324690 that we discovered.

Sure, I'll ask the folks to take a look. I think this is the same issue as T324690 that we discovered.

This works fine now. Looked into it fine while testing T324690.
However, @Ryasmeen caught a new 🐜 : The notification icon changes color to grey after closing the overlay. See

IMG_2045.jpg (2×1 px, 614 KB)
.

Sure, I'll ask the folks to take a look. I think this is the same issue as T324690 that we discovered.

This works fine now. Looked into it fine while testing T324690.
However, @Ryasmeen caught a new 🐜 : The notification icon changes color to grey after closing the overlay. See

IMG_2045.jpg (2×1 px, 614 KB)
.

That behavior is intentional and was that way prior to the bug I introduced. (the purpose is to indicate the notification have been marked as a read). I do think the design looks off though, and this feature could do with a design refresh/rethink.