Repository navigation
Refactor: ConfirmModal to useConfirmModal | Batch 4 - #92236
Conversation
|
@ZhenjaHorbach 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f87fad7ee8
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
|
@ZhenjaHorbach, I was unable to test case 3 on Android Web because the “Delete receipt” button is missing. Could you reproduce this issue? |
|
No product review needed |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2026-07-09.10.49.55.mov2026-07-09.10.51.12.mov2026-07-09.11.22.17.movAndroid: mWeb Chrome2026-07-09.10.44.04.mov2026-07-09.10.45.55.moviOS: HybridApp2026-07-09.10.49.55.mov2026-07-09.10.51.12.mov2026-07-09.11.22.17.moviOS: mWeb Safari2026-07-09.10.44.04.mov2026-07-09.10.45.55.movMacOS: Chrome / Safari2026-07-09.10.39.18.mov2026-07-09.10.40.08.mov |
|
@codex |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 01fcaf3a1a
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
|
@MelvinBot |
|
🤖 Review — Refactor: Overall this is a clean, well-scoped migration and the logic is largely equivalent. I verified the one subtle thing this refactor depends on: the global modal resolves its One likely regression and a few minor points below. 🟠 Likely regression: contact-import illustration may render as a placeholderIn const {action} = await showConfirmModal({
...
iconSource: illustrations.ToddWithPhones,
});
Please verify the Todd illustration reliably appears on a cold run of the contact-import flow (no prior illustration usage in the session) — the posted screenshots may have had the chunk already cached. 🟡 Minor: consecutive file errors now animate hide→reshow between eachIn 🟢 Nits
I couldn't fully confirm the illustration behavior without running the native flow, so treat that item as a verification request rather than a definitive bug. |
|
@mohammadjafarinejad |
|
Let's get this PR merged this week and get the long-open issue closed out! |
|
@mohammadjafarinejad |
|
@ZhenjaHorbach PR is ready for re-review. |
|
Thanks |
|
Okay |
|
@mohammadjafarinejad |
|
@mohammadjafarinejad |
|
I'll resolve it by EOD (end of day). |
No problem |
|
@ZhenjaHorbach Ready for re-review |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 roryabraham has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.4.52-0 🚀
|
|
🤖 I reviewed the changes in this PR and no help site changes are required under Why: This PR is a pure internal refactor — it swaps the Because no docs changes are needed, I did not open a draft help site PR. @mohammadjafarinejad, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.4.52-11 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Refactor
ConfirmModalusage touseConfirmModalin:ContactPermissionModal/index.native.tsxuseFilesValidation.tsxTransactionReceiptModalContent.tsxFixed Issues
$ #76696
PROPOSAL:
Tests
1. Contact Permission Modal (Native)
Setup: Reset contact permissions in device settings.
2. File Validation Errors
Prepare files: valid image (< 24MB), oversized file (> 24MB), invalid format (.txt)
Test any of these flows:
Verify:
3. Delete Receipt Confirmation
Offline tests
Same as tests.
QA Steps
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_test1_a.mp4
android_test1_b.mp4
android_test2.mp4
android_test3.mp4
Android: mWeb Chrome
_androidweb_test2.mp4
iOS: Native
ios_test1.mp4
ios_test2.mp4
ios_test3.mp4
iOS: mWeb Safari
_iosweb_test2_3.mp4
MacOS: Chrome / Safari
web_test2.mp4
web_test3.mp4