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>
This commit is contained in:
2026-11-30 11:47:29 +02:00
co-authored by Claude Opus 5.5
parent e32d9ecb09
commit aacfd228a6
10 changed files with 156 additions and 37 deletions
+36 -1
View File
@@ -1,5 +1,11 @@
# Handover — where things stand and how to carry on
> **2026-11-30:** Events is now at **3.8.0** (released, not deployed; 3.7.2 is rolled out). Where
> it stands and what's next is kept in the root [HANDOVER.md](../../../docs/HANDOVER.md) and
> [VERSIONS.md](../../../docs/VERSIONS.md); this file keeps the "where the code lives" notes.
> Changed since the note below: STOP stops all WhatsApp (see "Where WhatsApp STOP lives (3.8.0)")
> and the demo has the eight demo scenarios (see "Demo data").
Last updated: 2026-11-18, after **2.3.1** (Next.js 16.4.6 for security advisories, on top of 2.3.0;
released, not deployed yet; servers still run 2.1.1 until they're adopted, see the root
[ROLLOUT-1.0.md](../../../docs/ROLLOUT-1.0.md)).
@@ -263,7 +269,8 @@ Plan and reasons: the root [EVENTS-2.4-PLAN.md](../../../docs/EVENTS-2.4-PLAN.md
`CommunicationConsent`), unsubscribe tokens (HMAC with `JWT_SECRET`, never expire),
`filterRecipients` (every bulk send goes through it: `kind` 'update' passes, 'news' only to
opted-in accounts and not to `MessagingOptOut` addresses), email/WhatsApp footers, STOP
handling, data requests, `deletionBlockers`, `anonymiseUser`, `exportUserData` + PDF.
handling (news off; from 3.8.0 all WhatsApp too, below), data requests, `deletionBlockers`,
`anonymiseUser`, `exportUserData` + PDF.
Tests: `backend/tests/privacy.test.js`; e2e: `e2e/privacy.spec.ts`.
- `controllers/privacyController.js` + `routes/privacyRoutes.js` (`/api/privacy`).
- Bulk sends: `broadcastController`, `whatsappBroadcastController`, and `emailEventAttendees` /
@@ -472,6 +479,22 @@ Plan and reasons: the root [EVENTS-2.4-PLAN.md](../../../docs/EVENTS-2.4-PLAN.md
- Frontend: `components/admin/WebhooksTab.tsx`. Tests: `tests/webhooks.test.js`, e2e
`webhooks.spec.ts` (runs a receiver on localhost:5199; e2e backend has `WEBHOOKS_ALLOW_PRIVATE`).
## Where WhatsApp STOP lives (3.8.0)
- APP-1.0-PLAN decision 11: STOP to the church's WhatsApp number stops **all** WhatsApp from every
one of the church's products (event updates, tickets, kids messages, 2FA codes), not only news.
- `src/utils/whatsappStop.js`: `isWhatsAppStopped` (by number in `WhatsAppStop`, or an account with
`User.whatsappOptedOut`, set from Accounts' `user.updated` `whatsapp_opted_out`), `recordStop`,
`clearStop`, `isStartKeyword`. `sendText` / `sendPdf` (`utils/whatsapp.js`) check it before every
message; only the reply that confirms a STOP is sent anyway (`evenIfStopped`). 2FA codes for a
stopped number go by email (`utils/twoFactor.js`).
- The webhook (`handleIncomingMessage`): STOP → kept, news off (`privacy.whatsAppStop`), passed on to
Accounts (`src/accounts/whatsappOptOut.ts`, `whatsapp.optout`); the reply links Accounts' account
page. START turns it back on only without Accounts (with Accounts it's turned on there, and
`updateLocalCopy` clears this site's STOP for the number).
- **Anything new that sends WhatsApp** goes through `sendText` / `sendPdf`, never WAWP directly.
- Tests: `tests/whatsappStop.test.js`, `tests/accountsWhatsappOptOut.test.ts`.
## Demo data (1.48.2)
- `backend/scripts/set-demo.js` builds everything in memory and writes it with `createMany` in one
@@ -486,6 +509,14 @@ Plan and reasons: the root [EVENTS-2.4-PLAN.md](../../../docs/EVENTS-2.4-PLAN.md
- Tried by seeding all four into a throwaway database and calling the API (events, series page and
report, season pass, kids board, roster, attendance registers, certificate check, cashups, campus
scoping).
- **3.8.0, the demo scenarios** (APP-1.0-PLAN §12): `PROFILES` also has one per scenario
(`agent.DEMO_SCENARIOS`), each a copy of one of the four kinds (`SCENARIO_KINDS`) built around
the scenario's church from `@crosscode/demo`: its people (`buildScenarioPeople`: leads become the
staff, at most 260 members), its campuses (`buildCampuses`), its staff as event contacts
(`staffName`). Builders stop when a small church runs out of people (`nextBuyer` returns null),
so don't add one that needs a fixed number of people without the same guard. The scenario's
own people are never sent to `people.removeDemo` (Accounts loaded them first). All eight and
the four were loaded into a throwaway PostgreSQL 18 database before release.
## Where the dashboard and palette live (1.49.0)
@@ -745,6 +776,10 @@ Plan and reasons: the root [EVENTS-2.4-PLAN.md](../../../docs/EVENTS-2.4-PLAN.md
into WAWP (events `message` + `session.status`), and only for senders WhatsApp identifies by
phone number — a sender known only by a "LID" is logged and ignored (they can still use the
link in the message).
- (3.8.0) No test yet for a 2FA code falling back to email for a number that replied STOP.
- (3.8.0) The demo scenarios reuse the four demos' events: a scenario's own events (Grace
Cathedral's concert series, Ignite's youth conference) and Afrikaans content for Karoo
Gemeenskapskerk aren't built yet.
- There's no log of individual messages sent, so "Download my data" can't include "messages
sent to you" yet.