Hub 2.4.0: demo sites, and demo data loaded from the Hub

Mark a Cross Events install as a demo site, then load a demo set (small,
events, ministry, multicampus) with a seed-demo job (agent 1.2.0+,
crosscode demo: backup, demo data, restart). Typing the short name for both.
Deployment.isDemo (migration), contracts 1.7.0 vendored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-19 10:41:03 +02:00
co-authored by Claude Opus 5.5
parent 36987a9b69
commit dbfa4116c4
15 changed files with 149 additions and 14 deletions
+14
View File
@@ -5,6 +5,20 @@ versions follow [Semantic Versioning](https://semver.org/).
## [Unreleased]
## [2.4.0] - 2026-11-19
### Added
- **Demo sites.** On a Cross Events install's page: **Mark as a demo site** (typing its short
name), then **Load demo data** with a choice of demo (small church, events and conferences,
weekly ministry, three campuses), typing the short name again. It queues a `seed-demo` job:
the agent runs `crosscode demo`, which takes a backup, replaces the data (keeping the site
settings and the install's admin) and restarts the site. You're emailed the result. Refused for
sites not marked as demo, and for agents before 1.2.0 (`AGENT_TOO_OLD`). Demo sites show a
"demo" tag in the installs list. Audit log: `install_marked_demo`, `install_unmarked_demo`,
`demo_seed_queued`.
- Migration `20261119140000_deployment_demo` (`Deployment.isDemo`). `@crosscode/contracts` 1.7.0.
## [2.3.3] - 2026-11-19
### Fixed