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
+16 -1
View File
@@ -18,7 +18,7 @@ setup() {
mkdir -p "$CROSSCODE_HOME/products" "$TMP/sites/hope/events/apps/events/backend/scripts"
touch "$TMP/sites/hope/events/apps/events/backend/scripts/set-demo.js"
mkdir -p "$TMP/sites/hope/website/apps/website/backend/src/demo"
touch "$TMP/sites/hope/website/apps/website/backend/src/demo/seeds.ts"
echo "scenarioTeam" > "$TMP/sites/hope/website/apps/website/backend/src/demo/seeds.ts"
mkdir -p "$TMP/sites/hope/accounts/apps/accounts/backend/scripts"
touch "$TMP/sites/hope/accounts/apps/accounts/backend/scripts/demo.ts"
cat > "$CROSSCODE_HOME/products/accounts.sh" <<EOF3
@@ -156,6 +156,21 @@ wait 1.9.0" ]
[ "$status" -eq 0 ]
}
@test "website 1.8.0: --scenario is passed on, and only to a release that has scenarios" {
run cmd_demo hope website --profile bold-youth --scenario bold-youth
[ "$status" -eq 0 ]
[[ "$(cat "$CALLS")" == *"npm run --silent demo -- --profile bold-youth --scenario bold-youth --force"* ]]
: > "$CALLS"
: > "$TMP/sites/hope/website/apps/website/backend/src/demo/seeds.ts"
run cmd_demo hope website --profile bold-youth --scenario bold-youth
[ "$status" -eq 1 ]
[[ "$output" == *"no demo scenarios"* ]]
[ ! -s "$CALLS" ]
run cmd_demo hope website --profile bold-youth
[ "$status" -eq 0 ]
[[ "$(cat "$CALLS")" == *"demo -- --profile bold-youth --force"* ]]
}
@test "a failed Accounts demo isn't followed by a reload" {
FAIL_SEED=1 run cmd_demo hope accounts --profile clean-modern
[ "$status" -eq 1 ]