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>
46 lines
3.5 KiB
Markdown
46 lines
3.5 KiB
Markdown
# Changelog — Church Website
|
|
|
|
## [Unreleased]
|
|
|
|
### Added
|
|
|
|
- The app's skeleton (WEBSITE-1.0-PLAN §1): an Express + Prisma backend with `/api/health` and
|
|
`/api/v1/site/status` (Coming soon until the first publish), the content model and its first
|
|
migration, the section variants per template (§3, decision 16) with the template switch rules, and
|
|
a Next.js frontend with the Coming soon page, an admin placeholder and `robots.txt`.
|
|
- **Signing in to the admin through the church's Accounts** (§10), as Cross Events 3.x: the Hub
|
|
client (protocol v2, product `website`, registers from `HUB_LICENCE_KEY`, heartbeats with
|
|
aggregate counts), links (`crosscode.link/1`; the Website connects itself to the church's Accounts
|
|
once the Hub lists it), `/api/auth/signin`, `/callback`, `/me`, `/signout` (then Accounts'
|
|
sign-out), back-channel logout and Accounts' calls (`user.updated`, `user.export`,
|
|
`user.deleted`). The Website keeps its own session (`ccw_session`, only a hash stored) and its own
|
|
roles; the **first Owner** is whoever signs in with the Hub's admin email (`HUB_ADMIN_EMAIL`,
|
|
verified in Accounts) while the site has none. Owners and Admins sign in with a second step
|
|
(`two_factor_required_for_admins`, on by default); asked of Accounts once, then explained.
|
|
- **The four templates and the public site** (§3, §5, §6): Heritage, Bold, Community and Clean,
|
|
each drawing all 26 section variants its own way, with its headers, homepage order and style
|
|
settings (section colour, spacing, buttons, image treatment). The church's colours are made safe
|
|
by the backend (`site/palette.ts`: tints, shades and text colours checked against WCAG AA, with a
|
|
note for the admin when one is changed); fonts and corners come from its shared brand style, else
|
|
the template's suggestion. Pages: home, every page kind (visit, about, ministries, leadership,
|
|
events, messages, give, contact, custom) with its blocks, simple event pages, a real 404,
|
|
Coming soon from the church profile, `sitemap.xml` and `robots.txt`. Every page has a title,
|
|
description, canonical, Open Graph and one `<h1>`; home and contact have the church's JSON-LD.
|
|
Messages load YouTube (youtube-nocookie) or Spotify only when clicked; maps are OpenStreetMap.
|
|
- **Publishing** (`site/snapshot.ts`): Publish copies the working copy into a numbered version;
|
|
visitors see the latest (`GET /api/v1/site/content`, with live messages and events and the church
|
|
profile from Accounts, kept 10 minutes). Section data is checked per type (`site/sections.ts`); a
|
|
section that doesn't fit is left out, never shown broken. Uploads are served from
|
|
`/api/uploads/` (SVGs sandboxed).
|
|
- **The demo church** (`npm run demo -- --template <id>`): Acacia Hill Church, fictional, with
|
|
illustrated images; refuses to replace a site its admins published unless `--force`.
|
|
- **End to end** (`npx playwright test` in apps/website, no database): every template's pages pass
|
|
axe (WCAG 2.2 AA) and the SEO basics; screenshots at phone and desktop in `e2e/screens/`.
|
|
- The admin page signs people in and out; `/auth/problem` explains a refused sign-in.
|
|
- **The church's export** (`scripts/export-church.ts`): `export.json` in
|
|
`crosscode.church-export/1` with its `website` part, for `crosscode export` and uninstall.
|
|
- **`crosscode`:** `scripts/products/website.sh` (the same hooks as Accounts, ports 5300 / 3300,
|
|
uploads in the export), `crosscode add <church> website` (needs the church's Accounts; served on
|
|
`www.<address>`, or the Cross Code address itself), and the installer shared by Accounts and the
|
|
Website (`install_app`).
|