Compare commits
26
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9523976044 | ||
|
|
06eedd0499 | ||
|
|
75aeae1ff2 | ||
|
|
d0df78abe3 | ||
|
|
029d3f4e89 | ||
|
|
0b500934cb | ||
|
|
86ddc2e6d9 | ||
|
|
5fbfd28014 | ||
|
|
703fa7804f | ||
|
|
9eb4d345c6 | ||
|
|
e4730120ab | ||
|
|
ac6800d9de | ||
|
|
fc1e97eba8 | ||
|
|
cd84838e78 | ||
|
|
6c03a10a24 | ||
|
|
fe54d9ab7b | ||
|
|
0d48f81c02 | ||
|
|
c1383d62aa | ||
|
|
9dc42e7481 | ||
|
|
a01465a4bb | ||
|
|
e59e7488a3 | ||
|
|
1fe94bf70e | ||
|
|
970a60d55f | ||
|
|
da0a7b5f15 | ||
|
|
e5bb98c81f | ||
|
|
9dd599cd80 |
@@ -0,0 +1,75 @@
|
||||
# What's new in the server agent
|
||||
|
||||
What each version of the Cross Code server agent changes, for whoever runs the Hub. The Hub shows
|
||||
these notes on its Releases page and when you pick a version under Update agent.
|
||||
|
||||
<!--
|
||||
How this file is used: the Cross Code Hub reads it from main every 15 minutes (release source
|
||||
"Server agent", tags agent@1.2.3) and shows a section only once its version is tagged, so write it
|
||||
before tagging; fixes to old sections show straight away. Each version is a "## 1.2.3" heading; add
|
||||
"— urgent" (or "security") to the heading for a security or serious bug fix. Under it, lines
|
||||
starting with "- " show as a list and other lines as paragraphs.
|
||||
Write for the person updating servers: what the agent can now do from the Hub, and which Hub or
|
||||
contracts version needs it. The developer log is the commit history of apps/agent.
|
||||
-->
|
||||
|
||||
## 1.5.0
|
||||
|
||||
- **One product of a church at a time.** Uninstall, export and purge jobs can name products: only
|
||||
those go, and the church keeps the others. Naming every product it still has removes the whole
|
||||
church, so the last product to go takes the church with it. Before, uninstalling a church's Cross
|
||||
Events also removed its Accounts.
|
||||
- The Hub (2.12.0 and later) uninstalls one product only on servers with this agent; older agents
|
||||
can only remove the whole church.
|
||||
|
||||
## 1.4.0
|
||||
|
||||
- **frp's config from the Hub.** The agent finds frps's config (central server) or frpc's (church
|
||||
server) wherever it is: the path set on the Hub, the `-c` in the systemd unit, or the usual places.
|
||||
It reads INI and TOML.
|
||||
- **Changing it from the Hub:** the agent checks the new file with `frp* verify`, keeps a backup,
|
||||
restarts frp if asked, and puts the old file back if frp doesn't start. Secret values never leave
|
||||
the server.
|
||||
- **Ports checked before an install:** the Hub asks this server and the central server which ports
|
||||
are free, so a new install gets ports free on both.
|
||||
- Needed for frp config on a server's page and port checks (Hub 2.11.0).
|
||||
|
||||
## 1.3.1
|
||||
|
||||
- **Fix:** 1.3.0 reported itself as 1.2.0, so the Hub refused its .env jobs. It now reports its
|
||||
real version. Install this instead of 1.3.0.
|
||||
|
||||
## 1.3.0
|
||||
|
||||
- **A site's .env from the Hub.** The agent reads an install's .env (secret values hidden) and
|
||||
changes it: one file at a time, rebuilding the site when its frontend settings changed,
|
||||
restarting it, and putting the old file back if the site doesn't answer.
|
||||
- Needed for the Settings (.env) tab on an install's page (Hub 2.8.0).
|
||||
|
||||
## 1.2.0
|
||||
|
||||
- **Demo data from the Hub.** The agent loads a demo profile onto a site marked as a demo: a backup
|
||||
first, then the demo data, keeping one admin account.
|
||||
- Needed for demo sites (Hub 2.4.0).
|
||||
|
||||
## 1.1.1
|
||||
|
||||
- **Fix:** the server's stats now keep going while a long job runs. Before, a 30-minute install
|
||||
stopped them and the Hub alerted that the server was down.
|
||||
- **Fix:** 1.1.0 reported itself as 1.0.1; it now reports its real version.
|
||||
|
||||
## 1.1.0
|
||||
|
||||
- **Accounts installs.** The agent installs Accounts, and adds a product next to a church's others
|
||||
on the same server (with the ports and release the Hub chose).
|
||||
|
||||
## 1.0.1
|
||||
|
||||
- **Fix:** on the central server, Check status failed (it has no `crosscode` script). It now answers
|
||||
with its own stats, including whether frps is running.
|
||||
|
||||
## 1.0.0
|
||||
|
||||
- **The first server agent.** It polls the Hub every 30 seconds for signed jobs, runs the
|
||||
`crosscode` script for them (install, update, status, export, uninstall), sends the results, and
|
||||
sends the server's stats every minute. It listens on no port: every request goes out to the Hub.
|
||||
+31
-11
@@ -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
@@ -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 |
|
||||
|
||||
|
||||
+38
-2
@@ -14,7 +14,7 @@ separately below; the two often differ.
|
||||
| Accounts | `crosscode-platform` (`apps/accounts`) | **1.6.0** | `accounts@1.6.0` | 2026-11-20 |
|
||||
| Server agent | `crosscode-platform` (`apps/agent`) | **1.5.0** | `agent@1.5.0` | 2026-11-23 |
|
||||
| Contracts | `crosscode-platform` (`packages/contracts`) | **1.16.0** | `contracts@1.16.0` | 2026-11-23 |
|
||||
| Cross Code Hub | `events-hub` | **2.14.0** | `v2.14.0` | 2026-11-23 |
|
||||
| Cross Code Hub | `events-hub` | **2.20.0** | `v2.20.0` | 2026-11-23 |
|
||||
| crosscode.co.za | `crosscode-site` | **1.6.1** | `v1.6.1` | 2026-11-23 |
|
||||
| `crosscode` script | `crosscode-platform` (`scripts/`) | `main` | none | 2026-11-23 (last change: uninstall, export and purge one product of a church) |
|
||||
|
||||
@@ -37,11 +37,47 @@ need their own tags until something outside this repo depends on them.
|
||||
|
||||
## What each latest release was for
|
||||
|
||||
- **Hub 2.20.0 (2026-11-23):** the port list says what each port is for (church, product, web or API,
|
||||
linked to the install); a church server's hand-written frpc tunnels are listed as taken on each frp
|
||||
config read. frps's allow_ports is checked against the port list (the Hub's range plus listed ports
|
||||
outside it): an alert and Edit → Use the Hub's allow_ports when it leaves ports out. No migration.
|
||||
Deployed 2026-11-23.
|
||||
- **Hub 2.19.0 (2026-11-23):** the server agent's releases: a release source for the Server agent (in
|
||||
the defaults: `agent@` tags, notes in `apps/agent/WHATS-NEW.md`), shown on the Releases page with how
|
||||
many servers run each. Update agent picks a release (Latest by default, with its notes); the
|
||||
Servers pages say when a newer agent is out. **Migration** (`AgentRelease`): run `prisma migrate
|
||||
deploy`. A saved list of sources gets an "Add the agent's source" button.
|
||||
Deployed 2026-11-23.
|
||||
- **Hub 2.18.0 (2026-11-23):** releases are picked from a list, not typed: New install and Move onto
|
||||
the monorepo (Events from 2.2.0) as well as an install's Update and the Updates page. Latest first,
|
||||
then the newest 10, with Show older versions for the rest. Plan for agent releases (2.19.0) in the
|
||||
Hub's `docs/VERSION-PICKERS-PLAN.md`. Frontend only: no migration, no API changes.
|
||||
Deployed 2026-11-23.
|
||||
- **Hub 2.17.0 (2026-11-23):** popups on the remaining pages: a server's configuration and Update
|
||||
agent, the frp config (read-only on the card, Edit with the two-factor code), install defaults and
|
||||
Mark as taken (Ports & defaults), Clear public key and notes on an install, and an invoice's lines
|
||||
(Edit for drafts and approved ones; Void and Refund instead of the browser's prompt). Settings
|
||||
forms that are the page itself stay as they are. Frontend only: no migration, no API changes.
|
||||
Deployed 2026-11-23.
|
||||
- **Hub 2.16.0 (2026-11-23):** every add and edit on the list pages is a popup like the customer
|
||||
and install pages: Add server (the join command in the same popup), Add customer, New install,
|
||||
Link existing, notices and releases (new and edit), release sources (a table; Edit opens the rows
|
||||
and the token) and One-off invoice on Billing (with a church picker; `/billing/invoices/new` opens
|
||||
it). Plan for the rest in the Hub's `docs/POPUPS-PLAN.md`. Frontend only: no migration, no API changes.
|
||||
Deployed 2026-11-23.
|
||||
- **Hub 2.15.0 (2026-11-23):** an install's page (Servers → Installs → one install) is a header
|
||||
(status, Schedule update, a ⋯ menu for move onto the monorepo, demo site, uninstall and the two
|
||||
removals) with tiles for the site, version, server, ports and last heartbeat, then tabs: Jobs,
|
||||
Settings (.env), Exports. Every action is a popup like the customer page's, the .env files too
|
||||
(the tab shows the values, Edit opens a file). Banners for not registered, no heartbeat and a
|
||||
planned uninstall. Confirmations unchanged. Frontend only: no migration, no API changes.
|
||||
Deployed 2026-11-23.
|
||||
- **Hub 2.14.0 (2026-11-23):** the customer page is a summary header (products, owing, next invoice
|
||||
with its estimate, address, AI) and three tabs: Overview, Products, Invoices and payments. Every
|
||||
add and edit is a popup; each product is one card (licence and billing, one Save, suspend/revoke/
|
||||
release in a ⋯ menu); contact and billing details are one form; the history is one timeline with
|
||||
a filter. Record payment is a popup on Billing too. Frontend only: no migration, no API changes.
|
||||
Deployed 2026-11-23.
|
||||
- **crosscode.co.za 1.6.1 (2026-11-23):** the web address choices on the Cross Events page are three
|
||||
cards (name, price, "best if", an example address, short points); the option names were white on
|
||||
a light background and couldn't be seen. Prices unchanged. Deployed 2026-11-23.
|
||||
@@ -170,7 +206,7 @@ you deploy one.
|
||||
|
||||
| What | Running | Since | Notes |
|
||||
|------|---------|-------|-------|
|
||||
| Hub | 2.13.0 | 2026-11-23 | With migration `20261123120000_alert_cleared` (alerts can be cleared by hand) |
|
||||
| Hub | 2.20.0 | 2026-11-23 | Port list says what each port is for; hand-written frpc tunnels listed as taken; frps allow_ports checked against the port list (no migration) |
|
||||
| Agent on church-server1 | 1.5.0 | 2026-11-23 | Uninstalls one product of a church at a time |
|
||||
| Agent on the central server | 1.5.0 | 2026-11-23 | Reads and changes frps's config from the Hub (no longer read-only; decision 35 superseded) |
|
||||
| Cross Events (churches) | 3.6.1 | 2026-11-20 | Every install adopted onto the monorepo and signing in through Accounts |
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user