-
Notifications
You must be signed in to change notification settings - Fork 21
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
2504: Add skip paid ads confirmation modal. #2563
2504: Add skip paid ads confirmation modal. #2563
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feature/2459-campaign-creation-flow #2563 +/- ##
========================================================================
- Coverage 65.0% 63.8% -1.2%
========================================================================
Files 475 326 -149
Lines 17900 5089 -12811
Branches 0 1232 +1232
========================================================================
- Hits 11640 3247 -8393
+ Misses 6260 1674 -4586
- Partials 0 168 +168
Flags with carried forward coverage won't be shown. Click here to find out more. |
? finishOnboardingSetup | ||
: handleShowSkipPaidAdsConfirmationModal | ||
} | ||
// TODO: might want to review eventName and eventProps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joemcgill Shall we keep those props as is?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. I think we'll want to move that eventName to the new "Complete setup" button in the AYS modal, but the event name for this will likely need an update. Leave the TODO: comment for now and we can address that before the feature is merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* Triggered when the skip button is clicked | ||
* // TODO: to review | ||
* | ||
* @event gla_skip_paid_ads_modal_confirm_button_click |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joemcgill The event name TBC.
<AppButton | ||
key="yes" | ||
// TODO: confirm the eventName | ||
eventName="gla_skip_paid_ads_modal_confirm_button_click" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joemcgill If you can confirm please :)
Link: ( | ||
<AppDocumentationLink | ||
href="https://support.google.com/google-ads/answer/10724817" | ||
// TODO: review context and linkId values |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joemcgill Same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The functionality is working correctly when the "Skip..." button you've targeted is clicked, but this needs to be updated so this applies to all "Skip" buttons. Left feedback inline.
showPaidAdsSetup | ||
? finishOnboardingSetup | ||
: handleShowSkipPaidAdsConfirmationModal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, it looks like there was confusion here. We're removing the initial "Skip this step for now" button from the PaidAdsFeaturesSection
in #2500. This AYS modal should apply to any skip button (although there will only be the "Skip paid ads creation" button once that PR is merged).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I've added TODOs to review the code once #2500 has been merged.
? finishOnboardingSetup | ||
: handleShowSkipPaidAdsConfirmationModal | ||
} | ||
// TODO: might want to review eventName and eventProps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. I think we'll want to move that eventName to the new "Complete setup" button in the AYS modal, but the event name for this will likely need an update. Leave the TODO: comment for now and we can address that before the feature is merged.
title={ __( 'Skip setting up ads?', 'google-listings-and-ads' ) } | ||
buttons={ [ | ||
<AppButton key="no" isSecondary onClick={ onRequestClose }> | ||
{ __( 'No', 'google-listings-and-ads' ) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reference the Modal Content in the issue description, these buttons should "Cancel" and "Complete setup". I've updated the A/C to make that more clear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it's working well. I'm not 100% confident in the way events need to be recorded, so we can confirm with @eason9487 and either update this PR after his review or spin up a follow-up issue to update all event tracking code for #2459.
Suggested some QA feedback on the connected issue here: #2504 (comment) Next Step: |
Thanks @ankitguptaindia I've left a response to your feedback in #2504 (comment). @asvinb Can you make the suggested text change to the modal button? |
Sure thing @joemcgill . Label updated @ankitguptaindia . Can you kindly check? |
QA/Test Report- ✅Testing Environment -
Test Results - The changes have been implemented as described. A confirmation modal will appear when the user clicks on ski ads. If the user clicks 'Cancel,' they remain on the same page. If the user clicks 'Complete setup without setting up ads,' the onboarding flow continues. Functional Demo / Screencast - Recording.811.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the work.
Left some suggestions about reducing the complexity. Besides, the e2e testing couldn't pass - https://github.com/woocommerce/google-listings-and-ads/actions/runs/10697346716/job/29654336938
js/src/setup-mc/setup-stepper/setup-paid-ads/skip-paid-ads-confirmation-modal.js
Outdated
Show resolved
Hide resolved
js/src/setup-mc/setup-stepper/setup-paid-ads/skip-paid-ads-confirmation-modal.js
Outdated
Show resolved
Hide resolved
js/src/setup-mc/setup-stepper/setup-paid-ads/skip-paid-ads-confirmation-modal.js
Outdated
Show resolved
Hide resolved
js/src/setup-mc/setup-stepper/setup-paid-ads/skip-paid-ads-confirmation-modal.js
Outdated
Show resolved
Hide resolved
js/src/setup-mc/setup-stepper/setup-paid-ads/skip-paid-ads-confirmation-modal.js
Outdated
Show resolved
Hide resolved
js/src/setup-mc/setup-stepper/setup-paid-ads/skip-paid-ads-confirmation-modal.js
Outdated
Show resolved
Hide resolved
js/src/setup-mc/setup-stepper/setup-paid-ads/skip-paid-ads-confirmation-modal.js
Show resolved
Hide resolved
js/src/setup-mc/setup-stepper/setup-paid-ads/skip-paid-ads-confirmation-modal.js
Outdated
Show resolved
Hide resolved
Thanks for the review @eason9487 . I fixed the failing E2E test which was after we changed the button label in the modal. Should be ok now: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reducing the complexity. LGTM.
Left a few minor things to be tweaked and I believe it should not need another round of code reviews after adjusting them.
@eason9487 PR has been updated and ready for your final 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
057ff88
into
feature/2459-campaign-creation-flow
Changes proposed in this Pull Request:
Closes #2504
Replace this with a good description of your changes & reasoning.
Screenshots:
Detailed test instructions:
Additional details:
Changelog entry