App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2024-02-07] [$500] IOU - In BNP, cursor displayed but unable to paste if amount already entered

Open kbecciv opened this issue 1 year ago β€’ 19 comments

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.25.1 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 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:

Action Performed:

  1. Launch app
  2. Tap fab--- request money
  3. Enter 2 digit amount
  4. Select & copy the amount
  5. Note the cursor shown next to 2 digit amount.
  6. Try to paste the amount.

Expected Result:

In BNP, if cursor displayed user should be able to paste even if amount already entered.

Actual Result:

In BNP, cursor displayed but unable to paste if amount already entered.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • [x] Android: Native
  • [x] Android: mWeb Chrome
  • [ ] iOS: Native
  • [ ] iOS: mWeb Safari
  • [ ] MacOS: Chrome / Safari
  • [ ] MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

https://github.com/Expensify/App/assets/93399543/08503bf9-23ea-4b30-8d2b-da3af54783a2

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01bfa5ca43b4c5842c
  • Upwork Job ID: 1746995156396044288
  • Last Price Increase: 2024-01-15
  • Automatic offers:
    • akinwale | Reviewer | 28114560
    • tienifr | Contributor | 28114561

kbecciv avatar Jan 15 '24 20:01 kbecciv

Job added to Upwork: https://www.upwork.com/jobs/~01bfa5ca43b4c5842c

melvin-bot[bot] avatar Jan 15 '24 20:01 melvin-bot[bot]

Triggered auto assignment to @conorpendergrast (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

melvin-bot[bot] avatar Jan 15 '24 20:01 melvin-bot[bot]

Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale (External)

melvin-bot[bot] avatar Jan 15 '24 20:01 melvin-bot[bot]

I tried tried to produce the issue in my local dev environment and found the same.

Ykumar1415 avatar Jan 15 '24 21:01 Ykumar1415

πŸ“£ @Ykumar1415! πŸ“£ Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details. Screen Shot 2022-11-16 at 4 42 54 PM Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

melvin-bot[bot] avatar Jan 15 '24 21:01 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue.

In BNP, cursor displayed but unable to paste if amount already entered.

What is the root cause of that problem?

We don't have any padding at all on the text input, so the area at the end of the text input is very hard to click. This leads to the user unable to trigger the Paste functionality to paste the text, because if the cursor is already there, to trigger the Context menu the user needs to click at the exact cursor location.

Can see below (I added background colors to see easily) 1705391429325

What changes do you think we should make in order to solve the problem?

Add a small paddingRight (5) to the input.

If we worry about this affecting the design, we can add a paddingLeft of the same value to the currency button, this will lead to the style being perfectly the same because the element containing the currency button and the amount input are centered on the screen.

After the change we can see the cursor at the end of the input has the space to breathe now and the click behavior is now normal 1705391429340

What alternative solutions did you explore? (Optional)

NA

tienifr avatar Jan 16 '24 07:01 tienifr

Ok, got it - so if I'm right the problem is that you can tap directly on the existing text to paste over that, but you can't tap after the number to past after it.

I am confirming if this should be part of one of our VIP projects via an internal channel.

@akinwale how does @tienifr's proposal look?

conorpendergrast avatar Jan 19 '24 15:01 conorpendergrast

@tienifr's proposal correctly identifies the problem and the proposed solution is adequate.

@tienifr You would need to also test with the text field containing the max length of digits (10, iirc) to make sure that the padding does not cut off digits at the edges.

πŸŽ€πŸ‘€πŸŽ€ C+ reviewed

akinwale avatar Jan 19 '24 16:01 akinwale

Triggered auto assignment to @thienlnam, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

melvin-bot[bot] avatar Jan 19 '24 16:01 melvin-bot[bot]

πŸ“£ @akinwale πŸŽ‰ An offer has been automatically sent to your Upwork account for the Reviewer role πŸŽ‰ Thanks for contributing to the Expensify app!

Offer link Upwork job

melvin-bot[bot] avatar Jan 22 '24 03:01 melvin-bot[bot]

πŸ“£ @tienifr πŸŽ‰ An offer has been automatically sent to your Upwork account for the Contributor role πŸŽ‰ Thanks for contributing to the Expensify app!

Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review πŸ§‘β€πŸ’» Keep in mind: Code of Conduct | Contributing πŸ“–

melvin-bot[bot] avatar Jan 22 '24 03:01 melvin-bot[bot]

Just assigned - not overdue

thienlnam avatar Jan 22 '24 08:01 thienlnam

PR ready for review https://github.com/Expensify/App/pull/34941.

tienifr avatar Jan 23 '24 03:01 tienifr

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

melvin-bot[bot] avatar Jan 31 '24 02:01 melvin-bot[bot]

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.4.33-5 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

  • https://github.com/Expensify/App/pull/34941

If no regressions arise, payment will be issued on 2024-02-07. :confetti_ball:

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

melvin-bot[bot] avatar Jan 31 '24 02:01 melvin-bot[bot]

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:

  • [ ] [@akinwale] The PR that introduced the bug has been identified. Link to the PR:
  • [ ] [@akinwale] 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:
  • [ ] [@akinwale] A discussion in #expensify-bugs 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:
  • [ ] [@akinwale] Determine if we should create a regression test for this bug.
  • [ ] [@akinwale] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [ ] [@conorpendergrast] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

melvin-bot[bot] avatar Jan 31 '24 02:01 melvin-bot[bot]

Payouts due:

  • [x] Contributor: $500 @tienifr - contract
  • [x] Contributor+: $500 @akinwale - contract

Upwork job is here.

conorpendergrast avatar Feb 07 '24 20:02 conorpendergrast

All paid; just the C+ checklist now please @akinwale!

conorpendergrast avatar Feb 07 '24 20:02 conorpendergrast

  • [x] [@akinwale] The PR that introduced the bug has been identified. Link to the PR:
  • [x] [@akinwale] 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:
  • [x] [@akinwale] A discussion in #expensify-bugs 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:

Not a regression. Just an edge (😁) case with the input area not being wide enough to handle long presses.

  • [x] [@akinwale] Determine if we should create a regression test for this bug.
  • [x] [@akinwale] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

Regression Test Steps

  • Launch the Expensify app on Android
  • Open the global create menu and select Request money
  • Select the Manual tab if it is not already active
  • Enter any amount
  • Long-press at the end of the amount
  • Verify that the context menu easily shows up

Do we agree πŸ‘ or πŸ‘Ž?

akinwale avatar Feb 07 '24 21:02 akinwale

Lovely stuff, thanks @akinwale. I've created the regression test request here: https://github.com/Expensify/Expensify/issues/367899

conorpendergrast avatar Feb 08 '24 09:02 conorpendergrast