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

Create AdSense account screen pops up after briefly being blank #5180

Closed
felixarntz opened this issue May 5, 2022 · 2 comments
Closed

Create AdSense account screen pops up after briefly being blank #5180

felixarntz opened this issue May 5, 2022 · 2 comments
Labels
Module: AdSense Google AdSense module related issues P1 Medium priority Type: Bug Something isn't working

Comments

@felixarntz
Copy link
Member

felixarntz commented May 5, 2022

Follow-up to #4758 and #4762: There are two problems from the implementation that I just spotted:


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

Acceptance criteria

  • The AdSense V2 SetupMain component should ensure that any data needed for its sub-components to render at all is loaded before rendering any of the sub-components.
    • In other words, the condition to show the ProgressBar needs to be extended, for example to also wait until the existing tag detection has completed.
  • The AdSense V2 components SetupCreateAccount, SetupAccountPendingTasks, and SetupAccountCreateSite should never return null. Instead, they should be adjusted so that only the UI pieces that require the specific data to be loaded are not rendered until they are loaded.
  • The Storybook story in https://google.github.io/site-kit-wp/storybook/develop/?path=/story/modules-adsense-components-setup-v2-setupmain--select-account should be fixed to display the actual UI instead of a loading state.

Implementation Brief

Test Coverage

  • No new tests are needed, but the Storybook story in the ACs should be fixed.

QA Brief

  • Verify that when you have no account, there are no blank screens shown for a short period of time after the progress bar disappears.

Changelog entry

  • Fix AdSense error message when user does not have an AdSense account.
@felixarntz felixarntz added Type: Bug Something isn't working P1 Medium priority Module: AdSense Google AdSense module related issues labels May 5, 2022
@felixarntz felixarntz assigned felixarntz and unassigned felixarntz May 5, 2022
@tofumatt tofumatt assigned tofumatt and unassigned tofumatt May 10, 2022
@felixarntz
Copy link
Member Author

IB ✅

@eugene-manuilov eugene-manuilov self-assigned this May 10, 2022
@eugene-manuilov eugene-manuilov removed their assignment May 11, 2022
@tofumatt tofumatt assigned tofumatt and unassigned tofumatt May 11, 2022
@wpdarren wpdarren self-assigned this May 12, 2022
@wpdarren
Copy link
Collaborator

QA Update: ✅

Verified:

  • The Storybook story loads with as expected.
  • When you have no account, there are no blank screens shown for a short period of time after the progress bar disappears.
ads-1.mp4

@wpdarren wpdarren removed their assignment May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: AdSense Google AdSense module related issues P1 Medium priority Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants