-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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-04-09] [$500] Workspace - The left side bar remains as chat when clicking on WS invitation link #38824
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @iwiznia ( |
@iwiznia 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 #wave-collect - Release 1 |
I have no idea what this means, can someone clarify? |
@iwiznia |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace - The left side bar remains as chat when clicking on WS invitation link What is the root cause of that problem?Here :
we are defining routes as Navigation.goBack(undefined, false, true); which is taking us back but with inconsistency asNavigation.goBack method is used to return to the previous screen, passing undefined to not pop any screens from the stack, false to not animate the transition, and true to dismiss the keyboard if open but while doing all that it causes inconsistency and we have already defined navigateAfterJoinRequest which is taking care of it.
What changes do you think we should make in order to solve the problem?So, we need to replace this -
with this - navigateAfterJoinRequest();
What alternative solutions did you explore? (Optional)I think alternatively we can navigate the user to
ResultScreen.Recording.2024-03-23.at.1.30.08.AM.mp4 |
Updated Proposal with result |
Job added to Upwork: https://www.upwork.com/jobs/~01959b571907654054 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?We are simply navigating back to the previous route if the user is the policy member of the workspace which causes this error:
What changes do you think we should make in order to solve the problem?We should navigate to the Settings page of that Workspace if the currrent user is already the member of workspace: Navigation.Navigate(ROUTES.WORKSPACE_INITIAL.getRoute( policyID ?? '')); What alternative solutions did you explore? (Optional)Not sure but we can navigate to all Workspace page: Line 80 in 416c759
|
ProposalPlease re-state the problem that we are trying to solve in this issue.When we open a workspace invite link while already a member, the workspace list is shown with an LHN. What is the root cause of that problem?Currently, when we are already a member of the workspace, we will just close the page. App/src/pages/workspace/WorkspaceJoinUserPage.tsx Lines 47 to 50 in 191d932
But the logic above is triggered twice, so we got navigated twice. If we go from the chat/report screen to the workspace list page, then go to the report screen again [chat, WS, chat], then when the twice go back navigation happens, we arrive at the workspace list page instead of the LHN. The first go back pops the workspace join page, and the second go back pops the chat page. The reason it is triggered twice is because of the onyx For the What changes do you think we should make in order to solve the problem?I'm not focusing on the onyx issue, but rather on the App/src/pages/workspace/WorkspaceJoinUserPage.tsx Lines 42 to 59 in 191d932
I propose to remove the effect dependencies as I believe we only want to run the logic once and not every time one of the deps is updated. btw, we should add Navigation.isNavigationReady() before calling the goBack, otherwise it will fail when we deep link to it What alternative solutions did you explore? (Optional)If we want to keep the deps, then we can memoize this
Then we can take out the |
ProposalPlease re-state the problem that we are trying to solve in this issue.The left side bar remains as chat when clicking on WS invitation link What is the root cause of that problem?In here, when the user is already a policy member, we're triggering IMO we should:
What changes do you think we should make in order to solve the problem?
We have to:
What alternative solutions did you explore? (Optional)For Instead of WorkspaceInitialPage, another destination like |
Current assignee @iwiznia is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@Ollyws hi, have you checked my proposal? I think the real issue here is the double navigation. Navigating to another page doesn't fix the root cause. Without fixing the double navigation, you will see the user gets navigated to the WS page (if we navigate to it) twice. Screen.Recording.2024-03-25.at.12.04.18.mov |
@bernhardoj I did and I'm not sure that it's the root cause here. Screen.Recording.2024-03-25.at.11.26.48.mov |
Oh my bad, I didn't put it inside the
You can test (without changing any code) by clicking the link and see the chat page will close. |
📣 @Ollyws 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.58-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-04-09. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist:
https://github.com/Expensify/App/pull/37525/files#r1557429884
N/A
Yes.
Regression Test Proposal
Do we agree 👍 or 👎 |
@iwiznia Could we get a BZ member assigned for payment? Thanks. |
Current assignee @Ollyws is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to @joekaufmanexpensify ( |
Hmm why did melvin downgrade the price to $250...I think this one should be $500 as it was created before the 5th April. |
Yep, you're right. |
Upwork job price has been updated to $500 |
Regression test is here: https://github.com/Expensify/Expensify/issues/386545 |
@Ollyws $500 sent and contract ended! |
@tienifr $500 sent and contract ended! |
Upwork job closed. |
All set. Thanks everyone! |
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.56-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Actual Result:
Expected Result:
The left side bar will be menu
Actual Result:
The left side bar remains as chat when clicking on WS invitation link
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6423434_1711128140057.20240323_011952.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: