Repository navigation
Conversation
|
@linhvovan29546 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] |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
garrettmknight
left a comment
There was a problem hiding this comment.
Looks good from a product perspective.
|
@TaduJR Conflicts |
…de-to-keep-navigation-handling-in-the-UI-components # Conflicts: # src/libs/actions/IOU/SplitTransactionUpdate.ts # src/pages/iou/request/step/confirmation/useExpenseSubmission.ts # src/pages/iou/updateSplitTransactionsFromSplitExpensesFlow.ts # tests/actions/IOUTest/SplitTest.ts
…de-to-keep-navigation-handling-in-the-UI-components
All done @linhvovan29546 |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-10-23.at.18.44.04.movAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-10-23.at.18.39.08.movScreen.Recording.2026-10-23.at.18.39.39.movScreen.Recording.2026-10-23.at.18.40.07.mov |
|
@TaduJR, can you fix the conflict? |
…de-to-keep-navigation-handling-in-the-UI-components # Conflicts: # src/pages/iou/request/step/IOURequestStepConfirmation/index.tsx
…de-to-keep-navigation-handling-in-the-UI-components
…de-to-keep-navigation-handling-in-the-UI-components # Conflicts: # src/pages/iou/request/step/IOURequestStepConfirmation/index.tsx # src/pages/iou/request/step/confirmation/useExpenseSubmission.ts
|
Friendly Bump @Gonals Thanks!!! |
|
🚧 Gonals 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/Gonals in version: 9.5.31-0 🚀
|
|
No help site update needed — this PR refactors internal navigation and submission handling without changing user-facing workflows or making existing article instructions incorrect. |
|
🚀 Deployed to staging by https://github.com/Gonals in version: 9.5.31-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.5.31-4 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Part of #84631, which moves navigation decisions out of the expense actions and into the screens that navigate. This PR changes no behavior.
The split save no longer decides when to write.
updateSplitTransactionsused to hold its write until a screen change finished wheneverisFromSplitExpensesFlowwas set. Only the code that navigates knows a screen change is coming, soupdateSplitTransactionsFromSplitExpensesFlownow creates that wait and passes it in aswriteBarrier. A caller that passes none, likeuseDeleteTransactions, gets an immediate write, same as before. The flow function also takes a narrower params type,UpdateSplitTransactionsData, so a caller can't hand it awriteBarrierit would ignore.Flags that change behavior are now required.
shouldHandleNavigationandlocationPermissionGrantedoncreateTransaction, andshouldHandleNavigationandshouldStartTrackingonsendMoney, used to have defaults. A caller could navigate, start tracking, or drop a scan's GPS coordinates just by leaving one out. Every caller now passes the value it was already getting from the default, and TypeScript flags a new caller that forgets one.The guard test covers more.
actionLayerNavigationGuardTest.tsnow:src/libs/actionscreates its own transition wait (createTransitionBarrierorarmTransitionBarrier)SendMoney.tsfor navigation, since it no longer navigatesnpm run typecheckif an action whose navigation already moved starts returning dataTwo comments that called
trackExpensevoid are fixed, since it still returns a value.Fixed Issues
$ #84631
PROPOSAL: #84631 (comment)
Tests
Split an expense
Create an expense
If Create expense opens on the Scan tab, tap Manual. If Allow location access appears, tap Not now.
Pay someone
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, 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.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-Native.mp4
Android: mWeb Chrome
Android-mWeb.mp4
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Mac-Chrome.mp4