Files
crosscode-platform/docs/WEBSITE-1.0-PLAN.md
T

37 KiB
Raw Blame History

Church Website 1.0.0 — the church's own public site

Phase 5 of ROADMAP-v3.md (§6, §9, §10, §11; decisions 19, 20, 40–47). Written 2026-11-21. All decisions confirmed by Joshua on 2026-11-21 (12 changed: a full storage stops uploads). Not started.

Updated 2026-11-24: the Hub release is 2.21.0, not 2.13.0 (the Hub reached 2.20.0 on 2026-11-23 with other work). The 8 font pairings in §3 ("Font pairings") were confirmed by Joshua on 2026-11-24 (decision 15).

Updated 2026-11-25: the section variants per template in §3 were confirmed by Joshua (decision 16).

What the Website is: the church's public site at www.<church's address> (or <church>.crosscode.co.za on the Cross Code address), plus its admin at /admin. Admins sign in through the church's Accounts. The church picks one of four templates and makes it its own with section layouts, style settings and its own pages. Changes are drafts until an admin previews the whole site and presses Publish. Until the first publish, visitors see a Coming soon page. The Website, Cross Events and (later) the App share the church's brand style (colours, logo, fonts, corners) and footer, so the three feel like one church.

Who uses 1.0: Hope Family Church first, then a second test church on a different template, to prove it repeats. Then it goes on sale (crosscode-site, ROADMAP §9).

Done when:

  • website@1.0.0, contracts@1.17.0, accounts@1.7.0, events@3.7.0 and Hub v2.21.0 are tagged; the Hub installs the Website from New install (after Accounts) and lists its releases.
  • All four templates pass the same checks (§13) at phone, tablet and desktop sizes: layout, axe, the §11 SEO checks, and Lighthouse (SEO 100, accessibility 95+, performance 90+).
  • An editor can change anything, preview the whole site as a visitor would, share the preview, and publish it all at once. An earlier version can be restored.
  • Switching template keeps all content, and the preview shows the switch before it goes live.
  • Cross Events' public pages use the church's fonts and the shared footer.
  • Hope Family Church and a second church are live on different templates.
  • crosscode-site sells it (ROADMAP §9, "Updating crosscode-site").

Contents

  1. The shape
  2. Content: shared and Website-only
  3. Templates and customisation
  4. Drafts, preview and publish
  5. Coming soon
  6. Pages
  7. Messages
  8. Events
  9. Connected with Events and the App
  10. Admin, roles and storage
  11. Hub, licence and servers
  12. What changes in each repo
  13. Testing
  14. Releasing and rolling it out
  15. Decisions
  16. Still open

1. The shape

