fix onboarding modal from OD and bac button flow#89071
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@bernhardoj Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
Looks like on mobile web navigation is a bit broken 2026-04-28.17.52.38.mov |
trjExpensify
left a comment
There was a problem hiding this comment.
Tab navigator refactor deploy blockers, agree we should fix these. 👍
im on it :) |
Screen.Recording.2026-04-29.at.12.03.52.movIt already works with my mock data. Please make sure it also works with a real card as well. |
cb30cfb
|
@ZhenjaHorbach @luacmartins |
|
Let’s hold off on the merge for now, @WojtekBoman will take a look to see if this fix logic can be simplified |
|
@sumo-slonik @WojtekBoman any updates here? |
|
Reviewing... |
|
@sumo-slonik please merge main |
|
Merged, thanks for the reminder! |
|
Regarding the flow with OD, I’m not able to reproduce it, but I went back and looked at the previous flow we had, and checked which conditions used to trigger it but are now being ignored. I’m not entirely sure how to perform that redirection to the development environment.
I’ll add a test suite that covers this scenario. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid_hybrid.mp4Android: mWeb Chromeandroid_mWeb.mp4iOS: HybridAppios_hybrid.mp4iOS: mWeb Safariios_mWeb.mp4MacOS: Chrome / Safariweb_chrome.mp4 |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 95352e3826
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if ((minimalAction.payload as {name?: string} | undefined)?.name === NAVIGATORS.TAB_NAVIGATOR) { | ||
| navigationRef.current.dispatch({...minimalAction, type: CONST.NAVIGATION.ACTION_TYPE.POP_TO, target: targetState.key}); | ||
| return; |
There was a problem hiding this comment.
Preserve exact tab instance when handling goUp
When the root stack contains multiple TAB_NAVIGATOR entries (which this file explicitly creates for cross-tab flows), this branch switches from index-based popping to POP_TO by route name only. goUp() has already computed indexOfBackToRoute using doesRouteMatchToMinimalActionPayload(..., compareParams=true), but POP_TO does not use that index and can stop at a different TAB_NAVIGATOR instance than the one that matched params. In those multi-instance stacks, back navigation can return to the wrong tab context/state.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
@sumo-slonik could you please check this? Probably a false positive.
There was a problem hiding this comment.
(isRootNavigatorState(targetState) && distanceToPop > 1) already catches multi-instance scenarios earlier via REPLACE, so only distanceToPop ≤ 1 remains here and matching by name=name is sufficient.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…bugfix/tab_navi_blockers fix onboarding modal from OD and bac button flow (cherry picked from commit 7c1f47e) (cherry-picked to staging by luacmartins)
|
🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 9.3.64-20 🚀
Bundle Size Analysis (Sentry): |
|
I reviewed all changes in this PR. The fixes are purely internal navigation bug fixes:
These changes affect internal navigation state management only. They do not alter any user-facing feature names, settings labels, workflows, or UI copy. No help site changes are required — existing articles under |
|
🚧 @luacmartins 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! 🧪🧪
|
Explanation of Change
Fixed Issues
$ #89010
$ #89006
PROPOSAL:
Tests
Verify the bug 89010 reproduction
Prerequisite: A new account that has not yet signed in to NewDot.
<anything>@tstsg.com).Verify the bug 89006 reproduction (narrow layout):
Offline tests
Unnesesary
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.ScrollViewcomponent to make it scrollable when more elements are added to the page.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