Skip to content
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-11-11] iOS - Hybrid app - Split - Cursor jumps in front of digit when deleting participant's amount #50886

Closed
2 of 8 tasks
IuliiaHerets opened this issue Oct 16, 2024 · 18 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Hot Pick Ready for an engineer to pick up and run with Internal Requires API changes or must be handled by Expensify staff

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Oct 16, 2024

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.0.49.0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
Issue reported by: Applause Internal Team

Action Performed:

  1. Open the app and log in
  2. Navigate to the group chat
  3. Tap + > Split expense
  4. Enter the amount and proceed to the confirmation page
  5. Delete the participant's amount by tapping the delete key
  6. Select the other participant's amount by double tapping and remove it
  7. Start entering a new amount

Expected Result:

The cursor does not jump in front of the next digit

Actual Result:

The cursor jumps in front of the next digit after removing the 1st digit before decimal point (step 5) or when removing the amount and entering one digit (steps 6-7)

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6636079_1729054164475.IMG_0475.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @Christinadobrzyn
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 16, 2024
Copy link

melvin-bot bot commented Oct 16, 2024

Triggered auto assignment to @Christinadobrzyn (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@IuliiaHerets
Copy link
Author

@Christinadobrzyn 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

@Christinadobrzyn
Copy link
Contributor

yes, looks like the cursor jumps in front of the last digit when deleting and entering a new amount. Asking if this might be related to #48869

@WojtekBoman
Copy link
Contributor

WojtekBoman commented Oct 17, 2024

Hey @Christinadobrzyn, I've investigated this issue and to me the reason is the same like in this. We have two methods to update selection in MoneyRequestAmountInput. There is a case when we update selection in setNewAmount, but we operate on a value that has been already updated in onSelectionChange. It can be fixed by blocking the update in onSelectionChange when calling setNewAmount. It has been already implemented for the Android platform (the variable shouldIgnoreSelectionWhenUpdatedManually). On the other hand maybe we should consider calling setSelection only from one method to make it more clear. Setting shouldIgnoreSelectionWhenUpdatedManually to true seems to work for iOS, but I realize there are a lot of issues with this component, so we should investigate this solution further to make sure other issues don't appear because of this.

@Christinadobrzyn
Copy link
Contributor

Christinadobrzyn commented Oct 18, 2024

Hi @WojtekBoman! Thank you for your thorough investigation. It sounds like this should be treated as a separate issue and will require some pretty deep investigation.

Would you want to take this job on after you're done with #48869 or do you think this needs to be resolved by an internal engineer?

@WojtekBoman
Copy link
Contributor

I'll take care of that :) This one is already finished, I wrote a request to close it

@Christinadobrzyn
Copy link
Contributor

Christinadobrzyn commented Oct 22, 2024

Awesome! Thank you @WojtekBoman! Let us know how we can help!

@WojtekBoman
Copy link
Contributor

WojtekBoman commented Oct 22, 2024

I'm currently working on solving this issue, I believe I found the cause and I'm trying to fix it properly. When I release PR, I'll need help looking for possible regressions :)

@Christinadobrzyn Christinadobrzyn added the Internal Requires API changes or must be handled by Expensify staff label Oct 23, 2024
@garrettmknight garrettmknight moved this from Polish to Hot Picks in [#whatsnext] #expense Oct 23, 2024
@garrettmknight garrettmknight moved this from Hot Picks to Polish in [#whatsnext] #expense Oct 23, 2024
@Christinadobrzyn Christinadobrzyn added the Hot Pick Ready for an engineer to pick up and run with label Oct 24, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Oct 24, 2024
@Christinadobrzyn
Copy link
Contributor

PR in the works - #51306

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 4, 2024
@melvin-bot melvin-bot bot changed the title iOS - Hybrid app - Split - Cursor jumps in front of digit when deleting participant's amount [HOLD for payment 2024-11-11] iOS - Hybrid app - Split - Cursor jumps in front of digit when deleting participant's amount Nov 4, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 4, 2024
Copy link

melvin-bot bot commented Nov 4, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Nov 4, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.56-9 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-11-11. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Nov 4, 2024

@rayane-djouah @Christinadobrzyn 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]

Copy link

melvin-bot bot commented Nov 11, 2024

Payment Summary

Upwork Job

BugZero Checklist (@Christinadobrzyn)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@garrettmknight garrettmknight moved this from Polish to Bugs and Follow Up Issues in [#whatsnext] #expense Nov 11, 2024
@garrettmknight garrettmknight moved this from Bugs and Follow Up Issues to Hold for Payment in [#whatsnext] #expense Nov 11, 2024
@rayane-djouah
Copy link
Contributor

rayane-djouah commented Nov 11, 2024

BugZero Checklist:

  • Classify the bug:

    Bug classification

    Source of bug:

    • 1a. Result of the original design (eg. a case wasn't considered)
    • 1b. Mistake during implementation
    • 1c. Backend bug
    • 1z. Other:

    Where bug was reported:

    • 2a. Reported on production
    • 2b. Reported on staging (deploy blocker)
    • 2c. Reported on a PR
    • 2z. Other:

    Who reported the bug:

    • 3a. Expensify user
    • 3b. Expensify employee
    • 3c. Contributor
    • 3d. QA
    • 3z. Other:
  • The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

    Link to comment: Reusable and stylable money request amount input #40390 (comment)

  • If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

    Link to discussion: N/A

  • If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

  • @Christinadobrzyn Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue: https://github.com/Expensify/Expensify/issues/443775

Regression Test Proposal

#### Precondition:

- Create a group chat.

#### Test:

1. Navigate to the group chat.
2. Tap the '+' symbol, then select 'Split expense'.
3. Enter an amount and proceed to the confirmation page.
4. Delete a participant's amount by tapping the delete key.
5. Verify that the cursor does not jump during deletion.
6. Verify that the cursor does not jump in front of the next digit after removing the first digit before the decimal point.
7. Select another participant's amount by double tapping and remove it.
8. Begin entering a new amount.
9. Verify that the cursor does not jump when removing the amount and entering one digit.
10. Continue adding digits to the new amount.
11. Verify that the cursor does not jump in front of the next digit.

Do we agree 👍 or 👎

@Christinadobrzyn
Copy link
Contributor

This one seems a little strange as the PR linked is from April - is there anything I should know about paying this? Were there regressions?

Payment summary is here - #50886 (comment) @rayane-djouah can you accept the Upwork offer?

@Christinadobrzyn Christinadobrzyn added Daily KSv2 and removed Weekly KSv2 labels Nov 12, 2024
@rayane-djouah
Copy link
Contributor

@Christinadobrzyn - Offer accepted, thanks!

@mountiny
Copy link
Contributor

I think we can pay for the review of #51306 and close

@Christinadobrzyn
Copy link
Contributor

Thanks @mountiny and @rayane-djouah!

Regression test - https://github.com/Expensify/Expensify/issues/443775

Paid out based on this payment summary

closing!

@github-project-automation github-project-automation bot moved this from Hold for Payment to Done in [#whatsnext] #expense Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Hot Pick Ready for an engineer to pick up and run with Internal Requires API changes or must be handled by Expensify staff
Projects
Status: Done
Development

No branches or pull requests

5 participants