website 1.10.0: the home page laid out from its editor; photos that match the layout

- Pages → Home: each section's layout and background when it's open, and move up, move down
  and show or hide on its header. They save straight to the design, as Template and style →
  Home page layout does (which keeps them too). Shared lists in admin/layouts.ts.
- A section offers only the photo fields its layout shows: a slot for each (hero: 1 for Photo,
  Video and Split, 3 for Collage, none for Text only); Welcome's photo and pastor and the
  Invitation's photo only for the layouts that use them. Photos for other layouts are kept.
- e2e: the hero opens with /^Top of the page/; a new test for the editor's layout controls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 08:56:08 +02:00
co-authored by Claude Opus 5.5
parent 101248195f
commit 8b1d1da5a9
12 changed files with 264 additions and 66 deletions
+22
View File
@@ -1,5 +1,27 @@
# Changelog — Church Website
## [1.10.0] — 2026-12-01
No migration, no new environment settings, no backend change.
### Added
- **The home page's layouts in its editor** (Pages → Home): each section's layout and background
when it's open, and move up, move down and show or hide on its header. They save straight to
the design (`PUT /design`), as under Template and style → Home page layout, which keeps them too;
the preview reloads on either a page or a design change. The layout and background lists are
shared in `frontend/src/admin/layouts.ts`.
### Changed
- **A section's photo fields follow its layout.** `DataForm` takes the section's `layout`; a
field's `layouts` limits it to some (Welcome's photo: Image and text; its pastor: With pastor;
the Invitation's photo: Image background), and a photo list's `count` gives a slot for each photo
the layout shows, chosen or not (the hero: 1 for Photo, Video and Split, 3 for Collage, none for
Text only). Photos past the slots stay saved for a layout that shows more.
- The e2e test opens the hero with `/^Top of the page/` (the new buttons' names contain it), and a
new test covers the layout, background, order and showing from the editor.
## [1.9.0] — 2026-12-01
No migration, no new environment settings. Needs `@crosscode/ui` 0.4.0 (built with the Website).