App
App copied to clipboard
[HOLD for payment 2024-02-07] [$500] IOU - In BNP, cursor displayed but unable to paste if amount already entered
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:
- Launch app
- Tap fab--- request money
- Enter 2 digit amount
- Select & copy the amount
- Note the cursor shown next to 2 digit amount.
- 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
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
Job added to Upwork: https://www.upwork.com/jobs/~01bfa5ca43b4c5842c
Triggered auto assignment to @conorpendergrast (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale (External)
I tried tried to produce the issue in my local dev environment and found the same.
π£ @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:
- Make sure you've read and understood the contributing guidelines.
- 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.
- 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.
- Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
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)
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
What alternative solutions did you explore? (Optional)
NA
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?
@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
Triggered auto assignment to @thienlnam, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
π£ @akinwale π An offer has been automatically sent to your Upwork account for the Reviewer role π Thanks for contributing to the Expensify app!
π£ @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 π
Just assigned - not overdue
PR ready for review https://github.com/Expensify/App/pull/34941.
Reviewing label has been removed, please complete the "BugZero Checklist".
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:
- @akinwale requires payment automatic offer (Reviewer)
- @tienifr requires payment automatic offer (Contributor)
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:
All paid; just the C+ checklist now please @akinwale!
- [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 π?
Lovely stuff, thanks @akinwale. I've created the regression test request here: https://github.com/Expensify/Expensify/issues/367899