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
+9 -2
View File
@@ -11,7 +11,7 @@ separately below; the two often differ.
| What | Repo | Latest | Tag | Released |
|------|------|--------|-----|----------|
| Cross Events | `crosscode-platform` (`apps/events`) | **3.9.0** | `events@3.9.0` | 2026-12-01 |
| Church Website | `crosscode-platform` (`apps/website`) | **1.9.0** | `website@1.9.0` | 2026-12-01 |
| Church Website | `crosscode-platform` (`apps/website`) | **1.10.0** | `website@1.10.0` | 2026-12-01 |
| Accounts | `crosscode-platform` (`apps/accounts`) | **1.10.0** | `accounts@1.10.0` | 2026-12-01 |
| Server agent | `crosscode-platform` (`apps/agent`) | **1.7.0** | `agent@1.7.0` | 2026-11-30 |
| Contracts | `crosscode-platform` (`packages/contracts`) | **1.24.0** | `contracts@1.24.0` | 2026-11-30 |
@@ -31,7 +31,7 @@ on each run, so merging to `main` and pushing releases it. Its changes are liste
| `@crosscode/demo` | `packages/demo` | 1.1.0 (the demo scenarios' churches, people and logos; ships with Accounts 1.9.0, Events 3.8.0 and Website 1.8.0) |
| `@crosscode/seo` | `packages/seo` | 1.0.0 (released with Events 2.4.0) |
| `@crosscode/ui` | `packages/ui` | 0.4.0 (fonts, `ChurchFooter`, `ColourField`; 0.2.0 with Accounts 1.7.0, 0.3.0 with Events 3.7.0, 0.4.0 with Accounts 1.10.0 and Website 1.9.0) |
| Website | `apps/website` | 1.9.0 (1.0.0–1.1.0 released 2026-11-26, 1.2.0–1.7.0 on 2026-11-27, 1.7.1 on 2026-11-28, 1.8.0 on 2026-11-30, 1.9.0 on 2026-12-01; tagged as `website@…`; see "Deployed / rolled out" for where it runs) |
| Website | `apps/website` | 1.10.0 (1.0.0–1.1.0 released 2026-11-26, 1.2.0–1.7.0 on 2026-11-27, 1.7.1 on 2026-11-28, 1.8.0 on 2026-11-30, 1.9.0 and 1.10.0 on 2026-12-01; tagged as `website@…`; see "Deployed / rolled out" for where it runs) |
| App | `apps/app` | 0.0.0 on main (a placeholder); 0.1.0 on the branch `feat/app-scaffold`, being built from 2026-12-01 (phase 6; not released, merged and tagged `app@1.0.0` when the plan is built) |
These shared packages ship inside the apps that use them, from the same checkout, so they don't
@@ -39,6 +39,13 @@ need their own tags until something outside this repo depends on them.
## What each latest release was for
- **Website 1.10.0 (2026-12-01):** the home page's editor (Pages → Home) sets each section's
layout, background, order and whether it shows (still under Template and style too), and a
section offers only the photos its layout shows, a slot for each (1 for Photo, Video and Split,
3 for Collage, none for Text only). Frontend only: no migration, no contracts change, works with
any Accounts. Checked: the Website frontend's typecheck and lint, the admin e2e suite (13 tests).
Not deployed.
- **Events 3.9.0 + Website 1.9.0 + Accounts 1.10.0 + `@crosscode/ui` 0.4.0 (2026-12-01):** Events
takes the church's name, logo, icon, colours and contact details from the Accounts profile
(pages, emails, WhatsApp, PDFs; Settings shows them read-only), so a change in Accounts or a