Release 2.4.0: bulk download rework, toasts and Sakani polish

- ZIP download from the Merkzettel: every photo is a new usage by
  default; only already downloaded photos offer "Neu / Bereits genutzt"
  (SegmentedControl), with thumbnails and a cost summary. "Bild
  auslassen" is gone.
- Toasts (Sakani Toaster) for admin saves, deletes and errors; billing
  errors are readable and use router.refresh instead of reloads. Errors
  inside modal dialogs stay inline (a toast would sit behind the
  backdrop).
- Album overview in blog-listing style, Sakani Pagination for albums,
  search and usage history, skeleton loading states.
- Registration stepper; verification mail lands on step 3.
- Editorials as a searchable, filterable table; audit log with event
  picker, German labels and collapsible details.
- Release notes 2.4.0 seeded (migration 0009).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Leon TonhäuserandClaude Opus 5.5 committed 2026-12-01 00:09:37 +01:00
1 parent 2775b406bf
commit cba70310f9
48 files changed
+3474 -454

No files matched your search

@@ -9,6 +9,7 @@ import { IconMail, IconSearch } from "@sakaniui/react/icons";
import { Card } from "@/components/ui/sakani";
import type { AlbumActionResult } from "./actions";
import { notifyResult } from "@/components/ui/feedback";
type AlbumGridAction = (
editorialId: string,
@@ -46,9 +47,9 @@ function AlbumCard({ album, editorialId, grantAction, revokeAction, notifyAction
startTransition(async () => {
const initial: AlbumActionResult = { ok: true, message: "" };
if (album.isGranted) {
await revokeAction(editorialId, initial, formData);
notifyResult(await revokeAction(editorialId, initial, formData), "Zuweisung aufgehoben.");
} else {
await grantAction(editorialId, initial, formData);
notifyResult(await grantAction(editorialId, initial, formData), "Album zugewiesen.");
}
});
};
@@ -99,6 +100,7 @@ function AlbumCard({ album, editorialId, grantAction, revokeAction, notifyAction
setNotifyStatus("pending");
notifyAction(editorialId, { ok: true, message: "" }, formData).then((res) => {
setNotifyStatus(res.ok ? "success" : "error");
notifyResult(res, "E-Mail an die Redaktion gesendet.");
setTimeout(() => setNotifyStatus("idle"), 3000);
});
}}