- PAGE_VARIANTS: ministriesPage alternating/cards/list, leadershipPage grid/featured/list,
eventsPage list/cards/months, messagesPage grid/featured/list, contactPage
columns/map/cards. Kept in the design's variants beside the homepage sections', so each
template recommends some and starts a new site on the first (its suggestion), PUT /design
checks them, and a template switch moves an untouched one.
- A design saved before has none: cleanDesign gives it LEGACY_PAGE_LAYOUTS (the look until
now), and the site draws a snapshot without them the same way, so nothing changes until a
church picks one. Contact's map layout without a place on the map draws as two columns.
Ministries and messages keep their #slug anchors in every layout.
- Admin: the layout at the top of a listing page in Pages, the suggestion marked; Template
and style gets an Other pages tab with all five.
- Tests: backend (156, five new); e2e page-layouts.spec.ts (every layout in every template,
axe at phone and desktop; 60 passed).
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>
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>