-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Refactored ConfirmModal usage to useConfirmModal #79616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. |
src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.tsx
Outdated
Show resolved
Hide resolved
src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.tsx
Outdated
Show resolved
Hide resolved
Resolved conflict in src/pages/inbox/report/ContextMenu/PopoverReportActionContextMenu.tsx: - Kept main's refactored ConfirmModal flow (confirmDeleteAndHideModal, showDeleteModal, ConfirmModal component) - Fixed ActionSheetAwareScrollView import to use ActionSheetAwareScrollViewContext path
|
@ZhenjaHorbach I just solved the conflicts and made video by changing response of AcceptSpotnanaTerms response for testing using Chrome Dev Tools Screen.Recording.2026-01-28.at.1.28.27.AM.mov |
Did you mock responses like this? And we have lint issues |
Sorry for confusing |
src/pages/inbox/report/ContextMenu/PopoverReportActionContextMenu.tsx
Outdated
Show resolved
Hide resolved
src/pages/inbox/report/ContextMenu/PopoverReportActionContextMenu.tsx
Outdated
Show resolved
Hide resolved
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 |
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