Refactored ConfirmModal usage to useConfirmModal#77948
Refactored ConfirmModal usage to useConfirmModal#77948roryabraham merged 45 commits intoExpensify:mainfrom
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@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] |
JmillsExpensify
left a comment
There was a problem hiding this comment.
Product review not strictly required.
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2026-01-19.15.25.50.mov2026-01-19.15.26.29.mov2026-01-19.15.28.02.mov2026-01-19.15.28.40.movAndroid: mWeb ChromeiOS: HybridApp2026-01-19.14.36.51.mov2026-01-19.14.38.18.mov2026-01-19.14.39.03.mov2026-01-19.14.39.41.mov2026-01-19.14.40.35.moviOS: mWeb Safari2026-01-19.14.46.24.mov2026-01-19.14.47.14.mov2026-01-19.14.47.40.mov2026-01-19.14.49.32.movMacOS: Chrome / Safari2026-01-07.16.07.41.mov2026-01-07.16.21.22.mov2026-01-07.16.24.41.mov2026-01-07.16.25.24.mov2026-01-07.16.26.33.mov2026-01-07.16.27.49.mov |
|
@abbasifaizan70 |
|
@ZhenjaHorbach added videos for other platforms. Thanks |
|
Looks like after updating ModalProvider we have a long delay after pressing submit button 2026-01-07.16.34.36.mov |
|
@ZhenjaHorbach may i revert my change? |
Yes |
…thub.com/abbasifaizan70/Expensify into 76695-refactored-confirmation-modal-PR-2
…thub.com/abbasifaizan70/Expensify into 76695-refactored-confirmation-modal-PR-2
src/pages/ReportParticipantsPage.tsx
Outdated
| clearUserSearchPhrase(); | ||
| }); | ||
| }; | ||
| }, [selectedMembers, currentUserAccountID, report.reportID]); |
There was a problem hiding this comment.
Please
Check github after your changes
| return; | ||
| } | ||
| navigateToTargetUrl(); | ||
| deleteTransaction(); |
There was a problem hiding this comment.
And just checked
Looks like now we have an issue that the useEffect fixed
@abbasifaizan70
Could you please experiment a little to see how we can fix this visual glitch?
2026-01-21.17.50.36.mov
There was a problem hiding this comment.
@ZhenjaHorbach Can you check now
Screen.Recording.2026-01-22.at.1.58.10.AM.mov
|
@ZhenjaHorbach take a look. Thanks |
|
I still have an issue with Delete text before the modal is completely closed 2026-01-22.08.11.29.mov |
|
@ZhenjaHorbach It looks fine to me. Screen.Recording.2026-01-23.at.2.17.10.AM.mov |
But never mind 2026-01-23.11.25.20.mov |
|
LGTM! |
|
✋ 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/roryabraham in version: 9.3.10-0 🚀
|
|
Hi @abbasifaizan70 @roryabraham. How can we trigger ConfirmModal?
|
@IuliiaHerets i test it locally through some code changes. |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.10-6 🚀
|
| } | ||
| Navigation.navigate(ROUTES.PROFILE.getRoute(item.accountID, Navigation.getActiveRoute())); | ||
| const pendingChatMember = pendingChatMembers?.findLast((member) => member.accountID === accountID.toString()); | ||
| const pendingAction = pendingChatMember?.pendingAction ?? reportParticipants?.[accountID]?.pendingAction; |
There was a problem hiding this comment.
This change caused issue
we should skip pending delete members when it isn't offline

Explanation of Change
This PR refactored ConfirmModal usage to useConfirmModal in the following files:
Fixed Issues
$ #76695
PROPOSAL: #76695 (comment)
Tests
FloatingActionButtonAndPopover.tsx
Prerequisites: You need to be in a scenario where the app would redirect to Expensify Classic (usually for certain features or workspaces)
ReportDetailsPage.tsx
Scenario 1
Scenario 2
ReportParticipantsPage.tsx
RoomMembersPage.tsx
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
ReportDetailsPage.tsx
Screen.Recording.2026-01-07.at.5.28.58.PM.mov
Screen.Recording.2026-01-07.at.5.39.48.PM.mov
ReportParticipantsPage.tsx
Screen.Recording.2026-01-07.at.5.23.03.PM.mov
RoomMembersPage.tsx
Screen.Recording.2026-01-07.at.5.24.03.PM.mov
Android: mWeb Chrome
ReportDetailsPage.tsx
Screen.Recording.2026-01-07.at.5.54.50.PM.mov
Screen.Recording.2026-01-07.at.5.55.33.PM.mov
ReportParticipantsPage.tsx
Screen.Recording.2026-01-07.at.5.54.32.PM.mov
RoomMembersPage.tsx
iOS: Native
ReportDetailsPage.tsx
Screen.Recording.2026-01-07.at.3.16.48.PM.mov
Screen.Recording.2026-01-07.at.3.17.15.PM.mov
ReportParticipantsPage.tsx
Screen.Recording.2026-01-07.at.3.18.07.PM.mov
RoomMembersPage.tsx
Screen.Recording.2026-01-07.at.3.19.32.PM.mov
iOS: mWeb Safari
ReportDetailsPage.tsx
Screen.Recording.2026-01-07.at.3.44.53.PM.mov
Screen.Recording.2026-01-07.at.3.48.34.PM.mov
ReportParticipantsPage.tsx
Screen.Recording.2026-01-07.at.3.41.57.PM.mov
RoomMembersPage.tsx
Screen.Recording.2026-01-07.at.3.41.12.PM.mov
MacOS: Chrome / Safari
FloatingActionButtonAndPopover.tsx
ReportDetailsPage.tsx
Screen.Recording.2026-01-07.at.3.36.54.PM.mov
ReportParticipantsPage.tsx
RoomMembersPage.tsx