Commit Graph
781 Commits
Author SHA1 Message Date
joshua 9766db1f72 Merge branch 'docs/app-slice-5' 2026-12-01 14:29:44 +02:00
joshuaandClaude Opus 5.5 138abe90f6 docs: App slice 5 done (email and WhatsApp)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 14:29:41 +02:00
joshua 5097d622ff Merge branch 'docs/app-sync-website-1.12.1' 2026-12-01 13:41:29 +02:00
joshuaandClaude Opus 5.5 b0ab0dbcab docs: the App's progress in VERSIONS, @crosscode/seo 1.1.0 on the App branch, Website 1.12.1 in the handover
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:41:17 +02:00
joshua 53f28cd7dd Merge branch 'docs/deployed-website-1.12.1' 2026-12-01 13:38:05 +02:00
joshuaandClaude Opus 5.5 faf6eea39a docs: Website 1.12.1 deployed
Runs on cross-demo2 (2026-12-01): the release entry and the Deployed / rolled out table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:38:04 +02:00
joshua 1e5f345efa Merge branch 'fix/website-map' website@1.12.1 2026-12-01 13:31:48 +02:00
joshua 2e9df29f1e Merge branch 'docs/app-slice-4' 2026-12-01 11:38:54 +02:00
joshuaandClaude Opus 5.5 33088c1377 website 1.12.1: the With map layouts show the map
- Accounts' profile never has the address's geo, so Service times' and Contact's map layouts
  never drew a map. church/geocode.ts looks the address up on OpenStreetMap's Nominatim (the
  street, else the suburb and city) for the public site and the preview, kept in AppSetting
  church_geocode per address; one not found is retried after a day.
- Tests: backend (157, one new, with a stand-in Nominatim).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:38:53 +02:00
joshuaandClaude Opus 5.5 adf9ac7d1e docs: App slice 4 done (announcements, devotionals and events)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:38:40 +02:00
joshua 76a44c9880 Merge branch 'docs/app-slices-2-3' 2026-12-01 11:10:16 +02:00
joshuaandClaude Opus 5.5 07182656b2 docs: App slices 2 and 3 done (House of Prayer, prayer requests); decision 15; deploys caught up
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:10:06 +02:00
joshua bc010fbe33 Merge branch 'docs/deployed-website-1.12.0' 2026-12-01 11:04:41 +02:00
joshuaandClaude Opus 5.5 4ffc6d27f0 docs: Website 1.12.0 deployed
Runs on cross-demo2 (2026-12-01): the release entry and the Deployed / rolled out table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:04:41 +02:00
joshua 50bce1928e Merge branch 'feat/website-page-layouts' website@1.12.0 2026-12-01 11:00:19 +02:00
joshuaandClaude Opus 5.5 777b045053 website 1.12.0: three layouts for each page that lists something
- PAGE_VARIANTS: ministriesPage alternating/cards/list, leadershipPage grid/featured/list,
  eventsPage list/cards/months, messagesPage grid/featured/list, contactPage
  columns/map/cards. Kept in the design's variants beside the homepage sections', so each
  template recommends some and starts a new site on the first (its suggestion), PUT /design
  checks them, and a template switch moves an untouched one.
- A design saved before has none: cleanDesign gives it LEGACY_PAGE_LAYOUTS (the look until
  now), and the site draws a snapshot without them the same way, so nothing changes until a
  church picks one. Contact's map layout without a place on the map draws as two columns.
  Ministries and messages keep their #slug anchors in every layout.
- Admin: the layout at the top of a listing page in Pages, the suggestion marked; Template
  and style gets an Other pages tab with all five.
