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
+13 -1
View File
@@ -39,6 +39,7 @@ import {
findPreview,
findThumb,
removeAsset,
removeThumb,
storageBytes,
writeOriginal,
writePreview,
@@ -302,6 +303,7 @@ route('GET', '/api/bridge/login', async ({ req, res, url }) => {
const imported = await importBridgeEvent({
serviceToken: service.token,
sessionId: payload.sid,
returnUrl: service.returnUrl,
});
const sessionToken = createSession(row.id);
res.writeHead(302, {
@@ -459,7 +461,17 @@ route('POST', '/api/bridge/export', async ({ req, res }) => {
if (result.status >= 400) {
return error(res, result.status, result.body?.error || 'The edit could not be saved to the event');
}
return json(res, 200, result.body ?? { ok: true });
// The grid now shows the dashboard's thumbnail of this render, so drop the
// cached copy and bump the URL the browser asks for.
await removeThumb(body.photoId).catch(() => undefined);
const thumbVersion = Date.now();
const stored = getPhoto(body.photoId);
if (stored) {
stored.thumbVersion = thumbVersion;
savePhoto(stored);
}
return json(res, 200, { ...(result.body ?? { ok: true }), thumbVersion });
});
route('PUT', '/api/photos/:id', async ({ req, res, params }) => {