CUB-36: Add delete confirmation dialog for filament spool removal #19

Merged
overseer merged 2 commits from agent/rex/CUB-36-delete-confirmation into dev 2026-04-27 15:24:56 -04:00
Owner

What

Adds a delete confirmation flow for filament spool removal in the Extrudex frontend.

Changes

  • New DeleteFilamentDialogComponent — Angular Material Dialog displaying spool details (material, brand, color, serial, remaining weight, status) with Cancel/Confirm buttons
  • New FilamentService — injectable service with deleteFilament(id) calling DELETE /api/spools/{id} and getFilaments() for data fetching
  • Updated FilamentTableComponent — added actions column with delete icon button, opens confirmation dialog, calls DELETE API on confirm, removes row from table on success, shows snackbar feedback
  • Updated app.config.ts — provides HttpClient (withFetch) and AnimationsAsync for Material Dialog/Slide animations
  • Added @angular/animations dependency

UX

  • Delete button shows hourglass icon while delete is in progress
  • Cancel dismisses dialog — no deletion occurs
  • Confirm calls DELETE endpoint, removes the row, shows success snackbar
  • On error, shows failure snackbar with retry suggestion

Linear

Closes CUB-36

## What Adds a delete confirmation flow for filament spool removal in the Extrudex frontend. ### Changes - New `DeleteFilamentDialogComponent` — Angular Material Dialog displaying spool details (material, brand, color, serial, remaining weight, status) with Cancel/Confirm buttons - New `FilamentService` — injectable service with `deleteFilament(id)` calling `DELETE /api/spools/{id}` and `getFilaments()` for data fetching - Updated `FilamentTableComponent` — added `actions` column with delete icon button, opens confirmation dialog, calls DELETE API on confirm, removes row from table on success, shows snackbar feedback - Updated `app.config.ts` — provides `HttpClient` (withFetch) and `AnimationsAsync` for Material Dialog/Slide animations - Added `@angular/animations` dependency ### UX - Delete button shows hourglass icon while delete is in progress - Cancel dismisses dialog — no deletion occurs - Confirm calls DELETE endpoint, removes the row, shows success snackbar - On error, shows failure snackbar with retry suggestion ## Linear Closes CUB-36
Rex added 1 commit 2026-04-27 14:13:41 -04:00
CUB-36: add delete confirmation dialog for filament spool removal
Some checks failed
Dev Build / build-test (pull_request) Failing after 53s
Dev Build / deploy-dev (pull_request) Has been skipped
Dev Build / notify-success (pull_request) Has been skipped
Dev Build / notify-failure (pull_request) Successful in 3s
f5ca20307e
overseer added 1 commit 2026-04-27 14:17:46 -04:00
Merge branch 'dev' into agent/rex/CUB-36-delete-confirmation
Some checks failed
Dev Build / build-test (pull_request) Failing after 52s
Dev Build / deploy-dev (pull_request) Has been skipped
Dev Build / notify-success (pull_request) Has been skipped
Dev Build / notify-failure (pull_request) Successful in 3s
cfd4a81b5f
overseer scheduled this pull request to auto merge when all checks succeed 2026-04-27 14:18:03 -04:00
overseer merged commit 2e8227c3f9 into dev 2026-04-27 15:24:56 -04:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: CubeCraft-Creations/Extrudex#19