google / site-kit-wp

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
https://sitekit.withgoogle.com
Apache License 2.0
1.25k stars 291 forks source link

Refactor Setup Error Banner Notification to use the new Notifications datastore #9283

Open zutigrm opened 2 months ago

zutigrm commented 2 months ago

Feature Description

This issue is for the refactoring an "Error" notification in Site Kit. It should refactor the setup error notification https://github.com/google/site-kit-wp/blob/d90ac7abb002c20a2de9d79abfd08b0fc52ccc86/assets/js/components/notifications/ErrorNotifications.js#L110-L122 so that it uses the new datastore infrastructure to register and queue the notification. It should also use newer lighter "layout" and "common" components that replace the bloated BannerNotification component as per the pattern introduced in https://github.com/google/site-kit-wp/issues/9071.


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation Brief

Test Coverage

QA Brief

Changelog entry

eugene-manuilov commented 2 months ago

AC ✔️

eugene-manuilov commented 2 months ago

@zutigrm, could you please add more details as to what should be done there? Also, I think it is worth moving that setup error notification to its own component, no?

zutigrm commented 1 month ago

@eugene-manuilov Thanks, good point, I suggested moving it into new component, and expanded a bit on IB where possible

eugene-manuilov commented 1 month ago

Thanks, IB ✔️