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.22k stars 279 forks source link

Show a small overlay/callout to AdSense + GA4 users who have linked their account and now have data available to see in a widget #8237

Closed tofumatt closed 2 months ago

tofumatt commented 4 months ago

Feature Description

Similar in style to the callout added for users who have not linked their accounts (see #8236), we should have a callout/notification for users when there is data available for their accounts after they have been linked. Note that the style is different to many "post-connection" notifications, and instead uses a small callout/overlay.

When clicked, the "Show me" CTA button should scroll the user to the widget that displays the new info.

Figma design: https://www.figma.com/file/7ba0pj1rLuvLvJhy3NiHOj/AdSense?type=design&node-id=10-5478&mode=design&t=lwcDSKVER9BoOVmZ-0

Screenshot 2024-02-19 at 23 35 03


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

bethanylang commented 4 months ago

@tofumatt @marrrmarrr Some comment as #8236, should we add a "The" in front of "top earning content" here?

tofumatt commented 4 months ago

Assigning this a rough estimate of 15 just for planning purposes, but as soon as someone can take on the IB it might need slight adjustment.

tofumatt commented 4 months ago

Marking this as blocked by #8236, because it contains the logic to deal with showing these notifications in general…

bethanylang commented 4 months ago

Thanks @tofumatt! I've added a Sp Wk 2 label here and a Sp Wk 1 label to #8237, since these are both planned for Sprint 122.

eugene-manuilov commented 4 months ago

IB ✔️

mohitwp commented 2 months ago

QA Update ❌

@zutigrm

Issue

I noticed clicking on Primary CTA not scrolling down to Monetization section as mentioned in AC.

The primary CTA should dismiss the overlay (so it does not appear again) and scroll the user down to the Top Earning Pages widget in the "Monetization" section of the Site Kit Dashboard.

Admin Main Dashboard https://github.com/google/site-kit-wp/assets/94359491/40208246-73c3-4f64-b995-199890e7fb6d View only Dashboard https://github.com/google/site-kit-wp/assets/94359491/57a304f2-c12f-4871-8503-0cb401ea2ba6

Q-2) I noticed that overlay is showing for all admin and on all view only dashboard. Is this expected ?

![image](https://github.com/google/site-kit-wp/assets/94359491/cf0bc104-47b2-4df3-a5d6-3a70806738b3)

PASS CASES

![image](https://github.com/google/site-kit-wp/assets/94359491/8a388460-04fd-45b4-8a52-abccf5870e27) https://github.com/google/site-kit-wp/assets/94359491/9d403ca9-c01d-4b11-85c6-6c6741d09102
>
kuasha420 commented 2 months ago

Thanks @mohitwp ! I've fixed the scrolling on a follow up PR. And yes, it's fine to appear on second admins and view only dashboard provided that the Second Admin has access to both Analytics and Adsense or both modules are shared.

Sending back to CR.

mohitwp commented 2 months ago

QA Update ✅

https://github.com/google/site-kit-wp/assets/94359491/54a61ecf-eabe-4470-878f-93e909c7a95a https://github.com/google/site-kit-wp/assets/94359491/9babedcb-1ea4-4b4d-92ac-13314d648932 ![image](https://github.com/google/site-kit-wp/assets/94359491/8a388460-04fd-45b4-8a52-abccf5870e27) https://github.com/google/site-kit-wp/assets/94359491/9d403ca9-c01d-4b11-85c6-6c6741d09102