Closed jimmymadon closed 1 week ago
Moving this to the backlog until #8976, which is marked as blocking this issue, is completed. That way we can mirror the approach used in #8976 for other migrations/refactoring.
AC ✔️
- In
assets/js/googlesitekit/notifications/datastore/notifications.js
:
- Within the
getQueuedNotifications
resolver, fetch thenotification
andslug
usinggetQueryArg()
and pass these to thecheckRequirements()
callback function (alongwithviewContext
).
@jimmymadon, I think we shouldn't put it into the getQueuedNotifications
resolver because it is very specific thing for just one notifications (or few notifications). Let's pull that info in the checkRequirements function of the notification itself.
Also, no need to use checkboxes for every subitem in IB, just use it for top level items or for subitems if we have 3+ levels of nested items. Finally, the 19
estimates seems a bit big, do we really need a half of the week to implement that? Seems like an over estimate because we need to refactor the existing component, not to create it from scratch.
IB ✔️
UnsatisfiedScopesAlertGTE
alert is showing.@jimmymadon I noticed that when the user clicks on 'Show me,' the page scrolls down to the Campaign Performance widget, but the scroll position is slightly off. Should this issue be fixed in a follow-up, or should I create a separate ticket for it?
PASS CASES
@jimmymadon I noticed that when the user clicks on 'Show me,' the page scrolls down to the Campaign Performance widget, but the scroll position is slightly off. Should this issue be fixed in a follow-up, or should I create a separate ticket for it?
That would be separate/unrelated to the notification refactoring done here, can you please file a separate issue for that? 🙏🏻
Note : There is a issue with zero data notification so it do not appear immediately once Ads pax success notice gets dismiss.
Feature Description
This is the second issue that refactors another "subtle notifications" in the plugin as part of Phase 1 of the Banner Notifications Refactoring epic. It should refactor the
PAXSetupSuccessSubtleNotification
so that it uses the new datastore infrastructure to register and queue the notification. It should also incorporate the newly introducedSubtleNotification
component as a new "layout"Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
PAXSetupSuccessSubtleNotification
component should be refactored so that it is registered and rendered (queued) using the newcore/notifications
datastore.<SubtleNotifications>
) but only via the genericgetQueuedNotifications
selector.SubtleNotification
component and refactor this reusable component as a new "layout" within the new notifications framework.Implementation Brief
assets/js/modules/analytics-4/components/SubtleNotification.js
intoassets/js/googlesitekit/notifications/components/layout/
.assets/js/modules/ads/components/notifications/PAXSetupSuccessSubtleNotification.js
assets/js/components/notifications/GatheringDataNotification.js
as an example here.id
andNotification
Notification
component passed as the prop.SubtleNotification
layout component like it already is being used.assets/js/googlesitekit/notifications/components/common/Dismiss.js
component if possible) for theGot it
button which should allow the passing of a dismissal callback but also do the GA event tracking similar to the existing<Dismiss>
component.queryArgs
as mentioned below.assets/js/modules/ads/index.js
assets/js/googlesitekit/notifications/register-defaults.js
file.checkRequirements
, fetch thenotification
andslug
usinggetQueryArg()
to check if this notification should be queued.10
as these "setup success" notifications should always be queued first and won't ever be rendered simultaneously with other setup success notifications based on thequeryArgs
.assets/js/googlesitekit-modules-ads.js
:registerNotifications()
function that was just exported above in the module.assets/js/components/notifications/SubtleNotifications.js
:<Notifications>
component passing the view context and areaSlug asNOTIFICATION_AREAS.BANNERS_BELOW_NAV
.PAXSetupSuccessSubtleNotification
.Test Coverage
QA Brief
/wp-admin/admin.php?page=googlesitekit-dashboard¬ification=pax_setup_success_notification&slug=ads
Changelog entry