-
Notifications
You must be signed in to change notification settings - Fork 293
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
Implement the “no audiences” banner error state #8190
Comments
@techanvil it looks like this should be added to the design doc, right? |
@ivonac4 yup this has been added to the design doc, I've created an additional issue in for the component and added that as a dependency here. This issue is now ready for AC. |
I've moved this back to Backlog as the final in-progress changes to the design doc, relating to audience caching, will probably affect the AC for this one. I've also unassigned @jimmymadon from this one due to his break. |
The audience caching aspect of the design doc has been sufficiently finalised, and I've moved this back to AC. |
Hey @kuasha420, just letting you know I've picked this one up to add the AC. |
Hi @techanvil, the IB looks good overall. However, in #8130 (related PR #9219) we added a Cheers. |
Thanks @kuasha420, that's a good point. #8130 has some related feedback, so I'll hold off until it's been merged and update the IB for this issue accordingly. |
With 8130 merged, I've updated the IB for this issue. Back to you for another pass, @kuasha420. |
Thanks @techanvil! That simplifies a lot 😄 IB ✔️ |
QA Update ✅
Insufficient Permission error banner Recording.1436.mp4Error banner with Retry Button Recording.1435.mp4 |
Feature Description
Implement the error handling for the "no audiences" banner, showing the Full Width Error Banner when there is an error.
See no audiences banner > error state in the design doc.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
Note that we should ensure this IB is drafted after that of its dependency, #8147.
AudienceTilesWidget
, retrieve thesyncAvailableAudiences
error viagetErrorForAction()
.AudienceSegmentationErrorWidget
, passing the error via theerrors
prop.showRetryButton
andonRetry()
props.onRetry()
callback, clear thesyncAvailableAudiences
error and dispatch thesyncAvailableAudiences()
action.AudienceSelectionPanel/ErrorNotice
for similar logic regarding thesyncAvailableAudiences
error.Test Coverage
AudienceTilesWidget
.QA Brief
Enable audience segmentation and enable audience groups so that audiences are visible in audience tile area.
Install Time Travel extension in chrome.
Using the Tweak Chrome extension, create a rule as follows.
.*/wp-json/google-site-kit/v1/modules/analytics-4/data/sync-audiences.*
POST
Set the time in Time travel extension to couple of hours later in the future. Reload the page.
There should be a the error banner visible in audience tile area with retry button.
Change the payload in tweak to following and refresh the page. This time, there should be no retry button, but banner should be visible.
Changelog entry
The text was updated successfully, but these errors were encountered: