-
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 2024-12-25] [$250] iOS Search - Filter icon is not responsive when navigating to Search via WS chat in WS settings #53600
Comments
Triggered auto assignment to @kadiealexander ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Filter icon is not responsive. What is the root cause of that problem?We are using normal navigate here
Search page is open on top of App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 360 to 362 in 0e28aa4
And we get dismiss all RHP modal in this useEffect App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 372 to 375 in 0e28aa4
What changes do you think we should make in order to solve the problem?When workspace init is the only route in the navigator state. We can use navigate with a type of 'UP'
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?NA What alternative solutions did you explore? (Optional)We can use function Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The issue involves [specific problem, e.g., "inconsistent form behavior causing incorrect submissions"], affecting [impact, e.g., "data reliability and user experience"]. What is the root cause of that problem?Triggered by [root cause, e.g., "a race condition in asynchronous state management"]. What changes do you think we should make in order to solve the problem?
Suggested Fix for the Filter Icon Handler
Add Accessibility and Clickability Checks
What alternative solutions did you explore? (Optional)
|
Job added to Upwork: https://www.upwork.com/jobs/~021864902077815200576 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rayane-djouah ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The filter button is "unresponsive" What is the root cause of that problem?In WorkspaceInitialPage, we check to see if the active route of the sub-page of the workspace settings page is accessible. App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 360 to 376 in 3baf965
If not, then we dismiss any RHP. For example, if the user opens a workspace as a member and tries to open the workspace categories setting, then the categories setting RHP will be dismissed and the not found page will show from the workspace categories list page. In our case, we open the workspace's initial page. The active route becomes We actually have the logic to run it only once. App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 368 to 371 in 3baf965
But when we open the search page, all routes are "hidden". App/src/libs/Navigation/AppNavigator/createResponsiveStackNavigator/useStateWithSearch.ts Lines 44 to 57 in 3baf965
So, the What changes do you think we should make in order to solve the problem?We can update
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A |
ProposalPlease re-state the problem that we are trying to solve in this issueFilter icon is not responsive when navigating to Search via WS chat in WS settings. What is the root cause of that problem?Note This issue is only present on narrow layout devices (native / mWeb) where screens displayed in RHP act as a modal. App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 360 to 376 in 3baf965
When we open the workspace's initial page, the active route becomes We actually have the logic to only run it once here, but when we open the search page, all routes are "hidden" as explained here. Because of this, the Credits to bernhardoj for the RCA. What changes do you think we should make in order to solve the problem?We had a similar issue which I reviewed recently here where we navigated away from A practical solution for this kind of issue which wouldn't break any other functionality is to simply replace the way we navigate away from WS to the report here:
to use onPress={() => Navigation.dismissModal(currentUserPolicyExpenseChat?.reportID ?? '-1')} Why dismissing the modal first fixes our issue ? Result video (before / after)iOS: Native
|
Important I proposed the same solution for this issue and because this solution would fix both issues, if my solution is selected on any of the two issues -> we should put the other one on HOLD. |
@kadiealexander, @rayane-djouah Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Will review today |
@bernhardoj's proposal looks good to me. It comprehensively explains the root cause and fixes the bug at its root. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @thienlnam, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @rayane-djouah 🎉 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: @rayane-djouah |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.76-12 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 2024-12-25. 🎊 For reference, here are some details about the assignees on this issue:
|
@rayane-djouah @kadiealexander @rayane-djouah 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:
Regression Test Proposal
Do we agree 👍 or 👎 |
Payment summary: @rayane-djouah due $250 for C+ work, paid via Upwork ✅ |
Requested in ND. |
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: 9.0.71-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
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): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Filter options will open.
Actual Result:
Filter icon is not responsive.
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @kadiealexanderThe text was updated successfully, but these errors were encountered: