-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-09-25] [Search v2.1][$250] The “Enter” key on the search page randomly opens the workspace switcher or the RHP #49080
Comments
Triggered auto assignment to @trjExpensify ( |
I think the expected behavior at step 6 is that the report detail page should not be shown, due to the lack of context to select which expense from the list. |
Hm, I'm not sure about this actually. Why would we open anything at all when Enter is clicked? We don't do that on other pages. @luacmartins am I missing something on why the Enter key is opening the workspace switcher here? |
My best guess is that we have focus trap on some button and we're triggering that onPress behavior when pressing enter |
Yeah, so I think the expected behaviour here is that the workspace switcher nor the expense RHP opens when you randomly click Enter on the search page. |
Job added to Upwork: https://www.upwork.com/jobs/~021834395341977846523 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ikevin127 ( |
Edited by proposal-police: This proposal was edited at 2024-09-14 16:33:40 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Pressing enter while on the search page opens the workspace switcher page. What is the root cause of that problem?When we open the search page, the focus trap for the search bottom tab screen is activated which will focus on the workspace switcher page. So, pressing enter will open the ws switcher page. But actually, we have a code to disable the focus trap for bottom tab screens. App/src/components/FocusTrap/FocusTrapForScreen/index.web.tsx Lines 18 to 25 in 50cc548
However, the bottom tab screens don't include the search bottom tab screen yet.
After fixing the above issue, we still have another issue where pressing Enter will open the report RHP in Expenses and Invoices tab. That's because the "View" action button has a p App/src/components/SelectionList/Search/ActionCell.tsx Lines 66 to 72 in 0c618ac
What changes do you think we should make in order to solve the problem?Add the search bottom tab screen to the list.
Remove App/src/components/SelectionList/Search/ActionCell.tsx Lines 66 to 91 in 0c618ac
|
@bernhardoj Thanks for your proposal. While your solution does seem to fix the fact that Screen.Recording.2024-09-13.at.20.02.51.mov |
Oh, I was trying to repro it on the Chats type but no success. Turns out it's reproducible on the Expenses and Invoices tab. Updated my proposal! |
🎉 Thanks for the update! @bernhardoj's updated proposal looks good to me - the RCA is correct and the updated solution fixes the issue according to the Expected result 👍 🎀👀🎀 C+ reviewed |
Current assignee @luacmartins is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @ikevin127 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
PR is ready cc: @ikevin127 |
|
Thanks! |
Payment summary as follows:
Closing! |
Requested in ND. |
$250 approved for @bernhardoj |
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: 9.0.33-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: @suneox
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1726117464938269
Action Performed:
Expected Result:
The workspace switcher or the RHP does not open when clicking Enter on the search page.
Actual Result:
The workspace switcher and RHP open when clicking Enter
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Screen.Recording.2024-09-12.at.02.49.56.mp4
View all open jobs on GitHub
Recording.539.mp4
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ikevin127The text was updated successfully, but these errors were encountered: