Reapply Immich snapshot pages #40

Merged
janpeter merged 1 commit from codex/immich-library-reapply into main 2026-06-06 01:01:57 +02:00
Owner

Summary

  • Add Immich Personen and Dubbelen pages under the library app with shadcn-style data tables and nav integration.
  • Adopt existing Immich snapshot tables in Prisma without adding an Immich create/drop migration.
  • Add server-side Immich sync client, CLI scripts, authenticated POST sync routes, and Postgres advisory locking shared by UI and CLI.

Notes

  • No migration file creates Immich tables; live tables are expected to already exist.
  • IMMICH_API_URL and IMMICH_API_KEY are server-side env values only.
  • Review feedback about process-local locking was addressed with transaction-scoped advisory locks.

Test Plan

  • npm test src/lib/immich/schema.test.ts src/lib/immich/config.test.ts src/lib/immich/client.test.ts src/lib/immich/sync.test.ts src/lib/immich/scripts.test.ts src/lib/immich/format.test.ts src/components/MainNav.test.ts src/lib/immich/route-handlers.test.ts src/lib/immich/sync-lock.test.ts src/components/ImmichSyncButton.test.ts
  • npm run build
## Summary - Add Immich Personen and Dubbelen pages under the library app with shadcn-style data tables and nav integration. - Adopt existing Immich snapshot tables in Prisma without adding an Immich create/drop migration. - Add server-side Immich sync client, CLI scripts, authenticated POST sync routes, and Postgres advisory locking shared by UI and CLI. ## Notes - No migration file creates Immich tables; live tables are expected to already exist. - `IMMICH_API_URL` and `IMMICH_API_KEY` are server-side env values only. - Review feedback about process-local locking was addressed with transaction-scoped advisory locks. ## Test Plan - [x] npm test src/lib/immich/schema.test.ts src/lib/immich/config.test.ts src/lib/immich/client.test.ts src/lib/immich/sync.test.ts src/lib/immich/scripts.test.ts src/lib/immich/format.test.ts src/components/MainNav.test.ts src/lib/immich/route-handlers.test.ts src/lib/immich/sync-lock.test.ts src/components/ImmichSyncButton.test.ts - [x] npm run build
feat: reapply Immich snapshot pages
Some checks failed
CI / docker-build (pull_request) Failing after 3s
43fb060e22
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
janpeter/Media-Organizer!40
No description provided.