Skip to content

refactor: simplify Immich integration and remove PostgreSQL image storage#90

Merged
fatherlinux merged 1 commit intomasterfrom
feature/immich-cleanup-and-simplification
Feb 10, 2026
Merged

refactor: simplify Immich integration and remove PostgreSQL image storage#90
fatherlinux merged 1 commit intomasterfrom
feature/immich-cleanup-and-simplification

Conversation

@fatherlinux
Copy link
Member

Summary

Simplifies Immich integration by removing PostgreSQL fallback code, eliminating admin UI configuration, and consolidating on environment variable-based configuration.

Key changes:

  • Remove static theme videos (~30MB) - now served exclusively from Immich
  • Delete ImmichSettings.jsx admin component and Settings tab
  • Remove legacy PostgreSQL image endpoints
  • Change frontend to check immich_primary_asset_id instead of image_mime_type for image existence
  • Simplify immichService.js to use only environment variables

Test plan

  • ./run.sh build - Container builds successfully
  • ./run.sh test - All tests pass
  • Verify thumbnails display in Results tab for POIs with Immich assets
  • Verify tooltips show images on map hover/selection
  • Verify sidebar shows POI images
  • Verify theme videos load from Immich

Related

🤖 Generated with Claude Code

…rage

Part of Issue #1 - Immich Integration cleanup and simplification

## Changes

### Backend
- Remove legacy PostgreSQL image endpoints (/api/destinations/:id/image, /api/linear-features/:id/image)
- Simplify immichService.js to use environment variables only (no database settings)
- Remove immich_* from admin.js allowedKeys (no admin UI configuration)
- Add immich_primary_asset_id to all POI SQL queries

### Frontend
- Remove static theme videos (~30MB) - now served from Immich
- Delete ImmichSettings.jsx admin component
- Remove Immich tab from Settings modal
- Change all image existence checks from image_mime_type to immich_primary_asset_id:
  - Map.jsx: tooltip thumbnails for destinations, trails, boundaries
  - ResultsTile.jsx: POI tile thumbnails
  - ThumbnailCarousel.jsx: mobile navigation thumbnails
  - Sidebar.jsx: all POI/linear feature image displays and uploads

### Database
- PostgreSQL image_data cleared (images now exclusively in Immich)
- 97 POIs with immich_primary_asset_id pointing to Immich assets

### Configuration
- Updated run.sh to pass IMMICH_* env vars to container

Closes #1 Part 4 (PostgreSQL Image Cleanup)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@fatherlinux fatherlinux merged commit 50093b9 into master Feb 10, 2026
2 checks passed
@fatherlinux fatherlinux deleted the feature/immich-cleanup-and-simplification branch February 10, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Automatic Themes for Holidays and Seasons

1 participant