Skip to content

Confirm before destructive actions (revoke key, remove policy, remove member) - #1546

Open
midego1 wants to merge 2 commits into
UsefulSoftwareCo:mainfrom
midego1:fix/confirm-personal-api-key-revoke
Open

Confirm before destructive actions (revoke key, remove policy, remove member)#1546
midego1 wants to merge 2 commits into
UsefulSoftwareCo:mainfrom
midego1:fix/confirm-personal-api-key-revoke

Conversation

@midego1

@midego1 midego1 commented Aug 6, 2026

Copy link
Copy Markdown

Several destructive actions in the web UI fired immediately with no confirmation, while most others (remove connection, delete artifact, remove OAuth app, revoke org key, delete integration) already ask first. This makes them consistent.

Adds a confirmation to the three that deleted instantly:

  • Revoke personal API key (api-keys.tsx) — mirrors the existing org-key revoke Dialog.
  • Remove tool-access policy (policies.tsx) — instant from a dropdown click.
  • Remove org member (org.tsx) — instant from a dropdown click.

Policy and member removals reuse the same AlertDialog pattern the connection/artifact removals already use, with the confirm state held at the page level (the dropdown menu unmounts a nested dialog on click). No behavior change beyond the added confirm step; each destructive button now needs a second, explicit confirmation.

midego1 added 2 commits August 6, 2026 06:25
Personal-key revoke deleted the key immediately with no confirmation,
while org-key revoke (and every other destructive action) asks first.
A personal key breaks any script or tool using it just the same, so add
the same confirmation dialog, mirroring the org-key pattern.
Removing a tool-access policy and removing an org member each fired
instantly from a dropdown click, with no confirmation — unlike every
other destructive action in the UI. Add the same AlertDialog confirm the
connection and artifact removals already use (state held at the page
level, since the dropdown menu unmounts a nested dialog on click).
@midego1 midego1 changed the title Confirm before revoking a personal API key Confirm before destructive actions (revoke key, remove policy, remove member) Aug 6, 2026
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.

1 participant