Refactored ConfirmModal usage to useConfirmModal - #79616
Conversation
Codecov Report❌ Patch coverage is
... and 8 files with indirect coverage changes 🚀 New features to boost your workflow:
|
…ix useCallback dependencies
|
@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] |
|
@roryabraham 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] |
|
@ZhenjaHorbach The PR is ready for review for the remaining modals. |
f45f1ba to
ad04c5f
Compare
|
conflicts |
|
@roryabraham please have a look. |
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.3.11-19 🚀
|
|
@abbasifaizan70 @ZhenjaHorbach Could you please provide more steps on how to trigger the modal for these tests?
|
@jponikarchuk You can modify the AcceptSpotnanaTerms response for testing using Chrome Dev Tools to test TravelTerms. For EditReportFieldPage i did a manual change locally to test this modal. @ZhenjaHorbach, if you have more ways to test, then let her know. Thanks. |
|
Thanks @abbasifaizan70, Verify Company Modal works fine bandicam.2026-02-03.20-56-24-314.mp4 |
Unfortunately, I also used mocks |
|
@abbasifaizan70 @ZhenjaHorbach @roryabraham QA team unable to get the delete field modal, Can this one please be tested internally, The workaround suggested didn't give expected result. |
I also used mocks to test it locally. |
@roryabraham I'm not blocking on this as the issues appears to be perf improvement. But can you check out @m-natarajan's comment please |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.3.12-1 🚀
|
Explanation of Change
This PR refactored ConfirmModal usage to useConfirmModal in the following files:
Fixed Issues
$ #76695
PROPOSAL: #76695 (comment)
Tests
PopoverReportActionContextMenu - Delete Comment
TravelTerms - Verify Company Modal
RoomMemberDetailsPage - Remove Room Member
ReportParticipantDetailsPage - Remove Group Member
EditReportFieldPage - Delete Report Field
Offline tests
same as tests.
QA Steps
same as tests.
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
PopoverReportActionContextMenu.tsx
Screen.Recording.2026-01-16.at.1.32.58.AM.mov
RoomMemberDetailsPage.tsx
Screen.Recording.2026-01-16.at.1.38.17.AM.mov
ReportParticipantDetailsPage.tsx
Screen.Recording.2026-01-16.at.1.42.38.AM.mov
Android: mWeb Chrome
PopoverReportActionContextMenu.tsx
Screen.Recording.2026-01-16.at.1.48.28.AM.mov
RoomMemberDetailsPage.tsx
Screen.Recording.2026-01-16.at.1.49.34.AM.mov
ReportParticipantDetailsPage.tsx
Screen.Recording.2026-01-16.at.1.50.01.AM.mov
iOS: Native
PopoverReportActionContextMenu.tsx
Screen.Recording.2026-01-16.at.2.00.23.AM.mov
RoomMemberDetailsPage.tsx
Screen.Recording.2026-01-16.at.2.00.42.AM.mov
ReportParticipantDetailsPage.tsx
Screen.Recording.2026-01-16.at.2.01.07.AM.mov
iOS: mWeb Safari
PopoverReportActionContextMenu.tsx
Screen.Recording.2026-01-16.at.2.19.45.AM.mov
RoomMemberDetailsPage.tsx
Screen.Recording.2026-01-16.at.2.20.55.AM.mov
ReportParticipantDetailsPage.tsx
Screen.Recording.2026-01-16.at.2.21.29.AM.mov
MacOS: Chrome / Safari
PopoverReportActionContextMenu.tsx
Screen.Recording.2026-01-16.at.12.48.05.AM.mov
TravelTerms.tsx
Screen.Recording.2026-01-16.at.5.49.27.PM.mov
RoomMemberDetailsPage.tsx
Screen.Recording.2026-01-16.at.12.57.48.AM.mov
ReportParticipantDetailsPage.tsx
Screen.Recording.2026-01-16.at.12.58.30.AM.mov
EditReportFieldPage.tsx