-
Notifications
You must be signed in to change notification settings - Fork 297
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
Enhancement/9071 Refactor Banner Notification Component #9171
Enhancement/9071 Refactor Banner Notification Component #9171
Conversation
Build files for 163da6a have been deleted. |
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good to me. Left one tiny comment.
assets/js/googlesitekit/notifications/components/common/Dismiss.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chiming in with just a few observations but leaving the review to @eugene-manuilov
<Grid> | ||
<Row>{ children }</Row> | ||
</Grid> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's delegate this to the layout components. As a general rule, we should avoid splitting grid components between different components. This also gives the most flexibility to the notification and avoids the need to later add props for passing to the grid at this level.
<h3 className="googlesitekit-heading-2 googlesitekit-publisher-win__title"> | ||
{ title } | ||
</h3> | ||
|
||
<div className="googlesitekit-publisher-win__desc"> | ||
<p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about we extract some reusable components here? Maybe NotificationTitle
and NotificationDescription
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, two last comments from me and it should be good to go.
assets/js/googlesitekit/notifications/components/Notification/ViewedStateObserver.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@jimmymadon, not sure why but VRT images check still doesn't work after I have restarted it 3 times. Can you check what is going on with it? |
I've got 25 test failures on my local that are unrelated to this PR. Should we create a separate issue to fix those? |
Hm... I have just merged #9193 and its VRT task went well: https://github.com/google/site-kit-wp/actions/runs/10401785631/job/28808369192. Not sure why it doesn't work here... Perhaps ask @zutigrm to help you troubleshoot that? |
@eugene-manuilov After merging develop one more time, the VRTs all seem to pass now. But I'm pretty sure they are still unstable and @zutigrm has created a new issue as per this thread to investigate the old fix further. |
Summary
Addresses issue:
GatheringDataNotification
to use a newly refactored version of theBannerNotification
component. #9071Relevant technical choices
PR Author Checklist
Do not alter or remove anything below. The following sections will be managed by moderators only.
Code Reviewer Checklist
Merge Reviewer Checklist