feat(shoots): add "Clear all" button to wipe a shoot's frames #66

Merged
eliott merged 1 commit from feat/clear-shoot-frames into develop 2026-07-13 15:36:56 +02:00
Owner

Adds a way to clear every frame of a shoot from the shoot detail view.

What

  • A danger 'Clear all' button (outlined, trash icon) in the frames header, next to 'Add frame'. Shown only when the shoot is open (not done) and has at least one frame.
  • Clicking it opens the shared delete-confirmation dialog ('Danger zone' / 'Delete all frames in this shoot? This cannot be undone.' / accept label 'Clear all').
  • On accept it calls the new DELETE /shoot/:id/frames endpoint, then empties the frame list, resets the count to 0, and toasts 'Frames cleared'. A clearing signal drives the button loading state.
  • New ShootService.clearFrames(shootId).

Tests

  • 3 new specs in shoot-detail.spec.ts: confirm uses the 'Clear all' accept label; on accept it clears + toasts success + resets count; on error it toasts and keeps the frames.

Verified

  • Ran the real app (podman Postgres + API + dev server) and drove the full flow in a browser: button renders and is correctly gated, confirm dialog copy is right, accepting deletes all frames (3 to 0) with the empty state and success toast.

Versioning

  • Bumps front to 0.8.0, matching the new v0.8.0 changelog entry added in the rollnote-api companion PR (#58). Requires that PR's endpoint.
Adds a way to clear every frame of a shoot from the shoot detail view. ## What - A danger 'Clear all' button (outlined, trash icon) in the frames header, next to 'Add frame'. Shown only when the shoot is open (not done) and has at least one frame. - Clicking it opens the shared delete-confirmation dialog ('Danger zone' / 'Delete all frames in this shoot? This cannot be undone.' / accept label 'Clear all'). - On accept it calls the new `DELETE /shoot/:id/frames` endpoint, then empties the frame list, resets the count to 0, and toasts 'Frames cleared'. A `clearing` signal drives the button loading state. - New `ShootService.clearFrames(shootId)`. ## Tests - 3 new specs in `shoot-detail.spec.ts`: confirm uses the 'Clear all' accept label; on accept it clears + toasts success + resets count; on error it toasts and keeps the frames. ## Verified - Ran the real app (podman Postgres + API + dev server) and drove the full flow in a browser: button renders and is correctly gated, confirm dialog copy is right, accepting deletes all frames (3 to 0) with the empty state and success toast. ## Versioning - Bumps front to 0.8.0, matching the new `v0.8.0` changelog entry added in the rollnote-api companion PR (#58). Requires that PR's endpoint.
Adds a danger Clear all button in the frames header (shown only when the
shoot is open and has frames). It confirms through the shared
delete-confirmation dialog, calls the new DELETE /shoot/:id/frames endpoint,
then empties the frame list and resets the count. Bumps front to 0.8.0 to
match the v0.8.0 changelog entry.
eliott merged commit 3ca8ddd910 into develop 2026-07-13 15:36:56 +02:00
eliott deleted branch feat/clear-shoot-frames 2026-07-13 15:36:56 +02:00
Sign in to join this conversation.
No reviewers
No labels
run-ci
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
RollNote/rollnote-front!66
No description provided.