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.25k stars 291 forks source link

Connect Analytics CTA widget shifts up when user clicks on 'Connect CTA' button. #7416

Closed mohitwp closed 12 months ago

mohitwp commented 1 year ago

Bug Description

Steps to reproduce

  1. Pick or tailor KMW metrics.

  2. Disconnect Analytics.

  3. See Connect GA CTA on dashboard.

  4. Either "Scroll the page" further down OR reload the page with a Dashboard notification by appending the following link in the URL to your site: /wp-admin/admin.php?page=googlesitekit-dashboard&notification=authentication_success&slug=adsense

  5. Click on the Connect Analytics button within the Connect GA Key Metric CTA tile.

  6. Observe that the page jumps to the beginning of the Key Metrics widget or the to the top of the page if there is a notification before it then redirects to the Analytics Setup page.

Screenshots

https://github.com/google/site-kit-wp/assets/94359491/9542c6a6-78c9-45ea-ade9-73cd2178889f


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

Acceptance criteria

Implementation Brief

In assets/js/components/KeyMetrics/ConnectModuleCTATile.js:

Test Coverage

QA Brief

Changelog entry

jimmymadon commented 1 year ago

@mohitwp I have retested this on the latest develop branch but cannot reproduce this.

mohitwp commented 1 year ago

@jimmymadon I'm not able to reproduce this issue on latest develop branch. Closing this issue now.

https://github.com/google/site-kit-wp/assets/94359491/ea478bee-2359-44e4-bec4-2f3bed88f710

mohitwp commented 1 year ago

@jimmymadon

I'm able to reproduce this issue on dev. It is happening in two cases-

1) If any dashboard notification is appearing on main dashboard. 2) If a portion of KMW banner is hidden then on clicking on 'Connect Analytics' button banner position will shift to display the whole banner.

See attached screencast and let me know if you require a huddle.

https://github.com/google/site-kit-wp/assets/94359491/9542c6a6-78c9-45ea-ade9-73cd2178889f

techanvil commented 1 year ago

AC :white_check_mark:

tofumatt commented 1 year ago

IB ✅

mohitwp commented 1 year ago

QA Update ✅

https://github.com/google/site-kit-wp/assets/94359491/2cab5e3a-ff25-421a-81a1-9851c69181b9