-
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
[$500] Assign task - Invalid red dot appears by closing assign the tab when there's no prior action #31583
Comments
Triggered auto assignment to @garrettmknight ( |
Job added to Upwork: https://www.upwork.com/jobs/~01690c0dbaf0deaaf7 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
I am not able to reproduce it on dev. |
ProposalPlease re-state the problem that we are trying to solve in this issue.When clicking and holding back button or any spot outside of the RHN while assign task view is open, the Title field displays a validation error for as long as press/click is held. What is the root cause of that problem?Our form validation intentionally shows a validation error for required fields if they are focused and then blurred. We are autofocusing the field on form open, and by pressing a focusable element, such as outside of the RHN or the back button, we're blurring the input and triggering validation. Note that this is not really a bug, but a side effect of how the validation works. What changes do you think we should make in order to solve the problem?The only reason this seems jarring is because the user hasn't interacted with the form yet, and they didn't manually focus the field, so an error message isn't expected. I would not recommend special handling of this particular case, but that we stick to a design pattern. We should decide either:
Going with approach # 2 means that, if the user hasn't submitted the form, they won't see the validation error that we currently do. They will see it after first submission attempt, but will no longer be surprising because they would have already seen this error on submission and it makes sense. But it also means we're not giving immediate feedback as they focus in and out of required fields before the first submission. We already show (optional) for optional fields, implying that others are required, so I think this is an acceptable approach. What alternative solutions did you explore?If we really don't like the specific behavior outlined in this issue, but don't want to change our error validation pattern, we could:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Assign task - Invalid red dot appears by closing assign the tab when there's no prior action What is the root cause of that problem?When users blur the input, validate function is always triggered, that makes the error messages appear App/src/components/Form/FormProvider.js Line 272 in 72e73ae
What changes do you think we should make in order to solve the problem?on web/desktop, onBlur of input is triggered first -> onClick of back button. We should check if the
I've tested all cases and it works well on web/desktop/mweb Unfortunately, on native devices, onClick of back button is triggered first -> onBlur of input. And there's no such thing as the relatedTarget, that why on native we should detect if users have just clicked on the back button so we can avoid triggering onBlur
ResultWeb/Desktop Native/Ios |
I'm not sure but perhaps someone can confirm this, but I think maybe this should wait until the From Provider Refractor is finalized since it will include the behaviour of |
I don't think this is a real issue. It's not worth changing. @garrettmknight Thoughts? |
@parasharrajat agreed, this isn't worth fixing right now. |
cool cool good talk |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.1-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: Applause - Internal Team
Slack conversation:
Issue found when executing PR #30679
Action Performed:
4.Click outside the panel or the back button and hold, to close it
Expected Result:
No red dot should be seen when closing the Assign task tab
Actual Result:
An invalid red dot appears briefly when closing the 'Assign task' tab when there is no prior action
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6284508_1700513827250.Assign_Task_-_Red_dot.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: