fix: refactor ConfirmModal usage to useConfirmModal in workspace tags pages#77913
fix: refactor ConfirmModal usage to useConfirmModal in workspace tags pages#77913roryabraham merged 16 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.
Good polish. Product review isn't strictly required.
|
Code looks good to me, just one thing, lets try not create new useCallback/useMemo. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb Chrome2026-02-06.13.45.31.mov2026-02-06.13.46.29.mov2026-02-06.13.47.09.mov2026-02-06.13.50.41.moviOS: HybridAppiOS: mWeb Safari2026-02-06.13.45.31.mov2026-02-06.13.46.29.mov2026-02-06.13.47.09.mov2026-02-06.13.50.41.movMacOS: Chrome / Safari2026-02-02.16.04.00.mov2026-02-02.16.06.41.mov2026-02-02.16.07.33.mov2026-02-02.16.08.08.mov |
Screen.Recording.2025-12-23.at.01.04.51.mov@ZhenjaHorbach I can't reproduce this bug. Could you please add more detailed steps? |
Maybe it came from main |
|
@ZhenjaHorbach i fixed |
|
Eslint and TS issues |
modal.1.mov@ZhenjaHorbach i fixed
I added in MacOS: Chrome / Safari |
But where is it for other platforms?😅 |
| }; | ||
|
|
||
| const deleteTags = () => { | ||
| const deleteTags = useCallback(() => { |
There was a problem hiding this comment.
Did you really check React compiler ?
We don't need useCallback here
And make sure that we will not have React compiler warnings
|
@daledah 2026-02-02.16.33.03.mov |
|
Thanks @ZhenjaHorbach for the review. I can't see your video. Can you add the video here again? Then i'll record videos for all platforms |
2026-02-02.16.33.03.movOn iOS native, when I try to delete a tag and then press the confirm button |
Screen.Recording.2026-02-04.at.02.38.08.mov@ZhenjaHorbach i can't reproduce this bug on my end |
|
@ZhenjaHorbach i added all records, please check again |
Hmm |
|
LGTM! |
|
@daledah |
i added |
I mean, update your test case(Not add a new one) |
|
@roryabraham this PR is ready to merge |
|
🚧 @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.19-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.19-5 🚀
|
…n workspace tags pages"" This reverts commit cf374fa, re-applying the original changes from PR Expensify#77913. Co-authored-by: Cursor <cursoragent@cursor.com>

Explanation of Change
Refactor ConfirmModal usage to useConfirmModal in the following files:
Fixed Issues
$ #76690
PROPOSAL:
Tests
delete tagoptionDelete tag warningmodal is displayedTagis deleteddeleteoptionDelete tag warningmodal is displayedTagis deletedMulti-level tagsCannot delete or disable all tagsis displayedOffline 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
android-resize.mp4
android.mov
Android: mWeb Chrome
android-mweb-resize.mp4
android-mweb.mov
iOS: Native
ios-resize.mp4
ios.mov
iOS: mWeb Safari
ios-mweb-resize.mp4
ios-mwbe.mov
MacOS: Chrome / Safari
result.mp4
web.mov