Remove redirect to Search/Reports for migrated users#85272
Conversation
The MigratedUserWelcomeModalGuard was passing ROUTES.SEARCH_ROOT.route as the backTo parameter when redirecting to the migration welcome modal. This caused users to be navigated to the Search/Reports page after dismissing the modal. By removing this argument, the modal still shows but the user stays on their current page (Home) after dismissal. Co-authored-by: Puneet Lath <puneetlath@users.noreply.github.com>
…o parameter Co-authored-by: Puneet Lath <puneetlath@users.noreply.github.com>
|
Fixed the failing check: The test in |
|
Based on my testing, seems to work. Opening for C+ review. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
Pujan92
left a comment
There was a problem hiding this comment.
LGTM!
Screen.Recording.2026-03-15.at.23.49.44.mov
JmillsExpensify
left a comment
There was a problem hiding this comment.
Fix looks good for product
|
@aimane-chnaif 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] |
|
Hmm, not sure why that didn't trigger internal review. Will ask for one. |
|
🚧 @luacmartins has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.3.39-0 🚀
|
|
Hi @luacmartins @JmillsExpensify How can we set up
|
|
@izarutskaya you can:
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.3.39-3 🚀
|
Explanation of Change
The
MigratedUserWelcomeModalGuardwas passingROUTES.SEARCH_ROOT.route(which resolves to'search') as thebackToparameter when redirecting to the migrated user welcome modal. This caused the generated URL to beonboarding/migrated-user-welcome?backTo=search, so after dismissing the modal, users were navigated to the Search/Reports page instead of staying on their current page.This PR removes the
backToargument fromgetRoute()so that:backToparameter)Fixed Issues
$ https://github.com/Expensify/Expensify/issues/611826
Tests
nudgeMigrationin thetryNewDotNVP) and has not yet dismissed the migrated user welcome modalOffline tests
No offline-specific behavior changes — the navigation guard only fires during initial app load when online.
QA Steps
nudgeMigrationNVP set and the migrated user welcome modal not yet dismissed)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
N/A — no UI changes, only navigation behavior change
Android: mWeb Chrome
N/A — no UI changes, only navigation behavior change
iOS: Native
N/A — no UI changes, only navigation behavior change
iOS: mWeb Safari
N/A — no UI changes, only navigation behavior change
MacOS: Chrome / Safari
N/A — no UI changes, only navigation behavior change