Commit Graph
7 Commits
Author SHA1 Message Date
Leon TonhäuserandClaude Opus 5.5 cba70310f9 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>
2026-12-01 00:09:37 +01:00
Leon TonhäuserandClaude Opus 5.5 9e938e4d07 feat: redesign portal UI with Sakani UI and add release notes
Replace the hand-rolled Tailwind/shadcn look with Sakani UI across the
editorial area, the admin area and all signed-out pages.

- AppShell (Sakani Sidebar + TopBar) for /redaktion and /admin, with a
  mobile drawer, theme toggle, sign-out, legal links and a "Was ist neu"
  button; PublicShell for login, registration, password, 2FA and errors.
- Shared primitives (Button, Card, Input, PageHeader) now render Sakani;
  components/ui/sakani.tsx is the client boundary for Server Components
  (Sakani ships no "use client") and adds FormSelect (native form value)
  and DataTable (element cells from the server).
- Legacy CSS variables map onto Sakani tokens; globals.css shrinks from
  ~2200 to ~700 lines. Geist replaces Inter. recharts/lucide-react dropped
  (charts via Sakani BarChart).
- Release notes popup per area, shown once per version (localStorage) and
  reopenable from the sidebar; native <dialog> for focus trapping.
- Fixes found while testing: TOTP field reused the typed password in
  clear text, modal dialogs sat top-left, invisible unchecked checkboxes
  in dark mode.
- Parallel run: compose.parallel.yaml, AUTO_RULE_SYNC_DISABLED switch and
  docs/operations.md §8 (start, rollback, cutover).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 18:24:05 +01:00
Leon Tonhäuser 2a5a2f3815 feat: show outstanding unbilled amount next to net price in editorial overview
Grouped SUM over usages with billingStatus open/reopened (same selectable
set as the billing page; voided excluded) per editorial, rendered as an
amber-highlighted 'Offen' suffix in each card footer.
2026-09-01 17:23:38 +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 4a9da65901 feat: redesign dashboard, add lightbox bulk download, and standardize ui 2026-08-11 11:18:39 +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äuser 3584b4a7a7 feat: add editorial approval and account guards 2026-08-09 21:15:30 +02:00