/__reset returns a self-contained page that unregisters every service
worker, clears every cache, drops the heatmap API key, and reloads.
Use when a PWA is stuck on a bad cached chunk or SW state — visiting
photos.jeffemmett.com/__reset (even inside the broken PWA) fixes it.
Also mark any upstream 5xx response as no-store so a transient error
during a container restart can't get pinned into a browser or CDN
cache and brick the PWA long-term.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
After an Immich upgrade, Svelte chunk filenames rotate but the cached
PWA shell still imports old ones — dynamic imports 500 or 404. Our
auto-update mechanism only caught changes to our injected script, not
upstream changes, so the stuck PWA never self-healed.
Now /api/custom/inject-version returns a hash of
(custom script || Immich chunk manifest fingerprint), so any upgrade
bumps the version, the PWA detects it on next poll, unregisters the
service worker, clears caches, and reloads with fresh chunks.
We extract only the /_app/immutable/... references from the HTML to
avoid hashing server-rendered per-user state (CSRF tokens etc) that
would cause spurious version churn.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Column layout: map on top, photos on bottom — applies on desktop and
mobile. Bounds-filtered photo list is now sorted by distance from the
current map center, so photos closest to where you're looking show up
first and the list re-sorts automatically as you pan or zoom.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
A narrow (asset.read, asset.view) key was insufficient for the
heatmap's /api/search/metadata call — the server returned an error.
Request ['all'] so the key covers every endpoint the heatmap touches.
Also add a Reset button next to the Collapse toggle so a stale or
under-permissioned cached key can be regenerated without site-data
surgery.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
On map view the body container now shows the Leaflet map on one half
and a photo grid on the other half. The grid renders only photos
whose GPS falls inside the map's current bounds, and re-renders on
moveend/zoomend so panning and zooming filters the visible photo set
live. Stacks vertically on narrow viewports.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The heatmap iframe now requests an Immich API key via /api/api-keys
(asset.read, asset.view) on first load, caches it in localStorage,
and passes it via ?apiKey= so the user doesn't have to paste one.
Banner moved to the bottom of the /explore scroll container, below
People and Places.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Enable native mobile pinch-zoom by rewriting the viewport meta.
- Strip Content-Security-Policy / X-Frame-Options from HTML responses
so heatmap.jeffemmett.com can be iframed in.
- On /explore: inject a collapsible heatmap iframe at the top, and
replace People + Places sections (truncated grid with 'view more')
with horizontally-scrollable strips fetched from /api/people and
/api/search/cities.
- Re-run injection on history pushState + MutationObserver to cover
Svelte SPA route changes.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
server.js: hash live-search.js into INJECT_VERSION, expose
/api/custom/inject-version, set no-store on HTML so inline version
tag stays fresh.
live-search.js: compare baked window.__LS_VERSION vs server version
every 2 min + on visibility change; show banner, auto-unregister
service worker, clear caches, and reload when a new version ships.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Hijacks #location-selection in Immich's search filter modal: hides
country/state/city comboboxes, injects a text input that opens the
live-search overlay directly in map view for pan/zoom exploration.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds immich-proxy (search-app) with live search injection, WebSocket
proxying for socket.io, and 10GB upload buffering via Traefik middleware.
Moves Traefik routing from immich-server to proxy. Updates valkey 8→9.
Adds backlog tasks for drone sync and Syncthing reconnection.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>