Refactor ConfirmModal usage to useConfirmModal in workspace feature pages#86678
Refactor ConfirmModal usage to useConfirmModal in workspace feature pages#86678roryabraham merged 4 commits intoExpensify:mainfrom
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@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: HybridApp2026-03-31.13.21.34.mov2026-03-31.13.24.31.mov2026-03-31.13.25.38.mov2026-03-31.13.26.00.movAndroid: mWeb Chrome2026-03-31.13.21.34.mov2026-03-31.13.24.31.mov2026-03-31.13.25.38.mov2026-03-31.13.26.00.moviOS: HybridApp2026-03-31.13.03.57.mov2026-03-31.13.06.58.mov2026-03-31.13.07.54.mov2026-03-31.13.08.39.moviOS: mWeb Safari2026-03-31.12.54.25.mov2026-03-31.12.56.13.mov2026-03-31.12.58.00.mov2026-03-31.13.00.11.movMacOS: Chrome / Safari2026-03-31.12.03.04.mov2026-03-31.12.07.39.mov2026-03-31.12.22.02.mov2026-03-31.12.25.31.mov |
|
2026-03-31.12.57.11.mov |
|
But overall changes look good! |
|
Checking... |
|
Looks like the issue is fixed after I merged main. Please check again @ZhenjaHorbach Screen.Recording.2026-04-03.at.00.00.10.mov |
Oh |
|
It is fixed @ZhenjaHorbach Kindly review again |
|
Yeah 2026-04-08.15.38.24.mov |
|
🚧 @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! 🧪🧪
|
The merge of #86678 (useConfirmModal refactor) left behind a reference to `isModalVisible` that no longer exists after removing the useState hook. The disableAutoFocus prop is no longer needed since useConfirmModal manages modal visibility internally. Made-with: Cursor
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.3.55-0 🚀
Bundle Size Analysis (Sentry): |
|
|

Refactored 4 pages:
Explanation of Change
Fixed Issues
$ #76691
PROPOSAL: #76691 (comment)
Tests
Test 1: ReportFieldsListValuesPage.tsx
Test 2: AddNewCardPage.tsx
Test 3: WorkspaceCompanyCardsSettingsPage.tsx
Test 4: WorkspaceCompanyCardDetailsPage.tsx
Offline 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
Screen.Recording.2026-03-31.at.01.07.44.mov
Android: mWeb Chrome
Screen.Recording.2026-03-31.at.01.05.37.mov
iOS: Native
Screen.Recording.2026-03-31.at.00.51.29.mov
iOS: mWeb Safari
Screen.Recording.2026-03-31.at.00.50.03.mov
MacOS: Chrome / Safari
ReportFieldsListValuesPage-web.mov
WorkspaceCompanyCardDetailsPage.mov
AddNewCardPage.mov
WorkspaceCompanyCardsSettingsPage.mov