Closed aaemnnosttv closed 11 months ago
@marrrmarrr let me know if this sounds like what we discussed today or if there are any changes you would like to make to the AC 👍
@aaemnnosttv thanks for creating this issue! The only comment I have is if we need to add an extra instruction for when two higher-severity alerts are somehow triggered by the same site (you mentioned there's 3-4 of them altogether, not sure if it would be ever possible that the same site has two?) If that is possible, how about we show the one which was triggered earlier? And once the user resolves that one, then show the next one.
@marrrmarrr it is possible multiple notifications/alerts could be triggered simultaneously which is somewhat what this issue is about. Currently we have a rather simple way of limiting the display which just shows the first one. When that one is dismissed/actioned, it will disappear causing the next one to appear if there is one. In this case, priority is set ahead of time in the order the elements are rendered, which is not the same as which is triggered first. So currently it is actually possible for a higher priority alert to appear after you see another notice if there was some amount of latency which prevented it from "knowing" that it should be shown or not until later in the page load. This is pretty rare but possible. For the most part, everything we need to determine if a notification should be shown or not is available nearly right away so it's rarely an issue.
Solving this requires rearchitecting the way we handle notifications (which will need to be done for the new Notifications work anyways) so it's out of scope here, but is something we can work on in preparation for the other notifications-related work we'll have.
Moved forward after discussing together earlier today 👍
IB ✔️
Verified:
Feature Description
In #4689, we updated our handling of notifications to prevent showing more than one notice in the header at a time, even when multiple are present. However, this only applies to each group of notifications rather than all, and since there are separate placements for persistent alerts and notices, there can be up to two notices showing simultaneously.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
assets/js/components/notifications/BannerNotifications.js
, to prioritize certain alerts.AdSenseAlerts
andModuleRecoveryAlert
to appear above other notifications in thereturn
statement. This ensures these alerts always have precedence.ActivationBanner
immediately after the aforementioned alerts, so critical notifications (like setup errors) retain higher visibility.assets/js/components/Header.js
<ErrorNotifications />
component to share the same container as other alerts/notifications. However, it should display above thesubHeader
that renders the remaining alerts/notifications, ensuring its priority.error -> alert -> notification
Test Coverage
header
, orassets/js/components/notifications/ErrorNotifications.test.js
), confirming priority - error -> alert -> notificationQA Brief
notification=authentication_success
adSense
alert over the notification.additional permissions
error, which should take precedence over previous notification and alertChangelog entry