app: announcements, devotionals and events' screens; @crosscode/seo 1.1.0 (APP-1.0-PLAN §5-§7)

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>
This commit is contained in:
2026-12-01 11:36:41 +02:00
co-authored by Claude Opus 5.5
parent a9079f1195
commit 0ac6827ddd
43 changed files with 1482 additions and 30 deletions
+6 -4
View File
@@ -8,7 +8,7 @@ and notification settings need a sign-in through the church's Accounts. The admi
**State:** being built (from 2026-12-01) on the branch `feat/app-scaffold`, which is merged into
main only when `app@1.0.0` is done (main keeps a placeholder until then). Not released;
`app@1.0.0` is tagged when the plan is built. Done so far (the foundation, plan §1, §2, §10, §12, the House of Prayer, §3, and prayer requests, §4):
`app@1.0.0` is tagged when the plan is built. Done so far (the foundation, plan §1, §2, §10, §12, the House of Prayer, §3, prayer requests, §4, and announcements, devotionals and events, §5–§7):
- **Backend:** Express + Prisma + pg-boss (ES modules, as the Website). Registers with the Hub
(`CCP-` licence key, product `app`) and sends the heartbeat with the active-member band the App
@@ -37,10 +37,12 @@ main only when `app@1.0.0` is done (main keeps a placeholder until then). Not re
- **Prayer requests** (§4, `backend/src/requests/`): private to the prayer team by default, or
shared with members after approval; redact, don't share, reply, escalate to Pastoral care; "I
prayed" counts; closing after 30 days, deleted a year later; every view of a sender access-logged.
- **Announcements, devotionals and events** (§5–§7, `backend/src/content/`, `backend/src/events/`):
announcements for everyone or members; Cross Code's devotionals from the Hub each night (the next
2 weeks) or the church's own with the CSV import, KJV and BSB only, Read in YouVersion; simple
events and the event feed both ways; Article and Event JSON-LD and a sitemap for the public pages.
**Still to come** (plan §5–§15): announcements,
devotionals (Cross Code's from the Hub: the next 2 weeks, today included, fetched each night; and
the church's own), events and the feed, email and WhatsApp, the rest of the admin, the export,
**Still to come** (plan §8–§15): email and WhatsApp (sending the outbox), the rest of the admin, the export,
backups, the demo church and scenarios, `scripts/products/app.sh`, e2e and Lighthouse.
- `backend/`: `npm run dev`, `npm test` (Node's test runner through tsx), `npm run build`. The