matou_forms: coa booking endpoint + whakawhanaungatanga email template #14

Closed
opened 2026-09-04 10:18:45 +00:00 by ben · 0 comments
Owner

COA is adding a "book a whakawhanaungatanga session" page that gates its application flow (coa ticket to follow, filed today). The page mirrors matou-website's /whakawhanaunga (BookingForm → POST https://forms.matou.nz/api/booking/matou), so the matou_forms gateway needs a coa variant:

Scope

  • New booking route POST /api/booking/coa (same slot grid as matou — Tue/Thu 7am/12pm/7pm Pacific/Auckland via booking-slots.mjs — unless the role already parameterises slots per form).
  • A coa-specific confirmation email template: this session is the relationship step before Matou builds and deploys the requester's community app, so the copy should say that (vs the matou-membership welcome copy). Same mechanics otherwise: confirmation to the booker, cc the team, calendar invite via Stalwart, meeting link (own Jitsi room, e.g. meet.jit.si/coa-whakawhanaungatanga, product owner may override).
  • Honeypot + server-side slot revalidation identical to the matou form.

Acceptance

  • curl -X POST https://forms.matou.nz/api/booking/coa with a valid slot → 200, confirmation email with calendar invite lands (Stalwart log), team cc'd.
  • Invalid/expired slot → 400 (same contract as the matou route, so the site component can be shared).

Out of scope

  • The coa site page itself (lives in Matou/coa).
COA is adding a "book a whakawhanaungatanga session" page that gates its application flow (coa ticket to follow, filed today). The page mirrors matou-website's `/whakawhanaunga` (BookingForm → POST `https://forms.matou.nz/api/booking/matou`), so the `matou_forms` gateway needs a coa variant: ## Scope - New booking route `POST /api/booking/coa` (same slot grid as `matou` — Tue/Thu 7am/12pm/7pm Pacific/Auckland via `booking-slots.mjs` — unless the role already parameterises slots per form). - A coa-specific confirmation email template: this session is the relationship step **before Matou builds and deploys the requester's community app**, so the copy should say that (vs the matou-membership welcome copy). Same mechanics otherwise: confirmation to the booker, cc the team, calendar invite via Stalwart, meeting link (own Jitsi room, e.g. `meet.jit.si/coa-whakawhanaungatanga`, product owner may override). - Honeypot + server-side slot revalidation identical to the matou form. ## Acceptance - `curl -X POST https://forms.matou.nz/api/booking/coa` with a valid slot → 200, confirmation email with calendar invite lands (Stalwart log), team cc'd. - Invalid/expired slot → 400 (same contract as the matou route, so the site component can be shared). ## Out of scope - The coa site page itself (lives in Matou/coa).
ben closed this issue 2026-09-17 15:38:59 +00:00
Sign in to join this conversation.
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.

Reference
Matou/matou-distributed-servers#14
No description provided.