Updates to the Ads Module <SetupMainPAX>
Component to Accommodate New Layout
#10193
Labels
javascript
Pull requests that update Javascript code
Module: Ads
Google Ads module related issues
P0
High priority
Team S
Issues for Squad 1
Type: Enhancement
Improvement of an existing feature
Feature Description
Part of the WooCommerce Redirect epic involves an update to the Ads Module setup screen in order to accommodate for both manual Ads ID setup, as well as account creation via PAX. This will, however, only apply to users who currently have the
adsPAX
feature flag applied. For users without said feature flag, the existing Ads module setup screen and flow will continue to remain. The screenshot below shows an example of this updated layout:Figma designs can be found here.
The existing
<SetupMainPAX>
component contains a large amount of these elements already, and will simply need updates to accommodate such a layout. Functionality wise, the component should be able to handle said layout change without any challenges.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
adsPAX
feature flag users are no longer sent straight into the PAX setup flow automatically.<setupMain>
component, where upon successful saving of the ID, Ads is considered set up and connected.Implementation Brief
assets/js/modules/ads/components/setup/SetupFormPAX.js
assets/js/modules/ads/components/setup/SetupForm.js
as a starting point and make few modifications:Complete manual setup
copy instead of default oneSetupEnhancedConversionTrackingNotice
component, it should be shown on the bottom of the layout bellow both forms insteadform
tag withdiv
since we will have two on the same page, it is better to avoid unintentional submissions, and invoke thesubmitForm
callback asonClick
prop of spinner button componentassets/js/modules/ads/components/setup/SetupMainPAX.js
site-kit-wp/assets/js/modules/ads/components/setup/SetupMainPAX.js
Lines 162 to 166 in 42917df
Grid
andCell
components to match the layout in referenced Figma designSetupForm
from the render (and replace it withSetupFormPAX
), to go to the left side of the layout, and adapt the content above the buttonPAXEmbeddedApp
should be preserved, and showing whenPAX_SETUP_STEP.LAUNCH
is passed from create account action, but the rendering should take over the whole screen - meaning replace the both sides of the setups in the grid layout, you can use newCell
with12
columns to place it within itStart setup wizard
SetupFormPAX
component, and Include additional content from design above it.SetupEnhancedConversionTrackingNotice
should be added at the bottom of the new layout wrapperisAdsPaxEnabled
and it's usage across the component since we are already conditionally loading this component only when feature flag is enabledsite-kit-wp/assets/js/modules/ads/index.js
Line 57 in aee2f88
WooCommerceReidrectModal
and using it'sdialogActive
prop control the modal opening. It should open when result of the check from this commit (that was excluded from that PR), istrue
,ADS_WOOCOMMERCE_REDIRECT_MODAL_DISMISS_KEY
is not in dismissed items (isItemDismissed
selector fromCORE_USER
store), andStart setup wizard
CTA is clickedTest Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: