Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages/swarm-ui/src/ui/confirm-dialog
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris c3e24fe2c6 swarm ui: ask before actions that cannot be undone, with a danger button and a useConfirm hook
Button gains a danger variant and an autofocus prop; ConfirmDialog gains danger (red confirm, focus on cancel). Destroy, delete linked account, delete claude login, remove schedule and delete flow use it. New useConfirm hook asks from inside a handler (await confirm({...})) without a dialog's state at the call site. It now guards: removing a swarm-wide egress domain, removing a domain for every agent from an agent's popover, removing a stored API-key environment, firing a schedule now, moving an agent's internet to a looser mode, the /clear message, and reload over unsaved instructions (replacing window.confirm). The review try-out's button is now called push a branch for a PR, since it pushes a branch and does not open one, and asks first. loosensInternet is a tested helper.
2026-11-20 02:13:23 +01:00
..
ConfirmDialog.css swarm-ui: size dialogs to their own content width 2026-09-08 11:08:01 +02:00
ConfirmDialog.tsx swarm ui: ask before actions that cannot be undone, with a danger button and a useConfirm hook 2026-11-20 02:13:23 +01:00
useConfirm.tsx swarm ui: ask before actions that cannot be undone, with a danger button and a useConfirm hook 2026-11-20 02:13:23 +01:00