Skip to content

fix: wire up Abandon button in Job Detail and Active Rips UI - #143

Open
negativeeddy wants to merge 1 commit into
masterfrom
fix/abandon-button
Open

fix: wire up Abandon button in Job Detail and Active Rips UI#143
negativeeddy wants to merge 1 commit into
masterfrom
fix/abandon-button

Conversation

@negativeeddy

Copy link
Copy Markdown
Owner

Summary

Adds the missing Abandon button to the UI, wiring up the already-implemented arm.abandonJob(jobId) JavaScript helper and POST /api/abandon/{id} endpoint.

What changed

  • Job Detail page: "Abandon" button appears alongside "Cancel Job" for non-terminal jobs
  • Active Rips table: "Abandon" button appears alongside "View" for non-terminal jobs
  • SignalR live updates: the dynamic button injection also includes the Abandon button

Behavior

  • Shows a confirmation dialog ("Abandon this job? The process will be killed and the disc ejected.")
  • On confirm: kills the process tree, unmounts + ejects the disc, sets job to Failure
  • Visually uses btn-outline-warning (⚠) to distinguish from the red Cancel button

Why

The Abandon button was fully implemented (JS helper + API endpoint + integration tests) but never wired into any UI — making it dead code. This fix completes the feature.

Closes #75

- Add 'Abandon' button next to Cancel in JobDetail.cshtml
- Add 'Abandon' button next to View in _ActiveJobRows.cshtml
- Include Abandon in the SignalR dynamic button injection
- Uses the existing arm.abandonJob() JS helper and POST /api/abandon/{id} endpoint
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.

Investigate Abandon button: dead code or missing UI?

1 participant