You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Hold for #49539][$250] Android - Workspace - User is redirected to previous page when deleting current workspace #51986
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsWeeklyKSv2
changed the title [-]Android - Workspace - User is redirected to previous page when deleting current workspace[/-][+][$250] Android - Workspace - User is redirected to previous page when deleting current workspace[/+]on Nov 5, 2024
What changes do you think we should make in order to solve the problem?
I don't think we need to navigate to another page because we've already been on the workspace list page. We can simply remove Navigation.navigateWithSwitchPolicyID({policyID: undefined}).
Please re-state the problem that we are trying to solve in this issue.
User is redirected to previous page when deleting current workspace
What is the root cause of that problem?
In this PR #38365, we added functionality mainly to display the allWorkspaceView after deleting the active workspace, and to show all chats when the user returns to the LHN.
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsWeeklyKSv2
Activity
melvin-bot commentedon Nov 4, 2024
Triggered auto assignment to @Christinadobrzyn (
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.abzokhattab commentedon Nov 4, 2024
Edited by proposal-police: This proposal was edited at 2024-11-04 20:40:34 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
User is redirected to previous page when deleting current workspace
What is the root cause of that problem?
When user navigates to the workspace from the workspace selector then goes to the settings and delete this workspace the following condition is met:
App/src/pages/workspace/WorkspacesListPage.tsx
Lines 136 to 142 in af2d2c6
routearg to thenavigateWithSwitchPolicyIDfunction which causes it to call thegoBackin this caseWhat changes do you think we should make in order to solve the problem?
we should provide the workspace list page route to the
navigateWithSwitchPolicyIDfunctionor we can use the currentRoute instead of the hardcoded route.
What alternative solutions did you explore? (Optional)
[-]Android - Workspace - User is redirected to previous page when deleting current workspace[/-][+][$250] Android - Workspace - User is redirected to previous page when deleting current workspace[/+]melvin-bot commentedon Nov 5, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021853673909103643294
melvin-bot commentedon Nov 5, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary (
External)Christinadobrzyn commentedon Nov 5, 2024
this can be reproduced outside of the Hybrid app so adding External
mkzie2 commentedon Nov 5, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
User is redirected to previous page instead of staying on workspaces list tab, after deleting currently selected workspace
What is the root cause of that problem?
We call
navigateWithSwitchPolicyIDwithoutrouteparam after we delete the active policy then it goes back to the previous page.App/src/pages/workspace/WorkspacesListPage.tsx
Lines 136 to 142 in af2d2c6
What changes do you think we should make in order to solve the problem?
I don't think we need to navigate to another page because we've already been on the workspace list page. We can simply remove
Navigation.navigateWithSwitchPolicyID({policyID: undefined}).App/src/pages/workspace/WorkspacesListPage.tsx
Lines 136 to 142 in af2d2c6
What alternative solutions did you explore? (Optional)
Nodebrute commentedon Nov 5, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
User is redirected to previous page when deleting current workspace
What is the root cause of that problem?
In this PR #38365, we added functionality mainly to display the allWorkspaceView after deleting the active workspace, and to show all chats when the user returns to the LHN.
App/src/pages/workspace/WorkspacesListPage.tsx
Lines 138 to 141 in 10454f0
App/src/pages/workspace/WorkspaceProfilePage.tsx
Lines 137 to 141 in 10454f0
However, in this PR, we added navigation logic to
BaseSidebarScreen.tsx, making the logic from the previous #38365 outdated.App/src/pages/home/sidebar/SidebarScreen/BaseSidebarScreen.tsx
Line 44 in 10454f0
What changes do you think we should make in order to solve the problem?
We can remove all the changes of this PR #38365. For example
removing this code block
App/src/pages/workspace/WorkspaceProfilePage.tsx
Lines 137 to 141 in 10454f0
and this
App/src/pages/workspace/WorkspacesListPage.tsx
Lines 137 to 141 in 10454f0
App/src/pages/workspace/WorkspacesListPage.tsx
Line 116 in 10454f0
and perform other cleanups from that PR.
Deleting workspace from workspace list view
Screen.Recording.2024-11-05.at.12.06.31.PM.mov
Deleting workspace from workspace profile page
Screen.Recording.2024-11-05.at.12.00.55.PM.mov
What alternative solutions did you explore? (Optional)
Christinadobrzyn commentedon Nov 6, 2024
@ntdiary can you take a peek at these proposals when you have a moment? Thank you!
19 remaining items
Christinadobrzyn commentedon Jan 3, 2025
Hold for #49539
Christinadobrzyn commentedon Jan 9, 2025
Hold for #49539
Christinadobrzyn commentedon Jan 17, 2025
Hold for #49539
Christinadobrzyn commentedon Jan 23, 2025
Hold for #49539
Christinadobrzyn commentedon Jan 29, 2025
Hold for #49539
Christinadobrzyn commentedon Feb 6, 2025
Hold for #49539
Christinadobrzyn commentedon Feb 14, 2025
#49539 is merged... I guess we need to retest. Moving to daily to test
ntdiary commentedon Feb 17, 2025
@Christinadobrzyn, this issue has been fixed. :)
test.mov
Christinadobrzyn commentedon Feb 19, 2025
Yay! Closing this out as complete.