-
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-19] [$250] mWeb - Selector - User lands on the same WS when double tapping on different one on selector #51402
Comments
Triggered auto assignment to @stephanieelliott ( |
We think that this bug might be related to #wave-collect - Release 1 |
@stephanieelliott 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 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Selector - User lands on the same WS when double tapping on different one on selector What is the root cause of that problem?On double click, only App/src/pages/WorkspaceSwitcherPage/index.tsx Lines 85 to 100 in 09f19c3
What changes do you think we should make in order to solve the problem?Implement debouncing to prevent double click
What alternative solutions did you explore? (Optional) |
Edited by proposal-police: This proposal was edited at 2024-10-27 22:00:21 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.mWeb - Selector - User lands on the same WS when double tapping on different one on selector What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
const isFocused = useIsFocused();
const selectPolicy = useCallback(
(option?: WorkspaceListItem) => {
if (!option || !isFocused) {
return;
}
const {policyID} = option;
setActiveWorkspaceID(policyID);
Navigation.goBack();
if (policyID !== activeWorkspaceID) {
Navigation.navigateWithSwitchPolicyID({policyID});
}
},
[activeWorkspaceID, setActiveWorkspaceID, isFocused], What alternative solutions did you explore? (Optional)
Result |
Job added to Upwork: https://www.upwork.com/jobs/~021849976484014852041 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
@nyomanjyotisa Thanks for the proposal. Do you know why this happens on mWeb Chrome only? |
@Krishna2323 Thanks for the proposal. Same question ^ any idea why this does not happen on other platforms? |
@s77rt, It also happens on mWeb Safari, though I don’t have a clear understanding of why it behaves differently. I think this is the default behavior of mobile web, and it totally depends on how quickly the pressables are removed from the screen after selecting an option. I have also added an alternative solution in my proposal, please let me know your thoughts on that. bug_ios_safari_double_tap.mp4 |
@Krishna2323 Thanks for the update. I think using |
@Krishna2323 Did |
@s77rt, works perfectly on my machine. double_navigation_workspace_switcher.mp4 |
const selectPolicy = useCallback(
(option?: WorkspaceListItem) => {
if (!option) {
return;
}
const {policyID} = option;
if (policyID === activeWorkspaceID) {
Navigation.dismissModal();
return;
}
setActiveWorkspaceID(policyID);
Navigation.goBack();
if (policyID !== activeWorkspaceID) {
Navigation.navigateWithSwitchPolicyID({policyID});
}
},
[activeWorkspaceID, setActiveWorkspaceID],
); |
@Krishna2323 I think we still have another problem. After the first click the activeWorkspaceID is changed and so the position of the selected workspace. Now the second click is made on the previous workspace and causes same bug. Screen.Recording.2024-10-29.at.9.04.05.AM.mov |
Screen.Recording.2024-10-29.at.9.16.15.AM.mov |
@s77rt, what do you think about using App/src/pages/home/report/ReportActionCompose/AttachmentPickerWithMenuItems.tsx Lines 296 to 301 in d78be88
App/src/pages/workspace/WorkspaceMembersPage.tsx Lines 151 to 159 in d78be88
|
@Krishna2323 I think that would be a workaround because the |
@s77rt, @stephanieelliott Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Still looking for proposals |
PR is in review |
PR is moving along, @Krishna2323 is working on some tests |
PR is still under review, seems like we were stuck on some testing but @s77rt shared a helpful example to work off of |
This issue has not been updated in over 15 days. @s77rt, @blimpich, @stephanieelliott, @Krishna2323 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! |
Still working on UI test |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.74-8 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-19. 🎊 For reference, here are some details about the assignees on this issue:
|
@s77rt @stephanieelliott @s77rt 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:
Regression Test Proposal Template
Regression Test ProposalPrecondition:Test:Do we agree 👍 or 👎 |
@s77rt, @blimpich, @stephanieelliott, @Krishna2323 Eep! 4 days overdue now. Issues have feelings too... |
@s77rt, @blimpich, @stephanieelliott, @Krishna2323 Still overdue 6 days?! Let's take care of this! |
This is only awaiting payment. I have requested in ND. @stephanieelliott Please handle the payment for @Krishna2323 then we can close. |
@s77rt, @blimpich, @stephanieelliott, @Krishna2323 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it! |
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.53-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: https://expensify.testrail.io/index.php?/tests/view/5122323&group_by=cases:section_id&group_order=asc&group_id=296775
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
LHN should display the selected workspace chats when the user double taps over it in selector.
Actual Result:
User remains on the same workspace when trying to select "Expensify" option or next workspace on the selector list with double tapping.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6643981_1729740526844.Selector_WS.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @stephanieelliottThe text was updated successfully, but these errors were encountered: