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:
1 parent
2775b406bf
commit
cba70310f9
48 files changed
+3474
-454
No files matched your search
@@ -1,10 +1,18 @@
|
||||
import { Spinner } from "@/components/ui/sakani";
|
||||
import { Skeleton } from "@/components/ui/sakani";
|
||||
|
||||
export default function AlbumLoading() {
|
||||
return (
|
||||
<div className="flex items-center gap-3 py-16 text-[var(--color-fg-muted)]" aria-busy="true" aria-live="polite">
|
||||
<Spinner size="sm" label="Fotos werden geladen." />
|
||||
<p>Fotos werden geladen.</p>
|
||||
<div aria-busy="true" aria-live="polite" className="flex flex-col gap-6">
|
||||
<span className="sr-only">Fotos werden geladen.</span>
|
||||
<Skeleton height={36} variant="rect" width={320} />
|
||||
<Skeleton height={96} variant="rect" />
|
||||
<ul className="photo-gallery">
|
||||
{Array.from({ length: 8 }, (_, index) => (
|
||||
<li className="aspect-[3/2]" key={index}>
|
||||
<Skeleton height="100%" variant="rect" />
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,10 +1,24 @@
|
||||
import { Spinner } from "@/components/ui/sakani";
|
||||
import { Skeleton } from "@/components/ui/sakani";
|
||||
|
||||
// Sakani's Skeleton sizes itself via width/height props (its CSS outranks
|
||||
// Tailwind sizing classes on its root).
|
||||
export default function AlbumsLoading() {
|
||||
return (
|
||||
<div className="flex items-center gap-3 py-16 text-[var(--color-fg-muted)]" aria-busy="true" aria-live="polite">
|
||||
<Spinner size="sm" label="Alben werden geladen." />
|
||||
<p>Alben werden geladen.</p>
|
||||
<div aria-busy="true" aria-live="polite" className="flex flex-col gap-6">
|
||||
<span className="sr-only">Alben werden geladen.</span>
|
||||
<Skeleton height={36} variant="rect" width={256} />
|
||||
<Skeleton height={96} variant="rect" />
|
||||
<ul className="grid grid-cols-1 gap-x-6 gap-y-10 sm:grid-cols-2 lg:grid-cols-3">
|
||||
{Array.from({ length: 6 }, (_, index) => (
|
||||
<li className="flex flex-col gap-3" key={index}>
|
||||
<div className="aspect-[3/2] w-full">
|
||||
<Skeleton height="100%" variant="rect" />
|
||||
</div>
|
||||
<Skeleton width={64} />
|
||||
<Skeleton width="75%" />
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
import { recordActivity } from "@/modules/activity/service";
|
||||
import { AlbumCatalogError, albumCatalog, PHOTO_PAGE_SIZE } from "@/modules/albums/catalog";
|
||||
import { AlbumContactSheet, formatCount, PageLinks, PhotoSearchForm } from "@/modules/albums/catalog-content";
|
||||
import { UrlPagination } from "@/components/ui/url-pagination";
|
||||
import { AlbumContactSheet, formatCount, PhotoSearchForm } from "@/modules/albums/catalog-content";
|
||||
import { filterPhotos, normalizeSort, paginatePhotos, sortPhotos, type InAppPage, type PhotoSort } from "@/modules/albums/filter";
|
||||
import { PhotoGallery } from "@/modules/albums/photo-gallery";
|
||||
import { AnnouncementBanner } from "@/modules/announcements/announcement-banner";
|
||||
@@ -108,16 +109,12 @@ function SearchRateLimited({ query, format, jahr, sortierung }: { query: string;
|
||||
}
|
||||
|
||||
function GlobalSearchPagination({ currentPage, page, query, format, jahr, sortierung }: { currentPage: number; page: InAppPage; query: string; format?: string; jahr?: string; sortierung: PhotoSort }) {
|
||||
const hasPrev = currentPage > 1;
|
||||
const hasNext = page.nextPage !== null;
|
||||
if (!hasPrev && !hasNext) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<PageLinks
|
||||
prevHref={hasPrev ? globalPageHref(currentPage - 1, query, format, jahr, sortierung) : null}
|
||||
nextHref={hasNext ? globalPageHref(currentPage + 1, query, format, jahr, sortierung) : null}
|
||||
<UrlPagination
|
||||
ariaLabel="Suchergebnisseiten"
|
||||
hasNext={page.nextPage !== null}
|
||||
href={globalPageHref(currentPage, query, format, jahr, sortierung)}
|
||||
page={currentPage}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user