hyperhive/frontend/packages
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris becc025f13 swarm-ui: add a destroy trigger to the agents page
Closes #4067. Backend half (Wanted::Destroyed + reconcile) shipped in
#4065 with no swarm-controller API changes needed -- SetAgentStateRequest
already accepted {"state": "destroyed"}, it just had nothing in swarm-ui
sending it.

Destroy is a separate `quiet`-variant badge next to the existing
start/stop toggle (#3988's "wanted" column), not a third state folded
into that same click target -- one wrong click on a shared toggle
would be irreversible, where a dedicated badge only fires from its own
confirm dialog. That confirm is a real `Dialog`, not the native
`window.confirm` the reversible stop direction uses -- the wanted
column's own comment called this out as the case that would justify
one when it was first written.

Shared the PUT-declare/pending/error/patch-rows logic between the
existing toggleWanted and the new destroyAgent (declareState) rather
than duplicating it -- confirmation and target-state selection are the
only parts that differ between a toggle and a one-way declaration.

Verified: `tsc --noEmit` clean, `nix fmt` reports the expected
formatting-only diff, wire shapes (state string "destroyed",
AgentDeclaration response) checked against swarm-queue-client's
AgentState::as_str and swarm-controller's actual handler rather than
assumed from the issue description.
2026-09-07 18:53:55 +02:00
..
agent docs: retire the stray top-level web-ui.md, fold it into web-ui/README.md 2026-09-07 15:49:52 +02:00
dashboard docs: retire the stray top-level web-ui.md, fold it into web-ui/README.md 2026-09-07 15:49:52 +02:00
shared docs: retire the stray top-level web-ui.md, fold it into web-ui/README.md 2026-09-07 15:49:52 +02:00
swarm-ui swarm-ui: add a destroy trigger to the agents page 2026-09-07 18:53:55 +02:00