-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2023-04-03] [HOLD for payment 2023-03-22] [$1000] [Form Refactor] Show multiple error messages simultaneously using Form.js #15156
Comments
Triggered auto assignment to @stephanieelliott ( |
Bug0 Triage Checklist (Main S/O)
|
This is an engineering issue and an improvement, not a Bug. I wasn't sure what the best process was to create this issue. How can I assign it to an engineer for triage? I think this can be worked on externally, but it's lower priority and also more involved. cc @puneetlath in case you're interested. |
@neil-marcellini I think there's some weird thing where if an engineer applies the |
Hahah ok that's weird. As you suggested in a DM, I let the callstack folks know that they could work on this as part of their other form work. |
Triggered auto assignment to @mountiny ( |
Happened upon this issue. There ya go! |
Hi, I would like to take this and be assigned this task. |
Triggered auto assignment to @muttmuure ( |
This comment was marked as duplicate.
This comment was marked as duplicate.
Hello! Taking over the issue from Tomek :) |
📣 @koko57! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Format:
|
@LLPeckham regarding this comment #15978 (comment) - I've proposed new text for romReservedNameError - here is my explanation #15978 (comment) |
Suggestion for copy: As I understand it, if someone tried to name a room #announce, the current message is: I think we should tailor the message for each room because it feels weird to say those are both in use when they only tried the one name. So:
|
📣 @koko57 You have been assigned to this job by @mountiny! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.89-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-04-03. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
@muttmuure I think this is ready for payment |
Bump @muttmuure |
Invited @mollfpr to https://www.upwork.com/ab/applicants/1646917160057724928/job-details Thanks for waiting while I was OOO last week |
@muttmuure No problem! |
Can we get this closed out soon? |
Gently bump @muttmuure |
I'd reach out via New Expensify DM to get Matt's attention. |
Thanks for the bump! @mollfpr please accept the contract and we'll get you paid |
@muttmuure accepted, thank you! |
All paid up |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Problem
Currently when using the Form component we only pass one error message for each input that is failing a validation, but we should show the user multiple errors for a given input if multiple validations fail. See here for an example of the problem.
Why it's important
As per our form guidelines the Form component "supports an infinite number of possible error messages per field and they are displayed simultaneously if multiple validations fail". Right now that's not the case and we should fix it so that it's possible to follow our own guidelines.
Solution
Update the Form component and make any other required changes so that we can show multiple error messages for each input. As part of the initial refactor, update the display name page to show multiple errors when multiple validations fail for a given input. We should create a follow up issue to refactor the validations on other forms.
From the validate function it should be possible to set set an array of errors on each input. The FormHelpMessage component could then be adapted to show multiple error messages under an input in a similar manner to the DotIndicatorMessage used by OfflineWithFeedback.
Or it may be better to replace FormHelpMessage with a new component designed specifically for showing multiple error messages passed in by a Form.
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1676403131894039
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: