Skip to content

Add missing disable confirmations#2404

Merged
jakub-tldr merged 7 commits into
devfrom
missing-disable-confirmations
Mar 18, 2026
Merged

Add missing disable confirmations#2404
jakub-tldr merged 7 commits into
devfrom
missing-disable-confirmations

Conversation

@jakub-tldr
Copy link
Copy Markdown
Contributor

Involves: #2304

@jakub-tldr jakub-tldr requested a review from Copilot March 18, 2026 19:28
@jakub-tldr jakub-tldr merged commit 0b74c21 into dev Mar 18, 2026
3 checks passed
@jakub-tldr jakub-tldr deleted the missing-disable-confirmations branch March 18, 2026 19:28
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses DefGuard issue #2304 by adding missing confirmation dialogs (and related success/error feedback) for destructive or security-sensitive UI actions, primarily around deletes and MFA disablement in the web UI.

Changes:

  • Replaced immediate mutations with ConfirmAction modal flows for deleting authorized apps, auth keys, API tokens, edges, groups, and passkeys; and for disabling MFA methods (email/TOTP/all/passkeys) in the user profile.
  • Added confirmation + feedback for enabling/disabling user accounts in the users table, and added success/error snackbars for some delete actions.
  • Extended English message catalogs with new modal copy and snackbar strings.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
web/src/pages/user-profile/UserProfilePage/tabs/ProfileDetailsTab/components/ProfileAuthorizedApps/ProfileAuthorizedApps.tsx Adds confirmation modal + snackbar feedback for removing an authorized app
web/src/pages/user-profile/UserProfilePage/tabs/ProfileDetailsTab/components/ProfileAuthCard/ProfileAuthCard.tsx Adds confirmation modals + snackbars for disabling MFA methods and passkeys
web/src/pages/user-profile/UserProfilePage/tabs/ProfileAuthKeysTab/ProfileAuthKeysTable.tsx Adds confirmation modal + snackbar feedback for deleting auth keys
web/src/pages/user-profile/UserProfilePage/tabs/ProfileApiTokensTab/components/ProfileApiTokensTable/ProfileApiTokensTable.tsx Adds confirmation modal + snackbar feedback for deleting API tokens
web/src/pages/settings/SettingsActivityLogStreamingPage/ActivityLogStreamTable.tsx Adds success snackbar for deleting a log streaming destination
web/src/pages/UsersOverviewPage/UsersTable.tsx Adds confirmation + snackbars for enable/disable account; adds snackbars for delete user
web/src/pages/GroupsPage/components/GroupsTable/GroupsTable.tsx Adds success/error snackbars after group deletion
web/src/pages/EdgesPage/EdgesTable.tsx Adds success/error snackbars after edge deletion
web/messages/en/users.json Adds strings for account enable/disable confirmations + snackbars; tweaks MFA-disable copy
web/messages/en/settings.json Adds success message for activity log stream deletion
web/messages/en/modal.json Consolidates authorized-app delete copy; adds many new modal + snackbar strings for MFA/key/token actions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"modal_delete_authorized_app_title": "Delete authorized app",
"modal_delete_authorized_app_content_1": "Are you sure you want to remove this application? If you do, you won't be able to use it to log in with defguard anymore.",
"modal_delete_authorized_app_content_2": "Please note: until you log out from this application, it will remain signed in with DefGuard.",
"modal_delete_authorized_app": "Are you sure you want to remove this application? This action cannot be undone.",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants