[CP Staging] fix: navigation issue when reject all expenses of report#77696
[CP Staging] fix: navigation issue when reject all expenses of report#77696lakchote merged 2 commits intoExpensify:mainfrom
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.
|
|
@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] |
|
@mananjadhav PR is ready for review. @eVoloshchak Please ignore this one. Thanks! |
|
Assigning @situchan to move forward with the PR |
| Navigation.dismissModal(); | ||
| if (urlToNavigateBack) { | ||
| Navigation.isNavigationReady().then(() => Navigation.goBack(urlToNavigateBack as Route)); | ||
| } |
There was a problem hiding this comment.
Code looks good as just copied logic from here:
App/src/pages/iou/RejectReasonPage.tsx
Lines 32 to 38 in a430ca9
| if (isUserOnSearchPage) { | ||
| urlToNavigateBack = undefined; | ||
| } else if (isUserOnSearchMoneyRequestReport) { | ||
| const lastRouteParams = lastRoute?.params; | ||
| urlToNavigateBack = lastRouteParams && 'backTo' in lastRouteParams ? lastRouteParams?.backTo : undefined; | ||
| } else { | ||
| urlToNavigateBack = ROUTES.REPORT_WITH_ID.getRoute(report?.chatReportID); | ||
| } |
There was a problem hiding this comment.
Looks good as copied logic from here:
Lines 13616 to 13626 in a430ca9
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariBug 1: Before before.movAfter after.movBug 2: not reproducible on both main and this branch. Maybe fixed by this revert delete.mov |
There was a problem hiding this comment.
LGTM
Jest2 test failing is unrelated (see #77698 (review)), proceeding with the merge to fix the deploy blocker.
|
@lakchote looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Not an emergency, see #77696 (review) |
[CP Staging] fix: navigation issue when reject all expenses of report (cherry picked from commit 23ccf2a) (cherry-picked to staging by lakchote)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/lakchote in version: 9.2.78-4 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.78-8 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/lakchote in version: 9.2.79-0 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/lakchote in version: 9.2.81-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.81-5 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.81-5 🚀
|
Explanation of Change
Fixed Issues
$ #77598
PROPOSAL:
Tests
Precondition:
Submission frequency is set to Instantly.
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
Screen.Recording.2025-12-16.at.02.51.33.mov
Android: mWeb Chrome
Screen.Recording.2025-12-16.at.02.55.33.mov
iOS: Native
Screen.Recording.2025-12-16.at.02.50.03.mov
iOS: mWeb Safari
Screen.Recording.2025-12-16.at.02.53.16.mov
MacOS: Chrome / Safari
Screen.Recording.2025-12-16.at.02.44.14.mov