Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Top content” OAuth flow UX experience #9350

Open
2 tasks done
kelvinballoo opened this issue Sep 13, 2024 · 1 comment
Open
2 tasks done

"Top content” OAuth flow UX experience #9350

kelvinballoo opened this issue Sep 13, 2024 · 1 comment
Labels
Module: Analytics Google Analytics module related issues P1 Medium priority Team M Issues for Squad 2 Type: Enhancement Improvement of an existing feature

Comments

@kelvinballoo
Copy link
Collaborator

kelvinballoo commented Sep 13, 2024

Feature Description

This came up when testing #8154
The QA brief for that issue can be used as steps to reproduce.

ITEM 1:
After I click cancel, the OAuth error variant of the Error Modal does not display straightaway. It will not load until I scroll down to the tiles section.
Refer to as from 1 minute mark in the video in the Details section.

wait.mov

I think we possibly need to anchor the scroll to that tile section so that the error modal appears straightaway.

ITEM 2:

This is linked to number 1. When I cancelled the flow, I go to the page where I see a 'Success' message. Again, you can refer to the 1 minute mark in the video above.
This is due to the success message initially but it just feels weird but maybe this will not be a concern if we auto scroll to the tiles section, if we decide to fix it that way for item 1.


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

Acceptance criteria

  • If an OAuth error occurs when attempting to create the custom dimension from the "Top content" metric area in an audience tile, upon returning to Site Kit:
    • The page should scroll down to the Audiences Widget Area.
    • The Error Modal for the OAuth error should appear.

Implementation Brief

Test Coverage

  • Update/fix any failing tests.

QA Brief

  • Setup your audiences then set up a missing required scope error like so:
    • Remove the ...additional_auth_scopes row from your wp_usermeta
    • Archive the WordPress Post Type custom dimension from your Analytics property
    • Sync the custom dimensions by running googlesitekit.data.dispatch( 'modules/analytics-4' ).fetchSyncAvailableCustomDimensions() in the developer console
  • After refreshing you should now see the "No data to show" error state in the Top content section of the Audience tiles.
  • Click the "Update" button to start the OAuth flow
  • Select your user but click "Cancel" to simulate an OAuth error
  • When you return to the plugin the app should scroll down to the Visitor Groups section and you should immediately see the error modal
    Note: these steps can be seen in the video in this ticket description above.

Changelog entry

@techanvil techanvil self-assigned this Sep 19, 2024
@techanvil techanvil added P1 Medium priority Type: Enhancement Improvement of an existing feature Module: Analytics Google Analytics module related issues labels Sep 19, 2024
@techanvil techanvil removed their assignment Sep 19, 2024
@nfmohit nfmohit self-assigned this Sep 19, 2024
@nfmohit
Copy link
Collaborator

nfmohit commented Sep 19, 2024

IB ✅

@nfmohit nfmohit removed their assignment Sep 19, 2024
@ivonac4 ivonac4 added the Team M Issues for Squad 2 label Sep 20, 2024
@benbowler benbowler self-assigned this Sep 23, 2024
@benbowler benbowler removed their assignment Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: Analytics Google Analytics module related issues P1 Medium priority Team M Issues for Squad 2 Type: Enhancement Improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

5 participants