-
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
[$250] Expense - Leading zeros are not removed when returning to amount input page #43243
Comments
Triggered auto assignment to @sakluger ( |
Triggered auto assignment to @techievivek ( |
👋 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:
|
@techievivek FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
We think this bug might be related to #wave-collect - Release 1 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Expense - Leading zeros are not removed when returning to amount input page What is the root cause of that problem?This happens as in the Submit Expense flow we access the IOU amount page from here:
This does not have the Since the prop is
The last param here is
What changes do you think we should make in order to solve the problem?Since
shouldKeepUserInput = false, Alternatively
|
Have we identified the PR on staging that caused this bug? |
I think this PR caused the regression |
Not a backend blocker. |
I don't think this needs to be a deploy blocker, since it doesn't block the user from doing anything, it's just a display bug in a single flow. cc @trjExpensify in case you disagree. |
Yeah, it doesn't break anything related to making request so we can remove the blocker label. |
Job added to Upwork: https://www.upwork.com/jobs/~01d1b0565d440e64fb |
📣 @Rakshh! 📣
|
Just saw this on UW Why are we not checking user input at the time of input (like on change event) and removing the leading zeros or any non numaric character at that time. |
📣 @Har103! 📣
|
ProposalPlease re-state the problem that we are trying to solve in this issue.When the user enters leading 0's in the input, these extra 0's are not removed. What is the root cause of that problem?Issue causing PR (https://github.com/Expensify/App/pull/40062/commits) The PR introduces a new flag, called The above mentioned flag is NOT provided a value when the What changes do you think we should make in order to solve the problem?Set the flag to False
Validated that the above solution works locally. |
Thanks for proposals everyone. But I think we should wait for this comment first. |
little bump @abzokhattab on this comment |
Thank you @hungvu193 sure i will work on it |
Hold for #43243 (comment) |
📣 @hungvu193 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @abzokhattab 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Assigning it to @abzokhattab based on #43243 (comment) |
@techievivek I think the original C+ will handle this one right? |
Good call @hungvu193. I'll reassign @eVoloshchak as the C+. |
Hey @abzokhattab - do you have a proposal or PR to fix this issue yet? |
isn't this already the expected behavior according to #35797 (comment) and #34894 (comment)? |
So yeah this is currently expected behavior - to maintain user input in this flow. I could see us making an exception for leading zeros, but I don't think this should count as a regression. Basically our reasoning was that it's confusing if what you put in changed when you go back to it, and we do all the parsing afterwards. Again, this can be open for discussion, but shouldn't be a regression. We could also go the other route that Square Cash (and maybe others) take, and just disallow leading zeros from the beginning. |
Thanks for clarifying @dangrous. I agree that we don't need to count this as a regression, but we should change the behavior to disallow leading zeros. |
You know what - since this is the expected behavior at the moment, I'm going to close the issue for now. We can reopen later or open a new issue if we want to change the behavior. |
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.80-9
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4592856
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:
Action Performed:
Expected Result:
The leading zeros will be removed.
Actual Result:
The leading zeros are not removed.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6504348_1717705798824.20240607_041959.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @hungvu193The text was updated successfully, but these errors were encountered: