Hub 2.22.0: Get more storage for the Church Website

POST /api/installs/storage-request (contracts 1.18.0): recorded on the
install, Joshua emailed once, closed when the licence gets more extra
storage steps. The church is emailed once when its website's storage
passes 80% and once when it's full (from the heartbeat). Vendors
contracts 1.18.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 15:41:31 +02:00
co-authored by Claude Opus 5.5
parent f23f40392e
commit 43eb634199
12 changed files with 253 additions and 13 deletions
+18
View File
@@ -5,6 +5,24 @@ versions follow [Semantic Versioning](https://semver.org/).
## [Unreleased]
## [2.22.0] - 2026-11-25
"Get more storage" for the Church Website (crosscode-platform docs/WEBSITE-1.0-PLAN.md §10, decision
12). Vendors `@crosscode/contracts` 1.18.0 (was 1.17.0). No migration; no API is removed.
### Added
- **`POST /api/installs/storage-request`** (contracts 1.18.0, signed as the heartbeat): a Website's
Owner or Admin asks for more 5 GB steps. It shows on the install as an open `storage_requested`
event and Joshua is emailed once (with who asked and what the site uses); asking again only
changes the number of steps. It closes when the licence's extra storage steps go up (Edit →
Extra storage), and the site gets its new limit with the next heartbeat. Only a Website may ask
(`WRONG_PRODUCT`).
- **The church is emailed when its website's storage passes 80% and when it's full**, from the
Website's heartbeat (`stats.storage`), to the customer's email and the install's admin contact,
once each (open `storage_80` / `storage_full` events), again only after it has dropped below.
The alert run leaves these events to the heartbeat, as it does update requests.
## [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).