refactor: move footer mode flags into ConfirmationFieldsContext#93047
Conversation
|
Codex Review: Didn't find any major issues. Bravo. ℹ️ 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". |
|
@ShridharGoel 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] |
|
@Julesssss @cristipaval One of you needs to 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppScreen.Recording.2026-06-16.at.2.05.56.AM.moviOS: mWeb SafariScreen.Recording.2026-06-16.at.2.08.23.AM.movMacOS: Chrome / SafariScreen.Recording.2026-06-16.at.2.04.00.AM.mov |
| }; | ||
|
|
||
| type PerDiemSectionContentProps = Omit<PerDiemSectionProps, 'isPerDiemRequest'>; | ||
| type PerDiemSectionContentProps = PerDiemSectionProps; |
There was a problem hiding this comment.
Can't we use PerDiemSectionProps directly?
There was a problem hiding this comment.
Good catch, fixed
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@ShridharGoel I addressed your comment. Could you take a second look when you get a chance? Thanks! |
|
Sure |
|
@OlimpiaZurek Can you add the test steps in the description? |
|
Getting not found page when tapping on categories Screen.Recording.2026-06-12.at.10.40.21.PM.mov |
Added |
I looked into it and the root cause turned out to be that my branch was behind main. This PR doesn't touch routing, so it wasn't related to the refactor itself. I've now synced with main and it works as expected. Could you re-test on the updated branch? |
|
on you now, @Julesssss |
|
🚧 @Julesssss 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/Julesssss in version: 9.4.10-0 🚀
Bundle Size Analysis (Sentry): |
Help site review — no changes requiredI reviewed the changes in this PR and no updates are required to Expensify's help site files under Why: This is a pure internal refactor. It moves the expense-mode flags ( Since there is no behavioral or UI change for end users, no draft help site PR was created. @OlimpiaZurek, please confirm whether you agree that no help site changes are needed. If you believe a doc update is warranted, let me know and I'll create the draft PR. |
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.4.12-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 No help site changes required. This PR is a pure internal refactor: it moves the expense-mode flags ( The change is limited to how these values are passed between components — there is no change to any user-facing behavior, UI, field, label, or flow on the expense confirmation page. Since @OlimpiaZurek, if you believe any user-facing behavior actually changed here that should be reflected on the help site, let me know and I'll create the docs PR. |
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.4.14-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.4.14-1 🚀
|
Explanation of Change
This PR moves the expense-mode flags out of the prop chain on
MoneyRequestConfirmationListFooterand into the existingConfirmationFieldsContext. The footer was drilling them down to its sectionsand field groups even though they don't change during the flow — classic prop drilling for values that already had a natural home.Fixed Issues
$ #90385
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari