Commit Graph
21 Commits
Author SHA1 Message Date
Leon TonhäuserandClaude Opus 5.5 2775b406bf Release 2.3.0: calendar categories, reservations, month view, dashboard
- Admin-managed event categories (name + one of Sakani's 8 calendar
  colors) at /admin/kalender/kategorien; events pick a category.
- Calendar as Sakani MonthCalendar with a German header and a color
  legend, for editorials and admins.
- "Zu meinen Alben hinzufügen" replaces RSVP: grants the event album at
  once when it exists, otherwise reserves it; the auto-rule scheduler
  grants pending reservations once the album appears. Editorials see when
  an auto rule already covers the event. event_responses is dropped.
- New admin dashboard: to-dos, next events, 30-day figures, activity.
- Photo grid reads left to right in uniform 3:2 tiles.
- Release notes 2.3.0 seeded (migration 0008).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 23:45:59 +01:00
Leon Tonhäuser 69264ce165 Secure Sakani portal and show full album titles 2026-11-30 19:14:57 +01:00
Leon TonhäuserandClaude Opus 5.5 c40ccf77cf chore: drop parallel-run setup, document direct rollout and rollback
The UI goes live on the main domain directly, so the second-instance
compose file and the AUTO_RULE_SYNC_DISABLED switch are not needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 18:30:44 +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 0b65fbba16 fix: rebuild migration history as baseline so migrate works on prod
Squash the 13 historical migrations into one generated baseline whose
journal entry reuses the original 0000 timestamp: the migrator skips it
on every existing database (prod journal stuck at 0006) and applies it
only on fresh ones. Parity with the old chain verified via pg_dump diff
plus fresh/existing/prod-simulated drizzle-kit migrate runs. Historical
files move to drizzle-history/pre-squash-2026-08/ for integration tests
that exercise legacy migration behavior.

Also repair db tests that already failed before this change:
- raw SQL targeted users, but the table has always been "user"
- membership recheck mocked legacy getAsset.albums instead of searchPhotos
- audit rollback assertion walks drizzle's wrapped error cause chain
- keyset index probe pinned to NULLS LAST ordering, removing a planner
  cost tie-break that flipped with index creation order
2026-08-25 11:56:52 +02:00
Leon Tonhäuser dd60fd6ee6 feat: auto-assign new Immich albums via keyword rules
Auto-assignment rules were only applied when an admin clicked
"Regeln jetzt anwenden". New albums created in Immich therefore
never reached editorials automatically.

- applyAllRules() syncs every active editorial's keywords against the
  full album list in one pass and grants matches as system actor
- in-process scheduler (src/instrumentation.ts) runs the sync every
  AUTO_RULE_SYNC_INTERVAL_SECONDS (default 120s)
- POST /api/cron/album-sync allows external triggers via CRON_SECRET
- overlapping sync runs coalesce to avoid duplicate grants/emails
2026-08-25 01:05:04 +02:00
Leon Tonhäuser cccb214229 docs: plan search result downloads 2026-08-12 16:40:50 +02:00
Leon Tonhäuser 9903d18b84 docs: specify search result downloads 2026-08-12 16:38:30 +02:00
Leon Tonhäuser d8c3508db2 docs: plan mobile menu active contrast 2026-08-11 17:54:39 +02:00
Leon Tonhäuser 3e0221b149 docs: specify mobile menu active contrast 2026-08-11 17:53:36 +02:00
Leon Tonhäuser b1ef4a8186 docs: plan session expiry recovery 2026-08-11 17:10:42 +02:00
Leon Tonhäuser 56f21a5289 docs: specify session expiry recovery 2026-08-11 17:06:23 +02:00
Leon Tonhäuser a98c7bc8ee docs: plan mobile portal navigation 2026-08-11 17:02:43 +02:00
Leon Tonhäuser 3a1f4274a4 docs: specify mobile portal navigation 2026-08-11 16:49:47 +02:00
Leon Tonhäuser 60ef5ddab9 fix: use runtime legal page URLs 2026-08-11 16:17:34 +02:00
Leon Tonhäuser 86dfe8053d fix: harden production flows and user messaging 2026-08-11 16:07:13 +02:00
Leon TonhäuserandClaude 013036ea81 ops: add migrate/seed/preflight compose profile for clean fresh setup
The portal database lives on an internal-only network and is not exposed to
the host, so `pnpm drizzle-kit migrate` and admin seeding cannot run from the
host. Add one-shot `ops`-profile services built from the builder stage that run
migrations, seed the first admin, and run the preflight smoke test against the
real env from inside the network. Share the app env via an x-portal-env anchor.

Update the runbook to use the new commands.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-10 23:14:02 +02:00
Leon Tonhäuser f7481d4cde ops: add portal deployment and backup runbook 2026-08-10 21:47:53 +02:00
Leon Tonhäuser 763098b129 chore: bootstrap portal application 2026-08-09 20:14:31 +02:00
Leon Tonhäuser 5726c93ef3 docs: add implementation plan for editorial portal 2026-08-08 23:56:04 +02:00
Leon Tonhäuser 86a2a1f0fd docs: add immich editorial portal design 2026-08-08 23:40:52 +02:00