Avoid showing administration-related banner notifications in view-only dashboard
See original GitHub issueBug Description
The view-only dashboard is currently showing banner notifications related to administration, which should not be shown in such a case of course, since the user can’t act on them. See the below screenshot which shows the Idea Hub CTA banner notification to a contributor user.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- From all banner notifications part of
BannerNotificationsorEntityBannerNotifications, the only notification(s) that should ever be shown in a view-only context should beZeroDataStateNotifications.
Implementation Brief
- In the
BannerNotificationscomponent:- Rely on
useViewOnly(e.g.const viewOnly = useViewOnly()). - Wrap all notifications within the rendered
Fragmentin a check whether! viewOnly, except forZeroDataStateNotifications.
- Rely on
EntityBannerNotificationscan remain unchanged since it only containsZeroDataStateNotificationsanyway.
Test Coverage
- No new tests needed.
QA Brief
- Ensure that only zero-data state notifications display when viewing the view-only Dashboard.
- Ensure that all types of notification continue to display on the authenticated Dashboard.
Changelog entry
- Prevent admin-related notifications from appearing on view-only dashboard.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Disable the Salesforce Notification Banner
Easily remove the Salesforce Notification Banner for all users in your organization.Required Editions and User Permissions Available in: both Salesforce C..
Read more >Notifications - System experiences - Human Interface Guidelines
A notification gives people timely, high-value information they can understand at a glance.
Read more >Create an Advisory Dashboard - VMware Docs
From the top navigation bar, select Administration. · In the left panel, under Settings, select Advisories and click New. · In the description...
Read more >Manage notifications for a team, project, or organization
Open your User settings, and then select Notification settings from the resulting list. Go to personal notifications, current page. · To ...
Read more >Global Banner Notifications - HPE Design System
Global Banner Notifications are system generated alerts that attract user's attention to system ... Only show one banner at a time. ... Things...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi @wpdarren, thanks for pointing this out - in hindsight the issue could have been a bit clearer. Gathering data notifications are also relevant to non-admin users and are included in the
ZeroDataStateNotificationscomponent mentioned in the AC. So, they should still continue to be seen.QA Update: ✅
Verified:
Screenshots