Commit Graph
14 Commits
Author SHA1 Message Date
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 9c0d43b1ec test: add portal end-to-end quality gates 2026-08-10 21:51:25 +02:00
Leon TonhäuserandClaude 89d76e2711 feat: render billing usage pdf
Add the immutable PDF renderer for "Nutzungsnachweis" billing reports.

- src/modules/billing/types.ts: BillingReportSnapshot self-contained type
  (address, selected positions, repeat downloads, net total in cents,
  report/invoice metadata, period, document ID, legal notice).
- src/modules/pdf/document.ts: pdfmake document definition builder with
  monochrome invoice layout (black logo, sender/recipient blocks, rounded
  black summary panel, repeated black table headers, light-gray rows,
  German dates, cents-derived totals, page numbers, document ID, invoice
  reference, legal separation notice).
- src/modules/pdf/render.ts: renderBillingPdf → { bytes, sha256 } using
  pdfmake 0.3 with IBM Plex Mono (OFL) embedded via the VFS.
- scripts/render-pdf-fixture.ts: stress fixture generator (1 row, 60 rows,
  long address, long fields, umlauts, 3-page case) into tmp/pdfs/.
- tests/fixtures/billing-report.ts: deterministic reportFixture (60,00 EUR).
- tsconfig.json: server-only path alias for tsx script execution.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-10 17:54:19 +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 c400167b8f fix: enforce one active logical album grant 2026-08-10 12:14:38 +02:00
Leon Tonhäuser 74ab2eb85f fix: harden legacy normalization and grants 2026-08-10 11:53:28 +02:00
Leon Tonhäuser 3cdca5c82c fix: preserve legacy accounting migration data 2026-08-10 11:39:44 +02:00
Leon Tonhäuser 3de1530074 fix: harden usage accounting idempotency 2026-08-10 10:59:12 +02:00
Leon Tonhäuser 22fe6bf659 feat: add usage and download intent accounting 2026-08-09 22:52:27 +02:00
Leon Tonhäuser a5973bfaf1 feat: add typed immich api adapter 2026-08-09 21:39:12 +02:00
Leon Tonhäuser 3f84b840d9 fix: serialize editorial approval delivery 2026-08-09 21:23:32 +02:00
Leon Tonhäuser 7acaacb92e feat: add portal database schema 2026-08-09 20:26:18 +02:00