website 1.11.0: layouts and backgrounds for the blocks; a video for the top of the page

- Blocks get layouts (BLOCK_VARIANTS: text standard/centred; image and text photo left,
  right or above; quote centred/with a line; call to action centred/banner), stored on
  Section.variant and checked against the type; an unknown one draws as the default, as
  every block looked before. The demo's image-text block id is now image-left.
- Each block has its own background (Section.background, migration
  20261201000000_block_background), in the published source only when set, put back by
  Discard and Restore, drawn as the homepage's (data-bg).
- MP4 uploads up to 20 MB for the hero's Video layout: QuickTime refused, metadata boxes
  (udta, meta, uuid) blanked into free boxes of the same size so where it was filmed is
  gone and the frame offsets hold; size read from tkhd. GET /media lists mime.
- Admin: a block's Layout and Background when open; the hero's Video field (only videos;
  photo fields only photos); the media library shows and takes videos. An upload over the
  limit says so instead of "That request isn't valid."
- Tests: backend (152, three new); e2e for block layouts and a video upload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 09:57:02 +02:00
co-authored by Claude Opus 5.5
parent a38468ba47
commit f5f778f0d7
28 changed files with 543 additions and 69 deletions
+11
View File
@@ -2,6 +2,17 @@
Each package and app has its own section and its own tags (`contracts@1.0.0`, `accounts@1.0.0`, …).
## website@1.11.0 - 2026-12-01
Layouts and backgrounds for the other pages' blocks, and a video for the top of the page
(Joshua, 2026-12-01). **Migration** (`Section.background`, nullable). No contracts change.
- **Website 1.11.0:** each block has its own layout (`BLOCK_VARIANTS`: text, image and text,
quote, call to action) and background in the church's colours; MP4 uploads (up to 20 MB, where
it was filmed taken out) for the hero's Video layout, with a video field in the admin.
- Checked: the Website backend tests (152, three new), the frontend's typecheck and lint, and the
admin, variants and templates e2e suites.
## website@1.10.0 - 2026-12-01
The home page laid out from its editor, and photos that match the layout (Joshua, 2026-12-01).