fix: app restarts per diem creation flow after subrate step#64212
fix: app restarts per diem creation flow after subrate step#64212lakchote merged 1 commit intoExpensify:mainfrom
Conversation
| navigateBack(); | ||
| } else if (explicitPolicyID) { | ||
| } else if (explicitPolicyID && transaction?.isFromGlobalCreate) { | ||
| Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_TIME.getRoute(action, iouType, transactionID, policyExpenseReport?.reportID ?? reportID)); |
There was a problem hiding this comment.
My RCA was not completely correct. This logic is not to guaranteer the report to open after creating the expense. It is to indicate the destination workspace report to link the expense to when there are multiple workspaces with per diem enabled.
When you create expense from global create button and there are multiple workspaces with per diem rates, you would have to choose the destination workspace. After selecting the destination workspace, explicitPolicyID is set to that workspace ID. That means we should only execute this logic if the flow was initialized from the global create button.
The logic for navigation after creating the report is unchanged from production:
- When you create the expense from the "Add expense" button on the expense report preview > Open the expense report
- When you create the expense from the workspace chat's create button > Open the workspace chat report
There was a problem hiding this comment.
Apologies for the delay @mkzie2, in my tests everything works fine:
MacOS: Chrome
Screen.Recording.2025-06-17.at.15.24.39.mov
To clarify, what about implement backToReport URL param for all the per diem steps? Isn't that necessary? Thank you.
There was a problem hiding this comment.
Yes, it's not necessary now. I misunderstood the explicitPolicyID navigation logic.
There was a problem hiding this comment.
Great! I will continue with the checklist.
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp64212_android_native.movAndroid: mWeb Chrome64212_web_android.moviOS: HybridApp64212_ios_native.moviOS: mWeb Safari64212_web_ios.movMacOS: Chrome / Safari64212_web_chrome.movMacOS: Desktop64212_web_desktop.mov |
|
✋ 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/lakchote in version: 9.1.70-0 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.1.70-7 🚀
|
3 similar comments
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.1.70-7 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.1.70-7 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.1.70-7 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.1.70-7 🚀
|
Explanation of Change
Fixed Issues
$ #63111
PROPOSAL: #63111 (comment)
Tests
Precondition:
Offline tests
QA Steps
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))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-06-16.at.11.17.18-compressed.mov
Android: mWeb Chrome
Screen.Recording.2025-06-16.at.11.20.24-compressed.mov
iOS: Native
Screen.Recording.2025-06-16.at.10.59.49-compressed.mov
iOS: mWeb Safari
Screen.Recording.2025-06-16.at.11.01.35-compressed.mov
MacOS: Chrome / Safari
Screen.Recording.2025-06-16.at.10.21.01-compressed.mov
MacOS: Desktop
Screen.Recording.2025-06-16.at.10.49.50-compressed.mov