- 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>
- Events: the Accounts profile's name, logo, icon, colours and contact details win over
Events' own settings while Accounts is connected (pages, emails, WhatsApp, PDFs); Settings
shows them read-only with a link to Accounts. The Accounts logo is copied for PDFs (PNG
and JPEG). Fixes Events keeping its old church after a demo scenario load.
- Website: a background per homepage section in the church's colours; "More info" instead
of "Register" for events without registration; the shared colour field.
- Accounts: the shared colour field in Church profile.
- @crosscode/ui 0.4.0: ColourField and isHexColour.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.7.0 had Move and zoom in page sections only. Ministries, Leadership
and Events now have it on their photo, in the frame the site uses for
the current template and layouts. Saved with the row as `framing`
({ x, y, zoom }, null for centred; cleared when the photo changes).
Ministries and leaders are drafts until Publish (snapshot, Discard and
Restore carry it); an event's shows once the event is published.
Versions published before this compare unchanged.
One migration: a nullable JSONB `framing` column on Ministry, Leader
and SimpleEvent.
Also: the 1.7.0 e2e test waits for the media library to load before
counting it (it could count an empty list).
Checked: Website backend tests (136) and typecheck, frontend typecheck
and lint, production build, admin e2e suite in Chromium (12).
Lighthouse not run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Church details saved through Accounts' church.update (live at once).
Settings: Search Console and Bing codes, Coming soon line, menu order.
Audit log and recent edits. A made share image, Event / VideoObject /
PodcastEpisode / BreadcrumbList structured data, permanent redirects
from old page addresses. Saves refused when someone else saved in
between; Ministry leaders' events; templates previewed with the
church's own content before choosing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every upload is turned upright, stripped of its metadata (EXIF, GPS),
kept at most 2400 px wide and saved at 480/960/1600 px in WebP and
JPEG; the pages pick the size with <picture> and srcset. Every file
counts towards storage; a photo that can't be read is refused. sharp
0.35 (prebuilt, no build step on the servers).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Admin API and screens: dashboard and setup checklist, template and
style, pages and blocks, ministries, leadership, media library with
the storage limit, publish and history. Pending changes with who and
when, discard one, one Publish, restore any version (each version
keeps the working copy's rows, never sent to visitors). Preview on
the site's own addresses with a bar (widths, back, publish); shared
preview links for 7 days or until revoked. Roles checked, same-origin
changes only. Publish refreshes the public pages at once
(WEBSITE_CONTENT_CACHE_SECONDS). E2E on a production build: the
admin's flows and axe on every screen.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Heritage, Bold, Community and Clean drawing all 26 section variants
with their headers, homepage order and style settings; colours made
safe (WCAG AA) by the backend; fonts and corners from the shared brand
style. Publishing into numbered versions, the content API with live
messages and events and the church profile from Accounts, uploads,
every page kind, simple event pages, Coming soon, 404, sitemap, SEO
basics and the church's JSON-LD. The demo church (npm run demo) and
Playwright e2e: every template's pages pass axe and the SEO checks.
website.sh builds packages/seo. Decision 17 (first Owner) recorded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>