Repository navigation
Keep the requested workspace sidebar when going back across tabs - #107263
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@WojtekBoman This looks good and works well. |
|
@Pujan92 If we want to merge this PR, I can open it for review :) |
|
Yes @WojtekBoman :) |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-11-23.at.17.51.22.mov |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good from a product perspective.
|
Code has internal engineering review, and all checks pass, so going ahead with merging it. |
|
🚧 joekaufmanexpensify has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/joekaufmanexpensify in version: 9.5.53-0 🚀
|
|
No help site update needed — this PR fixes cross-tab navigation to show the correct workspace, restoring expected behavior without adding a workflow or making existing instructions incorrect. |
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.5.53-3 🚀
Bundle Size Analysis (Sentry): |
| return true; | ||
| } | ||
| if (destinationTabState.index !== destinationTabIndex) { | ||
| dispatch({...TabActions.jumpTo(payload.name), target: destinationTabState.key}); |
There was a problem hiding this comment.
I think this caused an issue #103751 which only swaps the params of an already-mounted tab's focused split, so the requested workspace's page rendered beside the previously-open workspace's sidebar
Explanation of Change
Alternative to #106098 that replaces only the Workspaces split instead of the whole tab navigator.
When
goBacktargets a screen in another tab,goUpusedjumpTowith the route params. In a tab that is already mounted, that only swaps the params of its focused split. So Edit spend rules for workspace A, opened from Wallet while Workspaces showed workspace B, put A's More features next to B's sidebar.Now, when the destination tab is mounted and shows a split of another workspace or domain,
goUpreplaces that split inside the tab and then shows the tab. Everything under it stays, such as the workspaces list, and so do the tab navigator and the other tabs. All other cross-tab cases keep the existingjumpTo.The pop that uncovers an underlying tab navigator is now targeted at the root. Without a target, the deepest focused stack handled it, so on wide layout it popped a Settings page instead of the covering tab navigator.
Before:
pr106098-before.mp4
After:
pr106098-after.mp4
Fixed Issues
$ #103751
PROPOSAL: #103751 (comment)
Tests
Precondition: you are an admin of workspace A, which has Rules disabled and an Expensify Card issued to you, and of workspace B.
Offline tests
Navigation only, no network calls change. Same as tests.
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Before (main): More features of workspace A next to the sidebar of workspace B
After: the sidebar shows workspace A, also after browser Back and a second redirect, and the sidebar back arrow returns to the workspaces list