Create AdSense account screen pops up after briefly being blank #5180
Labels
Module: AdSense
Google AdSense module related issues
P1
Medium priority
Type: Bug
Something isn't working
Follow-up to #4758 and #4762: There are two problems from the implementation that I just spotted:
ProgressBar
disappears, the screen remains blank for a split second before showing the UI to create a new account.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
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.ProgressBar
needs to be extended, for example to also wait until the existing tag detection has completed.SetupCreateAccount
,SetupAccountPendingTasks
, andSetupAccountCreateSite
should never returnnull
. 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.Implementation Brief
=== undefined
(eg. "is loading") checks atsite-kit-wp/assets/js/modules/adsense/components/setup/v2/SetupMain.js
Line 255 in 068e497
accountStatus
siteStatus
const existingTag = useSelect( ( select ) => select( MODULES_ADSENSE ).getExistingTag() );
site-kit-wp/assets/js/modules/adsense/components/setup/v2/SetupCreateAccount.js
Lines 72 to 74 in 068e497
site-kit-wp/assets/js/modules/adsense/components/setup/v2/SetupAccountPendingTasks.js
Lines 52 to 54 in 068e497
site-kit-wp/assets/js/modules/adsense/components/setup/v2/SetupAccountCreateSite.js
Lines 56 to 58 in 068e497
Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: