Automattic / wc-calypso-bridge

20 stars 4 forks source link

Entrepreneur Signup Flow: Update `is_woo_express` logic to consider eCommerce plan #1465

Closed ivan-ottinger closed 4 months ago

ivan-ottinger commented 4 months ago

Changes proposed in this Pull Request:

Before After
Markup on 2024-04-25 at 11:18:56 Markup on 2024-04-25 at 11:17:58

ℹ️ Later (once the new flow is launched) we may want to update the naming of wc_calypso_bridge_is_woo_express_plan(); that's something we touched on briefly with @yansern when discussing the changes.

Post-merge TODO:


Related PT: pdDOJh-3iE-p2. Closes https://github.com/Automattic/wp-calypso/issues/89893.

How to test the changes in this Pull Request:

  1. Follow the steps outlined in pdDOJh-3ob-p2 and create a test site with Entrepreneur plan (the plan can be added through SA).
  2. Navigate to the WooCommerce Admin page at /wp-admin/admin.php?page=wc-admin and check that the AI tool is not available in the launchpad (Before screenshot above).
  3. Check out the changes proposed in this PR and sync them to your test site (pdDOJh-3ob-p2 → section titled "Sync to your WoA test site").
  4. Reload the WooCommerce Admin page at /wp-admin/admin.php?page=wc-admin.
  5. The AI tool should now be available in the launchpad (After screenshot above). Try to click the CTA button and use the AI tool. It should work correctly.

Other information:

FOR PR REVIEWER ONLY:

github-actions[bot] commented 4 months ago

Size Change: 0 B

Total Size: 197 kB

ℹ️ View Unchanged | Filename | Size | | :--- | :---: | | `./build/53.js` | 1.05 kB | | `./build/index.css` | 883 B | | `./build/index.js` | 122 kB | | `./build/marketing.js` | 58 kB | | `./build/payment-gateway-suggestions.css` | 1.25 kB | | `./build/payment-gateway-suggestions.js` | 6.46 kB | | `./build/plugins.js` | 3.92 kB | | `./build/style-index.css` | 2.15 kB | | `./build/style-marketing.css` | 805 B |

compressed-size-action

ivan-ottinger commented 4 months ago

Hey @yansern 👋🏼 When it comes to pushing these changes to production (once approved), is the goal to get them there right away? Or are we waiting for something more to come in first? 🤔

Just asking because this change will basically make the AI tool available to all existing WordPress.com eCommerce sites - so just making sure this is what we want to make happen at this time.

yansern commented 4 months ago

Hey @yansern 👋🏼 When it comes to pushing these changes to production (once approved), is the goal to get them there right away? Or are we waiting for something more to come in first? 🤔

Just asking because this change will basically make the AI tool available to all existing WordPress.com eCommerce sites - so just making sure this is what we want to make happen at this time.

IMO, there's no harm in making AI available for existing eCommerce plans, but perhaps we can additionally check for wpcom_is_entrepreneur_signup just to limit it first.

ivan-ottinger commented 4 months ago

IMO, there's no harm in making AI available for existing eCommerce plans, but perhaps we can additionally check for wpcom_is_entrepreneur_signup just to limit it first.

Just noting that in our latest call we agreed on keeping the wc_calypso_bridge_is_ecommerce_plan() check in.

ivan-ottinger commented 4 months ago

Thanks for the review and merge, Yan.

I have created a dedicated GH task for clean up of the wc_calypso_bridge_is_woo_express_plan: https://github.com/Automattic/dotcom-forge/issues/6800.

Now I am going to take a look at how the change can be deployed.

yansern commented 4 months ago

Now I am going to take a look at how the change can be deployed.

Thanks! Let me know how it goes! Needs a version bump in both here and wpcomsh.