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

Remove the accounts connection page from the Ads Setup flow. #2595

Conversation

kt-12
Copy link
Collaborator

@kt-12 kt-12 commented Sep 9, 2024

Changes proposed in this Pull Request:

Closes #2534.

Replace this with a good description of your changes & reasoning.

Screenshots:

After removal of accounts setup page.
Screenshot 2024-09-09 at 09 11 26

Detailed test instructions:

  1. Delete gla_ads_setup_completed_at options.
  2. Go to dashboard, under Performance (Paid Campaigns) section click Add paid campaign
  3. You should not see the Setup accounts page as shown in the screenshot. Proceed with the other steps and see if you are able to create first paid campaign.

Additional details:

Changelog entry

Update - When the accounts have been connected before, skip their setup step during the Ads-onboarding.

@kt-12 kt-12 requested a review from joemcgill September 9, 2024 08:17
Copy link
Collaborator

@asvinb asvinb left a comment

Choose a reason for hiding this comment

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

@kt-12 Can you please do the following:

  • Change the target branch for your PR to feature/2460-simplify-paid-ads-setup as per the IB.
  • Fix the linting errors.
  • Review the E2E tests. For e.g there's empty tests for Set up your accounts page in tests/e2e/specs/add-paid-campaigns/add-paid-campaigns.test.js

Copy link

codecov bot commented Sep 12, 2024

Codecov Report

Attention: Patch coverage is 68.75000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 62.8%. Comparing base (425c6e3) to head (9eaff54).

Files with missing lines Patch % Lines
js/src/setup-ads/ads-stepper/index.js 68.8% 5 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@                          Coverage Diff                          @@
##           feature/2459-campaign-creation-flow   #2595     +/-   ##
=====================================================================
+ Coverage                                 62.1%   62.8%   +0.7%     
=====================================================================
  Files                                      327     328      +1     
  Lines                                     5109    5131     +22     
  Branches                                  1244    1251      +7     
=====================================================================
+ Hits                                      3171    3220     +49     
+ Misses                                    1756    1731     -25     
+ Partials                                   182     180      -2     
Flag Coverage Δ
js-unit-tests 62.8% <68.8%> (+0.7%) ⬆️

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

Files with missing lines Coverage Δ
js/src/setup-ads/ads-stepper/index.js 83.3% <68.8%> (-16.7%) ⬇️

... and 7 files with indirect coverage changes

js/src/setup-ads/ads-stepper/index.js Outdated Show resolved Hide resolved
js/src/setup-ads/ads-stepper/index.js Outdated Show resolved Hide resolved
js/src/setup-ads/ads-stepper/index.js Outdated Show resolved Hide resolved
js/src/setup-ads/ads-stepper/index.js Outdated Show resolved Hide resolved
js/src/setup-ads/ads-stepper/index.js Outdated Show resolved Hide resolved
js/src/setup-ads/ads-stepper/index.js Outdated Show resolved Hide resolved
@kt-12 kt-12 requested a review from asvinb September 23, 2024 14:18
Copy link
Collaborator

@asvinb asvinb left a comment

Choose a reason for hiding this comment

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

Changes LGTM @kt-12

@ankitguptaindia
Copy link
Member

QA/Test Report-

Testing Environment -

  • WordPress: 6.6.2
  • Theme active on store: Twenty Twenty-Four Version: 1.2
  • WooCommerce - Version 9.3.2
  • PHP: 8.3
  • Web Server: Nginx
  • Browser: Chrome - Version 128
  • OS: macOS Sonoma 14.6.1

Test Results - Tested the functionally of the new changes. Working as described in scope. ✅

Functional Demo / Screencast -

GLNA.mp4

Next Step- Ready to Code Review(Woo)

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.

In addition to the comments left, there are two other issues:

js/src/setup-ads/ads-stepper/index.js Outdated Show resolved Hide resolved
js/src/setup-ads/ads-stepper/index.js Outdated Show resolved Hide resolved
js/src/setup-ads/ads-stepper/index.js Outdated Show resolved Hide resolved
js/src/setup-ads/ads-stepper/index.js Outdated Show resolved Hide resolved
@eason9487 eason9487 added changelog: none Skip changelog entry for this PR changelog: update Big changes to something that wasn't broken. and removed changelog: none Skip changelog entry for this PR labels Sep 25, 2024
@kt-12
Copy link
Collaborator Author

kt-12 commented Sep 30, 2024

@eason9487 I have addressed your review comment. I have also fixed E2E to reflect the current flow.

@joemcgill joemcgill changed the base branch from develop to feature/2460-simplify-paid-ads-setup September 30, 2024 18:03
js/src/setup-ads/ads-stepper/index.js Outdated Show resolved Hide resolved
js/src/setup-ads/ads-stepper/index.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.

@kt-12, I've made a few adjustments in 64051b6, which fixes some JSLint issues but more importantly checks the step value from the ads/account-status request rather than the step being used in this component to control the currentStep of the Stepper being rendered.

I think this looks good now, but would like to see if @ankitguptaindia can give this another test and confirm that the issues @eason9487 shared here can no longer be reproduced when a new account is created and claimed while this screen is closed.

@ankitguptaindia
Copy link
Member

I think this looks good now, but would like to see if @ankitguptaindia can give this another test and confirm that the issues @eason9487 shared #2595 (comment) can no longer be reproduced when a new account is created and claimed while this screen is closed.

@joemcgill Tested the reported issue and performed the cases when a new account is created and claimed while this screen is closed. It is working as expected and not able to reproduce the issue now. Tested others that are related to the main changes in this PR.

@joemcgill
Copy link
Collaborator

This needs a refresh after #2577 was merged to the feature branch

@kt-12
Copy link
Collaborator Author

kt-12 commented Oct 10, 2024

@joemcgill I have handled merge conflict. This is good for WooReview.

js/src/setup-ads/ads-stepper/index.js Outdated Show resolved Hide resolved
js/src/setup-ads/ads-stepper/index.js Outdated Show resolved Hide resolved
@ankitguptaindia
Copy link
Member

@kt-12 When we click on the ‘Add paid campaign’ button, it takes a few seconds to show campaign creation fields (the page looks blank for a moment).
Please refer- https://somup.com/cZ62DhHtJN

Please let me know if we are fixing this issue on another PR.

@kt-12
Copy link
Collaborator Author

kt-12 commented Oct 17, 2024

@joemcgill this is good for review. I have moved final fixes to jest here so with this merging we will also close 2579.

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.

I've tested several scenarios and the card refresh looks much better now. Thanks, @kt-12

@joemcgill joemcgill merged commit 355487b into feature/2459-campaign-creation-flow Oct 24, 2024
5 checks passed
@joemcgill joemcgill deleted the feature/2534-remove-accounts-connection-page branch October 24, 2024 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: update Big changes to something that wasn't broken.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove the accounts connection page from the Ads Setup flow
5 participants