website 1.8.0: demo scenarios (the scenario's people lead, Events' events through the feed)

- `npm run demo -- --profile <p> --scenario <p>`: each profile's `scenarioTeam` names four
  parts, roles and portraits; the names are the scenario's people from @crosscode/demo, the
  pastor first (home page and messages' speaker).
- With a linked Cross Events, a scenario load makes no events of its own, turns on Show events
  from and fetches Events' whole feed at once; an unreachable Events doesn't fail the load.
- A scenario on a site with no church profile saves the scenario's church, not Acacia Hill.
- crosscode script: `crosscode demo <church> website --scenario` passes it on and refuses a
  Website before 1.8.0; the Website installs and builds packages/demo.
- Docs: HANDOVER, APP-1.0-PLAN, VERSIONS, CHANGELOGs, What's New.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 15:23:12 +02:00
co-authored by Claude Opus 5.5
parent b2a163bb39
commit c8e270dbf1
17 changed files with 315 additions and 76 deletions
+4 -3
View File
@@ -17,10 +17,11 @@ website_expected_version() {
node -p 'require(process.argv[1]).version' "$(website_app "$1")/backend/package.json"
}
# The shared packages the Website is built with (contracts, auth-client for signing in, ui and seo for its pages).
# The shared packages the Website is built with (contracts, auth-client for signing in, ui and seo for its pages,
# 1.8.0: demo for the demo scenarios).
website_shared_packages() {
local p
for p in packages/contracts packages/ui packages/auth-client packages/seo; do
for p in packages/contracts packages/ui packages/auth-client packages/seo packages/demo; do
[ -f "$1/$p/package.json" ] && printf '%s\n' "$p"
done
}
@@ -54,7 +55,7 @@ website_migrate() {
website_build() {
local p
for p in packages/contracts packages/auth-client packages/seo; do
for p in packages/contracts packages/auth-client packages/seo packages/demo; do
[ ! -f "$1/$p/package.json" ] || run_as "$2" "$1/$p" npm run build || return 1
done
run_as "$2" "$(website_app "$1")/backend" npm run build &&