feat(editor): finish the quick/advanced editor handoff
CI / build (push) Has been cancelled

Reopen advanced edits from their saved recipe, seed or take over the quick
editor from them, refresh thumbnails after a save, and add an edited-only
download. Also fixes the Lumenroom library collapsing to slivers on large
shoots and documents deploying both containers on a new host.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2026-11-21 06:35:24 +00:00
parent ab4a07a40f
commit ebe0c77f7e
35 changed files with 1844 additions and 150 deletions
+1
View File
@@ -266,6 +266,7 @@ export function normalizePhoto(input: Partial<PhotoRecord> & { id: string }): Ph
decode: input.decode,
previewUrl: input.previewUrl,
thumbUrl: input.thumbUrl,
thumbVersion: input.thumbVersion,
name: input.name ?? 'Untitled',
width: input.width ?? 0,
height: input.height ?? 0,
+11
View File
@@ -4,6 +4,17 @@ import { getAsset, putAsset } from './db';
const CACHE_LIMIT = 6;
const cache = new Map<string, ImageBitmap>();
/**
* Grid/filmstrip thumbnail URL. The version stamp changes when the saved edit is
* re-rendered, so the browser does not keep showing the pre-edit thumbnail.
*/
export function thumbSrc(photo: PhotoRecord): string {
if (!photo.thumbUrl) return photo.thumb;
return photo.thumbVersion
? `${photo.thumbUrl}?v=${photo.thumbVersion}`
: photo.thumbUrl;
}
/** Where to fetch the original (or raw proxy) when it is not cached on this device. */
export function remoteAssetUrl(photo: PhotoRecord): string {
if (photo.raw) return photo.previewUrl || `/api/photos/${encodeURIComponent(photo.id)}/preview`;