Page MenuHomePhabricator

Notification counter not shown on mobile (Minerva) when the user has no unseen alerts
Closed, ResolvedPublic3 Estimated Story PointsBUG REPORT

Description

Found by @GMikesell-WMF during QA of T342907#9085628

Steps to replicate the issue (include links if applicable):

  • Make sure you have no unseen alert notifications. Mark as read if needed.
  • Receive a thanks notification from a friend
  • On desktop note the notification is shown in blue
    Screenshot 2023-08-10 at 4.38.16 PM.png (65×253 px, 3 KB)
  • Visit mobile site

What happens?:

  • A bell icon shows with no indication you have messages. Clicking the icon will show the thanks notification

What should have happened instead?:

Some visual indicator should let me know I have a notification.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

QA steps

  • On beta cluster create two accounts
  • Login as account 2 and make sure you have 0 notifications (alerts or notices) on desktop.
  • With account 1 thank one of account 2's edits
  • Go back to account 2 and verify on desktop that you see the number 1 next to the tray (notices) icon
  • On mobile confirm that you see a red circle with the number 1 in it

Tech/News

Ideally, the below will be published in the edition of Tech/News that will go out the week of 24 March

Announcement draft
"Minerva combines Notices and Alerts within the 🔔 icon. A bug persisted where an indication was only shown if you had unseen "Alerts." This bug is now fixed. Going forward, you will notice a counter atop the 🔔 icon when you have ≥1 unseen notice and/or alert."

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
Restricted Application added subscribers: Masumrezarock100, Aklapper. · View Herald Transcript
A_smart_kitten subscribed.

Tagging MinervaNeue for task discoverability (as I instinctively looked through that project earlier to see whether this issue had been reported)

Given that the dropdown on mobile/minerva collates both notices and alerts, it seems logical that the counter should include unread notifications in both groups.

Having looked at the code it does appear to not be functioning as intended.

Change #1123441 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/skins/MinervaNeue@master] Fix logic for when to show the notification circle

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

The code comment describes the behaviour requested, so this is just an implementation error:

// The circle should only appear if there are unseen notifications.

(where a notification is either an alert or a notice)

Change #1123441 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Fix logic for when to show the notification circle

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

Change #1125611 had a related patch set uploaded (by Reedy; author: Esanders):

[mediawiki/skins/MinervaNeue@REL1_43] Fix logic for when to show the notification circle

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

Change #1125614 had a related patch set uploaded (by Reedy; author: Esanders):

[mediawiki/skins/MinervaNeue@REL1_42] Fix logic for when to show the notification circle

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

Adding User-notice, as I think this might be worth an entry in Tech/News: given the duration that mobile web hasn’t given editors a visual indication that they have new 'notices' for, it might be surprising for the red ‘you have unread notifications’ icon to suddenly also appear when an editor has a new 'notice'. There’s also a general community interest in the current status of notifications on mobile - e.g., Wikipedia:Mobile communications bugs on enwiki.

The patch that should fix this issue has been merged and (IIUC) will be deployed with the train this week, so this can be announced in the next edition. The patch has been reverted, so this isn’t yet ready to announce. I’ll leave this in the ‘to triage’ column of User-notice, though, so a Tech/News person can decide whether they agree with my assessment above :D

I think it has been broken for about 18 months.

Change #1125614 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@REL1_42] Fix logic for when to show the notification circle

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

Change #1125611 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@REL1_43] Fix logic for when to show the notification circle

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

Change #1126186 had a related patch set uploaded (by Jdlrobson; author: Jdrewniak):

[mediawiki/skins/MinervaNeue@master] Revert "Fix logic for when to show the notification circle"

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

Change #1126186 merged by Jdlrobson:

[mediawiki/skins/MinervaNeue@master] Revert "Fix logic for when to show the notification circle"

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

Change #1126547 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/skins/MinervaNeue@master] Re-apply: "Fix logic for when to show the notification circle"

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

Jdlrobson-WMF changed the task status from Open to In Progress.Mar 12 2025, 8:45 PM
Jdlrobson-WMF added a project: Web-Team.
Jdlrobson-WMF renamed this task from Echo in Minerva doesn't notify users of notices to Update Echo in Minerva to display a count of both notices and alerts.Mar 12 2025, 9:58 PM
Jdlrobson-WMF updated the task description. (Show Details)
Jdlrobson-WMF added subscribers: RHo, Jdlrobson-WMF.

@RHo I know you have been involved in Echo design in the past. From your perspective should the counter on mobile reflect both notices and alerts?

Adding in @Pginer-WMF as the original designer who likely can speak directly on this. IMO ideally we want one icon for alerts and notices per T142981: Provide a single entry point for notification that anticipates the urgency of the notifications received for desktop as well, but until such time that happens if we are collapsing both alerts and notices under the single bell icon on Minerva, it would make sense for the count to be for the combined unread number.

From your perspective should the counter on mobile reflect both notices and alerts?

! In T344029#10631502, @RHo wrote:

it would make sense for the count to be for the combined unread number.

Just for clairty: it has always been the case that when the counter shows on mobile it shows alerts + notices. This has been the case since the first implementation and has never changed. The only issue here is that the counter stopped showing at all if there were not unseens alerts, and this is what the patch fixes.

Jdlrobson renamed this task from Update Echo in Minerva to display a count of both notices and alerts to Update Echo in Minerva to display a count of both notices and alerts when alerts is 0.Mar 13 2025, 3:01 PM
JScherer-WMF moved this task from Incoming to Q3 on the Web-Team board.
Esanders renamed this task from Update Echo in Minerva to display a count of both notices and alerts when alerts is 0 to Notification counter not shown on mobile (Minerva) when the user has no unseen alerts.Mar 17 2025, 5:56 PM
Esanders updated the task description. (Show Details)

Assigning this over to Ed to ensure the task description's "QA steps" reflect the behavior the fix implements.

More broadly, the Editing Team will assume responsibility for QA'ing this fix before it rides the train that will go out next week (week of 24 March). See offline discussion for how Editing + Web arrived at this path forward.


Oh, and @RHo, per what @Esanders shared in T344029#10632185, the fix will, as you put it, "...make sense for the count to be for the combined unread number."

Change #1126547 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Re-apply: "Fix logic for when to show the notification circle"

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

Thank you for drafting the Tech/News entry @ppelberg :D
Moving to the 'Announce in next Tech/News' column, now that the patch has been remerged.

Thank you for drafting the Tech/News entry @ppelberg :D
Moving to the 'Announce in next Tech/News' column, now that the patch has been remerged.

You bet and thank you!

The fix has been live in Wikimedia production for a couple of weeks now - should the task remain open for any additional Editing-team sign-off, or can it be closed as resolved?

No objection; therefore resolving :)
Thanks @Esanders for the patch!