Skip to content

[CP Staging] Revert "fix: refactor ConfirmModal usage to useConfirmModal in workspace tags pages"#82523

Merged
mountiny merged 1 commit intomainfrom
revert-77913-fix/76690-1
Feb 16, 2026
Merged

[CP Staging] Revert "fix: refactor ConfirmModal usage to useConfirmModal in workspace tags pages"#82523
mountiny merged 1 commit intomainfrom
revert-77913-fix/76690-1

Conversation

@mountiny
Copy link
Contributor

Reverts #77913

Fixed Issues

$ #82456

@mountiny mountiny requested review from a team as code owners February 15, 2026 22:15
@melvin-bot melvin-bot bot requested review from ikevin127 and joekaufmanexpensify and removed request for a team February 15, 2026 22:16
@melvin-bot
Copy link

melvin-bot bot commented Feb 15, 2026

@ikevin127 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]

@melvin-bot melvin-bot bot removed the request for review from a team February 15, 2026 22:16
@github-actions
Copy link
Contributor

🚧 @mountiny has triggered a test Expensify/App build. You can view the workflow run here.

@github-actions

This comment has been minimized.

@codecov
Copy link

codecov bot commented Feb 15, 2026

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
src/pages/workspace/tags/TagSettingsPage.tsx 0.00% <0.00%> (ø)
src/pages/workspace/tags/WorkspaceTagsPage.tsx 47.09% <29.16%> (+0.22%) ⬆️
src/pages/workspace/tags/WorkspaceViewTagsPage.tsx 0.00% <0.00%> (ø)
src/pages/workspace/tags/ImportTagsOptionsPage.tsx 0.00% <0.00%> (ø)
... and 7 files with indirect coverage changes

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cf374fa9d0

ℹ️ 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".

Comment on lines +241 to +244
<ConfirmModal
isVisible={isSwitchSingleToMultipleLevelTagWarningModalVisible}
onConfirm={() => {
cleanPolicyTags(policyID);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore back-navigation handling for import warning modal

This modal replaced showConfirmModal, but unlike useConfirmModal it does not set shouldHandleNavigationBack; that means pressing browser/history back while it is open navigates away instead of taking the cancel path. In this flow setImportedSpreadsheetIsImportingMultiLevelTags(true) is already set before opening the modal, and only onCancel clears it, so backing out can leave ONYXKEYS.IMPORTED_SPREADSHEET.isImportingMultiLevelTags stuck as true and cause later imports to use multi-level behavior unexpectedly.

Useful? React with 👍 / 👎.

@mountiny mountiny merged commit 03b867b into main Feb 16, 2026
32 of 35 checks passed
@mountiny mountiny deleted the revert-77913-fix/76690-1 branch February 16, 2026 09:44
@melvin-bot melvin-bot bot added the Emergency label Feb 16, 2026
@melvin-bot
Copy link

melvin-bot bot commented Feb 16, 2026

@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the Emergency label if this is not an emergency.

@mountiny
Copy link
Contributor Author

Straight revert

@github-actions
Copy link
Contributor

🚧 @mountiny has triggered a test Expensify/App build. You can view the workflow run here.

OSBotify pushed a commit that referenced this pull request Feb 16, 2026
[CP Staging] Revert "fix: refactor ConfirmModal usage to useConfirmModal in workspace tags pages"

(cherry picked from commit 03b867b)

(cherry-picked to staging by mountiny)
@OSBotify OSBotify added the CP Staging marks PRs that have been CP'd to staging label Feb 16, 2026
@OSBotify
Copy link
Contributor

🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.3.19-2 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 cancelled 🔪

@OSBotify
Copy link
Contributor

🚀 Deployed to production by https://github.com/mountiny in version: 9.3.19-5 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify
Copy link
Contributor

🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.3.20-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify
Copy link
Contributor

🚀 Deployed to production by https://github.com/mountiny in version: 9.3.20-6 🚀

platform result
🕸 web 🕸 cancelled 🔪
🤖 android 🤖 success ✅
🍎 iOS 🍎 cancelled 🔪

@OSBotify
Copy link
Contributor

🚀 Deployed to production by https://github.com/mountiny in version: 9.3.20-6 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 cancelled 🔪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CP Staging marks PRs that have been CP'd to staging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments