Hub 2.21.0: install the Church Website; Website storage bought in steps

- New install offers the Church Website: Accounts first when the church has
  none, at accounts.<its address> (www. dropped); the FastPanel email sends a
  www. site's bare domain to www. with a 301.
- Licence.extraStorageSteps (migration): the token sends a Website its limit
  (5 GB + steps, limits.storageBytes, contracts 1.17.0); invoices bill the
  steps bought instead of the storage reported. Edit popup field 0-99.
- A Website/App licence starts on its plan however it's made (New install too).
- Vendored @crosscode/contracts 1.17.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 00:03:21 +02:00
co-authored by Claude Opus 5.5
parent 6f8242064f
commit c6f734ab20
21 changed files with 235 additions and 36 deletions
+34
View File
@@ -5,6 +5,40 @@ versions follow [Semantic Versioning](https://semver.org/).
## [Unreleased]
## [2.21.0] - 2026-11-25
The Hub side of the Church Website 1.0.0 (crosscode-platform docs/WEBSITE-1.0-PLAN.md §11).
**Migration:** `Licence.extraStorageSteps` (a column, default 0). Vendors `@crosscode/contracts`
1.17.0 (was 1.16.0). No API is removed.
### Added
- **New install offers the Church Website.** Its release needs Accounts (`— requires accounts …` in
its notes), so a church without one gets Accounts installed first, as Cross Events 3 does. The
Website is on the church's own address: Accounts goes in front of it (`www.hope.co.za` →
`accounts.hope.co.za`, `hope.crosscode.co.za` → `accounts.hope.crosscode.co.za`), unless an
Accounts domain is given. Its releases (`website@` tags, `apps/website/WHATS-NEW.md`) and env
template (`apps/website/env.template.json` at the tag) were already read; there are none yet.
- **The FastPanel email for a Website on `www.`** also sets up its bare domain: an alias (so
Let's Encrypt covers it), a 301 to `https://www.…` to paste into the site's nginx, and DNS for
both. A Cross Code address has no `www.` and gets the usual steps.
- **Extra Website storage is bought in 5 GB steps** (Customers → the Website → Edit → Extra storage,
0–99). The licence token sends the site its limit, 5 GB plus the steps (`limits.storageBytes`,
contracts 1.17.0), with the next heartbeat; the site stops uploads when it's full (plan decision
12). The product card shows the storage it can hold.
### Changed
- **Extra Website storage is billed on the steps bought**, R20 a month each and never discounted,
no longer on what the site reports using (which can't go above the limit any more).
- A Website licence starts on the Website plan, and an App licence on its first tier, however it's
made: New install now does this too (it gave "standard" before), not only Generate.
### Not yet
- **Get more storage** (the Website asking the Hub, and the email to Joshua) comes with contracts
1.18.0 and the Website itself.
## [2.20.0] - 2026-11-23
No migration. `GET /api/admin/ports` and a server's `frp` state carry more fields; nothing is removed.