Commit Graph
22 Commits
Author SHA1 Message Date
Leon Tonhäuser 61b1dbe350 fix: restore mobile menu active contrast 2026-08-11 18:01:16 +02:00
Leon Tonhäuser 60d5a95651 fix: keep mobile portal menu reachable 2026-08-11 17:35:26 +02:00
Leon Tonhäuser 52dce168dd style: add underline to acknowledgement links, update .env.example 2026-08-11 14:58:08 +02:00
Leon TonhäuserandClaude a7df6bd60a 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>
2026-08-11 13:52:15 +02:00
Leon TonhäuserandClaude a3ec068cac feat: redesign photo overview (masonry + lightbox) and fix hoch/quer search
The album search could not distinguish portrait from landscape: the format
filter ran client-side over a single 60-item page and relied on exifInfo that
Immich never returned (no withExif flag), so the orientation guard fell
through and every photo matched every filter. Pagination links also dropped
format/jahr on the next page.

- immich/client: send withExif: true on /search/metadata so
  exifImageWidth/Height are populated for orientation filtering and masonry
  aspect ratios.
- albums/filter (new): filter + paginate across the full fetched set so total,
  page slice and has-more-pages stay consistent with active filters; both the
  album detail and the cross-album search pages use it.
- albums/photo-gallery (new client component): masonry grid with native
  EXIF aspect ratios (object-fit: cover, no more 3:2 letterboxing), hover
  overlay with filename/date + merken/lizenzieren/vergrößern, and a
  full-screen lightbox with keyboard nav (Esc/arrow keys).
- catalog-content: drop the old PhotoContactSheet; keep AlbumContactSheet and
  thread format/jahr through PhotoPagination links.
- Album detail search form restyled to the editorial design system (sharp ink
  borders) instead of the shadcn rounded card.
- Tests: filter.test.ts covers the orientation/year/pagination logic;
  catalog-content.test.tsx updated to the gallery + lightbox structure;
  immich client test expects withExif: true.

Skipped: global search form still uses shadcn styling (visually inconsistent
but functionally fixed); albums > 1000 photos lose tail items (noted with a
ponytail ceiling comment).

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-11 13:36:46 +02:00
Leon Tonhäuser 7e85b35486 fix: watermark svg xlink, object-contain for vertical images, remove duplicate search form 2026-08-11 13:07:30 +02:00
Leon Tonhäuser 9fdd76645c feat: batched auto-rules emails, thumbnail fallback, and approve form 2026-08-11 12:52:01 +02:00
Leon Tonhäuser d9d69ed861 fix: comprehensive portal audit - bugfixes, performance, security, logo
Critical bugs:
- Fix bulk-download: UUID idempotency key, input validation, error handling, parallel asset validation
- Fix leuchtkasten 404 link -> album page with search
- Fix revalidatePath [id] -> [albumId]
- Fix PDF crash on null invoiceNumber

Logo:
- Fix dimensions (1000x1000), dark mode support (logo-white.png), max-height constraint

UI bugs:
- Fix unsafe Date method calls (6 files)
- Fix album UUID shown instead of name in catalog
- Fix global search downloads (albumId from asset)
- Add null guard for lightbox asset map

Performance:
- Parallelize admin dashboard queries (Promise.all)
- Lazy-load recharts via next/dynamic
- Add thumbnail caching headers (24h + ETag)
- Reduce duplicate Immich API calls in usage service
- Add DB index on usages(createdAt)
- Add optimizePackageImports for lucide-react, recharts

Security:
- Input validation on bulk-download (max 100 items, UUID format, purpose length)
- Verify security headers present in next.config.ts
2026-08-11 11:50:12 +02:00
Leon Tonhäuser 8728308fc6 feat: complete UI design system refactoring and fix TS build errors 2026-08-11 03:38:34 +02:00
Leon Tonhäuser fcd2a08cd0 fix: resolve UI issues (image aspect ratio, footer padding, logo size, animations, hydration) 2026-08-11 03:04:01 +02:00
Leon Tonhäuser e555069ee1 feat: merge cross-album search, auto-rules, album UI redesign, editorial archiving and pdf download into main 2026-08-11 02:53:19 +02:00
Leon Tonhäuser 375e5b8b7d feat: add cross-album search, auto-rules, album UI redesign, editorial archiving and pdf download 2026-08-11 02:53:15 +02:00
Leon TonhäuserandClaude 7aeceee078 feat: unify admin dashboard shell, add logout button
Admin used an undefined `.portal-shell` class plus the landing-page `.masthead`
markup, so the layout had no background/min-height and CSS "kackte rein".
Generalize PortalShell to take brand/nav props, switch admin/layout.tsx to it
(dark portal masthead + BrandLogo + admin nav), and pass the editorial nav from
redaktion/layout.tsx so both surfaces share one shell.

Add a LogoutButton client component (Better Auth signOut → hard navigate to
/anmelden) rendered into the masthead.

Style the admin content that had no rules: `.content-section dl/dt/dd` mirrors
`.editorial-section dl` (admin detail page), `.editorial-list` mirrors
`.billing-editorial-list` (Redaktionen index, replacing browser bullets),
`.portal-signout` for the dark masthead. Mobile: meta wraps, dl goes single
column.

Update logo.test.tsx to PortalShell's new required props.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-11 01:54:59 +02:00
Leon Tonhäuser 21871bb9ff feat: harden portal security and auditability 2026-08-10 21:46:54 +02:00
Leon TonhäuserandClaude 7f1ecd9322 feat: finalize immutable billing reports
Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-10 18:19:13 +02:00
Leon TonhäuserandClaude d37affc80f feat: add billing period selection
Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-10 17:31:42 +02:00
Leon Tonhäuser ba673ad732 fix: harden download history and attempt ledger 2026-08-10 16:45:40 +02:00
Leon Tonhäuser 8871e4794a feat: stream originals with download accounting 2026-08-10 13:10:13 +02:00
Leon Tonhäuser 846904f3db fix: harden editorial thumbnail authorization 2026-08-09 22:32:18 +02:00
Leon Tonhäuser 66f0599653 feat: add branded editorial photo catalog 2026-08-09 22:22:31 +02:00
Leon Tonhäuser 9b22752ef2 feat: add editorial registration and authentication 2026-08-09 20:48:43 +02:00
Leon Tonhäuser 763098b129 chore: bootstrap portal application 2026-08-09 20:14:31 +02:00