From 43d2bb1b0c4096189d32a9145b104dcf1922c7a3 Mon Sep 17 00:00:00 2001 From: Joshua Oosthuizen Date: Tue, 1 Dec 2026 16:12:36 +0200 Subject: [PATCH] docs: App slice 7 done (the demo scenarios, app.sh); four wrong days in the December devotionals Co-Authored-By: Claude Opus 5.5 --- docs/APP-1.0-PLAN.md | 4 ++-- docs/HANDOVER.md | 35 ++++++++++++++++++++++++++++++----- docs/VERSIONS.md | 2 +- 3 files changed, 33 insertions(+), 8 deletions(-) diff --git a/docs/APP-1.0-PLAN.md b/docs/APP-1.0-PLAN.md index 3009e1f..0b3cff2 100644 --- a/docs/APP-1.0-PLAN.md +++ b/docs/APP-1.0-PLAN.md @@ -559,7 +559,7 @@ data that describes **the same church**, so a demo shows the three products work | Repo | Change | Version | |------|--------|---------| -| `crosscode-platform` `apps/app` | New (§1–§12), with `CHANGELOG.md`, `WHATS-NEW.md`, `env.template.json`, e2e, demo data | `app@1.0.0` (**being built** on `feat/app-scaffold`; the foundation, §3–§8, §10 and §11 done 2026-12-01) | +| `crosscode-platform` `apps/app` | New (§1–§12), with `CHANGELOG.md`, `WHATS-NEW.md`, `env.template.json`, e2e, demo data | `app@1.0.0` (**being built** on `feat/app-scaffold`; §1–§12 done 2026-12-01, the demo scenarios included) | | `crosscode-platform` `packages/contracts` | `app` in `DEMO_PRODUCTS`, `APP_MODULES`, the `app` part of the church export, `crosscode.devotional/1` and its CSV rules, the translations, `messaging.get`, `whatsapp.optout` | `contracts@1.20.0` (**released 2026-11-30**) | | `crosscode-platform` `packages/contracts` | `agent.DEMO_SCENARIOS`, `scenario` in `seed-demo`, `accounts` in `DEMO_PRODUCTS` | `contracts@1.21.0` (**released 2026-11-30**) | | `crosscode-platform` `packages/contracts` | The free translations only in 1.0 (`licence`, `FREE_BIBLE_TRANSLATION_IDS`, the CSV `translations` option), the Berean Standard Bible (`BSB`) added; the publishers' exact notices (`copyright`, `acknowledgement`, the Bible Society's `disclaimer`), `publisher` and `permissionsUrl`, `FREE_QUOTE_VERSES`, `quotedVerses`; `AFR83` named "Afrikaans 1983/1992-vertaling" | `contracts@1.22.0` (**released 2026-11-30**) | @@ -620,7 +620,7 @@ data that describes **the same church**, so a demo shows the three products work first 3 months of Cross Code devotionals written or imported, in the KJV or BSB (decision 14). **Done:** the Hub runs 2.26.1 and holds two years (Joshua, 2026-12-01). 4. `app@1.0.0` tagged after the e2e and Lighthouse runs. **Being built** from 2026-12-01 on `feat/app-scaffold` (merged into main when done): the - foundation, the House of Prayer, prayer requests, announcements, devotionals and events, email and WhatsApp, and the rest of the admin (uploads, backups, the export) are done (`apps/app/CHANGELOG.md`, "Unreleased"); the slices are in the HANDOVER. + foundation, the House of Prayer, prayer requests, announcements, devotionals and events, email and WhatsApp, the rest of the admin (uploads, backups, the export), the demo scenarios and `scripts/products/app.sh` are done (`apps/app/CHANGELOG.md`, "Unreleased"); the slices are in the HANDOVER. 5. **cross-demo2** (Acacia Hill): New install → App, every demo scenario loaded once, the throwaway test above. 6. **Hope Family Church:** New install → App; the prayer coordinators set the wall up before it's diff --git a/docs/HANDOVER.md b/docs/HANDOVER.md index 775b5c8..8c34b1a 100644 --- a/docs/HANDOVER.md +++ b/docs/HANDOVER.md @@ -35,7 +35,7 @@ every release). | 4 | Cross Events 3.0.0: sign-in through Accounts | **Released, rolled out and tested** (`events@3.9.0` rolled out 2026-12-01, with phase 6's 3.8.0; [EVENTS-3.0-PLAN.md](./EVENTS-3.0-PLAN.md)). Churches sign in through their Accounts; crosscode-site `v1.6.0` deployed | | 4+ | Running it: jobs from the dashboard, styled emails, .env from the Hub, sign-in health, the nightly people check; then frp config and one-product uninstalls, and the Hub's popups, pickers and port list | **Released, deployed and tested** 2026-11-20 and 2026-11-23 (below) | | 5 | Church Website 1.0.0 | **Released 2026-11-26** (planned 2026-11-21: [WEBSITE-1.0-PLAN.md](./WEBSITE-1.0-PLAN.md), all decisions confirmed). Font pairings confirmed 2026-11-24, section variants per template 2026-11-25 (§3). `contracts@1.17.0`, `accounts@1.7.0` and `events@3.7.0` released 2026-11-24, Hub `v2.21.0` 2026-11-25 (the Hub deployed 2026-11-25; the others not rolled out yet). `contracts@1.18.0` and Hub `v2.22.0` (Get more storage) released 2026-11-25, the Hub deployed 2026-11-26. **`website@1.0.0` and `1.0.1` released 2026-11-26**, crosscode-site `v1.7.0` (the Website on sale) released 2026-11-26. **Done** (confirmed by Joshua 2026-11-30): crosscode-site deployed, Hope Family Church and a second church live, the remaining release checks finished. Now `website@1.12.1` (VERSIONS.md) | -| 6 | Church App 1.0.0 | **Under way** (planned and started 2026-11-30): [APP-1.0-PLAN.md](./APP-1.0-PLAN.md), decisions confirmed 2026-11-30 (decision 13, the demo scenarios, added the same day); mockup on the Design canvas "Church App 1.0 mockup". Released 2026-11-30: `contracts@1.20.0` to `1.24.0`, `accounts@1.9.0`, `events@3.8.0`, `website@1.8.0`, `agent@1.7.0`, Hub `v2.26.0` and `v2.26.1` (all deployed by 2026-12-01; the Hub with two years of Cross Code's devotionals; below). **`app@1.0.0` being built** from 2026-12-01 on the branch `feat/app-scaffold` (pushed; merged into main only when 1.0.0 is done): the foundation, the House of Prayer, prayer requests, announcements, devotionals and events, email and WhatsApp, and the rest of the admin with uploads, backups and the export done (slices 1–6 of 8); the demo and servers next | +| 6 | Church App 1.0.0 | **Under way** (planned and started 2026-11-30): [APP-1.0-PLAN.md](./APP-1.0-PLAN.md), decisions confirmed 2026-11-30 (decision 13, the demo scenarios, added the same day); mockup on the Design canvas "Church App 1.0 mockup". Released 2026-11-30: `contracts@1.20.0` to `1.24.0`, `accounts@1.9.0`, `events@3.8.0`, `website@1.8.0`, `agent@1.7.0`, Hub `v2.26.0` and `v2.26.1` (all deployed by 2026-12-01; the Hub with two years of Cross Code's devotionals; below). **`app@1.0.0` being built** from 2026-12-01 on the branch `feat/app-scaffold` (pushed; merged into main only when 1.0.0 is done): the foundation, the House of Prayer, prayer requests, announcements, devotionals and events, email and WhatsApp, the rest of the admin with uploads, backups and the export, and the demo scenarios and servers done (slices 1–7 of 8); e2e, axe and Lighthouse next | | 7 | App 1.x | Not started | ## Released 2026-11-30 (phase 6, first steps) @@ -206,10 +206,25 @@ Joshua 2026-11-30; VERSIONS.md, "Deployed / rolled out"). an uploads snapshot); the heartbeat's `lastBackupAt`. **The export's `app` part** (`scripts/export-church.ts`, for app.sh in slice 7). 124 backend tests; the migrations and the export checked on PostgreSQL 18. Not yet checked in a browser. - 7. **Demo and servers**: the Acacia Hill demo and the eight scenarios (`cmd_demo_scenario`), - `scripts/products/app.sh` and `app.env.template.json` (with the Hub's: the env template - in three places). - 8. **e2e, axe and Lighthouse** (§14), then the tag. + 7. ~~**Demo and servers**~~ (done 2026-12-01, not released; commits `acd3b25` and `71f2f02` + on the branch, **not pushed yet**): `npm run demo` (Acacia Hill) and `--profile ` for + the eight scenarios (`apps/app/backend/src/demo/`), around `@crosscode/demo`'s people + (same account ids as Accounts), each in its scenario's active-member band, with its own + wall coverage, campaign, testimonies, requests, announcements and events (Cross Events' + or the Website's through the feed when linked, else its own); Cross Code's devotionals + fetched from the Hub, or the church's own for St Columba's (KJV), Harbour City and Karoo + (Afrikaans, quoting the BSB). **Nothing is ever sent to a demo person** (`isDemoPerson` + in `messaging/send.ts`). `scripts/products/app.sh`, `app.env.template.json` (the Hub + reads `apps/app/env.template.json` at the tag, as the Website's: no Hub change), + `crosscode add app` (Accounts first), `crosscode demo app`, and the + App last in `cmd_demo_scenario`. 136 backend tests; checked on PostgreSQL 18 (Riverside's + 2 457 members load in about 5 s; `--force` needed once real members have used the App). + `app.bats` and `demo.bats` pass; **the full bats suite wasn't run** (stopped for low + memory): run `npm run test:scripts` first when picking this up. Not yet checked in a + browser (slices 6 and 7). + 8. **e2e, axe and Lighthouse** (§14), then the tag. Start here next time: push the branch, + run the full bats suite, look at slices 6–7 in a browser (`npm run demo` on a throwaway + database), then the Playwright suites. Then cross-demo2 (every scenario loaded, the throwaway install from the Hub) → Hope Family Church → crosscode-site 1.10.0 (the App on sale). @@ -286,6 +301,16 @@ rollout. Hub reads `apps/app/env.template.json` at the tag); its session cookie is `cca_session`. A module's tables, jobs, export records and memoryDb defaults are added with the module. Every page that shows prayer is `noindex` (next.config.ts and robots.ts list `/prayer`). +- **Bible text in code** (from 2026-12-01): the only Bible text in the repo is generated by + `apps/app/backend/scripts/demo-passages.ts`, which copies verses word for word from the + public-domain KJV (`temp/The_Holy_Bible_KJV.txt`) and BSB (`temp/bsb.docx`, Bible Hub's Word + edition), both kept out of git. A new demo devotional: add its reference to + `src/demo/devotionals.ts` and run the script; never type a verse. The script also checks Cross + Code's CSVs well: on 2026-12-01 it found four wrong days in + `cross-code-devotionals-nov-30-to-dec-31-2026.csv` (already on the Hub): **5 Dec** John 1:4-5 is + the KJV's text marked BSB; **23 Dec** Matthew 6:4 ends with a heading ("The Lord's Prayer (Luke + 11:1–4)"); **28 Dec** Romans 5:1 stops at "we have"; **11 Dec** Luke 15:21 has "son. ’". 18 of + its 32 rows also have verse numbers in the text. **Fix them on the Hub before those days.** - **Bible text** (BIBLE-PERMISSIONS.md, from contracts 1.22.0): the Hub and the App offer only `FREE_BIBLE_TRANSLATION_IDS` (KJV, BSB). Any other needs its publisher's written permission first, then brings its exact `copyright` line (and the Bible Society's `disclaimer` for diff --git a/docs/VERSIONS.md b/docs/VERSIONS.md index f2b1a26..832e661 100644 --- a/docs/VERSIONS.md +++ b/docs/VERSIONS.md @@ -32,7 +32,7 @@ on each run, so merging to `main` and pushing releases it. Its changes are liste | `@crosscode/seo` | `packages/seo` | 1.0.0 (released with Events 2.4.0); 1.1.0 (`articleJsonLd`, for the App's devotionals and announcements) on the branch `feat/app-scaffold`, released with `app@1.0.0` | | `@crosscode/ui` | `packages/ui` | 0.4.0 (fonts, `ChurchFooter`, `ColourField`; 0.2.0 with Accounts 1.7.0, 0.3.0 with Events 3.7.0, 0.4.0 with Accounts 1.10.0 and Website 1.9.0) | | Website | `apps/website` | 1.12.1 (1.0.0–1.1.0 released 2026-11-26, 1.2.0–1.7.0 on 2026-11-27, 1.7.1 on 2026-11-28, 1.8.0 on 2026-11-30, 1.9.0 to 1.12.1 on 2026-12-01; tagged as `website@…`; see "Deployed / rolled out" for where it runs) | -| App | `apps/app` | 0.0.0 on main (a placeholder); 0.1.0 on the branch `feat/app-scaffold`, being built from 2026-12-01 (phase 6; slices 1–6 of 8 done 2026-12-01: the foundation, House of Prayer, prayer requests, announcements, devotionals and events, email and WhatsApp, and the rest of the admin with uploads, backups and the church export; six migrations; not released, merged and tagged `app@1.0.0` when the plan is built; HANDOVER "Next up") | +| App | `apps/app` | 0.0.0 on main (a placeholder); 0.1.0 on the branch `feat/app-scaffold`, being built from 2026-12-01 (phase 6; slices 1–7 of 8 done 2026-12-01: the foundation, House of Prayer, prayer requests, announcements, devotionals and events, email and WhatsApp, the rest of the admin with uploads, backups and the church export, and the demo scenarios with `scripts/products/app.sh`; six migrations; not released, merged and tagged `app@1.0.0` when the plan is built; HANDOVER "Next up") | These shared packages ship inside the apps that use them, from the same checkout, so they don't need their own tags until something outside this repo depends on them.