Merge branch 'docs/website-fonts-and-handover'

This commit is contained in:
2026-11-24 15:59:05 +02:00
3 changed files with 97 additions and 18 deletions
+31 -11
View File
@@ -1,6 +1,6 @@
# Handover — Cross Code, all products
Last updated: 2026-11-21. **The plan is [ROADMAP-v3.md](./ROADMAP-v3.md)** (decided 2026-11-03,
Last updated: 2026-11-24. **The plan is [ROADMAP-v3.md](./ROADMAP-v3.md)** (decided 2026-11-03,
decisions table near the end). This file says where each phase stands and what comes next.
Product-specific notes (where the code lives, known gaps) stay with each product: Cross Events'
are in [`apps/events/docs/HANDOVER.md`](../apps/events/docs/HANDOVER.md), and the Hub's are in
@@ -25,18 +25,33 @@ every release).
| Phase | What | State |
|-------|------|-------|
| 0 | contracts 1.0.0 → 1.14.0 | **Released and in use.** Not published to a registry (decision 22): the Hub gets a packed release committed to its repo (`backend/vendor/`) |
| 1 | Hub 2.0 → 2.10.0 | **Released, deployed and tested** (Hub `v2.10.0`) |
| 0 | contracts 1.0.0 → 1.16.0 | **Released and in use.** Not published to a registry (decision 22): the Hub gets a packed release committed to its repo (`backend/vendor/`) |
| 1 | Hub 2.0 → 2.20.0 | **Released, deployed and tested** (Hub `v2.20.0`) |
| 1b | Cross Events 2.2.0: moved here as `apps/events`, the `crosscode` script | **Released, rolled out and tested.** Every install adopted onto the monorepo |
| 1c | Cross Events 2.3.x: authenticator app 2FA | **Released and rolled out** (carried into Accounts in phase 4) |
| 1d | Agent 1.x + Hub 2.1+ | **Released, rolled out and tested** (agent `1.3.1` on every server; from agent 1.4.0 the central server's agent can also read and change frps's config from the Hub) |
| 1d | Agent 1.x + Hub 2.1+ | **Released, rolled out and tested** (agent `1.5.0` on every server: from 1.4.0 the Hub reads and changes frps's / frpc's config and probes ports before an install; from 1.5.0 one product of a church can be uninstalled, exported or purged) |
| 2 | Cross Events 2.4.0: protocol v2, Linked products, event feed, `packages/seo` | **Released, rolled out and tested** ([EVENTS-2.4-PLAN.md](./EVENTS-2.4-PLAN.md)) |
| 3 | Accounts 1.0.0 | **Released, rolled out and tested** (now `accounts@1.6.0`; [ACCOUNTS-1.0-PLAN.md](./ACCOUNTS-1.0-PLAN.md)) |
| 4 | Cross Events 3.0.0: sign-in through Accounts | **Released, rolled out and tested** (now `events@3.6.1`; [EVENTS-3.0-PLAN.md](./EVENTS-3.0-PLAN.md)). Churches sign in through their Accounts; crosscode-site `v1.6.0` deployed |
| 4+ | Running it: jobs from the dashboard, styled emails, .env from the Hub, sign-in health, the nightly people check | **Released, deployed and tested** 2026-11-20 (below) |
| 5 | Church Website 1.0.0 | **Planned** 2026-11-21: [WEBSITE-1.0-PLAN.md](./WEBSITE-1.0-PLAN.md) (all decisions confirmed). Not started |
| 4+ | Running it: jobs from the dashboard, styled emails, .env from the Hub, sign-in health, the nightly people check; then frp config and one-product uninstalls, and the Hub's popups, pickers and port list | **Released, deployed and tested** 2026-11-20 and 2026-11-23 (below) |
| 5 | Church Website 1.0.0 | **Planned** 2026-11-21: [WEBSITE-1.0-PLAN.md](./WEBSITE-1.0-PLAN.md) (all decisions confirmed). Font pairings confirmed 2026-11-24 (§3). contracts 1.17.0 in progress |
| 6–7 | App 1.0.0 → App 1.x | Not started |
## Released 2026-11-23
All tagged, pushed and deployed on 2026-11-23. Details in [VERSIONS.md](./VERSIONS.md) and the Hub's
CHANGELOG.
| Release | What |
|---------|------|
| `agent@1.4.0`, `contracts@1.15.0`, Hub `v2.11.0` | The agent finds frps's / frpc's config wherever it is (TOML too); each server's Hub page reads and changes it (secrets stay on the server, verify, backup, put back if frp doesn't start, two-factor). New installs probe their ports on the central and church server first (`probe-ports`) |
| `agent@1.5.0`, `contracts@1.16.0`, Hub `v2.12.0`, `crosscode` script | Uninstall, export and purge **one product** of a church (`crosscode uninstall|export|purge <church> [product …]`); the last one removes the church; Accounts goes last. Stale installs removable from the Hub; customers archivable; several emails per customer |
| Hub `v2.13.0` | Alerts cleared by hand; billing tables sortable |
| Hub `v2.14.0` – `v2.17.0` | Customer and install pages as a header, tiles and tabs; every add and edit in a popup (frontend only) |
| Hub `v2.18.0`, `v2.19.0` | Releases picked from a list; the server agent's own releases on the Releases page and in Update agent (migration `AgentRelease`) |
| Hub `v2.20.0` | The port list says what each port is for; frps's allow_ports checked against it |
| crosscode.co.za `v1.6.1` | Clearer web address choices on the Cross Events page |
## Released 2026-11-20
All tagged, pushed, deployed and tested (confirmed by Joshua 2026-11-21). Details in [CHANGELOG.md](../CHANGELOG.md), the apps' CHANGELOGs
@@ -80,15 +95,20 @@ before that need the change by hand, and so does the Hub's own site (`events-hub
## Next up
Everything up to and including the 2026-11-20 releases is deployed, rolled out and tested
(VERSIONS.md, "Deployed / rolled out").
Everything up to and including the 2026-11-23 releases is deployed (VERSIONS.md, "Deployed / rolled
out").
1. **Phase 5, Church Website 1.0.0** (ROADMAP §6, §9). Planned in
[WEBSITE-1.0-PLAN.md](./WEBSITE-1.0-PLAN.md): decisions all confirmed 2026-11-21. Order:
contracts 1.17.0 → Accounts 1.7.0 → Events 3.7.0 (shared fonts and footer) → Hub 2.13.0 →
`website@1.0.0` → Hope Family Church → a second church → crosscode-site 1.7.0.
[WEBSITE-1.0-PLAN.md](./WEBSITE-1.0-PLAN.md): decisions all confirmed 2026-11-21. Font pairings
confirmed 2026-11-24 (§3). Order:
contracts 1.17.0 → Accounts 1.7.0 → Events 3.7.0 (shared fonts and footer) → **Hub 2.21.0** (the
plan said 2.13.0; the Hub has moved on since) → `website@1.0.0` → Hope Family Church → a second
church → crosscode-site 1.7.0.
2. **Archive `hope-events`** if it isn't yet (every install now reports 2.2.0 or later;
EVENTS-2.2-PLAN §7).
3. **FastPanel sites set up before Hub 2.10.0** need `location ^~ /api/` by hand, and so does the
Hub's own site ("FastPanel sites" above). Not yet recorded which are done: check each with
`curl -sI https://<domain>/api/health.png`.
## The VM test (2026-11-17)
+1 -1
View File
@@ -641,7 +641,7 @@ Planned in [AGENT-1.0-PLAN.md](./AGENT-1.0-PLAN.md). In short:
| 2 | **Cross Events 2.4.0** | Reports `product: "events"` (protocol v2), **Linked products**, the event feed (publish + show events from siblings), `packages/seo` (§11) with canonical links for imported events. **Planned and built 2026-11-18:** [EVENTS-2.4-PLAN.md](./EVENTS-2.4-PLAN.md) (also needs contracts 1.4.0 and Hub 2.2.0, for a public key in the v2 heartbeat); not tagged yet | Small; ready for when the Website exists |
| 3 | **Accounts 1.0.0** | OIDC provider, sign-in, 2FA (email, WhatsApp, authenticator app), password reset, consent and notice, export / delete fan-out, admin, install script. [ACCOUNTS-1.0-PLAN.md](./ACCOUNTS-1.0-PLAN.md) (with contracts 1.5.0, `packages/auth-client`, Hub 2.3.0). **Released 2026-11-18** (`accounts@1.0.0`, 1.0.1 on 2026-11-19); the VM test and a run on real Postgres are still to do before a church gets it | Every later product signs in through it |
| 4 | **Cross Events 3.0.0** | Sign-in moves to Accounts; user migration keeping password hashes; migration guide. **Planned 2026-11-19:** [EVENTS-3.0-PLAN.md](./EVENTS-3.0-PLAN.md) (with contracts 1.8.0, Accounts 1.1.0, Hub 2.5.0; decisions confirmed 2026-11-19) | Breaking change, so a major version. **Moved before the Website on 2026-11-19** (decision 38): Events is the product churches use today, so Accounts is proven on real users first, and the Website then starts with a church whose people already have accounts |
| 5 | **Church Website 1.0.0** | Public site with the **four templates** (§6), admin, simple events + feed, SEO (§11), Hope Family Church as the first church, then a second test church on a different template to prove it repeats. **Planned 2026-11-21:** [WEBSITE-1.0-PLAN.md](./WEBSITE-1.0-PLAN.md) (with contracts 1.17.0, Accounts 1.7.0, Events 3.7.0 for the shared fonts and footer, Hub 2.13.0) | More churches need a website than an app; it also covers the "website only" case. Built on Accounts from day one |
| 5 | **Church Website 1.0.0** | Public site with the **four templates** (§6), admin, simple events + feed, SEO (§11), Hope Family Church as the first church, then a second test church on a different template to prove it repeats. **Planned 2026-11-21:** [WEBSITE-1.0-PLAN.md](./WEBSITE-1.0-PLAN.md) (with contracts 1.17.0, Accounts 1.7.0, Events 3.7.0 for the shared fonts and footer, Hub 2.21.0) | More churches need a website than an app; it also covers the "website only" case. Built on Accounts from day one |
| 6 | **Church App 1.0.0** | Foundation (PWA, branding, Accounts), House of Prayer, announcements, devotionals, events (simple + feed) | Starts with shared users and the feed already in place |
| 7 | Church App 1.x | Reading plans, sermons, groups, pastoral care, serving, giving links, directory | After House of Prayer is in use |
+65 -6
View File
@@ -4,6 +4,10 @@ Phase **5** of [ROADMAP-v3.md](./ROADMAP-v3.md) (§6, §9, §10, §11; decisions
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).
**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
@@ -17,7 +21,7 @@ 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.13.0` are
- `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+).
@@ -156,6 +160,56 @@ in 1.x (they're part of the product, ROADMAP §1 rule 3).
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`.
## 4. Drafts, preview and publish
Decision 2: **one Publish for the whole site.**
@@ -293,7 +347,7 @@ only freed when neither the working copy nor the last 10 published versions use
- **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.13.0:** New install offers the Website; release sync for `website@` tags and
- **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
@@ -323,7 +377,7 @@ only freed when neither the working copy nor the last 10 published versions use
| `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.13.0` |
| `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
@@ -350,7 +404,7 @@ only freed when neither the working copy nor the last 10 published versions use
## 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.13.0` (vendored contracts 1.17.0) deployed.
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.
@@ -391,9 +445,14 @@ Proposed and confirmed on 2026-11-21 (12 changed):
pairings (§3).
14. **Coming soon is a real page (HTTP 200) with `noindex`,** not a 503 (§5).
Confirmed on 2026-11-24:
15. **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`.
## Still open
- The 8 font pairings and the exact variants per template: settled with the template designs, early
in the build.
- The exact section variants per template: settled with the template designs, early in the build.
- 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.