Skip to content

Add album deletion with confirmation dialog

jedmund requested to merge jedmund/album-delete into main

Summary

  • Add DELETE endpoint at /api/albums/[id] that removes album files from disk and the database record
  • New DeleteConfirmDialog component showing album details before confirming deletion
  • Delete button appears in the sort form when a destination conflict is detected, alongside the existing Overwrite and Sort buttons

Test plan

  • Trigger a conflict, click Delete, verify confirmation dialog shows correct album info
  • Confirm deletion, verify files removed from disk and album removed from list
  • Cancel deletion, verify nothing happens
  • Build passes

Stacked on #2

Merge request reports

Loading