When clicking 'See more services,' the loader does not appear, and the user is taken to the Settings > Services tab after a few seconds. In the latest environment, the loader does appear. We have increased the speed, but the loader should be displayed as it is in the latest environment.
Steps to reproduce
Set up site kit.
Click on 'See more services' CTA of gathering data notification on main dashboard.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
When a CTA is clicked for any refactored banner notification that dismisses the notification and takes the user to a different page, then:
the notification should not be immediately dismissed and removed from the page until the navigation to the new page is complete
the CTA button should be in a loading state (spinner icon) during this time
This currently only applies to the GatheringDataNotification component - however, functionality should be introduced to cover similar behaviour for any other notification that will be refactored using the new infrastructure.
Implementation Brief
Note: Since the Notifications API is implemented, the dismissal will also remove notification from getQueuedNotifications selector which removes notification immediately. Before this was handled in BannerNotification component, which would determine if notification should be hidden using class property, which would account for isNavigatingToCTALink. With new API, this happens before isNavigatingToCTALink is signalled opposite to this being checked during the render.
CTALink component is used only for notification that have CTA leading to another page/website so this will resolve issue for other notifications with same behaviour in the future when they are refactored
Test Coverage
Update assets/js/googlesitekit/notifications/datastore/notifications.test.js, by adding test case to verify that dismissNotification does not remove notification from queue when skipHidingFromQueue option is passed
Bug Description
When clicking 'See more services,' the loader does not appear, and the user is taken to the Settings > Services tab after a few seconds. In the latest environment, the loader does appear. We have increased the speed, but the loader should be displayed as it is in the latest environment.
Steps to reproduce
Screenshots
https://github.com/user-attachments/assets/bf94978c-1406-4a13-bd3f-5e50c800a837
Additional Context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
GatheringDataNotification
component - however, functionality should be introduced to cover similar behaviour for any other notification that will be refactored using the new infrastructure.Implementation Brief
Note: Since the Notifications API is implemented, the dismissal will also remove notification from
getQueuedNotifications
selector which removes notification immediately. Before this was handled inBannerNotification
component, which would determine if notification should be hidden using class property, which would account forisNavigatingToCTALink
. With new API, this happens beforeisNavigatingToCTALink
is signalled opposite to this being checked during the render.dismissNotification
action https://github.com/google/site-kit-wp/blob/119747b9e3be9bb8310faec37b7ea41c6b4ea89f/assets/js/googlesitekit/notifications/datastore/notifications.js#L145options
object -skipHidingFromQueue
for example.options.skipHidingFromQueue
is present.assets/js/googlesitekit/notifications/components/common/CTALink.js
skipHidingFromQueue
optionCTALink
component is used only for notification that have CTA leading to another page/website so this will resolve issue for other notifications with same behaviour in the future when they are refactoredTest Coverage
assets/js/googlesitekit/notifications/datastore/notifications.test.js
, by adding test case to verify thatdismissNotification
does not remove notification from queue whenskipHidingFromQueue
option is passedQA Brief
Changelog entry