Me → What the App sends me (email, WhatsApp, both or off per kind, the
devotional's time; WhatsApp only to a verified number that hasn't replied
STOP), today's devotional offered once on Home after the first sign-in, the
booking sheet picking WhatsApp for reminders when it reaches the member, and
Admin → Email and WhatsApp (what it sends from, where it's changed, Fetch
again, Send me a test, messages waiting and not sent).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The church's one set of settings from Accounts (messaging.get; the SMTP
password and WAWP token sealed with the link's secret, kept encrypted in
AppSetting messaging_settings), fetched when the App links to Accounts, on
Accounts' signed messaging.changed, once a day and on the admin's Fetch again.
messages-send (every minute): the outbox by email (nodemailer) and WhatsApp
(WAWP), STOP checked before every WhatsApp (the member and anyone with the
same number), email instead for what a member asked for (never
announcements), retries after 2, 4, 8 and 16 minutes, a reminder never after
its slot started, nothing more than 3 days late. announcement-sends and
devotional-sends queue "Also send it" at the publish time and today's
devotional at each member's time. Members' choices (NotificationSettings),
news consent kept from Accounts, MessageCount for the heartbeat's messages,
the admin's Email and WhatsApp API with Send a test.
Migration messaging (checked on PostgreSQL 18). 110 backend tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
Public pages: Home with today's devotional, the latest announcements (pinned
first) and what's on; Announcements and each one's page (markdown without
HTML, a button, Article JSON-LD; members-only ones ask for a sign-in and are
noindex); Devotional (the passage in full with its copyright line, Read in
YouVersion, the prayer), each day's page, the archive by month and the
Acknowledgements; Events and each one's page (Register on the Events site for
Cross Events', a canonical to the origin, Event JSON-LD on the App's own).
A sitemap of the public pages, named in robots.txt.
Admin: Announcements (schedule, end, pin, campus, who sees it, also send it),
Events (simple events, Linked products: publish and show events from), and
Devotionals (Cross Code's or our own, Sync now, a month's days, writing, the
CSV import with its preview, keep or replace days already filled).
@crosscode/seo 1.1.0: articleJsonLd. The backend gives the App's own address
and the sitemap's list, and a simple event's crosscode.event/1 for its page.
Checked in a browser on a throwaway PostgreSQL: the pages for a visitor, the
JSON-LD, a members-only announcement asking for a sign-in, the sitemap, a
Content admin publishing an announcement and a Devotional writer saving one;
no page errors. 94 backend tests, 19 seo tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Announcements: public or members-only, pinned, a campus, a publish time and an
end, an optional button, markdown text; Content admins write them; the
heartbeat counts the last 30 days; "also send it" flags kept for §8.
Devotionals: Cross Code's from the Hub each night and on Sync now (the next
2 weeks from today in the church's timezone, with the licence; exactly those
days replaced, the rest kept, a Hub outage changes nothing), or the church's
own by its Devotional writers, by hand or the same CSV import as the Hub's
(preview, then replace or skip days already filled). Only KJV and BSB; the
passage with its copyright line and Read in YouVersion; today's or the most
recent; the archive by month; members-only ones; the acknowledgements.
Events: simple events in the church's timezone, and the feed both ways as the
Website's (publish its own as crosscode.event/1 with removals; read-only copies
of Cross Events' and the Website's, Register on the Events site, canonical to
the origin). Jobs event-feed (15 min) and crosscode-devotionals (01:15).
Migration 20261204000000_content (checked on PostgreSQL 18: applies, no diff).
93 backend tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ask for prayer (who will see it said plainly, the prayer team by default; for
members the first name or Anonymous, approved first; fully anonymous when the
church allows it; the emergency numbers, signed out too), Pray for others (the
shared list with "I prayed"), My prayer requests (state, what the team changed
or why it wasn't shared, the team's private replies, "Answered!", close,
delete). The admin's Prayer requests: waiting, open, escalated and closed;
approve, edit out details, don't share, reply, escalate; the settings. Pastoral
care sees open and escalated requests. The Prayer tab shows with either prayer
module and opens requests when the House of Prayer is off.
Checked in a browser on a throwaway PostgreSQL: a member asks, a coordinator
edits out a name and approves, another member sees the edited text and prays,
the sender sees the note and the count but not who; no page errors.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
Private by default (the prayer team only) or shared with members after a
coordinator approves it, with the first name or "Anonymous"; fully anonymous
requests when the church allows them (off by default). Coordinators approve,
redact (the sender told what changed) or remove (with a reason); anyone on the
team can escalate to Pastoral care (email and WhatsApp at once, an Owner or
Church admin when nobody has the role): it leaves the shared list and the sender
sees nothing different. "I prayed" counts without who, "Answered!" updates,
private replies from the team, closing after 30 days (7-90) and deletion 12
months later (prayer-requests-tidy). Every list with a sender is access-logged;
messages never carry a request's text; nothing in the heartbeat. Export and
delete for a member's requests. Shared helpers: parse (http.ts), accessLog
(lib/accessLog.ts). Migration 20261203000000_prayer_requests (checked on
PostgreSQL 18: applies, no diff). 78 backend tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 24-hour clock on the Prayer tab (midnight at the top, the night half darker,
open slots dashed, your own in gold, a hand at now), live over the stream with
polling as the fallback; tap an hour for Cover it / Join, the open hours as
buttons; signed out, back from Accounts with that slot's sheet open. The booking
sheet (once, every week, every day; length, end, reminder and channel, a note),
Me → My prayer (skip, add back, reminder, end date, stop, renew, "I prayed"),
the renew and "I prayed" link pages, sharing a testimony, Home's small clock
with the next gap and your next slot, the campaign card. The admin's House of
Prayer: the week, who prays when (names, access-logged), booking for a member,
the rules, campaigns, testimonies.
Checked in a browser on a throwaway PostgreSQL: one member books through the
sheet and a visitor's clock updates live; no page errors.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Commitments stored as rules (start, length, once/daily/weekly, end, skips) in the
church's timezone, daylight saving included; the day's coverage as counts only,
cached until a booking changes, live over server-sent events (X-Accel-Buffering
off, a comment every 25 s). Booking, skipping, changing, cancelling within the
8-hour rule, renewing (a signed single-use link), "I prayed" (self-reported).
Campaigns and moderated testimonies; the admin's bookings with names, always
access-logged; booking on a member's behalf. Reminders (every minute) and
renewal notices (14 and 3 days before) queued in an outbox for the messaging
slice. The heartbeat's prayer counts; export and delete for a member's prayer.
Migration 20261202000000_house_of_prayer (checked on PostgreSQL 18: applies, no
diff). 66 backend tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
- 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>
- 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>
- 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>
- 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>
apps/app (not released; app@1.0.0 is built in slices, APP-1.0-PLAN §15):
- backend (Express, Prisma, pg-boss, as the Website): the Hub client
(CCP-, product app, the active-member band in the heartbeat), links
and church.changed, sign-in through Accounts (everyone a Member; 8 days
renewed up to 90; every role only with 2FA; the first Owner from
HUB_ADMIN_EMAIL), Accounts' user.updated/export/deleted, active members
once a day, modules on and off, GET /api/v1/app. Migration init.
- frontend (Next.js 16): header, tab bar, footer, manifest and icons from
the church profile, service worker, Add to home screen, Me, the admin's
first dashboard.
- env.template.json, PM2 template, README, CHANGELOG, WHATS-NEW; 27 tests.
Docs: the Hub runs 2.26.1 with two years of Cross Code's devotionals; an
App gets 2 weeks, today included. HANDOVER lists the App's slices.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>