app: changelog and README for prayer requests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 11:06:17 +02:00
co-authored by Claude Opus 5.5
parent 4b8cb1da4b
commit 655852278f
2 changed files with 24 additions and 4 deletions
+19 -2
View File
@@ -2,8 +2,8 @@
## [Unreleased]
Being built for `app@1.0.0` (docs/APP-1.0-PLAN.md). Two migrations so far (`20261201000000_init`,
`20261202000000_house_of_prayer`).
Being built for `app@1.0.0` (docs/APP-1.0-PLAN.md). Three migrations so far (`20261201000000_init`,
`20261202000000_house_of_prayer`, `20261203000000_prayer_requests`).
### Added
@@ -60,5 +60,22 @@ Being built for `app@1.0.0` (docs/APP-1.0-PLAN.md). Two migrations so far (`2026
- Screens: the 24-hour clock on the Prayer tab (tap an hour, Cover it / Join, the open hours as
buttons, back from signing in with the slot's sheet open), the booking sheet, Me → My prayer,
sharing a testimony, and Home's small clock with the next gap and your next slot.
- **Prayer requests** (plan §4, `src/requests/`):
- `PrayerRequest`: the prayer team only (the default) or members of the church, after a
coordinator approves it, with the first name or "Anonymous"; fully anonymous (the team doesn't
see who either) only when the church allows it (AppSetting `prayer_requests`, off by default).
Never public, never in stats, the heartbeat or a message's text.
- Coordinators approve, edit out details (the sender sees what changed) or don't share (with a
reason); anyone on the team replies privately (`PrayerRequestUpdate`, author `team`) or
escalates: Pastoral care is told at once by email and WhatsApp (an Owner or Church admin when
nobody has the role); the request leaves the shared list and the sender sees nothing different.
- Members tap "I prayed" (`RequestPrayer`: the sender sees how many, never who); the sender adds
"Answered!", closes or deletes it. Requests close after 30 days (7–90) and are deleted 12 months
after closing (`prayer-requests-tidy`, 03:30).
- Every admin list with senders goes in the access log (now `src/lib/accessLog.ts`). Export and
delete cover a member's requests.
- Screens: Ask for prayer (who sees it, the emergency numbers, South African by default), Pray for
others, My prayer requests, and the admin's Prayer requests (waiting, open, escalated, closed,
settings). The Prayer tab shows with either prayer module.
- `env.template.json` (read by the Hub at the tag), `ecosystem.config.example.cjs` (ports 5400 / 3400
in development).
+5 -2
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, and the House of Prayer, §3):
`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):
- **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
@@ -34,8 +34,11 @@ main only when `app@1.0.0` is done (main keeps a placeholder until then). Not re
daily with reminders; skip, change, stop within the 8-hour rule; the renew and "I prayed" links;
campaigns and moderated testimonies; the admin's week, names (access-logged), rules and campaigns.
Reminders and renewal notices wait in the outbox until email and WhatsApp (§8) send them.
- **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.
**Still to come** (plan §4–§15): prayer requests, announcements,
**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,
backups, the demo church and scenarios, `scripts/products/app.sh`, e2e and Lighthouse.