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

+40 -39
View File
@@ -569,73 +569,74 @@ a {
text-underline-offset: 0.2em;
}
.album-contact-sheet {
/* --- Album overview: grid of cover tiles in the photo-gallery aesthetic ---
Cover images use object-fit: cover with a consistent 4/3 tile (album
summaries don't carry EXIF, so no native per-cover aspect ratio), a
persistent bottom gradient with album name + photo count, and a hover
zoom. Clicking opens the album. Mirrors the photo grid's hover language. */
.album-gallery {
display: grid;
gap: clamp(1.25rem, 2.25vw, 2.5rem);
gap: clamp(0.75rem, 1.5vw, 1.25rem);
padding: 0;
list-style: none;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.contact-sheet-link {
.album-tile {
display: block;
color: inherit;
text-decoration: none;
}
.album-contact-frame {
.album-tile-frame {
position: relative;
margin: 0;
background: var(--contact-sheet);
border: 1px solid var(--ink);
overflow: hidden;
background: var(--contact-sheet);
aspect-ratio: 4 / 3;
}
.contact-sheet-image,
.missing-contact-image {
.album-tile-image {
display: block;
width: 100%;
aspect-ratio: 3 / 2;
object-fit: contain;
height: 100%;
object-fit: cover;
background: var(--contact-sheet);
transition: transform 150ms ease-out;
transition: transform 200ms ease-out;
}
.missing-contact-image {
.album-tile-missing {
display: grid;
place-items: center;
width: 100%;
height: 100%;
color: var(--metadata);
font-size: 0.75rem;
font-size: 0.7rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.contact-sheet-link:hover .contact-sheet-image,
.contact-sheet-link:focus-visible .contact-sheet-image {
transform: scale(1.015);
.album-tile:hover .album-tile-image,
.album-tile:focus-visible .album-tile-image {
transform: scale(1.03);
}
.contact-strip {
/* Persistent overlay (unlike the photo grid's hover-only overlay) — album
names need to be readable at a glance so editors can pick one. */
.album-tile-overlay {
position: absolute;
inset: 0;
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 0.75rem;
min-height: 2.35rem;
margin: 0;
padding: 0.5rem 0.625rem;
border-top: 1px solid var(--ink);
background: var(--contact-sheet);
color: var(--graphite);
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 0.625rem;
letter-spacing: 0.035em;
line-height: 1.25;
text-transform: uppercase;
}
.contact-strip-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex-direction: column;
justify-content: flex-end;
padding: 0.75rem;
background: linear-gradient(
to top,
rgb(0 0 0 / 85%) 0%,
rgb(0 0 0 / 30%) 55%,
rgb(0 0 0 / 0%) 85%
);
pointer-events: none;
}
/* --- Photo overview: masonry grid + hover overlay + lightbox --------------
@@ -1152,7 +1153,7 @@ a {
}
@media (prefers-reduced-motion: reduce) {
.contact-sheet-image,
.album-tile-image,
.photo-tile-image,
.photo-tile-overlay {
transition: none;