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 287 forks source link

Expand the logic of the `ACRSubtleNotification` component for existing KMW users that already have ACR tiles set up #9373

Open zutigrm opened 3 weeks ago

zutigrm commented 3 weeks ago

Feature Description

The ACRSubtleNotifciation component logic should be expanded so it surfaces in the dashboard within key metrics widget area for the users who have setup KMW, either manually or using tailored metrics, once new ACR events are detected. This scenario covers only the use case, where ACR metrics were already detected initially, and now new events were detected. CTA should open selection panel with new metrics highlighted with new badge

FIgma design can be seen here

Refer to the Subtle banner notification for detected events and New Events Detection Following Initial Events Detection sections of the design doc


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

Acceptance criteria

Implementation Brief

Test Coverage

QA Brief

Note: Since this issue interacts with existing conditions and include new ones, it will be good to test previous variations (9371 and 9372)for regression during tests for this one

Changelog entry

10upsimon commented 2 weeks ago

@zutigrm the AC says the following:

And then goes on to say the following for clicking the primary CTA:

However, the selection panel would not be applicable for tailored metric users. Please expand on this a little for tailored vs manual setups, thanks!

zutigrm commented 2 weeks ago

@10upsimon Yes the explained steps are correct and expected behaviour. After new events are detected following initial detection, this banner is shown with same CTA regardless of how KMW was setup, it will open the selection panel showing to list the "New" events. CTA which will automatically add the tailored metrics for users who previously set up KMW using tailored metrics, happens only on initial detection, afterwards it is only one banner variation

10upsimon commented 2 weeks ago

@zutigrm AC ✅ thanks for clarifying

zutigrm commented 1 week ago

I increased estimate for a point since this issue will require interacting with existing conditionals for 2 previous banner variations, and during testing it should be monitored that this variation does not cause regression to the 2 other variations previously implemented

eugene-manuilov commented 1 day ago

@zutigrm, we need to update IB to account for changes in #9371. Now we need to adjust logic in the widget component instead of in the notification.

zutigrm commented 11 hours ago

@eugene-manuilov thanks, IB updated