apps/website, the same stack as Events and Accounts (decision 8 in the roadmap): an Express + Prisma + pg-boss backend (TypeScript) and a Next.js frontend, one PostgreSQL database, served on one address with /api to the backend (location ^~ /api/ in FastPanel, HANDOVER "FastPanel sites").

 visitor ─► www.hopefamily.co.za ─► Next.js (server-rendered from the published version, cached)
                                     │  template + section variants + style → HTML
 editor ──► /admin (signed in through Accounts, @crosscode/auth-client)
             edits the working copy ─► /admin/preview: the whole site from the working copy
             Publish ─► a new SiteVersion (snapshot) ─► public pages revalidated

 backend: content API (/api/v1/admin/…), public API (/api/v1/site/…), uploads (/api/uploads/…),
          event feed (/api/links/v1/*, as Events 2.4), Hub client (protocol v2, product "website"),
          jobs (YouTube feed, storage count, sitemap, feed sync)

 Accounts ── crosscode.church/1 (name, logo, colours, service times, contact, social, brand style)
 Events ──── crosscode.event/1 (the event feed, both directions)
  • Rendering: public pages are server components rendered from the latest published version and cached; Publish revalidates them. Preview renders the same components from the working copy, uncached. Visitors and the preview run the same code, so the preview is exactly what will go live.
  • Shared packages: @crosscode/ui (branded shell, footer, fonts, form fields, now also the public site's building blocks), @crosscode/seo (meta, JSON-LD, sitemap), @crosscode/auth-client (sign-in), @crosscode/contracts.

2. Content: shared and Website-only

The rule: facts that more than one product shows live in the church profile (crosscode.church/1, owned by Accounts). How the Website presents them, and anything only the Website shows, lives in the Website's own database. Leaders, ministries, About, giving and messages stay Website-only for now (decision 5), and can move into the profile when the App needs them (phase 6–7).

Shared: crosscode.church/1 Website-only
Already there: name, short name, logo, icon, colours, campuses, service times, contact, social, links Template, section variants, style settings other than fonts and corners (§3), homepage order
New in contracts 1.17.0: branding.style: fontPairing (an id from the shared list, §3) and corners (sharp / soft / round). Optional and additive, so a minor version Pages, sections and blocks, navigation, custom pages
About (story, mission, vision, values, beliefs), Plan your visit, Leaders, Ministries, Give
Messages and series (§7), simple events (§8), media library, per-page SEO
Drafts, published versions, preview links
  • Editing shared facts from the Website (decision 10): the Website's admin shows the profile's fields where they're used (service times on the Service times screen, the logo on Branding) and saves them through Accounts' API with the admin's token, as ACCOUNTS-1.0-PLAN §7 proposed. Accounts → Church profile stays the other way in.
  • Shared facts aren't drafts: Accounts has no draft state, and Events shows the profile too. A change to a shared fact goes live in every product straight away, and the Website's screens say so ("Changes here show on all your church's sites at once"). The preview always shows the current profile.
  • Legal pages: the privacy notice is Accounts' (the version people agreed to), linked from the footer. The Website adds its own terms and safeguarding pages from starter text.
  • Content is never tied to a template. Every section stores its data (validated with a zod schema per section type) and its chosen variant. Switching template keeps the data, and each template maps every variant to its nearest look.

3. Templates and customisation

Four templates, decided in decision 19: Heritage, Bold, Community, Clean (ROADMAP §6). Rather than adding more templates (more looks, but churches on the same one still look the same), each template has room to vary in four ways, within limits that keep every site designed, accessible and fast (decision 1).

1. Template = structure. The header and navigation style, the page rhythm, the default homepage order and which variant each section starts with.

2. Section variants. Every section type comes in two or three layouts, and every template can render every variant in its own style.

Section Variants
Hero Photo · Video (muted, with a still for phones and reduced motion) · Collage · Split (image and text) · Text only
Service times and location Panel · Inline strip · With map
Welcome / introduction Text · Image and text · With pastor's photo and quote
Ministries Cards · List · Alternating bands
Team / leaders Faces grid · List · Featured (one large, rest small)
Upcoming events Cards · List · Calendar strip
Latest message Large video · Card · Compact
Invitation (call to action) Banner · Centred · Image background

3. Style settings, on one screen with a live preview:

Setting Options Shared?
Font pairing 8 pairings in a shared list (self-hosted, no Google Fonts requests); each template marks 3 as recommended, all 8 work everywhere Shared (Events, Accounts, App)
Corners Sharp · Soft · Round Shared
Colours From the profile (primary, accent); tints and shades built and contrast-checked (WCAG AA, darkened or lightened automatically, with a note why) Shared (already)
Section colour Light · Tinted (the church colour as a soft background) · Mixed with dark bands Website
Spacing Airy · Compact Website
Buttons Solid · Outline · Pill Website
Image treatment Natural · Black and white · Duotone in the church colour Website
Header Each template's options (e.g. Bold: transparent over the hero, or solid) Website

4. Pages from blocks. Besides the fixed pages (§6), churches add custom pages (Youth camp, Our history, Kids…) from blocks: text, image and text, gallery, quote, video, FAQ, map, people cards, call to action, divider. Blocks come in the same variants and follow the style settings.

Not in 1.0: free drag-and-drop layout, custom CSS, custom fonts. Each would break phone layouts, accessibility or speed for some churches, and create support work. More templates can come in 1.x (they're part of the product, ROADMAP §1 rule 3).

Photos: the setup checklist explains what photos work (people, not buildings; landscape for heroes). The duotone treatment makes uneven photos look consistent. Every image needs alt text. Uploads are resized into responsive sizes (WebP and JPEG).

Font pairings (confirmed 2026-11-24)

Eight pairings, a heading font and a body font each. All are SIL Open Font License 1.1 (free to self-host and bundle; the licence text ships with them), all are variable fonts (one file per style covers every weight) and all cover Latin Extended (Afrikaans ê, ë, ô and names from other languages). The id is what branding.style.fontPairing stores, so ids never change once released; names and fonts shown to churches can.

Id Shown as Headings Body Feel Recommended for
classic Classic Lora Source Sans 3 Traditional serif headings, a plain readable body Heritage, Clean
scholarly Scholarly EB Garamond EB Garamond Old-style book type throughout; dignified Heritage
editorial Editorial Playfair Display Inter High-contrast magazine headlines over a neutral body Heritage, Bold
impact Impact Oswald Source Sans 3 Tall condensed headlines, uppercase-friendly; loud over photos Bold
contemporary Contemporary Outfit DM Sans Geometric, modern, light-handed Bold, Community, Clean
friendly Friendly Nunito Nunito Rounded ends throughout; warm and informal Community
warm Warm Fraunces (soft) Nunito Sans A soft, characterful serif with a gentle sans Community
modern Modern Inter Inter One neutral sans, tight headings; lets colour and photos lead Clean

Each template recommends three (its first is the default when a church picks that template):

Template Recommended (default first)
Heritage classic, scholarly, editorial
Bold impact, contemporary, editorial
Community friendly, warm, contemporary
Clean modern, classic, contemporary

Why these: two each of traditional serif, display serif, strong sans and soft sans, so every template has a real choice of mood; every pairing is recommended at least once. Avoided: script and handwritten faces (hard to read, poor in long text), fonts that only exist as static weights (many files, slower), and very thin display faces (fail contrast at small sizes).

How they're served (packages/ui):

  • From the @fontsource-variable/* npm packages, pinned in the lockfile and copied into each app's build; no request leaves the church's site (decision 13).
  • Only the Latin and Latin Extended subsets, woff2 only. A pairing is at most four files (heading and body, upright and italic; one family = two). Budget: ≤ 160 KB per pairing for the files a page actually uses; checked in CI.
  • The heading font is preloaded; the body font is not. font-display: swap with a metric-matched fallback (size-adjust, ascent-override) on Georgia or Arial, so swapping doesn't shift the layout (CLS, the Lighthouse target in §13).
  • CSS variables --cc-font-heading and --cc-font-body from the profile, next to the colours and --cc-radius (corners).

A church without a fontPairing (every church today): the Website uses its template's default; Events and Accounts keep the system fonts they use now, so Events 3.7 and Accounts 1.7 look the same until an admin picks a pairing. corners missing means soft.

Section variants per template (confirmed 2026-11-25)

Answers "Still open: the exact section variants per template". The rule from the table above stays: every template renders every variant, so no choice is ever greyed out and switching template never needs a fallback. What a template adds is (a) which variant each section starts with, (b) which variants it recommends (shown first, marked "Suits Heritage"), and (c) how it draws each one. Variant ids are stored on the section (hero.variant = "photo"), so like the font ids they never change once released.

Variant ids

Section Ids
Hero photo · video · collage · split · text
Service times and location panel · strip · map
Welcome / introduction text · image-text · pastor
Ministries cards · list · bands
Team / leaders faces · list · featured
Upcoming events cards · list · calendar
Latest message video · card · compact
Invitation banner · centred · image

The mission line (ROADMAP §6's homepage order) is a field of the Welcome section, shown above the introduction in every variant, not a section of its own.

Defaults and recommendations (default first, then the other recommended ones; anything not listed still works)

Section Heritage Bold Community Clean
Hero photo (framed), split, text video, photo, split collage, photo, split text, split, photo
Service times panel, map strip, map map, panel strip, panel
Welcome pastor, text image-text, pastor pastor, image-text text, image-text
Ministries list, cards bands, cards cards, bands list, cards
Team featured, faces faces, featured faces, featured list, faces
Events list, calendar cards, calendar cards, calendar list, calendar
Latest message card, video video, card card, video compact, card
Invitation centred, banner image, banner banner, image centred, banner

How each template draws them

  • Heritage (traditional, single centred column, thin rules between sections): photo sits inside a frame below the centred logo and navigation, never full-bleed; video is framed the same way. collage is three framed photos in a row. split keeps the image in a frame with text on the cream side. panel is the formal service-times panel with a double rule. cards are bordered, square-ish, with serif titles; bands alternate within the column width rather than full-bleed. faces are circular portraits with names in small caps. calendar is a month list with dates set in the heading font.
  • Bold (full-bleed, large type, sticky header): photo and video fill the screen with the headline overlaid on a scrim (contrast checked against the image's dark-scrim colour, not the photo); collage is an edge-to-edge mosaic. split is 50/50 full-bleed. strip is a coloured band right under the hero. bands are full-bleed alternating image / text. cards are large, image-led, with the title on the image. faces are tall portrait crops. text hero is a huge headline on the primary colour.
  • Community (cards, soft shapes, tinted backgrounds, faces prominent): collage is overlapping rounded photos with a soft blob shape behind; photo gets a curved bottom edge. Every list-like section prefers a card grid; list still exists but with rounded rows and small thumbnails. map shows the map in a rounded card next to the times. faces are big, with role and a short line. Sections alternate light and tinted backgrounds by default (Section colour tinted).
  • Clean (small header, white space, narrow column, colour as accent): text hero is the church's headline in large type with the service time underneath, no image needed. photo is shown below the headline at column width, never behind text. video is a contained player, never autoplaying as a background. strip is one line of text with a thin accent rule. cards are borderless with a hairline separator. collage is a tidy three-image grid. bands become stacked image / text pairs within the column.

Headers (the "Header" style setting)

Template Options (default first)
Heritage Centred (logo above, navigation below) · Centred with a top bar (service time and Plan your visit)
Bold Transparent over the hero, solid on scroll · Solid
Community Logo left, navigation right, Plan your visit button · Same with a tinted bar
Clean Small, logo left, text navigation · Small with navigation in a menu on every width

Every header collapses to a menu button on phones; the transparent one only applies when the page starts with a photo, video or collage hero (otherwise it's solid, so it never sits on white text over white).

Default homepage order (the church can reorder, hide and show)

Template Order
Heritage Hero · Service times · Welcome · Latest message · Ministries · Team · Events · Invitation
Bold Hero · Service times · Welcome · Events · Latest message · Ministries · Invitation (Team hidden)
Community Hero · Welcome · Service times · Ministries · Team · Events · Latest message · Invitation
Clean Hero · Service times · Welcome · Events · Latest message · Invitation (Ministries and Team hidden)

Style defaults when a template is picked (the church changes them afterwards)

Template Section colour Spacing Buttons Images Corners (if the profile has none)
Heritage Light Airy Outline Natural sharp
Bold Mixed with dark bands Compact Solid Natural sharp
Community Tinted Airy Pill Natural round
Clean Light Airy Outline Natural soft

Corners and the font pairing are shared (roadmap decision 47), so picking a template only suggests them when the profile has none; it never overwrites a church's existing brand style without the admin saying yes ("Use Heritage's fonts and corners for all your sites?").

Switching template (§4, a pending change like any other):

  • A section still on the old template's default moves to the new template's default, so a church that never touched variants gets the new template's intended look.
  • A section the church chose a variant for keeps it (every template draws every variant).
  • The homepage order and hidden sections are kept if the church changed them; otherwise the new template's default order applies.
  • Style settings follow the same rule: untouched ones take the new template's defaults, changed ones stay. The Publish screen lists what moved ("Hero: Collage → Text only, Clean's default").

Blocks on custom pages use the same ids where they overlap (image and text: image-text, people cards: faces / list / featured, call to action: banner / centred / image); the other blocks (text, gallery, quote, video, FAQ, map, divider) have one layout each, drawn in the template's style.

Checks per variant: the Playwright screenshots and axe run (§13) cover every variant in every template for the homepage sections (26 section variants × 4 templates × 3 widths = 312 screenshots), using the demo church, plus a run with each template's defaults for Lighthouse.

4. Drafts, preview and publish

Decision 2: one Publish for the whole site.

  • The working copy is the content tables the admin edits. A published version is an immutable snapshot of all of them (SiteVersion: JSON, who, when, an optional note). Visitors always see the latest published version.
  • Pending changes: the admin header shows "N changes not published". The Publish screen lists each change (page, section, setting; who made it, when), and any one can be discarded (back to its published value).
  • Preview (/admin/preview, or the Preview button anywhere): the whole site from the working copy, fully clickable (navigation, events, messages, video), with a bar on top: phone / tablet / desktop width, "Back to editing", the change count and Publish. The bar is outside the page, so the page is laid out exactly as it will be.
  • Share a preview: a link (/preview/<token>) for someone without an account, e.g. the pastor. It expires after 7 days (or when revoked), shows the working copy as it is when opened, sends noindex, and can't edit or publish.
  • Version history: every publish is kept. Restore copies a version back into the working copy, so it's previewed and published like any other change; nothing is lost.
  • Two editors at once: one shared working copy, saved per field. A field changed by someone else since it was opened warns before it's overwritten. Publish publishes everyone's changes, and the list shows whose they are.
  • What doesn't wait for Publish (decision 9): simple events and messages are things that happen rather than the site's design, so each has its own Publish (and messages found automatically on YouTube appear on their own, §7). Changes to shared profile facts go live straight away (§2).
  • Template switch: the new template is a pending change like any other, so the whole site can be previewed in it before publishing.
  • Every publish, discard and restore is in the audit log.

5. Coming soon

Decision 3: until the site's first publish, the public address shows a Coming soon page, not an empty site.

  • From the church profile: logo, name, colours and fonts, service times and address, contact details, social links, and buttons to the church's Events (and App) when they're linked. A short "Our new website is on its way" line the admin can change.
  • noindex, an empty sitemap, robots.txt as usual. Real HTTP 200, so the church's details are still useful to someone who finds the address.
  • Signed-in admins see a banner on it: "Your site isn't published yet. Preview it or publish it."
  • After the first publish there is no going back to Coming soon in 1.0 (unpublishing isn't needed).

6. Pages

As ROADMAP §6, with these changes:

  • Contact: contact details only (decision 4): address with a map, phone, email, WhatsApp, service times, social links. No contact form (personal information belongs in the App, §6 "Not in the first release").
  • Give: information and the church's provider links (SnapScan, Zapper, PayFast page, bank details as text). No giving processed.
  • Events: list, detail, calendar, past (§8).
  • Messages: list, series, detail (§7).
  • Home: the sections in the template's order; the church can reorder, hide and show them.
  • Every page: unique title and description, canonical, Open Graph image (generated from the logo and colours when the page has none), JSON-LD (Church on home and contact, Event, VideoObject, BreadcrumbList), exactly one <h1>, lang="en-ZA". Slug changes get a 301 to the new slug (within the site; moving domains is decision 6).

7. Messages

Decision 7: two ways in, chosen in Messages → Settings:

  • From YouTube, automatically. The admin gives the church's channel or a playlist (a playlist is better when the channel has other uploads). A job reads YouTube's public feed (youtube.com/feeds/videos.xml?channel_id=… / ?playlist_id=…, no API key) every hour, and each new video becomes a message (title, date, thumbnail, video). Admins can add the speaker, series, Bible passage and notes afterwards, or hide one. The newest is the home page's Latest message.
  • By hand. Add a message with a YouTube or Spotify link (episode or show) and the same details.

Both can be used together. Embeds load only when clicked (a thumbnail first), use youtube-nocookie.com, and set VideoObject (or PodcastEpisode for Spotify) JSON-LD. Audio and video are never uploaded (ROADMAP §10), so they don't count towards storage.

8. Events

  • Simple events made in the Website (title, date and time, place, description, image, an optional link). Only Cross Events takes registrations and payments (roadmap decision 4).
  • The event feed as Events 2.4: Settings → Linked products, "Publish my events" and "Show events from". Events from Cross Events show in the template's event cards and link through to Cross Events for registering.
  • Imported events carry <link rel="canonical"> to the origin's page and aren't in the Website's sitemap (ROADMAP §11). A source that's down keeps its last events showing.

9. Connected with Events and the App

Decision 8. The three products look like one church without looking like each other:

  • Brand style is shared (§2, §3): the same colours, logo, font pairing and corners in the Website, in Cross Events' public pages and Accounts' sign-in pages, and later in the App.
  • One footer. @crosscode/ui gets a ChurchFooter built from the profile (logo, service times, address, contact, social, links to the church's Website, Events and App, the privacy notice). The Website uses it in every template (styled by the template), Events 3.7 and Accounts 1.7 use it on their public pages.
  • Links between products: each product's header has a link to the others that exist (from the profile's links): "Events", "Website", later "App".
  • One sign-in and account menu (already, through Accounts).
  • Events 3.7.0: public pages (event list and detail, registration, the church's home) use the shared fonts, corners and footer. Admin and staff screens stay as they are. Nothing else changes.

10. Admin, roles and storage

Admin (/admin, as ROADMAP §6): dashboard with the setup checklist ("Choose your template" first, previewed with the church's own logo, colours and content, or sample content), pending changes and recent edits; Template and style; Pages; About; Leaders; Ministries; Messages; Events; Media library; Contact and service times; Navigation; Settings (SEO, search engine verification, linked products, email); Version history; Audit log. Each field shows the Google-style snippet preview and SEO warnings where they apply (ROADMAP §11).

Roles (per product, held in the Website; proposed in decision 11):

Role Can
Owner Everything, including roles and the licence
Admin Everything but the licence and Owners
Editor Edit everything, preview, share previews, publish
Ministry leader Edit their own ministry's page and events; their changes wait for an Editor or above to publish
Viewer See the admin and the preview, change nothing

Admin roles can require 2FA through Accounts (acr_values=mfa, ACCOUNTS-1.0-PLAN decision 8): on by default for Owner and Admin.

Storage (ROADMAP §10): 5 GB of uploads included. Settings shows what's used; admins get an email at 80% and at 100%. When it's full, uploads stop (decision 12) until more storage is bought: the media library and every upload field say so, with Get more storage (Settings → Storage). That asks the Hub, as Request update does, and the Hub emails Joshua. Once he adds a 5 GB step to the licence, the new limit reaches the site with the next heartbeat answer (within a minute or so) and uploads work again. Everything already uploaded keeps showing; only new uploads are refused. The limit is the licence's (5 GB plus the steps bought), never the site's own setting. An upload is only freed when neither the working copy nor the last 10 published versions use it.

11. Hub, licence and servers

  • Hub protocol v2, product website. The heartbeat's websiteStatsSchema is already in the contracts (pages, messages, events, editors, storage). A Website licence needs the church's Accounts, installed first (as Events 3.x).
  • Hub 2.21.0: New install offers the Website; release sync for website@ tags and apps/website/WHATS-NEW.md; its env template; the Website's price (R99) and the storage add-on (R20 per extra 5 GB, sent to the site with the licence as its storage limit, and the "Get more storage" request with its email to Joshua) in frontend/src/lib/tiers.ts and backend/src/utils/billing/tiers.js, in step with crosscode-site; the FastPanel email for www. (and the bare domain sent to www. with a 301, for an own domain) or <church>.crosscode.co.za.
  • crosscode: scripts/products/website.sh with the same hooks as Events and Accounts (website is already in PRODUCT_ORDER), website.env.template.json, crosscode add <church> website. The env template in three places, plus any value rules (HANDOVER, "A new .env variable").
  • Agent: none expected. The job schemas already take website (releaseTagSchema, PRODUCTS). The frp port list gets the Website's two ports.
  • Accounts 1.7.0: branding.style on the church profile (and Accounts → Church profile), the Website as a client through Connect (as Events), the profile API allowing the Website's admins to save, the shared fonts and footer on its pages.
  • Uninstall: the church export (crosscode.church-export/1) gets a website section (content, versions' notes, messages, events) and the uploaded media, as Events' export does its uploads.
  • Demo church: npm run demo loads a fictional church (fictional people and photos only) into each template, for the crosscode-site screenshots and the Hub's demo sites.

12. What changes in each repo

Repo Change Version
crosscode-platform apps/website New (§1–§11), with CHANGELOG.md, WHATS-NEW.md, env.template.json, e2e, demo data website@1.0.0
crosscode-platform packages/contracts branding.style (fontPairing, corners) on crosscode.church/1, the font pairing ids, a website part of the church export contracts@1.17.0
crosscode-platform packages/ui Fonts (self-hosted), the theme from the profile (colours, fonts, corners as CSS variables), ChurchFooter, links between products, the public site's building blocks workspace
crosscode-platform packages/seo Church, VideoObject, PodcastEpisode, BreadcrumbList builders, the generated share image workspace
crosscode-platform apps/accounts branding.style in the church profile, the shared fonts and footer, the Website's admins saving the profile accounts@1.7.0
crosscode-platform apps/events Public pages with the shared fonts, corners and footer events@3.7.0
crosscode-platform scripts/ products/website.sh, website.env.template.json, bats tests —
events-hub Website in New install, its releases, env template, prices and storage add-on, FastPanel email Hub v2.21.0
crosscode-site Church Website on sale (ROADMAP §9): its page, prices, a page per template, screenshots of the demo church, FAQ, SoftwareApplication JSON-LD v1.7.0

13. Testing

  • Unit (Jest): section schemas and variants, the palette builder and contrast fixes, publish / discard / restore, pending change lists, preview tokens (expiry, revoke, no edit rights), roles (a Ministry leader can't publish or edit another ministry), the YouTube feed parser (channel, playlist, duplicates, a removed video), storage counting, uploads refused when full (and allowed again when the licence's limit goes up), uploads kept by older versions.
  • Playwright, every template at phone / tablet / desktop: the demo church's pages look right (screenshots compared), axe has no violations, the §11 checks (title, description, canonical, og:image, one <h1>, JSON-LD parses, sitemap, robots.txt, noindex where it should be).
  • Playwright, the flows: Coming soon before the first publish; edit → preview (click through the site) → publish → the public site changes; discard one change; a shared preview link works signed out and stops after revoking; restore an older version; switch template in preview and back without losing anything; sign in from a deep admin page and land back on it (through 2FA).
  • Lighthouse (mobile): home, an event and a message in each template: SEO 100, accessibility 95+, performance 90+.
  • Events 3.7: the e2e suite still passes, and its public pages show the church's fonts and the shared footer.
  • The release checks (ROADMAP §9) for the Website, and the VM test: install the Website next to Accounts and Events through the agent, update it, uninstall it with its export.

14. Releasing and rolling it out

  1. contracts@1.17.0, then accounts@1.7.0 (the profile's brand style), then events@3.7.0.
  2. Hub v2.21.0 (vendored contracts 1.17.0) deployed.
  3. website@1.0.0 tagged after the e2e, Lighthouse and VM runs.
  4. Hope Family Church: Accounts 1.7.0 and Events 3.7.0 first, then New install → Website. The site shows Coming soon while the church builds it, and goes live with its first publish.
  5. A second test church on a different template.
  6. crosscode-site v1.7.0: the Website on sale.

Decisions

Made by Joshua on 2026-11-21:

  1. Customisation within limits: four templates, each with section variants, style settings and custom pages from blocks (§3). No free layout, custom CSS or custom fonts. More templates later, not instead.
  2. One Publish for the whole site, after a fully clickable preview (§4), with a shareable preview link and version history.
  3. Coming soon until the first publish (§5).
  4. Contact page: details only, no form (§6).
  5. Leaders, ministries, About, giving and messages are Website-only for now (§2). Only the brand style (font pairing, corners) is added to the shared profile.
  6. No address move or redirects in 1.0, and no Hub "Change address" job yet. Moving to the church's own domain (ROADMAP §10, §11 "Moving addresses") comes later.
  7. Messages from a YouTube channel or playlist automatically, or by hand with a YouTube or Spotify link (§7).
  8. The three products feel connected: shared brand style and footer, and Events 3.7 uses the shared fonts and footer on its public pages (§9).

Proposed and confirmed on 2026-11-21 (12 changed):

  1. Simple events and messages publish on their own, not with the site's Publish; YouTube messages appear automatically (§4, §7).
  2. The Website's admin edits shared profile facts through Accounts' API, and they go live straight away (§2). Answers ACCOUNTS-1.0-PLAN's "Still open".
  3. Editors can publish; Ministry leaders' changes wait for an Editor or above (§10).
  4. A full storage stops uploads until more is bought (admins emailed at 80% and 100%; "Get more storage" asks the Hub; §10). Changed from the proposal, which let uploads carry on and billed afterwards.
  5. Fonts are self-hosted (no Google Fonts requests, for POPIA and speed), from a shared list of 8 pairings (§3).
  6. Coming soon is a real page (HTTP 200) with noindex, not a 503 (§5).

Confirmed on 2026-11-24:

  1. The 8 font pairings in §3: classic, scholarly, editorial, impact, contemporary, friendly, warm, modern, three recommended per template. A church without one keeps the system fonts in Events and Accounts; corners defaults to soft.

Confirmed on 2026-11-25:

  1. Section variants per template in §3: every template draws every variant (26 variant ids, fixed once released), with a default and recommendations per template; per-template headers, homepage order (Bold hides Team, Clean hides Ministries and Team) and style defaults; picking a template only suggests the shared fonts and corners; a template switch moves untouched sections and settings to the new defaults and keeps the church's own choices.

Still open

  • Whether the App (phase 6) moves leaders, ministries and giving into crosscode.church/1 or reads them from the Website. Decide with the App plan.