Navigate to last accessed report after dismissing migrated user welcome modal#90134
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@MelvinBot, pull the latest main |
…me modal Co-authored-by: Eugene Voloshchak <eVoloshchak@users.noreply.github.com>
f7482db to
53f85da
Compare
|
Pulled the latest main into the branch. The branch was rebased onto the current |
@MelvinBot, populate the Tests and QA Tests sections of the PR Author Checklist with these tests |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppvideo_2026-05-25_00-59-58.mp4Android: mWeb ChromeScreen.Recording.2026-05-25.at.00.44.22.moviOS: HybridAppScreen.Recording.2026-05-25.at.00.41.27.moviOS: mWeb SafariScreen.Recording.2026-05-25.at.00.38.47.movMacOS: Chrome / SafariScreen.Recording.2026-05-25.at.00.35.07.mov |
|
Updated the Tests and QA Steps sections with the provided test steps. |
|
@MelvinBot, check off every checkbox in the PR author checklist |
eVoloshchak
left a comment
There was a problem hiding this comment.
LGTM!
@MelvinBot, mark this as ready for review
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #89900 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
Done — all checkboxes in the PR author checklist have been checked off. |
|
PR has been marked as ready for review. ✅ |
|
@eVoloshchak 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] |
|
🚧 @grgia 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/grgia in version: 9.3.81-0 🚀
|
|
No help site changes are required for this PR. This PR fixes a navigation bug where dismissing the "Welcome to New Expensify!" modal navigated to the search page instead of the user's last accessed report. The change is purely internal (swapping |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.81-2 🚀
|
|
@grgia @eVoloshchak migrated users after dismissing the modal intentionally always land on the Spend page for their first session as it is more familiar for them. Looks like I was assigned to review from product, but I was out of office Monday, so didn't get a chance to before this was merged. Can we CP a revert of this in the morning, please? We're actively nudging at the moment and it's disruptive. CC: @mountiny as I believe you're the deployer. 👍 |
Explanation of Change
After tapping "Let's go!" on the migrated user welcome modal, the user was landing on the search page instead of their report page. This was because
onClosenavigated toSEARCH_ROOTrather than finding the user's last accessed report.This updates
MigratedUserWelcomeModal.onCloseto usefindLastAccessedReport()(the same utility used bynavigateAfterOnboardingandReportsSplitNavigator) to find and navigate to the user's last accessed report. If no report is found, the modal simply dismisses without explicit navigation, letting the underlying navigation state handle routing.Fixed Issues
$ #89900
PROPOSAL: #89900 (comment)
Tests
NVP.set('tryNewDot', {classicRedirect: {dismissed: false, timestamp: '2024-01-07'}, nudgeMigration: {timestamp: '2024-01-07'}});Offline tests
QA Steps
NVP.set('tryNewDot', {classicRedirect: {dismissed: false, timestamp: '2024-01-07'}, nudgeMigration: {timestamp: '2024-01-07'}});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.getBackgroundColorStyle(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