(Part 2) Refactor ConfirmModal usage to useConfirmModal in workspace feature pages#83351
Conversation
|
@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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 84a4c687cb
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
No product review needed |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2026-03-23.20.03.44.mov2026-03-23.20.04.22.mov2026-03-23.20.05.13.mov2026-03-23.20.05.39.mov2026-03-23.20.08.04.mov2026-03-23.20.08.41.movAndroid: mWeb Chrome2026-03-23.19.57.26.mov2026-03-23.19.58.03.mov2026-03-23.19.58.29.mov2026-03-23.19.58.52.mov2026-03-23.19.59.54.moviOS: HybridApp2026-03-23.20.03.44.mov2026-03-23.20.04.22.mov2026-03-23.20.05.13.mov2026-03-23.20.05.39.mov2026-03-23.20.08.04.mov2026-03-23.20.08.41.moviOS: mWeb Safari2026-03-23.19.57.26.mov2026-03-23.19.58.03.mov2026-03-23.19.58.29.mov2026-03-23.19.58.52.mov2026-03-23.19.59.54.movMacOS: Chrome / Safari2026-03-23.19.48.09.mov2026-03-23.19.48.35.mov2026-03-23.19.49.08.mov2026-03-23.19.49.42.mov2026-03-23.19.52.14.mov |
|
Sorry for the delay |
|
@ZhenjaHorbach Please review again. Thx |
|
@lorretheboy |
|
Updating... |
|
@ZhenjaHorbach I added some tests. Kindly check again |
Oh |
|
And overall changes work well! |
|
@ZhenjaHorbach I added test cases & rec |
|
LGMT! |
|
🚧 @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! 🧪🧪
|
|
✋ 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.49-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/grgia in version: 9.3.49-2 🚀
|
Explanation of Change
Fixed Issues
$ #76691
PROPOSAL: #76691 (comment)
Tests
Login ND
Go to WS settings
Go to Invoices
Try to delete a connected bank account
Verify that modal is shown and works proper
Create or use a Workspace with a non-USD currency that is NOT supported for global reimbursement
Navigate to the Invoices page
Click "Add bank account"
Look for the Bank Accounts section
Click the button to add a new bank account
Verify that modal is shown and works proper
Login ND
Go to WS settings
Go to Report
Try to disable Report Fields
Verify that modal is shown and works proper
Go to a Workspace that has an accounting connection (e.g., QuickBooks Online, Xero, NetSuite, etc.)
Navigate to: Settings → Workspaces → [Your Workspace]
Go to the Reports page
Click on Reports in the workspace settings menu
Try to toggle the "Report Fields" switch
Look for the "Report Fields" toggle in the Reports page
Click/tap on the disabled toggle
When you click on the disabled toggle, verify that it shows the confirmation modal correctly
Offline 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))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.mov
Android: mWeb Chrome
website.android.mov
iOS: Native
ios.mov
iOS: mWeb Safari
website.ios.mov
MacOS: Chrome / Safari
WorkspaceInvoiceVBASection.mov
WorkspaceReportsPage.mov
ReportFieldsListValuesPage.mov
ReportFieldsValueSettingsPage.mov
Screen.Recording.2026-03-26.at.15.09.37.mov
Screen.Recording.2026-03-26.at.15.13.14.mov