-
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
[HOLD for payment 2025-01-18] [$250] Categories - Category list moves with up and down key when RHP Is opened #54587
Comments
Triggered auto assignment to @anmurali ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The categories list is scrollable with the arrow keys when the RHP is open. What is the root cause of that problem?In my testing, when using the arrow keys, the browser scrolls the last element the user interacted with. It's not well documented, but I found a Stack Overflow answer https://stackoverflow.com/a/77580408 mentioning this browser behavior. When the RHP is not open, App/src/hooks/useArrowKeyFocusManager.ts Line 110 in e94df0f
App/src/hooks/useKeyboardShortcut.ts Line 34 in e94df0f
When the RHP is open,
What changes do you think we should make in order to solve the problem?Always keep isActive: true, What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?This issue is caused by the browser's default behavior, so I suggest manual testing in real browsers. Also verity this change doesn't reintroduce #41906. What alternative solutions did you explore? (Optional) |
Edited by proposal-police: This proposal was edited at 2024-12-27 04:38:39 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Categories - Category list moves with up and down key when RHP Is opened What is the root cause of that problem?This issue stems from default web behavior. When a user clicks on content within a scrollable view, the browser allows scrolling via the keyboard's arrow keys. App/src/components/SelectionList/BaseSelectionList.tsx Lines 319 to 323 in e94df0f
What changes do you think we should make in order to solve the problem?Disable scrolling when the Category list is not focused App/src/components/SelectionList/BaseSelectionList.tsx Lines 791 to 793 in e94df0f
scrollEnabled={isFocused} POCScreen.Recording.2024-12-27.at.11.18.13.AM.movWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)Override arrow key behavior when RHP(CategorySettingsPage) is opened, we can add App/src/pages/workspace/categories/CategorySettingsPage.tsx Lines 38 to 43 in e94df0f
useArrowKeyFocusManager({
maxIndex: -1,
}); |
@anmurali Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~021874222072625755779 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani ( |
@QichenZhu I tested your proposal of keeping |
@linhvovan29546 I'm not entirely clear on your root cause here. In that PR, we were using the |
No, it works the same. Both files listen to the |
@jayeshmangwani Thanks for your comment! When Setting As mentioned in the Stack Overflow answer, the browser has its strategy to decide which element to scroll, and
So we need to keep |
Thanks for the details here! @QichenZhu's Proposal of setting @QichenZhu 's Proposal LGTM 🚀 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @iwiznia, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @QichenZhu 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.83-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 2025-01-18. 🎊 For reference, here are some details about the assignees on this issue:
|
@jayeshmangwani @anmurali @jayeshmangwani 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] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
|
@iwiznia, @anmurali, @jayeshmangwani, @QichenZhu Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Payment Summary
|
$250 approved for @jayeshmangwani |
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: v9.0.78-5
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Category list will not move with up and down key when RHP is opened (as in PR #39327)
Actual Result:
Category list moves with up and down key when RHP is opened.
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @anmuraliThe text was updated successfully, but these errors were encountered: