Events 2.4.0 frontend, deploy and docs: Linked products, linked events, seo

- Site settings → Linked products (Connect, Show events from, Publish my
  events), help, command palette.
- Events from linked products on /events, the home and campus pages, and
  /events/linked/<product>/<id> (markdown with HTML off, canonical to the
  origin, no JSON-LD, not in the sitemap).
- Event page JSON-LD from @crosscode/seo; lib/eventSchema.ts removed.
- Readiness check for linked products' sync; e2e spec with a fake
  Church Website (not run yet: needs the e2e Postgres).
- crosscode: install and build the shared packages Events uses first
  (an older tag still builds as before); scripts/tests/events.bats.
- Release notes, changelogs, handovers, hub-protocol.md, and the plan's
  "Changes while building".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 12:58:50 +02:00
co-authored by Claude Opus 5.5
parent 8a930d07c6
commit 716d47242a
28 changed files with 929 additions and 130 deletions
+24 -3
View File
@@ -31,10 +31,27 @@ events_backup() {
.catch(e => { console.error(" Backup failed: " + e.message); process.exit(1); });'
}
# Only this app's workspaces, never the other products'. --include=dev: the TypeScript and Next
# builds need type and build packages even where NODE_ENV=production.
# The shared packages this checkout's Events uses (from 2.4.0: contracts and seo), built before it.
# Only the ones in the checkout, so going back to an older tag still installs and builds.
events_shared_packages() {
local p
for p in packages/contracts packages/seo; do
if [ -f "$1/$p/package.json" ] && grep -q "\"@crosscode/${p#packages/}\"" "$1/apps/events/backend/package.json" "$1/apps/events/frontend/package.json" 2>/dev/null; then
printf '%s\n' "$p"
fi
done
}
# Only this app's workspaces (and the shared packages it uses), never the other products'.
# --include=dev: the TypeScript and Next builds need type and build packages even where
# NODE_ENV=production; --include-workspace-root for the packages' build tool (tsup).
events_install_deps() {
run_as "$2" "$1" npm ci --include=dev --no-audit --no-fund -w apps/events/backend -w apps/events/frontend
local -a shared=() ws=()
local p
mapfile -t shared < <(events_shared_packages "$1")
for p in "${shared[@]}"; do ws+=(-w "$p"); done
if [ "${#shared[@]}" -gt 0 ]; then ws+=(--include-workspace-root); fi
run_as "$2" "$1" npm ci --include=dev --no-audit --no-fund "${ws[@]}" -w apps/events/backend -w apps/events/frontend
}
events_migrate() {
@@ -47,6 +64,10 @@ events_pending_migrations() {
}
events_build() {
local p
while IFS= read -r p; do
run_as "$2" "$1/$p" npm run build || return 1
done < <(events_shared_packages "$1")
run_as "$2" "$(events_app "$1")/backend" npm run build &&
run_as "$2" "$(events_app "$1")/frontend" npm run build
}