[openstreetmap/openstreetmap-website] Add notification count to user menu and user details (Issue #7286)
Minh Nguyễn
notifications at github.com
Thu Jul 30 17:05:43 UTC 2026
1ec5 created an issue (openstreetmap/openstreetmap-website#7286)
The My Notifications menu item should have a badge that indicates a notification count. We should also add this number to the badge next to the avatar so the notifications are more discoverable when the menu is closed.
<img width="188" height="339" alt="21 unread messages, how embarrassing." src="https://github.com/user-attachments/assets/c479e4d3-939e-4568-b374-cd9f908509a4" />
There’s some debate about whether we should be tracking the total number of undeleted notifications (#7285) or just the unread notifications (#7123). Either way, we need to add some number next to the menu item. There was also some bikeshedding in #3182 about what the badge next to the avatar should look like. Let’s keep it simple for now, with just a single count that adds up the two counts you see when opening the menu.
When getting [user details](https://wiki.openstreetmap.org/wiki/API_v0.6#Details_of_the_logged-in_user:_GET_/api/0.6/user/details) from the API, the response should include the same count that appears next to the My Notifications item. This should be all a client like JOSM needs for its message of the day to alert the user that they have unread notifications. It’ll be a lot simpler than #6896, which we don’t feel confident about because no client has asked for specifics yet.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/7286
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/7286 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260730/ef164958/attachment-0001.htm>
More information about the rails-dev
mailing list