-
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 2024-05-02] [$250] Taxes - Cursor continues to move after deleting one digit when long pressing on delete key #39079
Comments
Triggered auto assignment to @miljakljajic ( |
@miljakljajic 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 that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.Taxes - Cursor continues to move after deleting one digit when long pressing on delete key What is the root cause of that problem?For BigNumPad when we long press App/src/components/BigNumberPad.tsx Lines 49 to 50 in b27be0f
And for taxes in this case we recalculate selection according to the new amount vs the currentAmount App/src/components/AmountForm.tsx Lines 114 to 115 in b27be0f
But the problem lies here because the function is called via interval it doesn't have the latest edition of currentAmount so all the way during the long pressing it will hold the amount before the back press and the strippedAmount holds one digit deleted from currentAmount so it decrements the selection start and end continously according to this codeApp/src/components/AmountForm.tsx Lines 50 to 51 in b27be0f
What changes do you think we should make in order to solve the problem?BTW although I explained how the cursor is moving for taxes case the main problem is that long press is not working in The solution lies in understanding the problem. In BigNumPad we have built a long press mechanism for
So that the interval callback will be the right and latest value What alternative solutions did you explore? (Optional) |
shared in BZ for discussion |
@miljakljajic BTW The title of the issue is a little misleading the bug is more serious than what is depicted in the title: the bug is not just hold pressing the delete key moves the cursor all the way to the left unlike money request amount equivalent Num Pad, but the hold pressing first designed to continuously delete digits is broken as a whole. Only for the reason I mentioned in my RCA is that we are seeing different behaviours in this taxes num pad and money request num pad. Both are broken and the fix should be to make the holding of the button delete the digits continously. |
@miljakljajic Huh... This is 4 days overdue. Who can take care of this? |
Job added to Upwork: https://www.upwork.com/jobs/~01629df1846fc38b09 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani ( |
I agree, let's get this fixed. Added the external label. |
@miljakljajic @jayeshmangwani this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Evaluating proposal |
@FitseTLT If we applied your proposal changes, then the long press on the request money should delete the numbers, right? request-money-number-pad.mov |
Here is the test branch and here is the result 2024-04-11.16-36-48.mp4 |
@FitseTLT Thanks for the test branch. It's now working fine on my side, too. I'm not sure why it didn't work before; maybe my iOS is flaky from yesterday. @FitseTLT 's Proposal LGTM, After fixing the Rate Input After Adding the Proposed Changes:tax-rate.movRequest Money After Adding the Proposed Changes:request-money.mov🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @chiragsalian, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Proposal LGTM, feel free to create a PR @FitseTLT. |
📣 @jayeshmangwani 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR will be up in 2 days |
Thank you! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.65-5 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 2024-05-02. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Regression Test Proposal
Do we agree 👍 or 👎 |
Accepted regression test proposal and paid/ended both contracts. Thank you all! |
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: 1.4.57-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Issue found when executing PR #38733
Action Performed:
Precondition:
Expected Result:
Long pressing on delete key will delete one digit and the cursor will not continue to move backward (BNP on request money flow behavior)
Actual Result:
The cursor continues to move backward after deleting one digit when long pressing on delete key
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6428790_1711551303837.RPReplay_Final1711551028.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: