fix(api,web): movie delete always removes files
ci / web (push) Successful in 1m5s
ci / rust (push) Successful in 1m30s
e2e / e2e (push) Successful in 1m27s

Drop the delete_files choice: removing a movie now always unlinks
its §7.4 library folder. Removes the query flag from DELETE
/api/movies/{id} and the OpenAPI params, and the toggle from the UI
confirmation panel — the confirmation itself stays. Path-safety and
torrent-untouched behaviour are unchanged.

Closes #110
This commit is contained in:
Miguel Palhas
2026-08-23 10:21:03 +01:00
parent 54b3ea8a4d
commit d6345c5305
5 changed files with 26 additions and 145 deletions
+2 -55
View File
@@ -854,65 +854,12 @@ body {
box-shadow: inset 0 1px var(--highlight);
}
/* armed is a state, so it is amber and it is also a word: the toggle reads
"on" with all colour removed */
/* armed is a state, not a toggle: it is amber whenever files are on disk to
delete */
.remove-body[data-armed="true"] {
border-color: oklch(from var(--signal-warn) l c h / 55%);
}
/* a control, not a form field: it stops at its own label */
.remove-files {
display: flex;
align-items: center;
justify-self: start;
max-width: 100%;
gap: var(--space-3);
min-height: 2.75rem;
padding: 0 var(--space-3);
font: inherit;
font-size: var(--text-sm);
text-align: left;
color: var(--ink);
background: var(--panel-raised);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: inset 0 1px var(--highlight);
cursor: pointer;
transition:
border-color 150ms var(--ease-out),
color 150ms var(--ease-out);
}
.remove-files:hover:not(:disabled) {
border-color: var(--line-strong);
}
.remove-files:disabled {
color: var(--ink-faint);
cursor: default;
}
.remove-files-name {
flex: 1;
min-width: 0;
}
.remove-files-word {
flex: none;
font-size: var(--text-xs);
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--ink-faint);
}
.remove-files[aria-pressed="true"] {
border-color: oklch(from var(--signal-warn) l c h / 55%);
}
.remove-files[aria-pressed="true"] .remove-files-word {
color: var(--signal-warn);
}
.remove-evidence,
.remove-path,
.remove-note {