-
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
[$250] Web - User has to click twice to select currency if the currency is around the bottom #41922
Comments
Triggered auto assignment to @JmillsExpensify ( |
@JmillsExpensify 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 |
@JmillsExpensify Huh... This is 4 days overdue. Who can take care of this? |
Job added to Upwork: https://www.upwork.com/jobs/~0151b3d12408cd70e1 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani ( |
Added to #wave-collect and opened up for proposals. |
ProposalPlease re-state the problem that we are trying to solve in this issue.When we hold down the list item, the list scrolls and the click is ignored. What is the root cause of that problem?When the item is focused either by keyboard or mouse, it will set the item as the focused index.
When the focused index changes, we scroll to the index. App/src/components/SelectionList/BaseSelectionList.tsx Lines 235 to 237 in 34bccb6
And because we release the mouse after the list scrolls, the click isn't registered anymore. What changes do you think we should make in order to solve the problem?Don't scroll the list if it's focused by mouse. We can create a new ref called
We ignore it if Then return early here if App/src/components/SelectionList/BaseSelectionList.tsx Lines 235 to 237 in 34bccb6
What alternative solutions did you explore? (Optional)Set |
ProposalPlease re-state the problem that we are trying to solve in this issue.The currency does not get selected on the first click but moves up to be in the middle of the list What is the root cause of that problem?When the user long press on the row, it will trigger focus on the row, causing the After the scrolling happens and the user release the press, it no longer works because the mouse is no longer hovered above the row. What changes do you think we should make in order to solve the problem?
This behavior is inconsistent with native platforms, on native when we press in, the row will not be focused automatically. I don't see any reason why we would want the row to gain focus after pressing, because the user will be navigated to another page after pressing the item. So we should not focus on the item when pressing, so it's consistent with native platforms' behavior. To do this we can simply update this to
What alternative solutions did you explore? (Optional)If we want to make the row gain focus when it's pressed in web, we need to do the same for native platforms to be consistent. To do this we need to:
|
I am trying to reproduce this issue on staging, but currency selection is working fine for me at the bottom of the list, @bernhardoj and @tienifr are you able to reproduce this issue consistently ? currenncy-double-click.mov |
@jayeshmangwani you need to hold down a bit before releasing the click/press |
Yes @jayeshmangwani Please do a long press |
Thanks for the help; now I can reproduce this |
I also feel the same as @tienifr ; we should remove the conditional 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @Julesssss, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @jayeshmangwani 🎉 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 |
@jayeshmangwani PR #42380 is ready to review |
This comment was marked as outdated.
This comment was marked as outdated.
This issue has not been updated in over 15 days. @JmillsExpensify, @Julesssss, @jayeshmangwani, @tienifr eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
PR was just merged |
@JmillsExpensify PR Deployed to production 2 weeks ago. The issue is ready for payout |
Payment summary:
Both of you are eligible for NewDot payments. Should I cancel the Upwork contracts? |
Yes 👍 |
I'll assume the same for @tienifr. Btw, what about the checklist? |
Contributor: @tienifr due $250 via NewDot @jayeshmangwani it looks like the checklist didn't populate. plz copy/paste the below. Thx 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:
|
Thanks @mallenexpensify! I'm closing this issue and will circle back for payments once I review the expenses in New Expensify. Don't forget the checklist please. |
Regression Test Proposal
Do we agree 👍 or 👎 |
Requested $250 on NewDot |
$250 approved for @tienifr |
$250 approved for @jayeshmangwani |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.72-0
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
Action Performed:
Expected Result:
The currency gets selected on the first click
Actual Result:
The currency does not get selected on the first click but moves up to be in the middle of the list
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6475853_1715257148330.bandicam_2024-05-09_11-09-33-903.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @jayeshmangwaniThe text was updated successfully, but these errors were encountered: