Skip to content
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

[$125] Workspace switcher - Back button returns to Inbox when creating new workspace in Search page #47562

Closed
6 tasks done
lanitochka17 opened this issue Aug 16, 2024 · 42 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Aug 16, 2024

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.21-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
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to Search
  3. Open workspace switcher
  4. Click on the create workspace button
  5. Click on the app back button

Expected Result:

App will return to Search page with workspace switcher panel opened

Actual Result:

App returns to Inbox page with workspace switcher panel opened

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6573301_1723754483501.20240816_042927.1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~017ecb2af50a3c8e0d
  • Upwork Job ID: 1825547542380258833
  • Last Price Increase: 2024-09-24
Issue OwnerCurrent Issue Owner: @parasharrajat
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Aug 16, 2024
Copy link

melvin-bot bot commented Aug 16, 2024

Triggered auto assignment to @greg-schroeder (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp

@melvin-bot melvin-bot bot added the Overdue label Aug 19, 2024
@cead22
Copy link
Contributor

cead22 commented Aug 19, 2024

App returns to Inbox page with workspace switcher panel opened

I'm not sure this is the expected behavior, so we should confirm on slack. I think the right label to apply here would be DeployBlockerCash and not DeployBlocker

@cead22 cead22 added DeployBlockerCash This issue or pull request should block deployment and removed DeployBlocker Indicates it should block deploying the API labels Aug 19, 2024
Copy link

melvin-bot bot commented Aug 19, 2024

Triggered auto assignment to @stitesExpensify (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@cead22
Copy link
Contributor

cead22 commented Aug 19, 2024

I don't think this should block the App deploy either, cc @chiragsalian

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Aug 19, 2024
Copy link
Contributor

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@cead22 cead22 removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Aug 19, 2024
@cead22 cead22 added the External Added to denote the issue can be worked on by a contributor label Aug 19, 2024
@melvin-bot melvin-bot bot changed the title Workspace switcher - Back button returns to Inbox when creating new workspace in Search page [$250] Workspace switcher - Back button returns to Inbox when creating new workspace in Search page Aug 19, 2024
Copy link

melvin-bot bot commented Aug 19, 2024

Job added to Upwork: https://www.upwork.com/jobs/~017ecb2af50a3c8e0d

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 19, 2024
Copy link

melvin-bot bot commented Aug 19, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (External)

@melvin-bot melvin-bot bot added the Daily KSv2 label Aug 19, 2024
@Krishna2323
Copy link
Contributor

Krishna2323 commented Aug 19, 2024

Edited by proposal-police: This proposal was edited at 2024-08-19 15:40:42 UTC.

Proposal

Please re-state the problem that we are trying to solve in this issue.

Workspace switcher - Back button returns to Inbox when creating new workspace in Search page

What is the root cause of that problem?

What changes do you think we should make in order to solve the problem?

We should check if the topmost central pane is search screen, if true we will update the active route.

                    onPress={() => {
                        let activeRoute = Navigation.getActiveRouteWithoutParams();
                        const topmostCentralPaneRoute = getTopmostCentralPaneRoute(navigationRef.getRootState() as State<RootStackParamList>);
                        if (topmostCentralPaneRoute?.name === SCREENS.SEARCH.CENTRAL_PANE) {
                            const currentSearchParams = getCurrentSearchParams();
                            if (currentSearchParams) {
                                const {q, ...rest} = currentSearchParams;
                                const policy = PolicyUtils.getPolicy(currentSearchParams?.policyIDs);
                                activeRoute = ROUTES.SEARCH_CENTRAL_PANE.getRoute({query: q, ...rest, policyIDs: policy ? currentSearchParams?.policyIDs : undefined});
                            }
                            activeRoute = ROUTES.SEARCH_CENTRAL_PANE.getRoute({query: CONST.SEARCH.TAB.EXPENSE.ALL});
                        }
                        interceptAnonymousUser(() => App.createWorkspaceWithPolicyDraftAndNavigateToIt('', '', false, false, activeRoute));
                    }}

We can create a util function to check topmostCentralPaneRoute and create workspace, the function should be used everywhere we need to check for topmostCentralPaneRoute.

What alternative solutions did you explore? (Optional)

We can update the /workspace-switcher route to also include backTo param, and when navigating to /workspace-switcher we will pass the activeRoute to /workspace-switcher route function and then to createWorkspaceWithPolicyDraftAndNavigateToIt.

Result

Monosnap.screencast.2024-08-20.01-03-34.mp4

@greg-schroeder
Copy link
Contributor

Thanks @parasharrajat, let me know where you land

@melvin-bot melvin-bot bot removed the Overdue label Sep 6, 2024
@parasharrajat
Copy link
Member

Still debugging this.

@greg-schroeder
Copy link
Contributor

Sounds good

Copy link

melvin-bot bot commented Sep 10, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Sep 11, 2024
@greg-schroeder
Copy link
Contributor

Rajat is still debugging

@melvin-bot melvin-bot bot removed the Overdue label Sep 11, 2024
@parasharrajat
Copy link
Member

Couldn't spend time on it yesterday. I will analyze this further on the weekend.

Copy link

melvin-bot bot commented Sep 13, 2024

@parasharrajat @greg-schroeder this issue is now 4 weeks old, please consider:

  • Finding a contributor to fix the bug
  • Closing the issue if BZ has been unable to add the issue to a VIP or Wave project
  • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

Thanks!

@melvin-bot melvin-bot bot added the Overdue label Sep 16, 2024
@greg-schroeder
Copy link
Contributor

Rajat will get to this during the week

@melvin-bot melvin-bot bot removed the Overdue label Sep 16, 2024
Copy link

melvin-bot bot commented Sep 17, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Sep 18, 2024
@greg-schroeder
Copy link
Contributor

Bump @parasharrajat :)

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 18, 2024
@greg-schroeder
Copy link
Contributor

Bump @parasharrajat

@parasharrajat
Copy link
Member

@greg-schroeder Thanks for the bump. I looked into the proposal and issue. It seems to be much more involved than I expected. I am worried about touching the navigation code which affects the whole app. Let me see what is best here.

@melvin-bot melvin-bot bot removed the Overdue label Sep 23, 2024
Copy link

melvin-bot bot commented Sep 24, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Sep 26, 2024

@parasharrajat, @greg-schroeder Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Sep 26, 2024
@tushar-a-b
Copy link
Contributor

Proposal Updated

  • Added an alternative solution that avoids modifying the navigation code.

@greg-schroeder
Copy link
Contributor

Still in proposal review

Copy link

melvin-bot bot commented Sep 30, 2024

@parasharrajat, @greg-schroeder 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@greg-schroeder
Copy link
Contributor

#vip-vsb is now fully paused/closed, so I'm going to close this as it doesn't really fit in #newdot-quality or any other active project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
No open projects
Development

No branches or pull requests

7 participants