refactor: simplify Immich integration and remove PostgreSQL image storage#90
Merged
fatherlinux merged 1 commit intomasterfrom Feb 10, 2026
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Simplifies Immich integration by removing PostgreSQL fallback code, eliminating admin UI configuration, and consolidating on environment variable-based configuration.
Key changes:
immich_primary_asset_idinstead ofimage_mime_typefor image existenceTest plan
./run.sh build- Container builds successfully./run.sh test- All tests passRelated
🤖 Generated with Claude Code