Compare commits

...
Author SHA1 Message Date
joshua b2a163bb39 Merge branch 'feat/contracts-1.22-bible-notices' 2026-11-30 13:48:39 +02:00
joshuaandClaude Opus 5.5 2eef8d1da3 contracts 1.22.0: only free Bible translations in App 1.0, the publishers' notices
- Each translation has a licence; FREE_BIBLE_TRANSLATION_IDS (KJV and the new
  Berean Standard Bible) is what the Hub and App 1.0 offer, and the CSV import
  refuses any other when told to, naming the publisher to ask.
- The publishers' exact notices (NLT, ESV, AFR53, AFR83 corrected), an
  acknowledgement per translation, the Bible Society's disclaimer, publisher
  and permissionsUrl, FREE_QUOTE_VERSES and quotedVerses. AFR83 is named
  "Afrikaans 1983/1992-vertaling".
- docs/BIBLE-PERMISSIONS.md: what each publisher allows, the status and the
  drafted permission requests. APP-1.0-PLAN decision 14, HANDOVER (with the
  Website 1.8.0 approach), VERSIONS, CHANGELOG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:48:38 +02:00
joshua dfd7278f7b Merge branch 'docs/phase6-progress' 2026-11-30 11:47:31 +02:00
joshuaandClaude Opus 5.5 aacfd228a6 docs: phase 6 progress in every handover, README and plan
HANDOVER (phase table, released 2026-11-30, next steps, demo scenarios, WhatsApp
STOP rule, local PostgreSQL), ROADMAP phase 5/6, APP-1.0-PLAN status, the root
README's folders, Events' handover / FEATURES / DEMO_DATA / README for STOP and
the scenarios, Accounts' and @crosscode/demo's READMEs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:47:29 +02:00
24 changed files with 714 additions and 104 deletions
+21
View File
@@ -2,6 +2,27 @@
Each package and app has its own section and its own tags (`contracts@1.0.0`, `accounts@1.0.0`, …).
## contracts@1.22.0 - 2026-11-30
Bible translations for the Church App's devotionals (docs/BIBLE-PERMISSIONS.md, APP-1.0-PLAN.md §6
and decision 14). Additive except for the notice texts and one translation's name; no id changes,
nothing has shown them yet.
- **Only free translations in 1.0:** each translation has a `licence` ("public-domain" or
"permission"); `FREE_BIBLE_TRANSLATION_IDS` (KJV, BSB) is what the Hub and the App offer, and
`checkDevotionalCsv(text, { translations })` refuses any other, naming the publisher to ask.
- **The Berean Standard Bible (`BSB`)**, public domain since 2023, YouVersion 3034. The CSV template
and the devotionals sample now quote the BSB and the KJV.
- **Notices corrected** to each publisher's current wording: NLT (Tyndale House Ministries), ESV
(ESV Text Edition: 2025, the Creative Commons and translation clauses), AFR53 and AFR83 (the
Bible Society's digital short form). The NIV and NKJV notices were already right.
- **`AFR83` is named "Afrikaans 1983/1992-vertaling"**, as the Bible Society names it.
- **New per translation:** `acknowledgement` (the full notice, for the App's Acknowledgements
page), `disclaimer` (the Bible Society's, required with its translations next to content it
hasn't approved; null for the others), `publisher` and `permissionsUrl` (null for the KJV).
- **`FREE_QUOTE_VERSES`** (500) and **`quotedVerses(passages)`**: verses quoted per translation,
so the Hub and the App can warn before the free allowance runs out. `devotionalDisclaimer`.
## events@3.8.0 + @crosscode/demo 1.1.0 + crosscode script - 2026-11-30
Church App 1.0.0 groundwork in Cross Events (docs/APP-1.0-PLAN.md §8 and §12). One migration.
+21 -12
View File
@@ -1,20 +1,26 @@
# Cross Code platform
The monorepo for the Cross Code products that come after Cross Events, and the formats they share.
The plan for every product is in [`docs/ROADMAP-v3.md`](./docs/ROADMAP-v3.md) (decided 2026-11-03); where
things stand is in [`docs/HANDOVER.md`](./docs/HANDOVER.md).
The monorepo for every Cross Code product except the Hub, and the formats they share. The plan for
every product is in [`docs/ROADMAP-v3.md`](./docs/ROADMAP-v3.md) (decided 2026-11-03); where things
stand is in [`docs/HANDOVER.md`](./docs/HANDOVER.md), and the latest release of everything in
[`docs/VERSIONS.md`](./docs/VERSIONS.md).
| Folder | What | Status |
|--------|------|--------|
| `packages/contracts` | `@crosscode/contracts`: the shared JSON formats (zod schemas, JSON Schema, TypeScript types, sample payloads) used by every product, including Cross Events and the Hub | Phase 0, in progress |
| `packages/ui` | `@crosscode/ui`: shared UI for the Website, App and Accounts | Placeholder, filled in during the Website phase |
| `apps/accounts` | Accounts: the per-church sign-in (OpenID Connect) | Placeholder (phase 3) |
| `apps/website` | Church Website | Placeholder (phase 5) |
| `apps/app` | Church App (PWA) | Placeholder (phase 6) |
| `apps/events` | Cross Events (moved in from `joshua/hope-events` in 2.2.0) | Released and in use |
| `apps/accounts` | Accounts: the per-church sign-in (OpenID Connect), the church profile | Released and in use |
| `apps/website` | Church Website | Released and in use (phase 5) |
| `apps/app` | Church App (PWA, House of Prayer) | Placeholder, being built (phase 6, [`docs/APP-1.0-PLAN.md`](./docs/APP-1.0-PLAN.md)) |
| `apps/agent` | The server agent: runs the Hub's signed jobs through the `crosscode` script | Released and in use |
| `packages/contracts` | `@crosscode/contracts`: the shared JSON formats (zod schemas, JSON Schema, TypeScript types, sample payloads) used by every product, including the Hub | Released and in use |
| `packages/auth-client` | `@crosscode/auth-client`: how a product signs in through Accounts | In use |
| `packages/seo` | `@crosscode/seo`: JSON-LD and meta for every public site | In use |
| `packages/ui` | `@crosscode/ui`: fonts, brand style, `ChurchFooter` | In use |
| `packages/demo` | `@crosscode/demo`: the demo scenarios' churches, people and logos | In use (Accounts, Events) |
| `scripts/` | The `crosscode` script: install, deploy, demo, env, export, uninstall on the servers | In use (`main` is the release) |
Cross Events (`joshua/hope-events`) moves in as `apps/events` in Events 2.2.0
([`docs/EVENTS-2.2-PLAN.md`](./docs/EVENTS-2.2-PLAN.md)). Cross Code Hub (`joshua/events-hub`) stays in
its own repo and gets `@crosscode/contracts` as a packed release committed there (decision 22).
Cross Code Hub (`joshua/events-hub`) stays in its own repo and gets `@crosscode/contracts` as a
packed release committed there (decision 22).
## Docs
@@ -22,8 +28,11 @@ its own repo and gets `@crosscode/contracts` as a packed release committed there
|------|------|
| [`docs/ROADMAP-v3.md`](./docs/ROADMAP-v3.md) | The plan: products, contracts, Accounts, sync, Hub, servers, build order, pricing, decisions |
| [`docs/HANDOVER.md`](./docs/HANDOVER.md) | Where each phase stands and what's next |
| [`docs/VERSIONS.md`](./docs/VERSIONS.md) | The latest release of everything, and what's deployed where |
| [`docs/hub-protocol.md`](./docs/hub-protocol.md) | Install ↔ Hub protocol, versions 1 and 2 (a copy lives in `events-hub`) |
| [`docs/EVENTS-2.2-PLAN.md`](./docs/EVENTS-2.2-PLAN.md) | Phase 1b: Cross Events into the monorepo, the `crosscode` script |
| `docs/*-PLAN.md` | Each phase's plan and decisions (Events 2.2, 2.4, 3.0; Accounts 1.0; Agent 1.0; Website 1.0; App 1.0) |
| [`docs/ROLLOUT-1.0.md`](./docs/ROLLOUT-1.0.md) | The rollout checklist |
| [`docs/BIBLE-PERMISSIONS.md`](./docs/BIBLE-PERMISSIONS.md) | The Bible publishers' terms for the Church App's devotionals, the permission requests and their status |
## Rules (ROADMAP-v3 §1)
+4
View File
@@ -16,6 +16,10 @@ sign-in settings, linked products and the church profile here.
- Roles stay in each product: Accounts only knows who someone is (plan §2, "Roles stay in each
product").
- Products sign in with `@crosscode/auth-client` (packages/auth-client).
- 1.9.0: the church's one set of email and WhatsApp settings for the App (`messaging.get`,
`messaging.changed`); the WhatsApp opt-out for every product (`src/accounts/whatsapp.ts`, its own
WAWP webhook in `src/links/whatsappWebhook.ts`); demo scenarios (`npm run demo -- --profile
<scenario> --force`, `src/demo/scenario.ts`, with `@crosscode/demo`; demo sites only).
Local development: Postgres in `backend/.env` (`DATABASE_URL`, `ACCOUNTS_URL=http://localhost:3200`,
`LINKS_ALLOW_PRIVATE=true`), `npx prisma migrate deploy`, then `npm run dev` in both folders (the
+5 -2
View File
@@ -765,8 +765,11 @@ registered for; always sent) or **News & announcements** (only to people who opt
on that channel and haven't unsubscribed). News emails carry an unsubscribe link and
one-click `List-Unsubscribe` headers; news WhatsApps end with "Reply STOP" and a link.
Event updates say why they were sent and link to the preferences. A STOP reply on
WhatsApp turns off WhatsApp news (through WAWP's `message` webhook, checked against a
secret in the webhook URL).
WhatsApp (through WAWP's `message` webhook, checked against a secret in the webhook URL)
**stops every WhatsApp message to that number** from 3.8.0, event updates, tickets and
codes included (they go by email), and from the church's other sites too: it's passed on
to the church's Accounts, where the person turns WhatsApp back on (without Accounts, by
replying START).
**Privacy notice** (`/legal/privacy`) — edited in **Admin → Privacy (POPIA)**
(`/dashboard/admin/privacy`): sections start from the built-in text; drafts, preview,
+21 -1
View File
@@ -11,7 +11,27 @@ showing it to:
| `npm run demo:ministry` | One campus with weekly ministry | The Alpha Course running now (sessions, attendance, late joining, certificates), a finished Marriage Course with certificates, a 3-day conference sold by day, **Kids Church** with families, children, rooms and check-ins, **volunteer rosters**, a **Men's Breakfast series** with followers and a **season pass**, plus a family day, women's conference and carols. |
| `npm run demo:multicampus` | A church with several campuses | **Campuses** Central, North and South (switched on), events per campus and church-wide, home campuses, staff limited to a campus (Anri Botha → North, Daniel Pillay → South), the breakfast series moving between campuses, kids church and rosters at two campuses, and all the events-demo events spread over the campuses. |
`npm run demo:list` prints the same list. Kids church always has a session **today** with
**3.8.0: the eight demo scenarios** (docs/APP-1.0-PLAN.md §12). Each is named after its
Website demo profile and is one of the churches every product of a demo client shows:
| Profile | Church | Built as |
|---|---|---|
| `heritage-parish` | St Columba's Church | small |
| `heritage-city` | Grace Cathedral | events |
| `bold-youth` | Ignite Church | events |
| `bold-plant` | Harbour City Church | small |
| `community-family` | Acacia Hill Church (cross-demo2) | ministry |
| `community-town` | Karoo Gemeenskapskerk | small |
| `clean-modern` | Northpoint Church | ministry |
| `clean-campus` | Riverside Church (three campuses) | multicampus |
They use the church's own people from `@crosscode/demo` (its leads are the staff and the event
contacts; the same people, with the same accounts, as in Accounts, the Website and the App) and
its own campuses. Load Accounts' part first (`crosscode demo <church> accounts --profile …`), then
`npm run set-demo -- --profile=<scenario> --yes` (or `crosscode demo <church> --profile <scenario>`).
A small church's events sell only to the people it has.
`npm run demo:list` prints every profile. Kids church always has a session **today** with
children checked in right now, so the kids desk and room screens have something live to
show on any day.
+1 -1
View File
@@ -145,7 +145,7 @@ npm run prisma:generate
### Demo data
`npm run set-demo -- --profile=<small|events|ministry|multicampus>` wipes the database (keeping site settings and the admin account) and stages demo data for that kind of church; from the repo root it's `npm run demo:<name>` (`npm run demo:list` describes them). See [DEMO_DATA.md](DEMO_DATA.md).
`npm run set-demo -- --profile=<small|events|ministry|multicampus|a demo scenario>` (3.8.0: the eight scenarios, e.g. `community-family`) wipes the database (keeping site settings and the admin account) and stages demo data for that kind of church; from the repo root it's `npm run demo:<name>` (`npm run demo:list` describes them). See [DEMO_DATA.md](DEMO_DATA.md).
---
+36 -1
View File
@@ -1,5 +1,11 @@
# Handover — where things stand and how to carry on
> **2026-11-30:** Events is now at **3.8.0** (released, not deployed; 3.7.2 is rolled out). Where
> it stands and what's next is kept in the root [HANDOVER.md](../../../docs/HANDOVER.md) and
> [VERSIONS.md](../../../docs/VERSIONS.md); this file keeps the "where the code lives" notes.
> Changed since the note below: STOP stops all WhatsApp (see "Where WhatsApp STOP lives (3.8.0)")
> and the demo has the eight demo scenarios (see "Demo data").
Last updated: 2026-11-18, after **2.3.1** (Next.js 16.4.6 for security advisories, on top of 2.3.0;
released, not deployed yet; servers still run 2.1.1 until they're adopted, see the root
[ROLLOUT-1.0.md](../../../docs/ROLLOUT-1.0.md)).
@@ -263,7 +269,8 @@ Plan and reasons: the root [EVENTS-2.4-PLAN.md](../../../docs/EVENTS-2.4-PLAN.md
`CommunicationConsent`), unsubscribe tokens (HMAC with `JWT_SECRET`, never expire),
`filterRecipients` (every bulk send goes through it: `kind` 'update' passes, 'news' only to
opted-in accounts and not to `MessagingOptOut` addresses), email/WhatsApp footers, STOP
handling, data requests, `deletionBlockers`, `anonymiseUser`, `exportUserData` + PDF.
handling (news off; from 3.8.0 all WhatsApp too, below), data requests, `deletionBlockers`,
`anonymiseUser`, `exportUserData` + PDF.
Tests: `backend/tests/privacy.test.js`; e2e: `e2e/privacy.spec.ts`.
- `controllers/privacyController.js` + `routes/privacyRoutes.js` (`/api/privacy`).
- Bulk sends: `broadcastController`, `whatsappBroadcastController`, and `emailEventAttendees` /
@@ -472,6 +479,22 @@ Plan and reasons: the root [EVENTS-2.4-PLAN.md](../../../docs/EVENTS-2.4-PLAN.md
- Frontend: `components/admin/WebhooksTab.tsx`. Tests: `tests/webhooks.test.js`, e2e
`webhooks.spec.ts` (runs a receiver on localhost:5199; e2e backend has `WEBHOOKS_ALLOW_PRIVATE`).
## Where WhatsApp STOP lives (3.8.0)
- APP-1.0-PLAN decision 11: STOP to the church's WhatsApp number stops **all** WhatsApp from every
one of the church's products (event updates, tickets, kids messages, 2FA codes), not only news.
- `src/utils/whatsappStop.js`: `isWhatsAppStopped` (by number in `WhatsAppStop`, or an account with
`User.whatsappOptedOut`, set from Accounts' `user.updated` `whatsapp_opted_out`), `recordStop`,
`clearStop`, `isStartKeyword`. `sendText` / `sendPdf` (`utils/whatsapp.js`) check it before every
message; only the reply that confirms a STOP is sent anyway (`evenIfStopped`). 2FA codes for a
stopped number go by email (`utils/twoFactor.js`).
- The webhook (`handleIncomingMessage`): STOP → kept, news off (`privacy.whatsAppStop`), passed on to
Accounts (`src/accounts/whatsappOptOut.ts`, `whatsapp.optout`); the reply links Accounts' account
page. START turns it back on only without Accounts (with Accounts it's turned on there, and
`updateLocalCopy` clears this site's STOP for the number).
- **Anything new that sends WhatsApp** goes through `sendText` / `sendPdf`, never WAWP directly.
- Tests: `tests/whatsappStop.test.js`, `tests/accountsWhatsappOptOut.test.ts`.
## Demo data (1.48.2)
- `backend/scripts/set-demo.js` builds everything in memory and writes it with `createMany` in one
@@ -486,6 +509,14 @@ Plan and reasons: the root [EVENTS-2.4-PLAN.md](../../../docs/EVENTS-2.4-PLAN.md
- Tried by seeding all four into a throwaway database and calling the API (events, series page and
report, season pass, kids board, roster, attendance registers, certificate check, cashups, campus
scoping).
- **3.8.0, the demo scenarios** (APP-1.0-PLAN §12): `PROFILES` also has one per scenario
(`agent.DEMO_SCENARIOS`), each a copy of one of the four kinds (`SCENARIO_KINDS`) built around
the scenario's church from `@crosscode/demo`: its people (`buildScenarioPeople`: leads become the
staff, at most 260 members), its campuses (`buildCampuses`), its staff as event contacts
(`staffName`). Builders stop when a small church runs out of people (`nextBuyer` returns null),
so don't add one that needs a fixed number of people without the same guard. The scenario's
own people are never sent to `people.removeDemo` (Accounts loaded them first). All eight and
the four were loaded into a throwaway PostgreSQL 18 database before release.
## Where the dashboard and palette live (1.49.0)
@@ -745,6 +776,10 @@ Plan and reasons: the root [EVENTS-2.4-PLAN.md](../../../docs/EVENTS-2.4-PLAN.md
into WAWP (events `message` + `session.status`), and only for senders WhatsApp identifies by
phone number — a sender known only by a "LID" is logged and ignored (they can still use the
link in the message).
- (3.8.0) No test yet for a 2FA code falling back to email for a number that replied STOP.
- (3.8.0) The demo scenarios reuse the four demos' events: a scenario's own events (Grace
Cathedral's concert series, Ignite's youth conference) and Afrikaans content for Karoo
Gemeenskapskerk aren't built yet.
- There's no log of individual messages sent, so "Download my data" can't include "messages
sent to you" yet.
+76 -43
View File
@@ -28,20 +28,26 @@ look comes from the church profile (colours, logo, fonts, corners) and it shares
links with the Website and Cross Events, so the three feel like one church.
**Where things stand:** every earlier phase is released and rolled out, including the Church Website
at Hope Family Church and a second church (confirmed by Joshua 2026-11-30).
at Hope Family Church and a second church (confirmed by Joshua 2026-11-30). **Phase 6 progress
(2026-11-30):** `contracts@1.20.0`, `1.21.0` and `1.22.0`, `accounts@1.9.0` and `events@3.8.0` released
(not deployed yet), with the new shared package `@crosscode/demo` 1.1.0 (§12, "Demo scenarios").
The Bible publishers' terms were checked ([BIBLE-PERMISSIONS.md](./BIBLE-PERMISSIONS.md)): 1.0
uses only the free translations, the KJV and the Berean Standard Bible (decision 14, contracts 1.22.0).
Next: `website@1.8.0`, `agent@1.7.0`, Hub `v2.26.0`, then `app@1.0.0` (§15).
**Who uses 1.0:** the demo church (cross-demo2, Acacia Hill) first, then Hope Family Church. Then
it goes on sale (crosscode-site, ROADMAP §9).
**Done when:**
- `app@1.0.0`, `contracts@1.20.0` (released 2026-11-30), `contracts@1.21.0` (released 2026-11-30), `accounts@1.9.0`,
`events@3.8.0`, `website@1.8.0`, `agent@1.7.0` and Hub `v2.26.0` are tagged; the Hub installs
- `app@1.0.0`, `contracts@1.20.0` (released 2026-11-30), `contracts@1.21.0` (released 2026-11-30), `contracts@1.22.0` (released 2026-11-30), `accounts@1.9.0`
(released 2026-11-30), `events@3.8.0` (released 2026-11-30), `website@1.8.0`, `agent@1.7.0` and Hub `v2.26.0` are tagged; the Hub installs
the App from New install (after Accounts) and lists its releases.
- On a demo client, **Load a demo scenario** in the Hub loads Accounts, Events, the Website and
the App with the same church, people and events, in one step (§12, "Demo scenarios").
- The Hub holds 3 months of Cross Code devotionals (written or imported from CSV), and an App set to
"From Cross Code" shows and sends them.
- The Hub holds 3 months of Cross Code devotionals (written or imported from CSV) in the free
translations (KJV, BSB; decision 14), and an App set to "From Cross Code" shows and sends them
with the translation's notice.
- A member can add the App to their home screen (Android and iPhone), sign in once, book a one-off
or recurring prayer slot, get its reminder by email or WhatsApp, and change or cancel it within
the rules.
@@ -263,30 +269,45 @@ Decision 1: **two sources**, chosen in Settings → Devotionals:
devotional, with its translation and copyright line, and **Read in YouVersion** opens it at
`bible.com` (the passage in that translation; YouVersion's app opens instead where it's
installed). The YouVersion link is built from the reference and the translation's YouVersion id.
- **Translations** (decision 10): each devotional, from Cross Code or the church's own, picks one
of seven:
- **Translations** (decisions 10 and 14): **App 1.0 offers only the free (public-domain)
translations**, for Cross Code's devotionals and a church's own alike:
| Id | Translation | Language |
|---|---|---|
| `NLT` | New Living Translation | English |
| `ESV` | English Standard Version | English |
| `NIV` | New International Version | English |
| `NKJV` | New King James Version | English |
| `KJV` | King James Version | English |
| `AFR53` | Afrikaans 1933/1953-vertaling | Afrikaans |
| `AFR83` | Afrikaans 1983-vertaling | Afrikaans |
| Id | Translation | Language | In 1.0 |
|---|---|---|---|
| `KJV` | King James Version | English | ✅ public domain |
| `BSB` | Berean Standard Bible (modern English; public domain since 30 April 2023) | English | ✅ public domain |
| `NLT` | New Living Translation | English | later, with Tyndale's permission |
| `ESV` | English Standard Version | English | later, with Crossway's permission |
| `NIV` | New International Version | English | later, with Biblica's permission |
| `NKJV` | New King James Version | English | later, with HarperCollins Christian's permission |
| `AFR53` | Afrikaans 1933/1953-vertaling | Afrikaans | later, with the Bible Society's permission |
| `AFR83` | Afrikaans 1983/1992-vertaling (1983 with the 1992 rewordings) | Afrikaans | later, with the Bible Society's permission |
The list lives in the contracts with each one's YouVersion id and copyright line, so the Hub,
the App and the CSV import agree; an id never changes once released, and more can be added.
The Afrikaans pair is the proposal (the 2020-vertaling or the Nuwe Lewende Vertaling could
replace one).
- **Licensing:** every one but the KJV is under copyright (the Afrikaans ones with the Bible
Society of South Africa). Each publisher lets its text be quoted within limits (a number of
verses, never a whole book, with its notice), so a devotional quotes **the passage it's about,
not whole chapters**, and the App always shows that translation's copyright line under the
verse. The Hub and the App warn when a passage is longer than 25 verses. Before Cross Code's
devotionals go out to churches, check each publisher's terms for use in an app (or ask for
permission); the church is responsible for its own.
The list lives in the contracts with each one's YouVersion id, notices and `licence`, so the Hub,
the App and the CSV import agree; an id never changes once released, and more can be added. The
Hub and the App offer `FREE_BIBLE_TRANSLATION_IDS` only, and the CSV import refuses any other
(`checkDevotionalCsv(…, { translations })`, naming the publisher to ask). A translation joins
when its publisher gives written permission (a contracts release moves it to `public-domain`
or a new `licensed` value, and the Hub and the App offer it from their next release). **There
is no free Afrikaans translation** (the Bible Society holds both, and eBible lists none), so an
Afrikaans church's devotionals are written in Afrikaans and quote the KJV or BSB until one is
cleared.
- **Licensing** (checked 2026-11-30, [BIBLE-PERMISSIONS.md](./BIBLE-PERMISSIONS.md)): every
translation but the KJV and BSB is under copyright. Each publisher allows **500 verses** without
asking, counted across the whole work (Biblica: the whole app), never a whole book, with its
notice. **Daily devotionals pass that in two or three months, and the App is sold**, so using
them needs each publisher's **written permission**. Decision 14: 1.0 doesn't wait for it; the
requests are drafted in BIBLE-PERMISSIONS.md for when Cross Code wants a translation. A
devotional quotes **the passage it's about, not whole chapters**; the Hub and the App warn when
a passage is longer than 25 verses.
- **Notices** (contracts 1.22.0): the translation's `copyright` line under every quoted passage
(screen, email and WhatsApp) and an **Acknowledgements** page (linked from the footer and the
devotional) with each used translation's `acknowledgement`. Not required for the KJV and BSB,
but shown anyway (the Berean translators ask for it). A translation added later brings its
publisher's exact wording, and for the Bible Society's their `disclaimer` with every devotional.
- **No AI on Bible text:** Crossway (ESV) and Biblica (NIV) forbid it without a separate licence,
so no AI feature reads, writes, translates or summarises a devotional's passage (§4 already keeps
AI away from prayer).
- **The Hub** (Hub 2.26.0, decision 1): a **Devotionals** page to write and schedule Cross Code's
devotionals **up to 3 months ahead**, with a calendar showing which days are filled, and an
**Import CSV** button: upload, a preview with every row checked (date, required fields, a
@@ -419,8 +440,8 @@ the band in Settings → Licence. Visitors browsing signed out never count.
**renewal check** (the tier is checked once a year at renewal, ROADMAP §10) that flags an install
whose band is above its tier; the FastPanel email for `app.`; the App in Jobs' product filter
(already) and demo data; and **Devotionals** (§6): write and schedule up to 3 months ahead, the
calendar, Import CSV with its preview, and `GET /api/v2/devotionals` for App installs (licence
token, App licences only).
calendar, Import CSV with its preview (the free translations only, §6), and
`GET /api/v2/devotionals` for App installs (licence token, App licences only).
- **Contracts 1.20.0:** `app` in `DEMO_PRODUCTS`; the `app` section of the church export; the
App's modules list (`APP_MODULES`); `crosscode.devotional/1` and the devotionals reply; the CSV
columns and row checks (shared by the Hub and the App); `messaging.get` for the App (§8); the
@@ -480,12 +501,12 @@ data that describes **the same church**, so a demo shows the three products work
| Scenario | Church | Website | Events (built from) | App |
|---|---|---|---|---|
| `heritage-parish` | **St Columba's**: a 120-year-old parish church, small and older, Sunday 09:00 | `heritage-parish` | `small`: carol service, harvest festival, a funeral-tea roster | a quiet wall (about 10 of 24 hours), Cross Code's devotionals in NKJV, a Lent campaign |
| `heritage-parish` | **St Columba's**: a 120-year-old parish church, small and older, Sunday 09:00 | `heritage-parish` | `small`: carol service, harvest festival, a funeral-tea roster | a quiet wall (about 10 of 24 hours), Cross Code's devotionals in the KJV, a Lent campaign |
| `heritage-city` | **Grace Cathedral**: city centre, three Sunday services, lunchtime prayer | `heritage-city` | `events`: a concert series, ticketed Easter services | full in office hours with gaps at night, a weekday lunchtime focus, announcements per service |
| `bold-youth` | **Ignite Church**: young and music-led | `bold-youth` | `events`: a youth conference with paid registration, a worship night | a 21-day campaign before the conference, testimonies, WhatsApp reminders, NLT devotionals |
| `bold-youth` | **Ignite Church**: young and music-led | `bold-youth` | `events`: a youth conference with paid registration, a worship night | a 21-day campaign before the conference, testimonies, WhatsApp reminders, BSB devotionals |
| `bold-plant` | **Harbour City**: a 2-year-old plant in a school hall | `bold-plant` | `small`: launch Sunday, a newcomers' lunch | a wall still filling up (the admin's setup checklist half done), the pastor's own devotionals |
| `community-family` | **Acacia Hill**: a family church (cross-demo2, the mockup's church) | `community-family` | `ministry`: kids' club, Alpha, family camp, volunteer rosters | full with a few gaps (as in the mockup), a 21-day campaign, members' requests waiting for approval |
| `community-town` | **Karoo Gemeenskapskerk**: a country-town church, mostly Afrikaans | `community-town` | `small`: a bazaar, a prayer breakfast | AFR83 devotionals of its own, 30-minute slots, the area's emergency numbers |
| `community-town` | **Karoo Gemeenskapskerk**: a country-town church, mostly Afrikaans | `community-town` | `small`: a bazaar, a prayer breakfast | Afrikaans devotionals of its own (quoting the BSB until an Afrikaans translation is cleared), 30-minute slots, the area's emergency numbers |
| `clean-modern` | **Northpoint**: a contemporary church of about 600 | `clean-modern` | `ministry`: courses, groups launch, serve teams | every hour covered, target 2 per slot, Cross Code's devotionals, announcements by WhatsApp |
| `clean-campus` | **Riverside**: three campuses near the university | `clean-campus` | `multicampus`: student welcome week at one campus, a combined worship night | one wall for three campuses, announcements per campus, students on the 02:00 slots |
@@ -521,14 +542,16 @@ data that describes **the same church**, so a demo shows the three products work
| `crosscode-platform` `apps/app` | New (§1–§12), with `CHANGELOG.md`, `WHATS-NEW.md`, `env.template.json`, e2e, demo data | `app@1.0.0` |
| `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` `apps/accounts` | `messaging.get` for linked products, a hint when the messaging settings change, the WhatsApp opt-out for every product; demo data (the scenario's church profile with its logo and icon, and its people) | `accounts@1.9.0` |
| `crosscode-platform` `apps/events` | STOP replies passed to Accounts; the opt-out read from Accounts; demo profiles reworked to the scenarios | `events@3.8.0` |
| `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**) |
| `crosscode-platform` `apps/accounts` | `messaging.get` for linked products, a hint when the messaging settings change, the WhatsApp opt-out for every product; demo data (the scenario's church profile with its logo and icon, and its people) | `accounts@1.9.0` (**released 2026-11-30**) |
| `crosscode-platform` `apps/events` | STOP stops all WhatsApp, passed to Accounts; the opt-out read from Accounts; a demo profile per scenario (its four kept) | `events@3.8.0` (**released 2026-11-30**) |
| `crosscode-platform` `apps/website` | Demo profiles take the scenario's people and events (`--scenario`) | `website@1.8.0` |
| `crosscode-platform` `apps/agent` | `seed-demo` for `app` and `accounts`, `--scenario` passed on | `agent@1.7.0` |
| `crosscode-platform` `packages/demo` | New: the scenarios' churches, people (`gender` from 1.1.0) and SVG logos | `@crosscode/demo` 1.1.0 (workspace, **released with Accounts 1.9.0 / Events 3.8.0**) |
| `crosscode-platform` `packages/ui` | The tab bar and bottom sheet, if worth sharing; otherwise nothing | workspace |
| `crosscode-platform` `packages/seo` | `Article` builder for devotionals and announcements; the icon generator for the manifest | workspace |
| `crosscode-platform` `scripts/` | `products/app.sh`, `app.env.template.json`, bats tests | — |
| `events-hub` | App in New install, its releases, env template, billing on the band, renewal check, FastPanel email, Devotionals (write, schedule 3 months ahead, Import CSV, the endpoint for Apps), **Load a demo scenario** on a demo client (vendored contracts 1.21.0) | Hub `v2.26.0` |
| `events-hub` | App in New install, its releases, env template, billing on the band, renewal check, FastPanel email, Devotionals (write, schedule 3 months ahead, Import CSV in the free translations, the endpoint for Apps), **Load a demo scenario** on a demo client (vendored contracts 1.22.0) | Hub `v2.26.0` |
| `crosscode-site` | Church App on sale (ROADMAP §9): its page, the active-member tiers, House of Prayer screenshots, the bundle examples (§10), FAQ, `SoftwareApplication` JSON-LD | `v1.10.0` |
## 14. Testing
@@ -541,9 +564,10 @@ data that describes **the same church**, so a demo shows the three products work
Member, the 8-day sign-in renewed up to 90 days, active-member counting and the band, the export
and delete hooks, the devotional CSV checks (a bad date, a missing field, a reference YouVersion
can't open, a day already filled), the YouVersion links, the nightly Cross Code fetch (and the
last copy kept when the Hub is down), `messaging.get`.
- **Hub:** the Devotionals page, Import CSV with its preview, the 3-month limit, and the endpoint
refusing anything but an App licence.
last copy kept when the Hub is down), `messaging.get`, the notice under every quoted passage
(screen, email, WhatsApp), only the free translations offered and imported.
- **Hub:** the Devotionals page, Import CSV with its preview, the 3-month limit, a translation that isn't
free refused, and the endpoint refusing anything but an App licence.
- **Playwright** (phone, tablet and desktop): browse signed out; sign in from a slot and land back
on it with the sheet open (through 2FA); book once, weekly and daily; skip, change and cancel;
the 8-hour rule; two browsers, one books, the other's view updates live (and with the stream
@@ -564,11 +588,12 @@ data that describes **the same church**, so a demo shows the three products work
## 15. Releasing and rolling it out
1. `contracts@1.20.0` (**released 2026-11-30**), then `accounts@1.9.0` (`messaging.get`, the
WhatsApp opt-out) and `events@3.8.0` (STOP passed to Accounts), rolled out to every church.
WhatsApp opt-out) and `events@3.8.0` (STOP passed to Accounts), **both released 2026-11-30**,
rolled out to every church (not yet).
2. `contracts@1.21.0` (demo scenarios, **released 2026-11-30**), with the scenario demo loaders in Accounts 1.9.0, Events
3.8.0, `website@1.8.0`, and `agent@1.7.0`.
3. Hub `v2.26.0` (vendored contracts 1.21.0) deployed, and the first 3 months of Cross Code
devotionals written or imported.
3. Hub `v2.26.0` (vendored contracts 1.22.0) deployed, and the first 3 months of Cross Code
devotionals written or imported, in the KJV or BSB (decision 14).
4. `app@1.0.0` tagged after the e2e and Lighthouse runs.
5. **cross-demo2** (Acacia Hill): New install → App, every demo scenario loaded once, the
throwaway test above.
@@ -600,6 +625,7 @@ Made by Joshua on 2026-11-30, after the first draft and the mockup:
panels and stat cards), not a new style (§10; mockup redrawn).
10. **Each devotional uses one of NLT, ESV, NIV, NKJV, KJV or two Afrikaans translations**
(proposed: 1933/1953 and 1983), quoting only the passage, with its copyright line (§6).
Narrowed by decision 14: only the free ones (KJV, BSB) in 1.0.
11. **Accounts keeps the WhatsApp opt-out for every product,** so a STOP to the shared number
reaches the App, Events and Accounts alike (§8). Adds Events 3.8.0.
12. **Home shows today's prayer clock** in small, as the House of Prayer does (mockup redrawn).
@@ -608,6 +634,10 @@ Made by Joshua on 2026-11-30, after the first draft and the mockup:
contracts 1.21.0, agent 1.7.0 and Website 1.8.0, and demo data in Accounts 1.9.0. Eight
scenarios, one per Website demo profile, each its own church: a scenario load replaces the
church profile with its own name, logo, icon, colours and details.
14. **Only free Bible translations in 1.0** (added later on 2026-11-30, after the publishers'
terms were checked: none covers a sold app past 500 verses): the KJV and the Berean Standard
Bible. The others stay in the contracts and join when a publisher gives written permission;
that doesn't hold up this plan (§6, [BIBLE-PERMISSIONS.md](./BIBLE-PERMISSIONS.md)).
The other proposals as first written, confirmed:
@@ -643,6 +673,9 @@ for a group; an app-store release; moving to the church's own domain (as the Web
## Still open
- ~~Which two Afrikaans translations~~: 1933/1953 and 1983, confirmed by Joshua 2026-11-30 (YouVersion ids checked, contracts 1.20.0).
- **The publishers' terms** for quoting each translation in an app (§6), checked before Cross
Code's devotionals go out; ask for permission where the terms don't cover it.
- ~~The publishers' terms~~: checked 2026-11-30 ([BIBLE-PERMISSIONS.md](./BIBLE-PERMISSIONS.md)).
None covers a sold app past 500 verses, so 1.0 uses only the free translations (decision 14).
The permission requests are drafted for later; nothing in this plan waits for them.
- **An Afrikaans translation** (1.x): none is free. Ask the Bible Society when an Afrikaans church
needs one (the request is drafted in BIBLE-PERMISSIONS.md).
- ~~The demo scenarios~~: eight, one per Website demo profile, each its own church with its own logo and details; Acacia Hill is `community-family` (Joshua, 2026-11-30).
+261
View File
@@ -0,0 +1,261 @@
# Bible translations: permissions for the Church App
Written 2026-11-30 for [APP-1.0-PLAN.md](./APP-1.0-PLAN.md) §6 (decisions 5 and 10), which said:
"before Cross Code's devotionals go out to churches, check each publisher's terms for use in an
app". This file holds what each publisher allows, where each request stands and the requests
themselves. **Update the status table when a publisher answers.**
Sources, read 2026-11-30: crossway.org/permissions, harpercollinschristian.com (Sales and rights →
Permissions), the Bible Society of South Africa's *Copyright Policy 2022* (updated 18 July 2022,
linked from biblesociety.co.za → Copyright and permissions), and Tyndale's and Biblica's
permissions pages (copied by Joshua into `temp/`, as their sites refuse automated reading).
## Decision: only free translations in App 1.0
**Joshua, 2026-11-30:** App 1.0 and the Hub use only the free, public-domain translations: the
**KJV** and the **Berean Standard Bible** (BSB, dedicated to the public domain under CC0 on
30 April 2023, berean.bible/terms.htm; bible.com version 3034). The others stay in the contracts
and join when a publisher gives written permission; **nothing in APP-1.0-PLAN waits for that**.
The requests below are drafted for when Cross Code wants a translation, and aren't sent yet.
There is **no free Afrikaans translation**: the Bible Society holds the 1933/1953, 1983/1992 and
2020 translations, and eBible lists none. The World English Bible is also public domain but was
left out (its own copyright page was gone when checked, and the BSB covers modern English).
## The short answer
**No publisher's free allowance covers Cross Code's devotionals.** Every one but the KJV allows
about **500 verses** without asking, but:
1. **The 500 count across the whole work**, not per devotional. Biblica says so outright: on a
website or app "the General Use Guidelines apply to the entire platform". A daily devotional of
5–10 verses passes 500 within two or three months; a year is about 2 000–3 500 verses.
2. **The App is commercial.** Churches pay for it (a subscription by active-member band). The Bible
Society's policy calls anything "subject to a sale, lease or trade agreement" commercial; Biblica's
free "Express Licensing" for apps excludes "sales, subscriptions"; Tyndale's free allowance
covers only "print or eBook" use.
So Cross Code needs **written permission from each publisher** whose translation its devotionals
use, hence the decision above.
A church's own devotionals are limited to the free translations too in 1.0. When a translation
needing permission is added later, `quotedVerses` and `FREE_QUOTE_VERSES` (contracts 1.22.0) let
the Hub and the App count verses against the allowance.
## Status
| Translation | Publisher | Free use | Our use | Request | Status |
|---|---|---|---|---|---|
| `KJV` | none (public domain; Crown rights in the UK only) | everything | covered | none needed | ✅ In 1.0 |
| `BSB` | none (public domain, CC0, since 2023-04-30) | everything; attribution "appreciated but not required", the Berean name only for the verbatim text | covered | none needed | ✅ In 1.0 |
| `NLT` | Tyndale House Publishers | 500 verses, **print or eBook only** | not covered (an app, past 500, commercial) | [Tyndale](#tyndale-nlt) | Later (not sent) |
| `ESV` | Crossway | 500 verses (print, digital, audio); its API free for non-commercial use only | not covered (past 500, commercial app) | [Crossway](#crossway-esv) | Later (not sent) |
| `NIV` | Biblica, Inc. (South Africa is "rest of the world") | 500 verses **across the whole platform**; Express Licensing only for non-commercial apps without AI | not covered | [Biblica](#biblica-niv) | Later (not sent) |
| `NKJV` | HarperCollins Christian Publishing (Thomas Nelson) | 500 verses in any form; apps: "contact our licensing department" | not covered | [HarperCollins](#harpercollins-christian-nkjv) | Later (not sent; 6–8 weeks to answer) |
| `AFR53`, `AFR83` | Bible Society of South Africa | 500 verses, plus a copy of the work couriered to them | not covered (past 500, commercial) | [Bible Society](#bible-society-of-south-africa-afr53-afr83) | Later (not sent) |
When a request is answered, record here the date, any fee, the conditions (a verse cap, a notice,
reporting) and where the letter is kept, then release contracts with the translation's `licence`
changed, so the Hub and the App offer it (APP-1.0-PLAN §6).
## What each publisher requires
### Every translation
- **The exact notice, under every quote.** The texts are in `packages/contracts/src/bible.ts`
(`copyright` under the verse, `acknowledgement` for the App's **Acknowledgements** page). Copy
them from the publisher; never reword them.
- **Quote exactly**, punctuation and capitals included (Tyndale, Crossway, Biblica), from the latest
edition (Biblica: only its latest editions; Crossway: ESV Text Edition 2025).
- **Never a whole book**, and quotes under 25% of the work (the devotionals are mostly the writer's
text, so this holds; the Hub and App warn past 25 verses in one passage).
- **No AI on Bible text.** Crossway: the ESV text may not be "used, accessed, or processed by any
AI system". Biblica: any use "in connection with artificial intelligence, machine learning, large
language models, chatbots" needs a separate licence. So **no AI feature may ever read, write,
translate or summarise a devotional's passage** (Events' AI buttons, anything added to the Hub
or the App later). The App already keeps AI away from prayer (§4); this extends it to devotionals.
- **Permission is for the use asked for and isn't passed on** (Tyndale: "you may not pass permission
on to another person"). So each request names the whole chain: Cross Code writes, the Hub
distributes to each church's App, the App shows it and sends it by email and WhatsApp.
### Tyndale (NLT)
- Free: up to 500 verses "in any print or eBook form", under 25% of the work, never a complete book.
Online sermons and posts have their own limits (50 or 250 verses per recording, non-commercial).
**Apps aren't covered at all.**
- Notice (only the NLT): "Scripture quotations are taken from the Holy Bible, New Living
Translation, copyright © 1996, 2004, 2015 by Tyndale House Ministries. Used by permission. All
rights reserved." With several translations: "Scripture quotations marked (NLT) are taken from…".
(Our 1.20.0 notice still said "Tyndale House Foundation … Carol Stream, Illinois"; fixed in
contracts 1.22.0.)
- Ask: permission@tyndale.com or the Permissions Questionnaire on tyndale.com/permissions.
### Crossway (ESV)
- Free: up to 500 verses in print, digital or audio, under half of any book and under 25% of the
work, not in a commentary. Websites, blogs and social media are listed as covered uses.
- The ESV API (api.esv.org) is free "for non-commercial use" only.
- Notice: "Scripture quotations are from the ESV® Bible (The Holy Bible, English Standard
Version®), © 2001 by Crossway, a publishing ministry of Good News Publishers. ESV Text Edition:
2025. …" with the Creative Commons and translation clauses, ending "Used by permission. All
rights reserved." **Check the text in `bible.ts` against crossway.org/permissions word for word
before the App ships**: the page reader could only confirm its clauses and their order.
- "ESV" and "English Standard Version" are trademarks: fine to label a quote, not for branding.
- No AI (above).
- Ask: the Digital form at crossway.org/permissions/digital/.
### Biblica (NIV)
- Outside North America, the UK and Europe, Biblica itself handles every commercial use "including
non-print and audio". South Africa is in that group.
- Free: 500 verses or fewer **in total**, never a complete book, under 25% of the "product,
publication, or platform", with the notice; on a website or app, for the whole platform.
- **Express Licensing** (free, through api.bible or platform.youversion.com) is only for apps that
are "truly non-commercial (no sales, subscriptions, …)" and have no AI features. The App is sold,
so it doesn't qualify.
- Licences for a full Bible or New Testament only go to registered legal entities (not our case,
but the request comes from Cross Code as a company).
- Notice: Biblica offers to provide the correct one. Ours ("Scripture quotations taken from The
Holy Bible, New International Version® NIV®. Copyright © 1973, 1978, 1984, 2011 by Biblica,
Inc.™ Used by permission. All rights reserved worldwide.") is the one Biblica has long asked for;
**ask them to confirm it** in the request.
- No AI (above).
- Ask: the Permission Request Form on biblica.com/permissions.
### HarperCollins Christian (NKJV)
- Free: up to 500 verses "in any form (written, visual, electronic, or audio)", under 25% of the
work, under half of any book, not in a commentary, properly cited.
- Apps: "for a smartphone app or other digital product … contact our licensing department".
- Notice (ours is right): "Scripture taken from the New King James Version®. Copyright © 1982 by
Thomas Nelson. Used by permission. All rights reserved."
- Ask: the HarperCollins Christian Permission Request Form
(cognitoforms.com/HarperCollinsChristianPublishing/PermissionsForm); questions to
HCCPpermissions@HarperCollins.com. **6–8 weeks** on average; no phone calls, no duplicate
requests, incomplete requests are ignored.
### Bible Society of South Africa (AFR53, AFR83)
- Both are theirs: "Bybel in Afrikaans 1933/1953-vertaling" and "Bybel in Afrikaans 1983-vertaling
met herformulerings tot en met 1992" (policy §3 a and c). "Ou Vertaling" and "Nuwe Vertaling"
are not official names and may not be used (§6).
- Free (§4): up to 500 verses, under 50% of a book and under 25% of the work, with a notice, **and
one copy of the work couriered** to the Copyright Officer (134 Edward Street, Bellville 7530) with
an email to copyright@biblesociety.co.za. For an app, ask what they want instead.
- Past that, or commercial (§5): a formal application, made **during planning, before release**.
Two copies of a commercial product are due after publication. A fee may be set case by case
(§7.2); they may require a **text release** (their files, for this use only, never passed on;
§7.3). Permission is per edition (§7.1).
- Apps (§3): a complete Bible text in "mobile application software" needs written permission (we
quote passages only). Social media: one verse at a time (§6.2); media and "social media
campaigns" go to biblia@biblesociety.co.za (§5.3). Name WhatsApp and email sends in the request.
- Notices (§6.2, digital): the short form on every screen with the text, the full form in an
acknowledgements section, and **the disclaimer** with them whenever their text is next to
content they haven't approved (§6.4), which is every devotional. All three are in `bible.ts`. Our
copy of the Afrikaans disclaimer reads "beskou kan word" where the policy has the typo "can word".
- Ask: copyright@biblesociety.co.za (the application form for legal entities is linked from their
page), 021 910 8777. Post: PO Box 5500, Tyger Valley 7536.
## The requests
Fill in the bracketed details before sending. Each describes the same use, so the answers can be
compared. Send them from Cross Code's address, not a personal one, and keep the replies (and any
licence) with the company's records; note where in the status table.
**The use, in one paragraph** (paste into each form's description field):
> Cross Code [company name and registration number], South Africa, makes the Church App, a web app
> that churches in South Africa subscribe to (priced by how many members use it). Each church has
> its own App at its own address. Cross Code writes a daily devotional that churches can choose to
> show: each quotes one Bible passage (usually 3–10 verses, never more than 25, never a whole
> chapter's worth of a short book), shown in full above the devotional with your copyright notice
> under it, followed by the devotional (about 300–600 words of our own) and a prayer. The
> devotional is shown in the App (public pages, as text, not downloadable), kept by the App for
> offline reading on the member's phone, and sent at the member's request by email and WhatsApp
> (the title, the passage and a link to the App). A "Read in YouVersion" link opens the passage on
> bible.com. We expect about [365] devotionals a year in [translation], about [2 500] verses a
> year, the same for every church that chooses them; we start with [N] churches and expect
> [N] within a year. No AI is used with the Bible text. We would like permission for this use,
> and to know any fee, the notice you want and any conditions.
### Tyndale (NLT)
To: permission@tyndale.com (or the Permissions Questionnaire)
Subject: Permission request: NLT in a church devotional app (South Africa)
> Dear Permissions team,
>
> We would like permission to quote the New Living Translation in daily devotionals in a church
> app. Your fair-use guideline covers print and eBook use up to 500 verses; ours is an app, sold to
> churches by subscription, and goes past 500 verses within a few months.
>
> [The use, in one paragraph.]
>
> We would show the notice "Scripture quotations are taken from the Holy Bible, New Living
> Translation, copyright © 1996, 2004, 2015 by Tyndale House Ministries. Used by permission. All
> rights reserved." under every passage. Since each church's App shows the devotionals Cross Code
> writes, please let us know whether your permission to Cross Code covers their display in every
> subscribing church's App.
>
> Kind regards,
> [name], Cross Code
> [email, phone, address]
### Crossway (ESV)
Form: crossway.org/permissions/digital/ (description field):
> [The use, in one paragraph.] We would show your full ESV notice (ESV Text Edition: 2025) under
> every passage and quote the current ESV text exactly. We understand the ESV API's free terms
> are for non-commercial use; we would like to know whether we may use the API or must supply
> the text ourselves, and any fee. The ESV text will not be processed by any AI system.
### Biblica (NIV)
Form: Permission Request Form on biblica.com/permissions (rest of the world, digital, commercial):
> [The use, in one paragraph.] We understand your General Use Guidelines apply to the whole
> platform and that Express Licensing is for non-commercial apps only, so we are asking for
> permission. We would quote the latest NIV text exactly and show this notice under every passage;
> please confirm it is the one you want: "Scripture quotations taken from The Holy Bible, New
> International Version® NIV®. Copyright © 1973, 1978, 1984, 2011 by Biblica, Inc.™ Used by
> permission. All rights reserved worldwide." The App has no AI or machine-learning features that
> use the Bible text. Cross Code is a registered company ([registration number]).
### HarperCollins Christian (NKJV)
Form: HarperCollins Christian Permission Request Form (fill in every field; incomplete requests
aren't considered):
> [The use, in one paragraph.] We would show "Scripture taken from the New King James Version®.
> Copyright © 1982 by Thomas Nelson. Used by permission. All rights reserved." under every
> passage. Your page asks smartphone apps and other digital products to contact the licensing
> department; please pass this on if that is the right place.
### Bible Society of South Africa (AFR53, AFR83)
To: copyright@biblesociety.co.za, with the application form for legal entities
Subject: Aansoek om kopiereg-toestemming: Bybel in Afrikaans 1933/1953 en 1983/1992 in 'n kerk-app
(Application for copyright permission: the Afrikaans 1933/1953 and 1983/1992 Bibles in a church app)
> Geagte Regspraktisyn en Kopieregbeampte / Dear Legal Practitioner and Copyright Officer,
>
> We apply, in the planning phase as your Copyright Policy 2022 asks, for permission to quote
> the Bybel in Afrikaans 1933/1953-vertaling and the Bybel in Afrikaans 1983-vertaling met
> herformulerings tot en met 1992 in daily devotionals in a church app. The use is commercial as
> your policy defines it (churches subscribe to the App) and will pass 500 verses a year.
>
> [The use, in one paragraph.]
>
> We would show your digital short notice under every passage, the full notice on the App's
> Acknowledgements page, and your disclaimer with every devotional (policy §6.2 and §6.4). The
> devotionals are also sent by email and WhatsApp to members who ask for them; please tell us
> whether that needs your Communications and Marketing department (§5.3). As an app has no
> physical copy to courier, please tell us what you would like instead (for example, access to a
> demonstration App). We would also like to know any fee, and whether you require a text release.
>
> Churches in the App can also write their own devotionals; they would apply to you themselves.
>
> Vriendelike groete / Kind regards,
> [name], Cross Code
> [email, phone, address]
+90 -10
View File
@@ -16,7 +16,7 @@ every release).
| Repo | What |
|------|------|
| `joshua/crosscode-platform` (this one) | Contracts, the apps (Events from 2.2.0; Accounts, Website and App to come), shared packages, the `crosscode` script (`scripts/`), the server agent (`apps/agent`), and these docs |
| `joshua/crosscode-platform` (this one) | Contracts, the apps (Events, Accounts, the Website; the App in phase 6), shared packages (`contracts`, `auth-client`, `seo`, `ui`, `demo`), the `crosscode` script (`scripts/`), the server agent (`apps/agent`), and these docs |
| `joshua/hope-events` | Cross Events up to 2.1.x. Frozen; archived once every install is adopted (EVENTS-2.2-PLAN §7) |
| `joshua/events-hub` | Cross Code Hub. Its own server, its own `scripts/deploy.sh` |
| `joshua/crosscode-site` | crosscode.co.za. Updated at the end of every phase that changes what it says (ROADMAP §9) |
@@ -25,19 +25,35 @@ every release).
| Phase | What | State |
|-------|------|-------|
| 0 | contracts 1.0.0 → 1.17.0 | **Released and in use.** Not published to a registry (decision 22): the Hub gets a packed release committed to its repo (`backend/vendor/`) |
| 0 | contracts 1.0.0 → 1.21.0 | **Released and in use.** Not published to a registry (decision 22): the Hub gets a packed release committed to its repo (`backend/vendor/`) |
| 1 | Hub 2.0 → 2.20.0 | **Released, deployed and tested** (Hub `v2.20.0`) |
| 1b | Cross Events 2.2.0: moved here as `apps/events`, the `crosscode` script | **Released, rolled out and tested.** Every install adopted onto the monorepo |
| 1c | Cross Events 2.3.x: authenticator app 2FA | **Released and rolled out** (carried into Accounts in phase 4) |
| 1d | Agent 1.x + Hub 2.1+ | **Released, rolled out and tested** (agent `1.5.0` on every server: from 1.4.0 the Hub reads and changes frps's / frpc's config and probes ports before an install; from 1.5.0 one product of a church can be uninstalled, exported or purged) |
| 2 | Cross Events 2.4.0: protocol v2, Linked products, event feed, `packages/seo` | **Released, rolled out and tested** ([EVENTS-2.4-PLAN.md](./EVENTS-2.4-PLAN.md)) |
| 3 | Accounts 1.0.0 | **Released, rolled out and tested** (now `accounts@1.6.0`; [ACCOUNTS-1.0-PLAN.md](./ACCOUNTS-1.0-PLAN.md)) |
| 4 | Cross Events 3.0.0: sign-in through Accounts | **Released, rolled out and tested** (now `events@3.7.0`; [EVENTS-3.0-PLAN.md](./EVENTS-3.0-PLAN.md)). Churches sign in through their Accounts; crosscode-site `v1.6.0` deployed |
| 3 | Accounts 1.0.0 | **Released, rolled out and tested** (`accounts@1.8.0` rolled out; `1.9.0` released 2026-11-30 for phase 6, not deployed; [ACCOUNTS-1.0-PLAN.md](./ACCOUNTS-1.0-PLAN.md)) |
| 4 | Cross Events 3.0.0: sign-in through Accounts | **Released, rolled out and tested** (`events@3.7.2` rolled out; `3.8.0` released 2026-11-30 for phase 6, not deployed; [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.7.1` (VERSIONS.md) |
| 6 | Church App 1.0.0 | **Being planned** (2026-11-30): [APP-1.0-PLAN.md](./APP-1.0-PLAN.md), decisions confirmed 2026-11-30 (two left in "Still open"); mockup on the Design canvas "Church App 1.0 mockup" |
| 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, not deployed: `contracts@1.20.0`, `1.21.0` and `1.22.0`, `accounts@1.9.0`, `events@3.8.0` (below). Next: Website 1.8.0, agent 1.7.0, Hub 2.26.0, `app@1.0.0` |
| 7 | App 1.x | Not started |
## Released 2026-11-30 (phase 6, first steps)
Tagged and pushed on 2026-11-30, **not deployed yet** (each app has one migration). Details in
[VERSIONS.md](./VERSIONS.md), [CHANGELOG.md](../CHANGELOG.md) and the apps' CHANGELOGs.
| Release | What |
|---------|------|
| `contracts@1.20.0` | The App's contracts: `crosscode.devotional/1` and the devotionals CSV checks (shared by the Hub and the App), the Bible books and seven translations with YouVersion ids, `messaging.get` / `messaging.changed`, `whatsapp.optout` and `whatsapp_opted_out`, `APP_MODULES`, the `app` part of the church export |
| `contracts@1.21.0` | `agent.DEMO_SCENARIOS`: the eight demo churches, one per Website demo profile; `scenario` in `seed-demo`, `accounts` in `DEMO_PRODUCTS` |
| `accounts@1.9.0`, `@crosscode/demo` 1.0.0 | `messaging.get` for the App; the WhatsApp opt-out for every product (STOP kept per number and account, Accounts' own WAWP webhook, "Turn WhatsApp back on"); a scenario's church profile, SVG logo and icon, and people (`crosscode demo <church> accounts --profile <scenario>`) |
| `contracts@1.22.0` | Only free Bible translations in 1.0 (KJV and the new BSB: `licence`, `FREE_BIBLE_TRANSLATION_IDS`, the CSV `translations` option); the publishers' exact notices (NLT, ESV and the Afrikaans ones were out of date), the Bible Society's disclaimer, an `acknowledgement` per translation, who to ask, `FREE_QUOTE_VERSES` and `quotedVerses` ([BIBLE-PERMISSIONS.md](./BIBLE-PERMISSIONS.md)) |
| `events@3.8.0`, `@crosscode/demo` 1.1.0 | STOP stops all WhatsApp (not only news), checked before every message and passed on to Accounts; the eight scenarios as Events demo profiles, around each church's own people and campuses |
All four were checked on PostgreSQL 18 (local, details in `temp/`, never committed): migrations,
scenario loads, the opt-out.
## Released 2026-11-23
All tagged, pushed and deployed on 2026-11-23. Details in [VERSIONS.md](./VERSIONS.md) and the Hub's
@@ -100,11 +116,54 @@ Everything up to and including phase 5 (the Church Website) is released and roll
Family Church and a second church are live on the Website, crosscode-site sells it (confirmed by
Joshua 2026-11-30; VERSIONS.md, "Deployed / rolled out").
1. **Phase 6, Church App 1.0.0** (ROADMAP §7, §9). Planned in [APP-1.0-PLAN.md](./APP-1.0-PLAN.md)
(2026-11-30, decisions confirmed): contracts 1.20.0 → Accounts 1.9.0 (shared email and
WhatsApp for the App, the WhatsApp opt-out for every product) and Events 3.8.0 (STOP passed to
Accounts) → Hub 2.26.0 (with Cross Code devotionals) → `app@1.0.0` → cross-demo2 (with a throwaway install from the Hub) → Hope Family
Church → crosscode-site 1.10.0 (the App on sale).
1. **Phase 6, Church App 1.0.0** (ROADMAP §7, §9), [APP-1.0-PLAN.md](./APP-1.0-PLAN.md) §15.
**Done 2026-11-30 (released, not deployed):** contracts 1.20.0, 1.21.0 and 1.22.0, Accounts
1.9.0, Events 3.8.0. The Bible publishers' terms checked: none covers a sold app, so **1.0 uses only the
free translations, the KJV and the Berean Standard Bible** (APP-1.0-PLAN decision 14); the
permission requests for the others are drafted in [BIBLE-PERMISSIONS.md](./BIBLE-PERMISSIONS.md)
for later, and nothing waits for them. **Next:**
1. **Website 1.8.0:** its eight demo profiles take each scenario church's people (leaders,
pastor) from `@crosscode/demo` and accept `--scenario`; the Website builds `packages/demo`.
Not started (no branch). Worked out on 2026-11-30, to build on `feat/website-1.8`:
- `npm run demo -- --profile <p> --scenario <p>` (`backend/scripts/demo.ts`); `loadDemo(ctx,
profile, { scenario })` in `src/demo/demoChurch.ts`; the scenario must be the profile.
- **Leaders:** a `scenarioTeam` per seed in `src/demo/seeds.ts`, four `[part, role, photo]`,
the pastor first, the names from `demoPeople(scenario)` by part. Portraits by gender
(keys in `demo-photos/photos.json`), checked 2026-11-30:
heritage-parish pastor/Rector pastor-margaret, worship/Director of music team-sipho,
kids/Sunday school team-anne, prayer-coordinator team-david; heritage-city pastor/Vicar
pastor-peter, prayer-coordinator team-claire, worship/Organist team-nomsa, youth/Students
and young adults team-tom; bold-youth pastor/Lead pastor team-kagiso, youth/Youth pastor
team-ayesha, worship/Worship pastor team-megan, prayer-coordinator/Prayer and connect
groups team-ruan; bold-plant pastor/Church planter team-sipho, kids team-ayesha, worship/Music
team-ruan, prayer-coordinator/Prayer and community team-lerato; community-family
pastor/Senior pastor pastor-andile, kids/Children's pastor team-michelle, prayer-coordinator
team-lerato, youth team-johan; community-town pastor/Minister pastor-willem, kids/Sunday
school team-elsie, worship/Music team-pieter, prayer-coordinator/Prayer team-marie;
clean-modern pastor pastor-daniel, kids team-bongani, worship/Music team-nadia,
prayer-coordinator/Prayer team-refilwe; clean-campus pastor pastor-ian, youth/Students
team-thabo, worship/Music team-lisa, prayer-coordinator/Prayer team-priya. The pastor is
the messages' speaker; photo alt texts carry the new names (as now).
- **Events:** with a linked Cross Events (`ProductLink`, product `events`), a scenario load
makes no simple events of its own, sets that link's `showEvents` and runs `syncLink`, so
Events' events show through the feed, never copied (APP-1.0-PLAN §12). Without Events, its
own three as now.
- **Script:** `cmd_demo_website` in `scripts/lib/manage.sh` passes `--scenario`;
`website_shared_packages` and `website_build` in `scripts/products/website.sh` add
`packages/demo` (as `events.sh` does); `@crosscode/demo` in the backend's package.json.
- Tests in `backend/tests/site.test.ts`: each scenario's leaders are its people, none of the
seed's own leader names left, events from the feed when Events is linked.
2. **Agent 1.7.0:** `seed-demo` for `app` and `accounts`, `--scenario` passed on
(`SEED_SCENARIO_MIN_AGENT`; bump `AGENT_VERSION` too).
3. **Hub 2.26.0** (vendored contracts 1.22.0): the App in New install and releases, billing on
the active-member band, **Load a demo scenario** on a demo client, the **Devotionals** page
(3 months ahead, Import CSV, the free translations only: KJV and BSB) and
`GET /api/v2/devotionals`. Then write or import the first 3
months of Cross Code devotionals.
4. **`app@1.0.0`** → cross-demo2 (every scenario loaded, the throwaway install from the Hub) →
Hope Family Church → crosscode-site 1.10.0 (the App on sale).
Deploying Accounts 1.9.0 and Events 3.8.0 to the churches can happen any time before the App;
a church without Cross Events gives WAWP the address in Accounts → Admin → Email and WhatsApp.
Done (confirmed by Joshua 2026-11-25): `hope-events` is archived, and every FastPanel site set up
before Hub 2.10.0, and the Hub's own site, has `location ^~ /api/`.
@@ -148,6 +207,22 @@ rollout.
- **Demo data:** Hub → the install's page → Mark as a demo site → Load demo data (Hub 2.4.0, agent
1.2.0; `crosscode demo <church> --profile …` on the server). By hand, run `npm run demo:*` as the
site's user (`sudo -u cc-<church> …`): only that user can read the `.env`.
- **Demo scenarios** (APP-1.0-PLAN §12, from 2026-11-30): eight preset churches, the list in
contracts `agent.DEMO_SCENARIOS`, each church's profile, people and logo in `packages/demo`
(`@crosscode/demo`, built by every product that uses it). **Accounts loads first**
(`crosscode demo <church> accounts --profile <scenario>`: profile, logo, people), then Events,
the Website and the App with the same profile name. People keep the same account id everywhere
and on every load (`demoId`); everything is at example.com with no phone numbers. A new demo
feature that should look the same in every product goes in `packages/demo`, not in one app.
- **WhatsApp STOP** (APP-1.0-PLAN decision 11, from Accounts 1.9.0 / Events 3.8.0): STOP means no
WhatsApp from any product, of any kind. Accounts keeps it (`whatsapp_opted_out` in
`user.updated`); every product checks it before sending (Events: `utils/whatsappStop.js`), and
whichever product receives a STOP passes it on with `whatsapp.optout`. The App and the Website
must do the same.
- **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
AFR53/AFR83), copied from the publisher, never reworded. **No AI on Bible text**, ever: Crossway and Biblica forbid it.
- **A new Events install never takes over an existing database**: moving an existing site is
`adopt`, not a New install pointed at the old database.
- **Prisma in the monorepo:** each app other than Events sets its own generator `output`, so
@@ -168,6 +243,11 @@ rollout.
address there doesn't change the Hub's domain for the install or FastPanel.
- **Demo data keeps the links** to the church's other products (`KEEP_TABLES` in
`apps/events/backend/scripts/set-demo.js`). Anything that must survive a demo load goes there.
- **A local PostgreSQL** is on the dev machine (`temp/database details.txt`, git-ignored; the user is
`postgres`, the file says `postges`). Use a throwaway database per check (`cc_<app>_<version>_check`),
run `prisma migrate deploy` and `prisma migrate diff --from-config-datasource --to-schema …`, and drop
it afterwards. Never print the password. Events' database has an older drift on
`_EventNotifyRecipients` (an index Prisma now wants as a primary key), not from 3.8.0.
- **Releasing:** branch → merge → tag (`<product>@<version>` here, `v<version>` in events-hub and
crosscode-site) → push, with a CHANGELOG entry, and `npm run check` first. Pushes to c-git often
fail authentication the first time; retry once. A push can also hang waiting on a login prompt
+2 -2
View File
@@ -641,8 +641,8 @@ Planned in [AGENT-1.0-PLAN.md](./AGENT-1.0-PLAN.md). In short:
| 2 | **Cross Events 2.4.0** | Reports `product: "events"` (protocol v2), **Linked products**, the event feed (publish + show events from siblings), `packages/seo` (§11) with canonical links for imported events. **Planned and built 2026-11-18:** [EVENTS-2.4-PLAN.md](./EVENTS-2.4-PLAN.md) (also needs contracts 1.4.0 and Hub 2.2.0, for a public key in the v2 heartbeat); not tagged yet | Small; ready for when the Website exists |
| 3 | **Accounts 1.0.0** | OIDC provider, sign-in, 2FA (email, WhatsApp, authenticator app), password reset, consent and notice, export / delete fan-out, admin, install script. [ACCOUNTS-1.0-PLAN.md](./ACCOUNTS-1.0-PLAN.md) (with contracts 1.5.0, `packages/auth-client`, Hub 2.3.0). **Released 2026-11-18** (`accounts@1.0.0`, 1.0.1 on 2026-11-19); the VM test and a run on real Postgres are still to do before a church gets it | Every later product signs in through it |
| 4 | **Cross Events 3.0.0** | Sign-in moves to Accounts; user migration keeping password hashes; migration guide. **Planned 2026-11-19:** [EVENTS-3.0-PLAN.md](./EVENTS-3.0-PLAN.md) (with contracts 1.8.0, Accounts 1.1.0, Hub 2.5.0; decisions confirmed 2026-11-19) | Breaking change, so a major version. **Moved before the Website on 2026-11-19** (decision 38): Events is the product churches use today, so Accounts is proven on real users first, and the Website then starts with a church whose people already have accounts |
| 5 | **Church Website 1.0.0** | Public site with the **four templates** (§6), admin, simple events + feed, SEO (§11), Hope Family Church as the first church, then a second test church on a different template to prove it repeats. **Planned 2026-11-21:** [WEBSITE-1.0-PLAN.md](./WEBSITE-1.0-PLAN.md) (with contracts 1.17.0, Accounts 1.7.0, Events 3.7.0 for the shared fonts and footer, Hub 2.21.0) | More churches need a website than an app; it also covers the "website only" case. Built on Accounts from day one |
| 6 | **Church App 1.0.0** | Foundation (PWA, branding, Accounts), House of Prayer, announcements, devotionals, events (simple + feed) | Starts with shared users and the feed already in place |
| 5 | **Church Website 1.0.0** | Public site with the **four templates** (§6), admin, simple events + feed, SEO (§11), Hope Family Church as the first church, then a second test church on a different template to prove it repeats. **Planned 2026-11-21:** [WEBSITE-1.0-PLAN.md](./WEBSITE-1.0-PLAN.md) (with contracts 1.17.0, Accounts 1.7.0, Events 3.7.0 for the shared fonts and footer, Hub 2.21.0). **Released 2026-11-26, done 2026-11-30** (Hope Family Church and a second church live, crosscode-site sells it) | More churches need a website than an app; it also covers the "website only" case. Built on Accounts from day one |
| 6 | **Church App 1.0.0** | Foundation (PWA, branding, Accounts), House of Prayer, announcements, devotionals, events (simple + feed). **Planned 2026-11-30:** [APP-1.0-PLAN.md](./APP-1.0-PLAN.md) (with contracts 1.20.0 and 1.21.0, Accounts 1.9.0, Events 3.8.0, Website 1.8.0, agent 1.7.0, Hub 2.26.0; also **demo scenarios**: eight preset churches loaded into every product of a demo client). contracts 1.20.0 / 1.21.0, Accounts 1.9.0 and Events 3.8.0 **released 2026-11-30** | Starts with shared users and the feed already in place |
| 7 | Church App 1.x | Reading plans, sermons, groups, pastoral care, serving, giving links, directory | After House of Prayer is in use |
Each phase adds help content, audit log entries, tests, a CHANGELOG entry and updates to the
+8 -1
View File
@@ -14,7 +14,7 @@ separately below; the two often differ.
| Church Website | `crosscode-platform` (`apps/website`) | **1.7.1** | `website@1.7.1` | 2026-11-28 |
| Accounts | `crosscode-platform` (`apps/accounts`) | **1.9.0** | `accounts@1.9.0` | 2026-11-30 |
| Server agent | `crosscode-platform` (`apps/agent`) | **1.6.0** | `agent@1.6.0` | 2026-11-27 |
| Contracts | `crosscode-platform` (`packages/contracts`) | **1.21.0** | `contracts@1.21.0` | 2026-11-30 |
| Contracts | `crosscode-platform` (`packages/contracts`) | **1.22.0** | `contracts@1.22.0` | 2026-11-30 |
| Cross Code Hub | `events-hub` | **2.25.1** | `v2.25.1` | 2026-11-27 |
| crosscode.co.za | `crosscode-site` | **1.9.1** | `v1.9.1` | 2026-11-27 |
| `crosscode` script | `crosscode-platform` (`scripts/`) | `main` | none | 2026-11-30 (last change: Events takes the demo scenarios as profiles, `crosscode demo <church> accounts`, `--scenario` on every demo, Accounts and Events build `packages/demo`) |
@@ -39,6 +39,13 @@ need their own tags until something outside this repo depends on them.
## What each latest release was for
- **Contracts 1.22.0 (2026-11-30):** only free Bible translations in App 1.0 (KJV and the new
Berean Standard Bible, `licence`, `FREE_BIBLE_TRANSLATION_IDS`, the CSV import's `translations`);
the Bible publishers' exact notices for the Church App's
devotionals (NLT, ESV, AFR53 and AFR83 corrected; `AFR83` named "Afrikaans 1983/1992-vertaling"),
the Bible Society's disclaimer, an `acknowledgement`, `publisher` and `permissionsUrl` per
translation, `FREE_QUOTE_VERSES` and `quotedVerses` ([BIBLE-PERMISSIONS.md](./BIBLE-PERMISSIONS.md)).
Nothing uses them yet: the Hub 2.26.0 and the App 1.0.0 will. Checked: `npm run check`.
- **Cross Events 3.8.0 + `@crosscode/demo` 1.1.0 + crosscode script (2026-11-30):** STOP to the
church's WhatsApp number stops all WhatsApp from Events (event updates, tickets and codes too;
codes by email), checked before every message, passed on to Accounts and read back from it
+1 -1
View File
@@ -23191,7 +23191,7 @@
},
"packages/contracts": {
"name": "@crosscode/contracts",
"version": "1.21.0",
"version": "1.22.0",
"license": "UNLICENSED",
"dependencies": {
"zod": "^4.6.7"
+1 -1
View File
@@ -16,7 +16,7 @@ Events and the Hub, uses it, so the key fields are the same in every product's J
| Hub protocol v2 | `protocolVersion: 2` | Register, heartbeat (stats per product), linked products, update requests, AI, licence token | `src/hub.ts` (exported as `hub`) |
| Env template | `crosscode.env-template/1` | Each product's `.env` variables by layer; `missingRequired` and, from 1.6.0, `checkEnvValue` / `invalidValues` (values an app can't start with, e.g. `TRUST_PROXY=TRUE`), which the Hub checks before a job | `src/agent.ts` (exported as `agent`) |
| Devotional | `crosscode.devotional/1` | From 1.20.0: one day's devotional for the Church App (Cross Code's from the Hub at `GET /api/v2/devotionals`, or the church's own), the CSV import's columns and row checks (`checkDevotionalCsv`, `DEVOTIONAL_CSV_TEMPLATE`), shared by the Hub and the App | `src/devotional.ts` |
| Bible passages | — | From 1.20.0: the 66 books (USFM codes, English and Afrikaans names), the seven translations with their YouVersion ids and copyright lines, `parseBibleReference`, `formatBibleReference`, `youVersionUrl` | `src/bible.ts` |
| Bible passages | — | From 1.20.0: the 66 books (USFM codes, English and Afrikaans names), the seven translations with their YouVersion ids and copyright lines, `parseBibleReference`, `formatBibleReference`, `youVersionUrl`. From 1.22.0: the Berean Standard Bible, `licence` and `FREE_BIBLE_TRANSLATION_IDS` (only those in App 1.0), each publisher's exact notices (`copyright` under the verse, `acknowledgement`, the Bible Society's `disclaimer`), who to ask (`publisher`, `permissionsUrl`), `FREE_QUOTE_VERSES` and `quotedVerses` (docs/BIBLE-PERMISSIONS.md) | `src/bible.ts` |
| Demo scenarios | — | From 1.21.0: `agent.DEMO_SCENARIOS`, eight preset churches that load every product of a demo client alike (Accounts first, `DEMO_SCENARIO_ORDER`), each product's profiles, the minimum releases and agent; `seed-demo` takes `scenario` | `src/agent.ts` (exported as `agent`) |
| Signing | — | HMAC request signing for the Hub and for product links (Node only) | `src/signing.ts` (`@crosscode/contracts/signing`) |
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@crosscode/contracts",
"version": "1.21.0",
"version": "1.22.0",
"description": "The shared JSON formats used by every Cross Code product: zod schemas, JSON Schema, TypeScript types and sample payloads",
"license": "UNLICENSED",
"type": "commonjs",
@@ -12,8 +12,8 @@
"passage": {
"reference": "1 Corinthians 13:4–7",
"location": { "book": "1CO", "chapter": 13, "verse": 4, "endChapter": 13, "endVerse": 7 },
"translation": "NLT",
"text": "Love is patient and kind. Love is not jealous or boastful or proud or rude. It does not demand its own way. It is not irritable, and it keeps no record of being wronged. It does not rejoice about injustice but rejoices whenever the truth wins out. Love never gives up, never loses faith, is always hopeful, and endures through every circumstance."
"translation": "BSB",
"text": "Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It is not rude, it is not self-seeking, it is not easily angered, it keeps no account of wrongs. Love takes no pleasure in evil, but rejoices in the truth. It bears all things, believes all things, hopes all things, endures all things."
},
"body": "Paul wrote these words to a church that was proud of its gifts.\n\nLove is the gift that makes the others worth having.",
"prayer": "Lord, teach me to love the way you love me.",
@@ -25,14 +25,14 @@
"id": "4c5d6e7f-8a9b-4c0d-9e1f-3a4b5c6d7e8f",
"source": "crosscode",
"date": "2027-01-06",
"title": "Die Here is my herder",
"title": "The Lord is my shepherd",
"passage": {
"reference": "Psalms 23:1–3",
"location": { "book": "PSA", "chapter": 23, "verse": 1, "endChapter": 23, "endVerse": 3 },
"translation": "AFR83",
"text": "Die Here is my herder, ek kom niks kort nie. Hy laat my rus in groen weivelde. Hy bring my by waters waar daar vrede is. Hy gee my nuwe krag. Hy lei my op die regte paaie tot eer van sy Naam."
"translation": "KJV",
"text": "The LORD is my shepherd; I shall not want. He maketh me to lie down in green pastures: he leadeth me beside the still waters. He restoreth my soul: he leadeth me in the paths of righteousness for his name's sake."
},
"body": "Vandag herinner Dawid ons dat ons nie alleen loop nie.",
"body": "Today David reminds us that we never walk alone.",
"prayer": null,
"author": null,
"updatedAt": "2026-12-01T10:00:00.000Z"
@@ -1965,7 +1965,8 @@
"NKJV",
"KJV",
"AFR53",
"AFR83"
"AFR83",
"BSB"
]
},
"text": {
+2 -1
View File
@@ -133,7 +133,8 @@
"NKJV",
"KJV",
"AFR53",
"AFR83"
"AFR83",
"BSB"
]
},
"text": {
@@ -153,7 +153,8 @@
"NKJV",
"KJV",
"AFR53",
"AFR83"
"AFR83",
"BSB"
]
},
"text": {
+1 -1
View File
@@ -169,7 +169,7 @@ export const DEMO_SCENARIOS: readonly DemoScenario[] = [
}),
scenario("community-town", {
church: "Karoo Gemeenskapskerk", label: "Community: Karoo Gemeenskapskerk, a country-town church",
description: "Mostly Afrikaans. A bazaar and a prayer breakfast, its own AFR83 devotionals, 30-minute prayer slots.",
description: "Mostly Afrikaans. A bazaar and a prayer breakfast, its own Afrikaans devotionals, 30-minute prayer slots.",
campuses: 1, language: "af", appActiveMembers: "101–300",
}),
scenario("clean-modern", {
+66 -7
View File
@@ -14,37 +14,85 @@ import { z } from "zod";
/**
* The translations a devotional can use. An id never changes once released; more can be added.
* `youVersionId` is the version's number on bible.com (`bible.com/bible/<id>/JHN.3.16.<abbr>`).
* `copyright` is shown under the verse wherever it's quoted. Check each publisher's terms for use
* in an app before Cross Code's devotionals go out (APP-1.0-PLAN, "Still open").
*
* The notices are the publishers' own wording (checked 2026-11-30, docs/BIBLE-PERMISSIONS.md):
* - `copyright` is shown under the verse, wherever it's quoted.
* - `acknowledgement` is the full notice, for the App's Acknowledgements page (the Bible Society
* asks for the long form there and allows the short one next to the text).
* - `disclaimer`, where not null, goes with the notice whenever the translation is quoted next to
* content the publisher hasn't approved, which is every devotional (Bible Society, §6.4).
* - `publisher` and `permissionsUrl`: who to ask past the free allowance (`FREE_QUOTE_VERSES`).
* - `licence`: "public-domain" may be used freely; "permission" needs the publisher's written
* permission for our use. **App 1.0 and the Hub offer only the public-domain ones**
* (`FREE_BIBLE_TRANSLATION_IDS`, decided by Joshua 2026-11-30); the others stay in the list,
* ids unchanged, for when a publisher says yes.
*
* None of these lets Cross Code quote past that allowance: that needs each publisher's written
* permission (docs/BIBLE-PERMISSIONS.md). Never send a passage's text to an AI feature: Crossway
* (ESV) and Biblica (NIV) forbid it outright without a separate licence.
*/
const BIBLE_SOCIETY_DISCLAIMER_AF =
"Die Bybelgenootskap van Suid-Afrika verklaar hiermee dat die mening, sienings en teologiese standpunte in die bykomende materiaal in hierdie publikasie nie noodwendig dié van die Bybelgenootskap van Suid-Afrika weerspieël nie. Die Bybelgenootskap van Suid-Afrika onderskryf nie die gebruik van Bybelteks op enige manier of op enige platform wat moontlik as antichristelik beskou kan word of wat onwettige aktiwiteite bevorder.";
const BIBLE_SOCIETY = { licence: "permission", publisher: "Bible Society of South Africa", permissionsUrl: "https://biblesociety.co.za/index/copyright-and-permissions/" } as const;
export const BIBLE_TRANSLATIONS = [
{
id: "NLT", name: "New Living Translation", language: "en", youVersionId: 116,
copyright: "Scripture quotations are taken from the Holy Bible, New Living Translation, copyright © 1996, 2004, 2015 by Tyndale House Foundation. Used by permission of Tyndale House Publishers, Carol Stream, Illinois 60188. All rights reserved.",
copyright: "Scripture quotations are taken from the Holy Bible, New Living Translation, copyright © 1996, 2004, 2015 by Tyndale House Ministries. Used by permission. All rights reserved.",
acknowledgement: "Scripture quotations marked (NLT) are taken from the Holy Bible, New Living Translation, copyright © 1996, 2004, 2015 by Tyndale House Ministries. Used by permission. All rights reserved.",
disclaimer: null,
licence: "permission", publisher: "Tyndale House Publishers", permissionsUrl: "https://www.tyndale.com/permissions",
},
{
id: "ESV", name: "English Standard Version", language: "en", youVersionId: 59,
copyright: "Scripture quotations are from the ESV® Bible (The Holy Bible, English Standard Version®), © 2001 by Crossway, a publishing ministry of Good News Publishers. Used by permission. All rights reserved.",
copyright: "Scripture quotations are from the ESV® Bible (The Holy Bible, English Standard Version®), © 2001 by Crossway, a publishing ministry of Good News Publishers. ESV Text Edition: 2025. The ESV text may not be quoted in any publication made available to the public by a Creative Commons license. The ESV may not be translated in whole or in part into any other language. Used by permission. All rights reserved.",
acknowledgement: "Scripture quotations marked (ESV) are from the ESV® Bible (The Holy Bible, English Standard Version®), © 2001 by Crossway, a publishing ministry of Good News Publishers. ESV Text Edition: 2025. The ESV text may not be quoted in any publication made available to the public by a Creative Commons license. The ESV may not be translated in whole or in part into any other language. Used by permission. All rights reserved.",
disclaimer: null,
licence: "permission", publisher: "Crossway", permissionsUrl: "https://www.crossway.org/permissions/digital/",
},
{
id: "NIV", name: "New International Version", language: "en", youVersionId: 111,
copyright: "Scripture quotations taken from The Holy Bible, New International Version® NIV®. Copyright © 1973, 1978, 1984, 2011 by Biblica, Inc.™ Used by permission. All rights reserved worldwide.",
acknowledgement: "Scripture quotations marked (NIV) are taken from The Holy Bible, New International Version® NIV®. Copyright © 1973, 1978, 1984, 2011 by Biblica, Inc.™ Used by permission. All rights reserved worldwide.",
disclaimer: null,
licence: "permission", publisher: "Biblica, Inc.", permissionsUrl: "https://www.biblica.com/permissions/",
},
{
id: "NKJV", name: "New King James Version", language: "en", youVersionId: 114,
copyright: "Scripture taken from the New King James Version®. Copyright © 1982 by Thomas Nelson. Used by permission. All rights reserved.",
acknowledgement: "Scripture marked (NKJV) taken from the New King James Version®. Copyright © 1982 by Thomas Nelson. Used by permission. All rights reserved.",
disclaimer: null,
licence: "permission", publisher: "HarperCollins Christian Publishing (Thomas Nelson)", permissionsUrl: "https://www.harpercollinschristian.com/sales-and-rights/permissions/",
},
{
id: "KJV", name: "King James Version", language: "en", youVersionId: 1,
copyright: "King James Version. Public domain.",
acknowledgement: "Scripture quotations marked (KJV) are from the King James Version, which is in the public domain.",
disclaimer: null,
licence: "public-domain", publisher: null, permissionsUrl: null,
},
{
id: "AFR53", name: "Afrikaans 1933/1953-vertaling", language: "af", youVersionId: 5,
copyright: "Die Bybel in Afrikaans, 1933/1953-vertaling. © Bybelgenootskap van Suid-Afrika. Gebruik met toestemming.",
copyright: "Bybel in Afrikaans 1933/1953-vertaling © Bybelgenootskap van Suid-Afrika 1933, 1953. Digitale Weergawe © Bybelgenootskap van Suid-Afrika 2012. Alle regte voorbehou. www.biblesociety.co.za / www.biblesa.co.za.",
acknowledgement: "Skrifaanhalings geneem uit die Bybel in Afrikaans 1933/1953-vertaling © Bybelgenootskap van Suid-Afrika 1933, 1953. Digitale Weergawe © Bybelgenootskap van Suid-Afrika 2012. Gebruik met toestemming. Alle regte voorbehou. www.biblesociety.co.za / www.biblesa.co.za. Kontak: copyright@biblesociety.co.za",
disclaimer: BIBLE_SOCIETY_DISCLAIMER_AF,
...BIBLE_SOCIETY,
},
{
id: "AFR83", name: "Afrikaans 1983-vertaling", language: "af", youVersionId: 6,
copyright: "Die Bybel in Afrikaans, 1983-vertaling. © Bybelgenootskap van Suid-Afrika 1983. Gebruik met toestemming.",
id: "AFR83", name: "Afrikaans 1983/1992-vertaling", language: "af", youVersionId: 6,
copyright: "Bybel in Afrikaans 1983-vertaling met herformulerings tot en met 1992 © Bybelgenootskap van Suid-Afrika 1983, 1992. Alle regte voorbehou. www.biblesociety.co.za / www.biblesa.co.za.",
acknowledgement: "Skrifaanhalings geneem uit die Bybel in Afrikaans 1983-vertaling met herformulerings tot en met 1992 © Bybelgenootskap van Suid-Afrika 1983, 1992. Gebruik met toestemming. Alle regte voorbehou. www.biblesociety.co.za / www.biblesa.co.za. Kontak: copyright@biblesociety.co.za",
disclaimer: BIBLE_SOCIETY_DISCLAIMER_AF,
...BIBLE_SOCIETY,
},
{
// Dedicated to the public domain (CC0) on 30 April 2023 (berean.bible/terms.htm). The
// attribution is "appreciated but not required"; the Berean name only for the verbatim text.
id: "BSB", name: "Berean Standard Bible", language: "en", youVersionId: 3034,
copyright: "Berean Standard Bible (BSB). Public domain.",
acknowledgement: "The Holy Bible, Berean Standard Bible, BSB is produced in cooperation with Bible Hub, Discovery Bible, OpenBible.com, and the Berean Bible Translation Committee. This text of God's Word has been dedicated to the public domain.",
disclaimer: null,
licence: "public-domain", publisher: null, permissionsUrl: null,
},
] as const;
@@ -53,6 +101,9 @@ export const BIBLE_TRANSLATION_IDS = BIBLE_TRANSLATIONS.map((t) => t.id) as [Bib
export const bibleTranslationIdSchema = z.enum(BIBLE_TRANSLATION_IDS);
export type BibleTranslationId = z.infer<typeof bibleTranslationIdSchema>;
/** The translations anyone may quote freely: the only ones the Hub and App 1.0 offer. */
export const FREE_BIBLE_TRANSLATION_IDS: readonly BibleTranslationId[] = BIBLE_TRANSLATIONS.filter((t) => t.licence === "public-domain").map((t) => t.id);
export function bibleTranslation(id: BibleTranslationId): BibleTranslation {
return BIBLE_TRANSLATIONS.find((t) => t.id === id)!;
}
@@ -60,6 +111,14 @@ export function bibleTranslation(id: BibleTranslationId): BibleTranslation {
/** A passage longer than this gets a warning: quote the passage, not whole chapters (§6). */
export const PASSAGE_WARN_VERSES = 25;
/**
* What every publisher but the KJV's lets anyone quote without asking, counted across the whole
* work (Biblica: across a whole app or website), with the quotes under 25% of it and never a whole
* book. Cross Code's devotionals, and a church's own, pass it within a few months, so each needs
* the publisher's written permission (docs/BIBLE-PERMISSIONS.md).
*/
export const FREE_QUOTE_VERSES = 500;
// ─── Books ───────────────────────────────────────────────────────────────────
/**
+32 -3
View File
@@ -83,6 +83,30 @@ export function devotionalCopyright(passage: Pick<DevotionalPassage, "translatio
return bibleTranslation(passage.translation).copyright;
}
/** The publisher's disclaimer shown with the copyright line, or null (Bible Society translations only). */
export function devotionalDisclaimer(passage: Pick<DevotionalPassage, "translation">): string | null {
return bibleTranslation(passage.translation).disclaimer;
}
/**
* Verses quoted per translation, for the free allowance (`FREE_QUOTE_VERSES`, counted across the
* whole App). A passage across chapters can't be counted (verse counts per chapter aren't kept)
* and goes in `uncounted`, so a warning can say the total is at least this.
*/
export function quotedVerses(passages: readonly Pick<DevotionalPassage, "location" | "translation">[]): {
verses: Partial<Record<BibleTranslationId, number>>;
uncounted: Partial<Record<BibleTranslationId, number>>;
} {
const verses: Partial<Record<BibleTranslationId, number>> = {};
const uncounted: Partial<Record<BibleTranslationId, number>> = {};
for (const p of passages) {
const n = passageVerseCount(p.location);
if (n === null) uncounted[p.translation] = (uncounted[p.translation] ?? 0) + 1;
else verses[p.translation] = (verses[p.translation] ?? 0) + n;
}
return { verses, uncounted };
}
// ─── CSV import ──────────────────────────────────────────────────────────────
/** The columns, in this order in the template. A file may order them differently. */
@@ -158,6 +182,8 @@ export interface DevotionalCsvOptions {
taken?: Iterable<string>;
/** The last date allowed (the Hub: 3 months from today). Later dates are errors. */
latestDate?: string;
/** The translations allowed (the Hub and App 1.0: `FREE_BIBLE_TRANSLATION_IDS`). Any by default. */
translations?: readonly BibleTranslationId[];
}
/**
@@ -211,7 +237,10 @@ export function checkDevotionalCsv(text: string, options: DevotionalCsvOptions =
const translationText = required("translation", "The translation");
const translation = BIBLE_TRANSLATION_IDS.find((id) => id === translationText.toUpperCase().replace(/\s/g, "")) as BibleTranslationId | undefined;
if (translationText && !translation) errors.push({ column: "translation", message: `"${translationText}" isn't one of ${BIBLE_TRANSLATION_IDS.join(", ")}` });
if (translationText && !translation) errors.push({ column: "translation", message: `"${translationText}" isn't one of ${(options.translations ?? BIBLE_TRANSLATION_IDS).join(", ")}` });
else if (translation && options.translations && !options.translations.includes(translation)) {
errors.push({ column: "translation", message: `${translation} needs ${bibleTranslation(translation).publisher ?? "the publisher"}'s permission; use ${options.translations.join(" or ")}` });
}
const reference = required("passage", "The passage");
const parsed = reference ? parseBibleReference(reference) : null;
@@ -265,8 +294,8 @@ export const DEVOTIONAL_CSV_TEMPLATE = devotionalCsv([{
date: "2027-01-05",
title: "Love that never gives up",
passage: "1 Corinthians 13:4-7",
translation: "NLT",
passage_text: "Love is patient and kind. Love is not jealous or boastful or proud or rude. It does not demand its own way. It is not irritable, and it keeps no record of being wronged. It does not rejoice about injustice but rejoices whenever the truth wins out. Love never gives up, never loses faith, is always hopeful, and endures through every circumstance.",
translation: "BSB",
passage_text: "Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It is not rude, it is not self-seeking, it is not easily angered, it keeps no account of wrongs. Love takes no pleasure in evil, but rejoices in the truth. It bears all things, believes all things, hopes all things, endures all things.",
body: "Paul wrote these words to a church that was proud of its gifts...\n\nA second paragraph after a blank line.",
prayer: "Lord, teach me to love the way you love me.",
author: "Cross Code",
+50 -6
View File
@@ -1,6 +1,6 @@
import {
BIBLE_BOOKS, BIBLE_TRANSLATIONS, DEVOTIONAL_CSV_COLUMNS, DEVOTIONAL_CSV_TEMPLATE, checkDevotionalCsv, devotionalCsv,
devotionalsReplySchema, findBibleBook, formatBibleReference, parseBibleReference, parseCsv, passageVerseCount, youVersionUrl,
BIBLE_BOOKS, BIBLE_TRANSLATIONS, DEVOTIONAL_CSV_COLUMNS, FREE_BIBLE_TRANSLATION_IDS, FREE_QUOTE_VERSES, DEVOTIONAL_CSV_TEMPLATE, checkDevotionalCsv, devotionalCsv,
devotionalDisclaimer, devotionalsReplySchema, findBibleBook, quotedVerses, formatBibleReference, parseBibleReference, parseCsv, passageVerseCount, youVersionUrl,
type PassageLocation,
} from "../src";
import { sample } from "./helpers";
@@ -33,11 +33,47 @@ describe("Bible books and translations", () => {
expect(findBibleBook("Nowhere")).toBeNull();
});
it("has the seven translations, with unique ids and YouVersion numbers", () => {
expect(BIBLE_TRANSLATIONS.map((t) => t.id)).toEqual(["NLT", "ESV", "NIV", "NKJV", "KJV", "AFR53", "AFR83"]);
expect(new Set(BIBLE_TRANSLATIONS.map((t) => t.youVersionId)).size).toBe(7);
it("has the eight translations, with unique ids and YouVersion numbers", () => {
expect(BIBLE_TRANSLATIONS.map((t) => t.id)).toEqual(["NLT", "ESV", "NIV", "NKJV", "KJV", "AFR53", "AFR83", "BSB"]);
expect(new Set(BIBLE_TRANSLATIONS.map((t) => t.youVersionId)).size).toBe(8);
for (const t of BIBLE_TRANSLATIONS) expect(t.copyright.length).toBeGreaterThan(10);
});
it("carries each publisher's notices, with a publisher to ask for all but the public-domain ones", () => {
expect(FREE_BIBLE_TRANSLATION_IDS).toEqual(["KJV", "BSB"]);
for (const t of BIBLE_TRANSLATIONS) {
const free = FREE_BIBLE_TRANSLATION_IDS.includes(t.id);
expect(t.licence).toBe(free ? "public-domain" : "permission");
expect(t.acknowledgement.length).toBeGreaterThan(t.id === "KJV" ? 10 : 50);
expect(t.publisher === null).toBe(free);
expect(t.permissionsUrl === null).toBe(free);
}
expect(youVersionUrl(ok("John 3:16"), "BSB")).toBe("https://www.bible.com/bible/3034/JHN.3.16.BSB");
expect(BIBLE_TRANSLATIONS.find((t) => t.id === "NLT")!.copyright).toContain("Tyndale House Ministries");
expect(BIBLE_TRANSLATIONS.find((t) => t.id === "ESV")!.copyright).toContain("ESV Text Edition: 2025");
expect(FREE_QUOTE_VERSES).toBe(500);
});
it("gives the Bible Society's translations their disclaimer and official names", () => {
for (const t of BIBLE_TRANSLATIONS) {
expect(t.disclaimer !== null).toBe(t.language === "af");
expect(t.acknowledgement).not.toMatch(/Ou Vertaling|Nuwe Vertaling/);
}
expect(devotionalDisclaimer({ translation: "AFR83" })).toContain("Bybelgenootskap van Suid-Afrika verklaar");
expect(devotionalDisclaimer({ translation: "NIV" })).toBeNull();
expect(BIBLE_TRANSLATIONS.find((t) => t.id === "AFR83")!.copyright).toContain("1983-vertaling met herformulerings tot en met 1992");
});
it("counts the verses quoted per translation, passages across chapters apart", () => {
const r = quotedVerses([
{ location: ok("John 3:16-18"), translation: "NIV" },
{ location: ok("Ps 23:1-6"), translation: "NIV" },
{ location: ok("Rom 8:38-9:2"), translation: "NIV" },
{ location: ok("Gen 1:1"), translation: "KJV" },
]);
expect(r.verses).toEqual({ NIV: 9, KJV: 1 });
expect(r.uncounted).toEqual({ NIV: 1 });
});
});
describe("parseBibleReference", () => {
@@ -118,7 +154,15 @@ describe("checkDevotionalCsv", () => {
expect(r.fileError).toBeNull();
expect(r.rows).toHaveLength(1);
expect(r.rows[0]!.errors).toEqual([]);
expect(r.rows[0]!.devotional?.passage).toMatchObject({ reference: "1 Corinthians 13:4–7", translation: "NLT" });
expect(r.rows[0]!.devotional?.passage).toMatchObject({ reference: "1 Corinthians 13:4–7", translation: "BSB" });
expect(checkDevotionalCsv(DEVOTIONAL_CSV_TEMPLATE, { translations: FREE_BIBLE_TRANSLATION_IDS }).rows[0]!.errors).toEqual([]);
});
it("refuses a translation that isn't allowed, naming the publisher to ask", () => {
const r = checkDevotionalCsv(devotionalCsv([row({ translation: "NIV" }), row({ date: "2027-01-06", translation: "kjv" })]), { translations: FREE_BIBLE_TRANSLATION_IDS });
expect(r.rows[0]!.devotional).toBeNull();
expect(r.rows[0]!.errors).toEqual([{ column: "translation", message: "NIV needs Biblica, Inc.'s permission; use KJV or BSB" }]);
expect(r.rows[1]!.devotional?.passage.translation).toBe("KJV");
});
it("turns a good row into a devotional, in the translation's language, empty optional fields null", () => {
+4 -2
View File
@@ -8,8 +8,10 @@ their demo data around the same people (same `sub` in every product: `demoId`).
- `DEMO_CHURCHES`, `demoChurch(scenario)`: each church's profile (name, colours, font pairing,
corners, campuses, service times, contact, social links) and the mark its logo is drawn with.
- `demoPeople(scenario)`: the leads (pastor, office, prayer coordinator…) and members, enough for
the scenario's App active-member band. `demoParts(scenario)`: what each lead does.
the scenario's App active-member band, each with a `gender` (1.1.0, for Events' gendered events)
and a campus where the church has campuses. `demoParts(scenario)`: what each lead does.
- `demoIconSvg`, `demoLogoSvg`: the logo and icon, drawn for the demo.
Everything is fictional: people and church addresses are at `example.com`, there are no phone
numbers, and the password is `Demo@1234`. Ships inside the apps that use it (not tagged).
numbers, and the password is `Demo@1234`. Ships inside the apps that use it (not tagged): Accounts
1.9.0 and Events 3.8.0 so far; the Website and the App next. Each product's install script builds it.