- Tests: backend (156, five new); e2e page-layouts.spec.ts (every layout in every template,
  axe at phone and desktop; 60 passed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:59:59 +02:00
joshua 43187513d7 Merge branch 'docs/deployed-2026-12-01' 2026-12-01 10:03:01 +02:00
joshuaandClaude Opus 5.5 35c4dd6915 docs: Events 3.9.0, Accounts 1.10.0, Website 1.11.0 and agent 1.7.0 deployed
The latest release of everything runs on the churches, cross-demo2 and both agents
(2026-12-01): the release entries and the Deployed / rolled out table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:02:59 +02:00
joshua b9b2cadcd3 Merge branch 'feat/blocks-layouts-video' website@1.11.0 2026-12-01 09:57:13 +02:00
joshuaandClaude Opus 5.5 f5f778f0d7 website 1.11.0: layouts and backgrounds for the blocks; a video for the top of the page
- Blocks get layouts (BLOCK_VARIANTS: text standard/centred; image and text photo left,
  right or above; quote centred/with a line; call to action centred/banner), stored on
  Section.variant and checked against the type; an unknown one draws as the default, as
  every block looked before. The demo's image-text block id is now image-left.
- Each block has its own background (Section.background, migration
  20261201000000_block_background), in the published source only when set, put back by
  Discard and Restore, drawn as the homepage's (data-bg).
- MP4 uploads up to 20 MB for the hero's Video layout: QuickTime refused, metadata boxes
  (udta, meta, uuid) blanked into free boxes of the same size so where it was filmed is
  gone and the frame offsets hold; size read from tkhd. GET /media lists mime.
- Admin: a block's Layout and Background when open; the hero's Video field (only videos;
  photo fields only photos); the media library shows and takes videos. An upload over the
  limit says so instead of "That request isn't valid."
- Tests: backend (152, three new); e2e for block layouts and a video upload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 09:57:02 +02:00
joshua a38468ba47 Merge branch 'feat/home-sections-on-page' website@1.10.0 2026-12-01 08:56:13 +02:00
joshuaandClaude Opus 5.5 8b1d1da5a9 website 1.10.0: the home page laid out from its editor; photos that match the layout
- Pages → Home: each section's layout and background when it's open, and move up, move down
  and show or hide on its header. They save straight to the design, as Template and style →
  Home page layout does (which keeps them too). Shared lists in admin/layouts.ts.
- A section offers only the photo fields its layout shows: a slot for each (hero: 1 for Photo,
  Video and Split, 3 for Collage, none for Text only); Welcome's photo and pastor and the
  Invitation's photo only for the layouts that use them. Photos for other layouts are kept.
- e2e: the hero opens with /^Top of the page/; a new test for the editor's layout controls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:56:08 +02:00
joshua 101248195f Merge branch 'fix/church-from-accounts' events@3.9.0 website@1.9.0 accounts@1.10.0 2026-12-01 00:54:27 +02:00
joshuaandClaude Opus 5.5 805967a85a events 3.9.0: SVG logos in PDFs (svg-to-pdfkit), the Accounts logo copied for PDFs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 00:54:25 +02:00
joshuaandClaude Opus 5.5 8055e1ec62 events 3.9.0, website 1.9.0, accounts 1.10.0: the church's details from Accounts everywhere
- Events: the Accounts profile's name, logo, icon, colours and contact details win over
  Events' own settings while Accounts is connected (pages, emails, WhatsApp, PDFs); Settings
  shows them read-only with a link to Accounts. The Accounts logo is copied for PDFs (PNG
  and JPEG). Fixes Events keeping its old church after a demo scenario load.
- Website: a background per homepage section in the church's colours; "More info" instead
  of "Register" for events without registration; the shared colour field.
- Accounts: the shared colour field in Church profile.
- @crosscode/ui 0.4.0: ColourField and isHexColour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 00:46:39 +02:00
joshua 799c193fe1 Merge branch 'docs/app-foundation' 2026-12-01 00:25:48 +02:00
joshuaandClaude Opus 5.5 f651ae2530 docs: the Hub runs 2.26.1 with two years of devotionals; App 1.0.0 on feat/app-scaffold
- Apps get 2 weeks of Cross Code's devotionals, today included.
- The App is built in slices on feat/app-scaffold (pushed, merged into
  main only when app@1.0.0 is done); the foundation is done.
- VERSIONS: the Hub at 2.26.1 in "Deployed / rolled out".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 00:25:48 +02:00
joshua 74dee881e4 Merge branch 'docs/handover-2.26.1' 2026-11-30 23:38:48 +02:00
joshuaandClaude Opus 5.5 969d0110a1 docs: Hub 2.26.1 and contracts 1.24.0 in the handover, plan and roadmap
The devotionals' two years ahead and 2-week fetch as a thing to
remember; the December CSV ready to import once the Hub is deployed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 23:38:47 +02:00
joshua fd097d8446 Merge branch 'feat/devotionals-two-years' contracts@1.24.0 2026-11-30 23:23:19 +02:00
joshuaandClaude Opus 5.5 9cf2956aff contracts 1.24.0: devotionals two years ahead; Apps fetch 2 weeks
CROSSCODE_DEVOTIONALS_SCHEDULE_MONTHS (24) for how far ahead the Hub
schedules Cross Code's devotionals, CROSSCODE_DEVOTIONALS_FETCH_DAYS (14)
for what GET /api/v2/devotionals answers. The CSV takes 800 rows and
8 MB, so two years fit in one file. CROSSCODE_DEVOTIONALS_AHEAD_MONTHS
kept, deprecated. Docs: Hub 2.26.1, hub-protocol.md §3c, the App plan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 23:23:18 +02:00
joshua 986d69d51d Merge branch 'docs/hub-2.26' 2026-11-30 22:25:15 +02:00
joshuaandClaude Opus 5.5 d3789f9b30 docs: Hub 2.26.0 released; devotionals endpoint in hub-protocol.md
Hub 2.26.0 (the App from New install, demo scenarios, devotionals) in
VERSIONS.md, the handover and APP-1.0-PLAN, not deployed yet; §3c in
hub-protocol.md for GET /api/v2/devotionals (same as events-hub's copy).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:25:15 +02:00
joshua ce169851f7 Merge branch 'docs/phase6-website-agent' 2026-11-30 16:30:02 +02:00
joshuaandClaude Opus 5.5 0b518761b7 docs: Website 1.8.0, agent 1.7.0 and contracts 1.23.0 in every handover and plan
ROADMAP phase 6, the root README (packages/demo in the Website), the contracts README
(seed-scenario), AGENT-1.0-PLAN's job table (seed-demo for every product, seed-scenario),
VERSIONS' Website row, and HANDOVER's demo-scenario rule (one job, whatever is installed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:29:58 +02:00
joshua a5e3a6bb6c Merge branch 'feat/agent-1.7' contracts@1.23.0 agent@1.7.0 2026-11-30 16:25:32 +02:00
joshuaandClaude Opus 5.5 2e8e4c04ca agent 1.7.0 + contracts 1.23.0: a demo scenario seeds whatever the church has installed
- contracts 1.23.0: the seed-scenario job (church, scenario, optional adminEmail; 45 minutes),
  SEED_SCENARIO_JOB_MIN_AGENT 1.7.0.
- agent 1.7.0: seed-scenario -> `crosscode demo <church> --scenario <s>`; seed-demo for
  accounts and app, and --scenario passed on to every product.
- crosscode script: `crosscode demo <church> --scenario <s>` loads the scenario on every product
  the church has here (Accounts, Events, the Website, the App), skipping the rest; every
  installed release checked first; the first failure stops the rest and names what's out of
  step (loaded / skipped in the report). `crosscode demo <church> app` says the App's demo comes
  with App 1.0.0.
- Docs: HANDOVER, APP-1.0-PLAN, VERSIONS, CHANGELOG, agent What's New.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:25:31 +02:00
joshua 7391f97cfa Merge branch 'feat/website-1.8' website@1.8.0 2026-11-30 15:25:51 +02:00
joshuaandClaude Opus 5.5 c8e270dbf1 website 1.8.0: demo scenarios (the scenario's people lead, Events' events through the feed)
- `npm run demo -- --profile <p> --scenario <p>`: each profile's `scenarioTeam` names four
  parts, roles and portraits; the names are the scenario's people from @crosscode/demo, the
  pastor first (home page and messages' speaker).
- With a linked Cross Events, a scenario load makes no events of its own, turns on Show events
  from and fetches Events' whole feed at once; an unreachable Events doesn't fail the load.
- A scenario on a site with no church profile saves the scenario's church, not Acacia Hill.
- crosscode script: `crosscode demo <church> website --scenario` passes it on and refuses a
  Website before 1.8.0; the Website installs and builds packages/demo.
- Docs: HANDOVER, APP-1.0-PLAN, VERSIONS, CHANGELOGs, What's New.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 15:23:12 +02:00
joshua b2a163bb39 Merge branch 'feat/contracts-1.22-bible-notices' contracts@1.22.0 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
joshua e32d9ecb09 Merge branch 'feat/events-3.8' events@3.8.0 2026-11-30 11:42:19 +02:00
joshuaandClaude Opus 5.5 49153e6f07 Events 3.8.0, @crosscode/demo 1.1.0: STOP stops all WhatsApp, demo scenarios
Events 3.8.0 (one migration):
- STOP to the church's WhatsApp number stops all WhatsApp, not only news:
  checked before every sendText/sendPdf against WhatsAppStop (by number) and
  User.whatsappOptedOut (from Accounts' user.updated); 2FA codes go by email
- a STOP received here is passed on to Accounts (whatsapp.optout); START turns
  it back on without Accounts; Accounts turning it back on clears it here
- the eight demo scenarios as set-demo profiles, around each church's own
  people (@crosscode/demo, same accounts as Accounts) and campuses; the
  scenario's people are never removed from Accounts

@crosscode/demo 1.1.0: each person's gender.
crosscode script: scenarios as Events demo profiles; Events builds packages/demo.

Checked on PostgreSQL 18: the migration and every scenario loaded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:42:17 +02:00
joshua 5b9dc559b6 Merge branch 'feat/accounts-1.9' accounts@1.9.0 2026-11-30 11:05:24 +02:00
joshuaandClaude Opus 5.5 ad488c3280 Accounts 1.9.0, @crosscode/demo 1.0.0: messaging.get, WhatsApp opt-out, demo scenarios
Accounts 1.9.0 (one migration):
- messaging.get (sealed settings) and the messaging.changed hint to products
  that asked, on admin or product changes
- the WhatsApp opt-out for every product: whatsapp.optout, Accounts' own WAWP
  webhook, WhatsAppOptOut kept per number, whatsapp_opted_out in user.updated,
  no WhatsApp from Accounts to an opted-out person, "Turn WhatsApp back on"
- demo scenarios: npm run demo -- --profile <scenario> --force replaces the
  church profile (with an SVG logo and icon at /api/demo-assets/) and the demo
  people, ids kept across loads

@crosscode/demo 1.0.0 (new): the eight scenarios' churches, people and logos.

crosscode script: crosscode demo <church> accounts, --scenario on every demo,
Accounts installs and builds packages/demo.

Checked on PostgreSQL 18: migrations, scenario loads, opt-out, npm run demo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:05:22 +02:00
joshua 50ac7fab33 Merge branch 'feat/contracts-1.21' contracts@1.21.0 2026-11-30 10:11:48 +02:00
joshuaandClaude Opus 5.5 7032e16894 contracts 1.21.0: demo scenarios, eight churches across every product
agent.DEMO_SCENARIOS (one per Website demo profile, each its own fictional
church), DEMO_SCENARIO_ORDER (Accounts first), DEMO_SCENARIO_MIN_VERSIONS,
scenario in seed-demo, accounts in DEMO_PRODUCTS, a profile per scenario for
Events and the App, SEED_SCENARIO_MIN_AGENT (1.7.0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:11:46 +02:00
joshua b720706143 Merge branch 'docs/app-demo-scenarios' 2026-11-30 10:03:36 +02:00