mirror of
https://github.com/block/buzz.git
synced 2026-11-01 06:51:17 +00:00
Save as template had no inverse: a saved template could never be removed from the catalog. Add a Delete affordance to CreateAgentStartDialog for saved templates — an outline button next to Use template, gated behind a confirm AlertDialog matching TeamDeleteDialog. Deletion drives the previously-unused useDeletePersonaMutation, which now also invalidates agentTemplatesQueryKey so the catalog drops the row immediately; backend validation errors (e.g. record still referenced by a team) surface in the detail pane. Co-authored-by: Taylor Ho <taylorkmho@gmail.com> Signed-off-by: Taylor Ho <taylorkmho@gmail.com>