matou_forms: coa booking endpoint + whakawhanaungatanga email copy (#14) #17

Merged
ben merged 1 commit from matou-forms-coa-booking into main 2026-09-17 15:38:58 +00:00
Owner

Closes #14. Unblocks coa #118 (the coa site's last application step books the whakawhanaungatanga session).

  • booking-handler.mjs: the email's words and the meeting link are per-site config — booking.<site>.copy (sessionName, paragraphs, icsSummary, icsDescription) and booking.<site>.meetingUrl. Every key falls back to the matou.nz defaults, so the matou route is unchanged. Optional community field (coa slug) shown in the details callout for the cc'd team; trimmed, capped at 100, HTML-escaped. ICS text values are escaped.
  • defaults/main.yml: booking.coa — Mātou-branded template, coa-context copy ("we're looking forward to connecting, and to learning a bit about you and your community"; the session comes before any software), own room meet.jit.si/coa-whakawhanaungatanga, origins https://coa.matou.nz + http://localhost:5173.
  • Tests: 20/20 node --test (three new: site copy override, community field, defaults equivalence).

Deploy after merge: ansible-playbook playbooks/host.yml -l matou -t matou_forms (rebuilds the container because the source and config.json change).

🤖 Generated with Claude Code

https://claude.ai/code/session_01KjYefodXyUyJsZi9BnbNaD

Closes #14. Unblocks coa #118 (the coa site's last application step books the whakawhanaungatanga session). - `booking-handler.mjs`: the email's words and the meeting link are per-site config — `booking.<site>.copy` (`sessionName`, `paragraphs`, `icsSummary`, `icsDescription`) and `booking.<site>.meetingUrl`. Every key falls back to the matou.nz defaults, so the `matou` route is unchanged. Optional `community` field (coa slug) shown in the details callout for the cc'd team; trimmed, capped at 100, HTML-escaped. ICS text values are escaped. - `defaults/main.yml`: `booking.coa` — Mātou-branded template, coa-context copy ("we're looking forward to connecting, and to learning a bit about you and your community"; the session comes before any software), own room `meet.jit.si/coa-whakawhanaungatanga`, origins `https://coa.matou.nz` + `http://localhost:5173`. - Tests: 20/20 `node --test` (three new: site copy override, community field, defaults equivalence). Deploy after merge: `ansible-playbook playbooks/host.yml -l matou -t matou_forms` (rebuilds the container because the source and config.json change). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01KjYefodXyUyJsZi9BnbNaD
POST /api/booking/coa for the coa site's last application step (coa #118).
The handler's words and meeting link become per-site config with the matou.nz
text as defaults; an optional community field tells the cc'd team which
application booked. Same slots, honeypot, revalidation, template and invite.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KjYefodXyUyJsZi9BnbNaD
ben merged commit 0def83fac9 into main 2026-09-17 15:38:58 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/matou-distributed-servers!17
No description provided.