site: whakawhanaungatanga booking page gates the application flow #118

Closed
opened 2026-09-04 10:19:04 +00:00 by ben · 1 comment
Owner

Ben (2026-09-04): before the submission page, load a "book a whakawhanaungatanga session" page — it should look and work the same as the matou-website one, with a slightly different email template.

Reference implementation

matou-website src/pages/whakawhanaunga/ — page.tsx (standalone page, slim header/footer), components/BookingForm.tsx (slot picker grouped by day, name/email, honeypot, POST JSON {name,email,slot,timezone,website}), slots.ts (Tue/Thu 7am/12pm/7pm Pacific/Auckland, viewing-day+7d → +1 month, Intl-derived offsets; mirrors the gateway's booking-slots.mjs — keep in sync). Gateway revalidates the slot server-side and sends the confirmation + calendar invite via Stalwart.

Scope

  • New coa site page (e.g. /whakawhanaunga) with the same mechanics, styled with coa's own site look (it is not the matou-website brand shell).
  • POSTs to the coa gateway route POST https://forms.matou.nz/api/booking/coa — blocked by mds #14 (route + coa email template; cross-repo dependency, registered natively).
  • Flow: the landing apply CTA routes through this page first. The application form stays reachable (a booked community must still submit), but the pathway a new visitor is shown is: read the comms (#117) → book the session → then apply. Proposed default: the booking success state carries the "continue to your application" link; the /apply page gets a short note that a whakawhanaungatanga session comes first, without hard-blocking submission. If the product owner wants a hard gate instead, say so on this ticket.
  • Email template differences live in the gateway (mds #14), not here.

Acceptance

  • e2e: drive the booking page to a success state against a stubbed gateway (the site never talks to the real forms endpoint in CI), assert the continue-to-apply link.
  • The apply flow is unchanged mechanically (schema/server untouched).

Out of scope

  • The manual-dispatch gate (separate ticket); the comms copy (#117).
Ben (2026-09-04): before the submission page, load a "book a whakawhanaungatanga session" page — it should look and work the same as the matou-website one, with a slightly different email template. ## Reference implementation matou-website `src/pages/whakawhanaunga/` — `page.tsx` (standalone page, slim header/footer), `components/BookingForm.tsx` (slot picker grouped by day, name/email, honeypot, POST JSON `{name,email,slot,timezone,website}`), `slots.ts` (Tue/Thu 7am/12pm/7pm Pacific/Auckland, viewing-day+7d → +1 month, Intl-derived offsets; mirrors the gateway's `booking-slots.mjs` — keep in sync). Gateway revalidates the slot server-side and sends the confirmation + calendar invite via Stalwart. ## Scope - New coa site page (e.g. `/whakawhanaunga`) with the same mechanics, styled with coa's own site look (it is not the matou-website brand shell). - POSTs to the coa gateway route `POST https://forms.matou.nz/api/booking/coa` — **blocked by mds #14** (route + coa email template; cross-repo dependency, registered natively). - Flow: the landing apply CTA routes through this page first. The application form stays reachable (a booked community must still submit), but the pathway a new visitor is shown is: read the comms (#117) → book the session → then apply. Proposed default: the booking success state carries the "continue to your application" link; the /apply page gets a short note that a whakawhanaungatanga session comes first, without hard-blocking submission. If the product owner wants a hard gate instead, say so on this ticket. - Email template differences live in the gateway (mds #14), not here. ## Acceptance - e2e: drive the booking page to a success state against a stubbed gateway (the site never talks to the real forms endpoint in CI), assert the continue-to-apply link. - The apply flow is unchanged mechanically (schema/server untouched). ## Out of scope - The manual-dispatch gate (separate ticket); the comms copy (#117).
ben closed this issue 2026-09-17 15:40:50 +00:00
Author
Owner

Ruling (Ben, 2026-09-17): the booking page is the last step of the application, not the first. Built in 565a510.

  • /done is step 5 "Session": application received, then the booking form (copy of matou-website's /whakawhanaunga, coa look). The contact email carries over from the review.
  • /whakawhanaunga?slug= is the same form standalone; the page-ready email links to it for a community that left before booking.
  • Gateway: mds PR #17 (closes mds #14) — POST /api/booking/coa, Mātou-branded email with coa-context copy, team cc'd with the community slug, room meet.jit.si/coa-whakawhanaungatanga.
  • Soft gate as the ticket proposed: nothing is stored coa-side, the hard gate stays make build-app (DDR 0007 amended).
  • e2e drives the booking against a stubbed gateway.

Not live until deployed: -t matou_forms on matou first, then the coa container pull + restart (GOTCHAS 17).

**Ruling (Ben, 2026-09-17): the booking page is the *last* step of the application, not the first.** Built in 565a510. - `/done` is step 5 "Session": application received, then the booking form (copy of matou-website's `/whakawhanaunga`, coa look). The contact email carries over from the review. - `/whakawhanaunga?slug=` is the same form standalone; the page-ready email links to it for a community that left before booking. - Gateway: mds PR #17 (closes mds #14) — `POST /api/booking/coa`, Mātou-branded email with coa-context copy, team cc'd with the community slug, room `meet.jit.si/coa-whakawhanaungatanga`. - Soft gate as the ticket proposed: nothing is stored coa-side, the hard gate stays `make build-app` (DDR 0007 amended). - e2e drives the booking against a stubbed gateway. Not live until deployed: `-t matou_forms` on matou first, then the coa container pull + restart (GOTCHAS 17).
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/coa#118
No description provided.