76695: Refactor ConfirmModal usage to useConfirmModal in Report and H…#76808
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.
|
…page' of https://github.com/abbasifaizan70/Expensify into 76695-refactored-confirmation-modal-in-report-and-home-page
|
@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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
…l-in-report-and-home-page
|
@waterim @ZhenjaHorbach Soft remainder to have a look on this PR. Thanks |
|
@abbasifaizan70 |
May we just need to break this PR or we will create new issue as well and then inside we can use 4 test cases in each? |
We already have a separate issue for these ConfirmModals |
Sure, let me do that and will you send here. Thanks |
You can close this PR |
@ZhenjaHorbach Created three PR for easy testing. Please review, and I am closing this PR. Thanks |
Explanation of Change
This PR refactored ConfirmModal usage to useConfirmModal in the following files:
Fixed Issues
$ #76695
PROPOSAL: #76695 (comment)
Tests
ReportDetailsExportPage.tsx
precondition: Connect to your accounting system (e.g., QuickBooks, Xero)
PureReportActionItem.tsx
precondition: Find a Report Action with Receipt Error
PopoverReportActionContextMenu.tsx
HeaderView.tsx
This was dead code removal, so there's no modal to test. Just verify nothing broke.
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
Scenario 3
ReportParticipantsPage.tsx
RoomMembersPage.tsx
RoomMemberDetailsPage.tsx
ReportParticipantDetailsPage.tsx
EditReportFieldPage.tsx
EditReportFieldPage.tsx
TravelTerms.tsx
Offline tests
same as test.
QA Steps
same as test.
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
PureReportActionItem.tsx
PopoverReportActionContextMenu.tsx
FloatingActionButtonAndPopover.tsx
ReportDetailsPage.tsx
ReportParticipantsPage.tsx
RoomMembersPage.tsx
RoomMemberDetailsPage.tsx
ReportParticipantDetailsPage.tsx
EditReportFieldPage.tsx
TravelTerms.tsx