- A section's photo (hero, welcome, invitation, image-text) shows in the
shape of its frame for the current template and layout, with a Move and
zoom dialog: drag or arrow keys to choose what stays in view, zoom to
300%. Saved with the section as data.framing ({ x, y, zoom } by media
id), a draft until published. The site draws it with object-position
and scale() around that point; Bold split/collage frames now clip, and
a zoomed photo stays inside Heritage's mat. Framing for photos a section
no longer shows is dropped on save.
- Media library: each photo says where it's used; one used nowhere can be
deleted with its files (DELETE /admin/media/:id, 409 IN_USE otherwise,
audited as media_deleted).
Checked: Website backend tests (135) and typecheck, frontend typecheck,
lint and production build, and an e2e test of both flows in Chromium.
Lighthouse not run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
contracts: hub.storageRequestSchema and its reply, a sample and JSON
Schemas. Website: an Owner or Admin asks for more 5 GB steps under
Media library (signed to the Hub); the heartbeat reports the licence's
storage limit, so the Hub emails the church at 80% and when full.
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>