Open joemcgill opened 1 month ago
1. It looks like these checkboxes do actually trigger an HTTP request to the
/wp-json/wc/gla/mc/settings
endpoint, which ends up updating the DB option stored ingla_merchant_center
but these values don't persist when the page is reloaded. Is there any other JS code that needs to be cleaned up when this is removed so the onboarding process doesn't affect the stored DB values if previously set?
Perhaps the JS codes related to the usePolicyCheck
hook could be removed as well. For example, this code will no longer override the gla_merchant_center
WP option.
2. The JEST tests for the pre-launch-checker would be removed. Are there other JEST tests or storybook snapshots that we need to plan to update?
I think there are no other jest tests that need to be update, and this should be clear when running jest tests after removal..
Perhaps the JS codes related to the usePolicyCheck hook could be removed as well. For example, this code will no longer override the gla_merchant_center WP option.
Thanks @eason9487, makes sense to me.
Part of https://github.com/woocommerce/google-listings-and-ads/issues/2458
The 3rd step of the onboarding process includes this pre-launch check list at the bottom of the screen.
This checklist doesn't really add value to the user experience and can lead to someone either abandoning the onboarding process or just checking everything in order to move on. Let's remove this section to streamline the onboarding experience.
Acceptance Criteria
PreLaunchChecklist
component is removed from the codebase (js/src/setup-mc/setup-stepper/store-requirements/pre-launch-checklist/index.js)PreLaunchChecklist
is removed.Implementation Brief
The
PreLaunchChecklist
component is defined injs/src/setup-mc/setup-stepper/store-requirements/pre-launch-checklist/index.js
and imported into theStoreRequirements
page injs/src/setup-mc/setup-stepper/store-requirements/index.js
. We can likely just remove thePreLaunchChecklist
component from the theStoreRequirements
page and delete the file where it's defined, since it doesn't seem to be used anywhere else. ThisuseEffect()
hook (link) that updates the saved settings based onpolicyCheckData
can also be removed.Test Coverage
Definition Questions
/wp-json/wc/gla/mc/settings
endpoint, which ends up updating the DB option stored ingla_merchant_center
but these values don't persist when the page is reloaded. Is there any other JS code that needs to be cleaned up when this is removed so the onboarding process doesn't affect the stored DB values if previously set?