-
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
Onboarding: Remove Tax Rates Selection UI #2490
Comments
In #2458, it mentions:
Assuming this means that the tax rate setting can still be edited on the Edit Free Listings page, then the
Not sure if I'm missing something, but this issue should not require changes to |
Good point. The |
Looks good! Thanks! |
@dsawardekar can you handle the updates requested here? |
@joemcgill I have updated the PR to address the feedback, assigning back to you for another review. |
Re-assigning to @dsawardekar to update the JSDocs and fix the merge conflict. |
Closing this as completed since it was part of the 2.9 release. |
Part of #2458
This 2nd step of onboarding includes a section for selecting whether the store uses destination based tax rates. This does not need to be chosen during initial onboarding, so we’ll remove this step and default to destination-based tax ratesduring onboarding.
Acceptance Criteria
Implementation Brief
The component that renders this section of the UI is
FormContent
injs/src/components/free-listings/setup-free-listings/form-content.js
. Here, there is aConditionalSection
component that wraps theTaxRate
component. TheSetupFreeListings
component that wraps thisFormContent
component is shared between theSavedSetupStepper
for the onboarding and theEditFreeCampaign
component.Since we want to still show the ability to edit the tax rates for the
EditFreeCampaign
, we will need to add an optional prop likehideTaxRates
toFormContent
to optionally control whether those controls are shown. That prop should default tofalse
, but iftrue
should be used inFormContent
as part of the logic used to set the value ofshouldDisplayTaxRate
(ref).Test Coverage
Update the E2E tests in
tests/e2e/specs/setup-mc/step-2-product-listings.test.js
to remove tests that are no longer needed.Definition Questions
handleSubmitClick
callback includes a conditional check forshouldDisplayTaxRate
. Is it safe to remove this conditional and the hook that this value is used to get this value since we're not longer using it?The text was updated successfully, but these errors were encountered: