From 8dacd0a50ca9cad5a2d8404a7c7b4b60533661c4 Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 24 Oct 2026 16:59:53 +0200 Subject: [PATCH] fix(book): the auto layout's drawn templates no longer carry photos of the book they were drawn in Three photo frames in the templates kept the photo ids of the journey the templates were read out of (68 and 69). Only empty frames take an entry's photos, so every book laid out on those templates pointed at those ids: a broken picture on most installs, and on one where the id exists, someone else's photo or an unrelated one of the user's own. The frames are empty now and take the entry's photos like the others. The parity digests of the five spreads that use them are written anew, as the spec asks for a deliberate layout change. --- shared/src/book/auto/auto-layout.parity.json | 10 +++++----- shared/src/book/auto/auto-templates.data.ts | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/shared/src/book/auto/auto-layout.parity.json b/shared/src/book/auto/auto-layout.parity.json index 420bb8d06..b35c60bcc 100644 --- a/shared/src/book/auto/auto-layout.parity.json +++ b/shared/src/book/auto/auto-layout.parity.json @@ -65,7 +65,7 @@ "B/full/spread/0": "ac843317bb8d097c", "B/full/spread/1": "bf4b62404c36aa0e", "B/full/spread/2": "1af653e4557c90b9", - "B/full/spread/3": "f766c7b6a3cad0fa", + "B/full/spread/3": "b094a0b5aa67b2c0", "B/full/relayout/3": "c0f3d2e84826b420", "B/full/spread/4": "8563f01a381c3b8b", "B/full/spread/5": "2458025780d8cbf3", @@ -85,14 +85,14 @@ "C/full/head": "0ffba0f701b7ccaa", "C/full/spread/0": "ee87e9e195e1edde", "C/full/spread/1": "bf4b62404c36aa0e", - "C/full/spread/2": "973ed5d0aacb1063", - "C/full/relayout/2": "973ed5d0aacb1063", + "C/full/spread/2": "b40cfdb0e5bea780", + "C/full/relayout/2": "b40cfdb0e5bea780", "C/full/spread/3": "8eb39a4e9d726f5e", "C/full/relayout/3": "8eb39a4e9d726f5e", "C/full/spread/4": "5a037193ef347c07", "C/full/relayout/4": "5a037193ef347c07", - "C/full/spread/5": "71c9f776ce8ffc87", - "C/full/relayout/5": "71c9f776ce8ffc87", + "C/full/spread/5": "b6dedb14199ad559", + "C/full/relayout/5": "b6dedb14199ad559", "C/full/spread/6": "0debcd2babd7ee6b", "C/full/relayout/6": "0debcd2babd7ee6b", "C/full/spread/7": "2458025780d8cbf3", diff --git a/shared/src/book/auto/auto-templates.data.ts b/shared/src/book/auto/auto-templates.data.ts index 2b2c8226f..a7bb8b830 100644 --- a/shared/src/book/auto/auto-templates.data.ts +++ b/shared/src/book/auto/auto-templates.data.ts @@ -281,7 +281,7 @@ export const AUTO_TEMPLATES: readonly AutoTemplate[] = [ opacity: 1, locked: false, kind: 'photo', - photoId: 69, + photoId: null, fit: 'cover', focalX: 0.42168673729754674, focalY: 0.23833399057977409, @@ -436,7 +436,7 @@ export const AUTO_TEMPLATES: readonly AutoTemplate[] = [ opacity: 1, locked: false, kind: 'photo', - photoId: 68, + photoId: null, fit: 'cover', focalX: 0.5, focalY: 0.5, @@ -457,7 +457,7 @@ export const AUTO_TEMPLATES: readonly AutoTemplate[] = [ opacity: 1, locked: false, kind: 'photo', - photoId: 69, + photoId: null, fit: 'cover', focalX: 0.5, focalY: 0.5,