Closed wpdarren closed 6 days ago
IB ✅
Question
@techanvil I've noticed that the banner and widgets still appear on the view-only dashboard, even after both the secondary and primary admins disable the feature. Is this expected behaviour? My understanding is that if the primary admin who shared the modules disables the feature, the banner should no longer appear on the view-only dashboard.
Here’s the sequence I observed:
PASS CASE
Hi @mohitwp, thanks for checking in on this.
The "Display visitor groups in the dashboard" setting is per-user, not a global setting, so the behaviour you are seeing is as expected.
In fact, at the moment it's not possible for a view-only user to toggle the setting at all, as they don't have access to the Settings screen, this is a known shortcoming in the UX that we will address at some point but it's as expected for the time being.
Bug Description
Created from bug bash. Asana ticket can be found here.
As a second admin, banners still show even after disabling the feature.
Steps to reproduce
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
AudienceSegmentationIntroductoryOverlayNotification
component, retrieve theisAudienceSegmentationWidgetHidden
value. Add a check forisAudienceSegmentationWidgetHidden === false
to the condition that determines if the notification should be displayed:https://github.com/google/site-kit-wp/blob/dfcc37f37c0672470309e63f6f0d02b7598e4e86/assets/js/modules/analytics-4/components/audience-segmentation/dashboard/AudienceSegmentationIntroductoryOverlayNotification.js#L110-L113
Test Coverage
QA Brief
Note that, as per the AC, the Setup Success Banner will be addressed separately via #9482.
Changelog entry