-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-05-27] [$250] Settings-Required field error is not displayed when clearing the field #60243
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
Comments
Triggered auto assignment to @lydiabarclay ( |
Triggered auto assignment to @mollfpr ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
🚨 Edited by proposal-police: This proposal was edited at 2025-04-29 13:09:51 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The required field error is not displayed when clearing the field without closing the date picker. What is the root cause of that problem?This is a hidden bug that only appeared after the offending PR. When validating error, we only keep the fields that is touched: App/src/components/Form/FormProvider.tsx Line 168 in 4ee6daa
But when dismissing the date picker, there's no App/src/components/DatePicker/index.tsx Lines 72 to 75 in 4ee6daa
And when clicking clear button, App/src/components/Form/FormProvider.tsx Lines 343 to 345 in 6d6628c
While App/src/components/Form/FormProvider.tsx Line 408 in 6d6628c
So when calling What changes do you think we should make in order to solve the problem?We should call App/src/components/DatePicker/index.tsx Lines 72 to 75 in 6d6628c
const closeDatePicker = useCallback(() => {
textInputRef.current?.blur();
setIsModalVisible(false);
onTouched();
}, [onTouched]); OR we can add App/src/components/Form/FormProvider.tsx Lines 407 to 409 in 6d6628c
Same as App/src/components/Form/FormProvider.tsx Lines 385 to 389 in 6d6628c
To address this comment, remove App/src/pages/GroupChatNameEditPage.tsx Line 104 in 758691e
App/src/pages/TripChatNameEditPage.tsx Line 95 in 758691e
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?None What alternative solutions did you explore? (Optional)This logic App/src/components/Form/FormProvider.tsx Lines 343 to 345 in 6d6628c
was added in this PR to fix this bug. However, I tried removing the timeout and the bug is not reproduced anymore, so we can remove it. App/src/components/Form/FormProvider.tsx Lines 343 to 345 in 6d6628c
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
I can help raise a quick PR if needed. |
Thanks @daledah for the proposal, but I think we will let the author fix the issue. It's a pretty minor issue and shouldn't be a blocker. @perunt @shubham1206agra Please take a look when you have a chance. |
@perunt I think we should not allow them to clear dates here maybe. |
@mollfpr can I tag this as |
@lydiabarclay I think it's not necessary. We will have @perunt and @shubham1206agra fix the issue. |
Just checking @mollfpr - I'm assuming @shubham1206agra will still require payment as they are an external contributor - how do we determine the payment timeline manually? |
@lydiabarclay The payment will be process here, since this a regression from the PR.
Sorry, I didn't get what you meant 😅 |
Oh @mollfpr I see! Thank you for clarifying. |
@s77rt What bug are you mentioning here? I tried removing timeout and both bugs in this issue and the mentioned issue is not reproducible Screen.Recording.2025-05-05.at.22.09.33.mov |
@daledah The bug is related to the checkbox as it shifts down after the error message is displayed Screen.Recording.2025-05-05.at.8.10.30.PM.mov |
@s77rt It works fine on my side. Can you check again please? Screen.Recording.2025-05-06.at.22.45.54.movSmall note that I only remove the timeout in |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@daledah Ah okay. Yeah I think we can go with that. 🎀 👀 🎀 C+ reviewed |
Current assignee @mollfpr is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
Agree with @s77rt! Assigning, thanks! |
📣 @daledah 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Not overdue. Working on the PR still |
The PR is merged! Melvin failed to update the status here 😅 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.46-12 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 2025-05-27. 🎊 For reference, here are some details about the assignees on this issue:
|
@s77rt @lydiabarclay @s77rt The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
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: 9.1.28-1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: #56068
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Windows 10/ Chrome, Samsung S23FE/ Android 14
App Component: User Settings
Action Performed:
Expected Result:
The required field error is displayed after clearing the field, even when the date picker is open.
Actual Result:
The required field error is not displayed when clearing the field without closing the date picker.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6802380_1744694724631.No_required_field_error.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @lydiabarclayThe text was updated successfully, but these errors were encountered: