Skip to content

Confirm single-row discard and cancel actions in control plane#80

Open
ratazzi wants to merge 1 commit into
masterfrom
fix/control-plane-confirm-destructive-actions
Open

Confirm single-row discard and cancel actions in control plane#80
ratazzi wants to merge 1 commit into
masterfrom
fix/control-plane-confirm-destructive-actions

Conversation

@ratazzi

@ratazzi ratazzi commented May 24, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a data-turbo-confirm prompt to the single-row destructive actions in the control plane, matching the existing confirmation on bulk "Discard all". Previously only the bulk discard-all confirmed; single-row irreversible actions submitted immediately on click.

Covered (irreversible single-row actions):

  • Discard a failed job — failed-jobs.html, job-details.html
  • Cancel a scheduled job — scheduled-jobs.html, job-details.html
  • Cancel a blocked job — blocked-jobs.html

Left unchanged (non-destructive): Retry, Unblock, and bulk Retry-all/Unblock-all.

This makes confirmation consistent across irreversible deletes/cancels (no more "discard confirms but cancel doesn't"), with friction reserved for actions that cannot be undone.

Test plan

  • cargo check passes (templates are askama compile-time embedded)
  • Browser: click a single Discard / Cancel and confirm the Turbo dialog appears before submission (mirrors the already-working bulk Discard-all prompt)

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