discourse/app
Osama Sayegh 417f156f6d
DEV: Use all unread notifications count for the count in document title (#18120)
When you receive a new notification, Discourse prepends a small count `(n)` to the tab title (i.e. `document.title`) if the tab is in the background to alert the user that they have a new notification. The count that's shown in the tab title should reflect the numbers shown on the notification bubbles above the user's avatar. Prior to the experimental user menu, there were 2 bubbles: a blue one which was removed once the user opened the menu and a green one that indicated high priority notifications and it was only removed when the user read all of their high priority notifications.

In the new experimental user menu, we no longer have the green bubble; everything is now combined (including flags/reviewables) into the blue one with no change to its behavior (i.e. it's removed once the user opens the menu). However, the logic that is responsible for updating the tab title hasn't been updated and still updates the tab title to include the count of the old green bubble. This commit updates the logic for the tab title count so that it only reflects the number on the blue bubble when the experimental user menu is enabled.
2022-08-30 05:37:03 +03:00
..
assets DEV: Use all unread notifications count for the count in document title (#18120) 2022-08-30 05:37:03 +03:00
controllers FIX: LocalJumpError : unexpected return (#18114) 2022-08-27 18:06:56 +02:00
helpers UX: Improve safe-mode usability (#17929) 2022-08-15 15:15:15 +01:00
jobs DEV: Increase timeout when pulling hotlinked image (#18036) 2022-08-23 09:38:10 -04:00
mailers FEATURE: Custom unsubscribe options (#17090) 2022-06-21 15:49:47 -03:00
models DEV: Support inline-hbs compilation in themes (#18112) 2022-08-29 19:53:42 +01:00
serializers PERF: Rely on preload for first_post for TopicBookmarkable (#18066) 2022-08-24 16:01:29 +10:00
services FIX: Do not notify admins watching PM tags (#18103) 2022-08-29 16:11:11 +03:00
views UX: fix styles for the wizard congrats step (#18105) 2022-08-26 12:29:40 -04:00