-
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
Show validation errors on step 2 of the onboarding flow when unable to continue #2019
Show validation errors on step 2 of the onboarding flow when unable to continue #2019
Conversation
…o rephrase a few messages
…tup` and remove unneeded codes
… listings form if any data is invalid
I was able to perform the test without this. Might you explain why is this needed? Does the user (or us programmatically) handle this after the user upgrades with this feature? |
Is there any place where I can check the new validation error texts? Or there are no specific requirements? |
When I was testing the errors I discover some inconsistency with the Audience Selector and the rest of inputs. Screen.Recording.2023-07-20.at.17.56.57.movAs you can see in the video, the inputs are not showing validation errors until the validation error in the Audience selector is solved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I check the requirements for this feature:
✅ Don’t disable the “Continue” or “Compete” buttons even if the form validation doesn’t pass.
✅ The form validation errors are not displayed until the user clicks the above button.
errors.shipping_country_rates
and errors. shipping_country_times
💅 A minor suggestion for the function ValidationErrors()
Hi @puntope, thanks for the review. This PR is ready for the second round of code reviews. Could you help with it?
The selected Location option value ("Selected countries only" or "All countries") is stored in the P.S. Location and Shipping rates will be filled in automatically when empty, so this PR didn't add validation errors for them but it's still a bit better to double-confirm that the automatic file in processing works.
No. Except for PMax Assets and phone verification, no previous development or design documents have specified the texts for validation errors. The main reason for adjusting some texts was to avoid the following situation, which happens to be a line break at the last word.
This is expected, as each field focuses on different validation errors. When no audience country is selected, the relevant validation errors are already displayed in the most relevant position. It would be a bit redundant to display the same error on both Shipping rates and Shipping times. However, I noticed an issue from your video: after clearing a value equal to I tried a couple of different approaches and finally realized that there was only one way to solve the issue first with a relatively small amount of changes, while the rest of the approaches involved too many changes. Please view the fix in a8f9bf9. Kapture.2023-07-24.at.11.45.50.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ LGTM
Thanks for the adjustments, explanation and extra Unit tests.
I left one last 💅 comment in regards to that "syncNeedle" name.
…ficial document for `AppInputNumberControl` Address #2019 (comment)
Changes proposed in this Pull Request:
This is a part of implementation for #634 and for 📌 Display form validation errors in #1993.
To show validation errors on step 2 of the onboarding flow when unable to continue, this PR:
Extract the shareable component and adjust the layouts of shipping time components
ValidationErrors
for showing form validation error messages, and replace the errors rendering inAssetGroupCard
with it.ShippingTimeSection
intoShippingTimeSetup
and remove unneeded codes.Fix and adjust validator
js/src/components/free-listings/configure-product-listings/checkErrors.js
US
.Add the mechanism of showing validation errors to the product listings form
ChooseAudienceSection
FlatShippingRatesInputCards
EstimatedShippingRatesCard
OfferFreeShippingCard
MinimumOrderCard
ShippingTimeSetup
TaxRate
Screenshots:
Kapture.2023-07-20.at.18.19.40.mp4
Detailed test instructions:
Some free listings data are unable to clean via UI. It might need to run the following SQL to clean them from database.
Additional details:
💡 The implementation for step 3 will be done by subsequent PR(s)
Changelog entry