feat: redesign album overview to match photo grid + surface download/merkzettel errors

Album overview:
- AlbumContactSheet now uses cover tiles in the photo-gallery aesthetic:
  object-fit: cover, 4/3 tiles, persistent bottom gradient with album name
  + photo count, hover zoom. Drops the old 3:2 contain tiles + monospace
  caption strip.

Diagnostics (download + merkzettel both failed silently for the user):
- UsageDialog now reads the server's { code } from /api/download-intents and
  maps each stable error code (FORBIDDEN, NOT_FOUND, UPSTREAM_UNAVAILABLE,
  ACCOUNTING_UNAVAILABLE, ...) to a specific German message instead of the
  generic "try again". The fallback includes the raw code so unmapped
  failures stay actionable when reported back.
- LightboxToggleButton logs the caught server-action error to the console
  (and notes the dev terminal) instead of reverting the optimistic toggle
  with no signal. Root cause still needs the live error; this makes it
  visible.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Leon TonhäuserandClaude committed 2026-08-11 13:52:15 +02:00
1 parent a3ec068cac
commit a7df6bd60a
4 files changed
+103 -57

No files matched your search

+13 -12
View File
@@ -8,29 +8,30 @@ import type { VisibleAlbum } from "./catalog";
export function AlbumContactSheet({ albums }: Readonly<{ albums: VisibleAlbum[] }>) {
return (
<ul className="album-contact-sheet" aria-label="Freigegebene Fotoalben">
<ul className="album-gallery" aria-label="Freigegebene Fotoalben">
{albums.map((album) => (
<li key={album.id}>
<Link className="contact-sheet-link" href={`/redaktion/alben/${encodeURIComponent(album.id)}`}>
<article className="album-contact-frame">
<Link className="album-tile" href={`/redaktion/alben/${encodeURIComponent(album.id)}`}>
<figure className="album-tile-frame">
{album.albumThumbnailAssetId ? (
<img
alt={`Titelbild: ${album.albumName}`}
className="contact-sheet-image"
height="480"
className="album-tile-image"
loading="lazy"
src={thumbnailUrl(album.albumThumbnailAssetId)}
width="720"
/>
) : (
<div aria-label={`Kein Titelbild für ${album.albumName}`} className="missing-contact-image" role="img">
<div aria-label={`Kein Titelbild für ${album.albumName}`} className="album-tile-missing" role="img">
Kein Titelbild
</div>
)}
<footer className="contact-strip">
<span className="contact-strip-name">{album.albumName}</span>
<span>{formatCount(album.assetCount, "Foto")}</span>
</footer>
</article>
<div className="album-tile-overlay">
<figcaption className="photo-tile-caption">
<span className="photo-tile-name">{album.albumName}</span>
<span className="photo-tile-date">{formatCount(album.assetCount, "Foto")}</span>
</figcaption>
</div>
</figure>
</Link>
</li>
))}