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.23k stars 283 forks source link

Refactor SetupErrorNotification to use the new Notifications datastore #9286

Open zutigrm opened 2 weeks ago

zutigrm commented 2 weeks ago

Feature Description

This issue is the first issue to refactor an "Error" notification in Site Kit. It should refactor the SetupErrorNotification 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 #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 weeks ago

AC ✔️

eugene-manuilov commented 1 week ago

@zutigrm, could you please expand IB to provide more details what exactly needs to be moved to the checkRequirements function, what should be deleted from the component, etc.

zutigrm commented 1 week ago

@eugene-manuilov thanks. It is relatively small and straightforward component, I expanded a bit where possible.

eugene-manuilov commented 1 week ago

Thanks, @zutigrm. IB ✔️