-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid showing administration-related banner notifications in view-only dashboard #5295
Comments
cc @aaemnnosttv @wpdarren for awareness |
IB ✅ |
@techanvil would you please add a QA brief? |
Thanks for pointing this out @aaemnnosttv - I had added it in the Test Coverage section 🤦. Have moved to QAB, cheers. |
QA Update:
|
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 |
Bug 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
BannerNotifications
orEntityBannerNotifications
, the only notification(s) that should ever be shown in a view-only context should beZeroDataStateNotifications
.Implementation Brief
BannerNotifications
component:useViewOnly
(e.g.const viewOnly = useViewOnly()
).Fragment
in a check whether! viewOnly
, except forZeroDataStateNotifications
.EntityBannerNotifications
can remain unchanged since it only containsZeroDataStateNotifications
anyway.Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: