Commit Graph
10 Commits
Author SHA1 Message Date
Leon Tonhäuser 0b1ffdfdfc feat: Add flatrate billing model for editorial accounts 2026-08-11 03:27:10 +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 8dfaf8284e fix: support Immich v3 search/metadata cursor pagination
Immich v3 (server runs v3.1.0) returns search `nextPage` as an opaque cursor
string instead of a page number. The client schema validated `nextPage` as
`number`, so every album open failed schema validation and surfaced as
"Fotos momentan nicht erreichbar" (the catalog catch swallows the real
IMMICH_INVALID_RESPONSE into IMMICH_UNAVAILABLE).

Accept `string | number` for nextPage/previousPage in the schema and the
ImmichSearchPage type; we only use nextPage as a has-more-pages signal.
Pagination links are now derived from the current page number (currentPage ± 1)
instead of the returned nextPage value, since the v3 cursor can't be used as a
page number. Album page passes the normalized current page through.

Add a client test locking the v3 cursor-string response.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-11 02:23:21 +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 ba673ad732 fix: harden download history and attempt ledger 2026-08-10 16:45:40 +02:00
Leon Tonhäuser 510fde7afa fix: harden delivery accounting and history 2026-08-10 13:44:04 +02:00
Leon Tonhäuser 8871e4794a feat: stream originals with download accounting 2026-08-10 13:10:13 +02:00
Leon Tonhäuser 66f0599653 feat: add branded editorial photo catalog 2026-08-09 22:22:31 +02:00
Leon Tonhäuser 3584b4a7a7 feat: add editorial approval and account guards 2026-08-09 21:15:30 +02:00