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

2500: Show paid campaign setup fields during onboarding flow #2533

Merged

Conversation

asvinb
Copy link
Collaborator

@asvinb asvinb commented Aug 16, 2024

Changes proposed in this Pull Request:

Closes #2500 .

  • Show all the setup fields by default.
  • Removed all associated tests and helper files.

Screenshots:

image

Detailed test instructions:

  1. Go through the onboarding flow again.
  2. On the fourth step, i.e Create a campaign, the fields to create a campaign should be shown by default.
  3. The "Skip this step for now" and "Create campaign" buttons should not be present.

Additional details:

Changelog entry

Tweak - Show campaign setup fields immediately during onboarding.

@asvinb asvinb requested a review from joemcgill August 16, 2024 13:37
Copy link

codecov bot commented Aug 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.8%. Comparing base (5ec87d6) to head (068f4c4).
Report is 12 commits behind head on feature/2459-campaign-creation-flow.

Additional details and impacted files

Impacted file tree graph

@@                         Coverage Diff                         @@
##           feature/2459-campaign-creation-flow   #2533   +/-   ##
===================================================================
  Coverage                                 63.8%   63.8%           
===================================================================
  Files                                      326     326           
  Lines                                     5089    5089           
  Branches                                  1232    1232           
===================================================================
  Hits                                      3247    3247           
  Misses                                    1674    1674           
  Partials                                   168     168           
Flag Coverage Δ
js-unit-tests 63.8% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Collaborator

@joemcgill joemcgill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asvinb this is looking pretty good. Left a few suggestions.

} );
}
merge( eventProps, {
opened_paid_ads_setup: 'yes',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that we're removing the possibility of skipping without opening the ads setup, this event prop should be removed from the whole component and removed from the inline docs for gla_onboarding_complete_button_click above.

I think we could also avoid the need to merge event props here and just set them directly when eventProps is initialized above.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch and makes sense @joemcgill . I've updated the PR. Can you kindly take a look again please?

tests/e2e/specs/setup-mc/step-4-complete-campaign.test.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@joemcgill joemcgill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates. Sorry I missed that there were already separate tests for the second "Skip paid ads creation" button, your previous changes look correct.

@joemcgill joemcgill changed the base branch from develop to feature/2459-campaign-creation-flow August 22, 2024 14:28
@ankitguptaindia
Copy link
Member

ankitguptaindia commented Aug 22, 2024

QA/Test Report-

Testing Environment -

  • WordPress: 6.6.1
  • Theme active on store: Storefront Version: 4.6.0
  • WooCommerce - Version 9.2.1
  • PHP: 8.3
  • Web Server: Nginx
  • Browser: Chrome - Version 127
  • OS: macOS Sonoma 14.6.1

Steps to Test- Please follow the steps mentioned in PR description and watch below attached screencast for all screens.

Test Results - Tested the changes in onboarding flow, and all scenarios are functioning as expected.

  • UI Appearance: The interface displays as expected. ✅
  • Console Errors: No errors were found in the browser console. ✅
  • PHP Logs: The logs are clean, with no errors reported. ✅
  • Onboarding Flow: Merchants can successfully complete the onboarding flow with new changes. ✅
  • Onboarding Flow Merchants have the option to Skip paid ads creation

Functional Demo / Screencast -

Recording.803.mp4

Next Step- Ready to Code Review(Woo)

Plugin file with this change related code:
google-listings-and-ads.zip

@joemcgill
Copy link
Collaborator

@eason9487 this one is ready for your review

@eason9487 eason9487 added the changelog: tweak Small change, that isn't actually very important. label Aug 26, 2024
Copy link
Contributor

@jorgemd24 jorgemd24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @asvinb, I tested this locally, and it’s working well. I just have a question about the event props—previously, the default value was unknown for some of the properties, but now the behavior has changed. Let me know your thoughts. Thanks!

Copy link
Collaborator

@joemcgill joemcgill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updates seem ok to me. @eason9487 can you give it another look?

Copy link
Member

@eason9487 eason9487 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joemcgill
Copy link
Collaborator

@asvinb can you take a look at the merge conflicts here?

@joemcgill
Copy link
Collaborator

Tested again after the merge conflicts were adjusted. Merging.

@joemcgill joemcgill merged commit 5ac539f into feature/2459-campaign-creation-flow Sep 10, 2024
8 checks passed
@joemcgill joemcgill deleted the feature/2500-show-campaign-fields branch September 10, 2024 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: tweak Small change, that isn't actually very important.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Campaign Creation: Show campaign setup fields immediately during onboarding
5 participants