app: changelog and README for the admin, uploads, backups and the export

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 14:53:58 +02:00
co-authored by Claude Opus 5.5
parent d8a101567b
commit 3a9b032dfa
2 changed files with 37 additions and 4 deletions
+30 -2
View File
@@ -2,9 +2,9 @@
## [Unreleased]
Being built for `app@1.0.0` (docs/APP-1.0-PLAN.md). Five migrations so far (`20261201000000_init`,
Being built for `app@1.0.0` (docs/APP-1.0-PLAN.md). Six migrations so far (`20261201000000_init`,
`20261202000000_house_of_prayer`, `20261203000000_prayer_requests`, `20261204000000_content`,
`20261205000000_messaging`).
`20261205000000_messaging`, `20261206000000_media`).
Ships `@crosscode/seo` 1.1.0 (`articleJsonLd`, workspace).
### Added
@@ -127,6 +127,34 @@ Ships `@crosscode/seo` 1.1.0 (`articleJsonLd`, workspace).
test** (email or WhatsApp), what's waiting and what wasn't sent in 7 days.
- Counts per day and channel (`MessageCount`) for the heartbeat's `messages.email30d` /
`whatsapp30d`; `user.export` has the notification choices, deleted with the account.
- **The admin** (plan §10, `src/admin/`):
- One frame for every admin page, as the Website's and Events' (decision 9): a bar across the
top, a white side menu in groups showing only what the person's roles and the modules allow, a
drawer on a phone.
- The dashboard: the setup checklist for an Owner or Church admin (the church's details and icon,
the wall's rules, prayer coordinators, a first announcement, sharing the App), active members,
modules and connections, what waits for the prayer team (requests, testimonies, escalations),
this week on the prayer wall with its gaps, and recent changes.
- **Members and roles** (Owner, Church admin): members searched by name or email; roles given and
taken (only an Owner makes or changes an Owner, nobody changes their own), or someone added by
email with a role through Accounts' `people.ensure`.
- **Settings**: modules on and off, the licence and active members, and each module's settings.
**Background jobs**: each job's switch and schedule (winning over the .env) and Run now.
**Audit and access logs** in plain words, 100 at a time.
- **Share the App**: its link and a printable A4 poster with a QR code (`qrcode`, drawn on the
server); "I've shared it" ticks the checklist.
- **Uploaded images** (`src/media/`, migration `media`): photos for announcements, campaigns and
events, checked by their bytes, turned upright, stripped of their metadata and kept at most 2000
px wide in backend/uploads (`UPLOAD_DIR`), served at `/api/uploads`; 5 GB or the licence's
storage; one in use can't be deleted. The forms have Upload a photo next to the address.
- **Backups** (`src/backups/`, as the Website's): a gzipped `pg_dump` every night (`backup`, 02:40)
and on Back up now (`app-YYYYMMDD-HHMMSS.sql.gz`, the newest 14 kept), then a snapshot of the
uploads hard-linking what hasn't changed; Settings → Backups lists, downloads (audited) and
sets them. The heartbeat reports the newest backup.
- **The church export** (plan §11, `src/export/`, `scripts/export-church.ts`): the `app` part of
`crosscode.church-export/1`: members with their roles, the wall, commitments as rules, "I
prayed", campaigns, testimonies, prayer requests with their moderation, the emergency numbers,
announcements, the church's own devotionals and events, and the uploads; no internal ids.
- Home shows today's devotional, the latest announcements (pinned first) and what's on. A sitemap
of the public pages (`/sitemap.xml`, never prayer, members-only items or imported events), named
in robots.txt. `GET /api/v1/app` gives the App's own address (`url`).
+7 -2
View File
@@ -47,8 +47,13 @@ main only when `app@1.0.0` is done (main keeps a placeholder until then). Not re
checked before every WhatsApp, announcements and the day's devotional queued for those who asked,
Me → What the App sends me, and the admin's Email and WhatsApp page with Send a test.
**Still to come** (plan §10–§15): the rest of the admin, the export,
backups, the demo church and scenarios, `scripts/products/app.sh`, e2e and Lighthouse.
- **The admin** (§10, `backend/src/admin/`): the side menu, the setup checklist, members and roles,
settings, background jobs, audit and access logs, Share the App with a QR poster; uploaded images
(`backend/src/media/`); backups of the database and the images (`backend/src/backups/`); the
church export's `app` part (`backend/scripts/export-church.ts`).
**Still to come** (plan §12–§15): the demo church and scenarios, `scripts/products/app.sh`, e2e,
axe and Lighthouse.
- `backend/`: `npm run dev`, `npm test` (Node's test runner through tsx), `npm run build`. The
schema is in `prisma/schema.prisma`.