-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[WAITING ON EUGENE] [$1000] Cursor jumps to next position when we use ',' in request money when language is English (or if using '.' in Spanish) #23933
Comments
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Cursor jumps to next position when we use ',' in request money when language is English What is the root cause of that problem?We are updating the cursor position using the non-comma stripped amount and subsequently strip the comma from the amount. App/src/pages/iou/steps/MoneyRequestAmountPage.js Lines 315 to 318 in 0fb8709
What changes do you think we should make in order to solve the problem?We should use the stripped amount for updating the cursor position, e.g.: ...
const strippedAmount = stripCommaFromAmount(newAmountWithoutSpaces);
setSelection((prevSelection) => getNewSelection(prevSelection, prevAmount.length, strippedAmount.length));
return strippedAmount;
... This also fixes it for the Spanish scenario. What alternative solutions did you explore? (Optional)Ignoring event default behavior if the key is pressed, however this would require adding an extra handler. |
@kavimuru can you re-test on v1.3.48-0? I can't seem to enter a comma when requesting money or splitting a bill. |
@jliexpensify I've reproduced it on staging (v1.3.48-0). There are constraints to this bug, for example the cursor must not be placed at the beginning of the amount. |
@samh-nl can you share a video? I can't get a cursor to show at all on my end :( I'm on v1.3.48-4 |
@jliexpensify Here is the video. Recording.1425.mp4 |
Thanks, that video helps - I've edited the GH issue and can repro. |
Job added to Upwork: https://www.upwork.com/jobs/~01b976c4c3347bca34 |
Current assignee @jliexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav ( |
📣 @servesh-chaturvedi! 📣
|
📣 @Surojd! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue. What is the root cause of that problem?The non-comma-stripped amount is used to update the cursor location before the comma is removed. [App/src/pages/iou/steps/MoneyRequestAmountPage.js](https://github.com/Expensify/App/src/pages/iou/steps/MoneyRequestAmountPage.js#L315-L318
What changes do you think we should make in order to solve the problem?We should use the stripped amount for updating the cursor position, e.g.:
This also fixes it for the Spanish scenario. What alternative solutions did you explore? (Optional)N/A Proof Video02.08.2023_10.24.48_REC.mp4 |
Proposal What changes do you think we should make in order to solve the problem? ... What alternative solutions did you explore? (Optional) |
Bump @0xmiroslav - there are a few proposals to review! |
@danieldoglas @eVoloshchak @jliexpensify @samh-nl this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
If in mobile we can't see those, it's ok to show just our custom number pad and that it works normally. |
PR is ready for review: #25624 |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.58-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 2023-09-06. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
Payment summary:
@eVoloshchak can you complete the checklist? Thanks! |
Bumping @eVoloshchak to complete the checklist please! |
Paid in Upoworks, job removed. @eVoloshchak friendly bump to complete the checklist before we issue you payment, thanks! |
|
Regression Test Proposal
Do we agree 👍 or 👎 |
Reviewed the details for @eVoloshchak. $1,000 approved for payment via NewDot based on BZ summary. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
App should not change cursor position when we try to insert ',' in amount for English language OR '.' in amount for Spanish language in request money / split bill
Actual Result:
App changes cursor position when we try to insert ',' in amount for English language OR '.' in amount for Spanish language in request money / split bill
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.47-3
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
Notes/Photos/Videos: Any additional supporting documentation
cursor.position.jump.on.fullstop.or.comma.mp4
Recording.1412.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690268210124929
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: