-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 on PR 32432] [$500] Task - task title displays and removes error in few seconds on enter #33187
Comments
Job added to Upwork: https://www.upwork.com/jobs/~010c362ca46aa96208 |
Triggered auto assignment to @garrettmknight ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Task - task title displays and removes error in few seconds on enter What is the root cause of that problem?When we are using BaseTextInput (https://github.com/Expensify/App/blob/main/src/components/TextInput/BaseTextInput/index.js) the validation for input is only enabled when input gets blurred. This is caused because in FormProvider component we do not define the input as a valid touched input and at the first time we validate this doesn't exist and error is not displayed: App/src/components/Form/FormProvider.js Line 171 in c53eca9
What changes do you think we should make in order to solve the problem?When we edit we validate the inputs when we touch them, marking each one as touched using touchedInputs reference, we should mark the input when we are typing in: App/src/components/Form/FormProvider.js Line 344 in c53eca9
The change should be like:
Tests: Before.changes.validate.input.when.task.edit.mp4After changes: After.changes.validate.input.when.task.edit.mp4 |
📣 @m2jobe! 📣
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Task title displays and removes error in few seconds on enter What is the root cause of that problem?The root cause of the problem is that when the form is initially rendered, we assume that the field is empty or the user will click on another element ( App/src/components/Form/FormProvider.js Lines 171 to 175 in c53eca9
However, in this situation, the user can submit after typing the new empty title without causing the What changes do you think we should make in order to solve the problem?
Code Sample
Note: It is possible to change |
@garrettmknight This is fixed by #32432 |
Agree with @shubham1206agra #33187 (comment) @garrettmknight looks like we can close this issue after #32432 is deployed to staging, and we re-test this issue. |
Love to see it! |
This comment was marked as off-topic.
This comment was marked as off-topic.
Nope. Still not reproducible on staging |
@shubham1206agra is correct. It's not reproducible on staging. |
Looks like we're good here. Closing! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v1.4.13-5
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation: @
Action Performed:
Expected Result:
App should display 'Please enter a title' error all the time after enter click when only space is present in task title field like it does on save click
Actual Result:
App displays 'Please enter a title' error for sometime and removes the error on click of enter when only space is present in title
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6314753_1702652808683.mac_desktop_-_task_title_space_enter_issue.mov
Bug6314753_1702652808661.mac_chrome_-_task_tile_space_enter_issue.mov
Bug6314753_1702652808668.windows_chrome_-_task_title_space_enter_issue.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: