Family-aware enrolment, annual requirements, speed + security sweep
11-06-2026What's new
A big day: enrolment got family-smart, every vertical can now have its own annual costs, and the whole platform got faster and tighter under the hood.
All of today's work is pending enablement — committed locally, not yet deployed, and the new tables/indexes need migration items 23–25 applied (item 26 is a deliberate apply-later step).
Added — Annual Requirements (per-vertical costs & tracking)
Status: Pending enablement (migration item 25; item 26 later)
- Every programme can now define its own annual requirements: TKD
insurance, a dance registration fee, or a gymnastics governing-body membership — each answering three questions: *is there a cost?* (£0 = track-only), *is a date tracked?*, and *can members continue once expired?* (block / warn / nothing)
- Fees are billed automatically onto the family's one consolidated
invoice by a new nightly job — safe to re-run, can never double-charge
- Three new automation events (requirement due / expired / renewed)
so you can build your own chase emails in the Automations builder
- New Settings → Annual Requirements tab with one-click presets, and
a status card on each member profile with a "Mark renewed" button
- Existing insurance keeps working untouched; a later switch-over step
converges it onto the new system when you're ready
Added — Enrolment recognises returning families
Status: Pending enablement (migration items 22–23)
- When a trial parent or a staff invite uses an email the club already
knows, the enrolment link is automatically family-linked: details pre-filled, the new member joins the right household, and the email says "enrol another family member" instead of a cold welcome
- The "Add Another Family Member" button on the enrolment success screen
now works for parents (it previously only worked for logged-in staff)
- New families at GoCardless-connected clubs can set up their Direct
Debit right from the enrolment success screen — and a same-household second child is never asked twice
- Members can switch bank accounts from the portal with no gap and no
double-collection window
Fixed — Enrolment form answers now save properly
Status: Pending enablement (deploys with the next release)
- Custom "about the new member" questions answered on the public
enrolment form were not being saved — they now land on the member's profile and in Forms responses
- Programme-specific enrolment links now strictly enforce their
programme — a tampered request can't sign up onto another programme's plan or classes
- No-payment enrolments no longer record a "payment received" note
against an unpaid invoice (history and welcome emails now say "invoiced — to be collected")
Security — Trial links and webhooks tightened
Status: Pending enablement (deploys with the next release)
- Rescheduling a trial now requires the secret link from the email — a
leaked booking reference can no longer be used to view or move someone's trial (and rescheduled trials get working cancel links, which they previously lacked)
- The trial-count checker is rate-limited so it can't be used to test
whether an email address belongs to a club
- All emailed links are built from the club's canonical web address, so
preview/proxy domains can't end up in parents' inboxes
- Telegram account-linking codes only work through the club that issued
them
Performance — Built for 1,000 clubs
Status: Pending enablement (index pack = migration items 23–24)
- The nightly billing run now processes whole clubs in a few queries
instead of thousands — it stays well inside its time budget at scale
- Staff pages load noticeably faster: the app's startup data is fetched
in one parallel batch and cached for five minutes
- A new database index pack makes portal login, duplicate checking and
email suppression checks instant even with hundreds of thousands of members (apply migration item 23)
- Portal pages no longer download a family's entire multi-year history
on every visit
Internal — Local test data for multi-vertical clubs
Status: Local-only (developer tooling, never runs in production)
npm run seed:verticalsbuilds a complete test club on the local
database: Taekwondo + Gymnastics + Dance with belts/badges/grades, timetables, pricing, 60 households (some spanning two or all three verticals), 90 days of registers, billing agreements and trials
Security — Trial endpoints sweep-proofed (follow-up)
Status: Pending enablement (deploys with the next release)
- The trial-count checker and trial enrolment-link sender now share one
request budget per visitor — previously each email address checked got its own allowance, so a script could still sweep a mailing list
Internal — Release confidence
Status: Local-only (docs + developer tooling)
- New release checklist (docs/release-checklist.md) answering "what turns
on when we deploy vs what's built but off" — flags, crons, migrations and the staged rollout order for real automation sends
- New
npm run smoke:requirementsproves the annual-requirements engine
against realistic seeded data: 105 members billed onto 60 consolidated family invoices, a re-run bills nothing twice, and expiry blocking only affects genuinely lapsed members
- The smoke immediately caught and fixed two would-be production issues:
an invoice status the database would have rejected, and a filter on a column that doesn't exist
Fixed — Duplicate-member check actually works now
Status: Pending enablement (deploys with the next release)
- The duplicate-email warning on public enrolment was silently disabled
by a filter on a database column that doesn't exist — the same family could create duplicate member records without any warning. Fixed in both enrolment endpoints
- The club-closure notification list had the same hidden fault and could
show no affected members; it now correctly lists everyone except leavers
- A new automated guard stops this class of bug from being reintroduced
Security — Trial booking privacy pass
Status: Pending enablement (deploys with the next release; embedding clubs need their website added to the new embed allowlist before launch)
- The public trial-availability check no longer reveals how many trial
sessions a child or family has already used — it now answers only "can this email book a trial?", with the real limit still enforced at the moment of booking
- Class capacity is shown as "Spaces available" or "Last spot" instead
of exact numbers — operational detail stays private without hurting the booking experience
- Trial pages can no longer be embedded inside arbitrary websites: only
the club sites you approve can iframe the booking flow, protecting parents from fake-embed and clickjacking tricks
Fixed — Event waitlist promotion is now race-proof
Status: Pending enablement (deploys with the next release)
- Two staff members promoting from an event waitlist at the same moment
(or a promote racing a parent's claim link) could both win the last seat. Staff promotion now goes through the same capacity-checked path as the public claim link, so the second attempt gets a clear "back at capacity" message instead of an overbooked event
- A draft event can no longer have waitlisted members promoted onto it
Added — Waiting lists for full classes
Status: Pending enablement (migration item 27; waitlists are OFF per class until staff switch them on)
- Clubs can now run a waiting list for any full class — built for dance,
gymnastics and swim schools. Share one public signup link; parents give just their name, email and the child's first name (full details are only asked for if a space opens and they enrol)
- New Settings → Waiting Lists tab: switch a class's list on, set its
capacity, see the queue in joined order, add or remove people
- Automatic offers (email the longest-waiting with a time window, or
everyone at once, or staff-picked) come in the next phase — the plan is agreed and the queue collection works today
- Staff adding members directly to an event now see a clear warning when
the booking takes the event over capacity (the override still works — it's just never silent)
Added — The Join page: trials, waiting lists and multi-activity in one flow
Status: Pending enablement (migration items 27–28; per-class waitlists stay off until staff enable them)
- Every club now has a public Join page (/join/your-club): parents pick
the activity (for multi-activity clubs), enter just their name, email and child's birth month, and see exactly the classes that fit — each one either "Spaces available — book a trial" or "Full — join the waiting list"
- Parents can join the waiting list for several full classes at once;
winning a space in one automatically takes them off the others
- When a space opens, offers go out automatically per class policy:
first refusal for the longest-waiting (48-hour window), everyone at once with first-to-claim-wins, or staff-picked — claiming is race-proof and leads straight into the normal enrolment wizard
- Two new automation events (space offered / space claimed) for custom
follow-ups, and a "Send offer" button on the Waiting Lists settings tab
Improved — Waiting lists: club policies, self-removal and demand insight
Status: Pending enablement (migration item 29)
- Every offer email now includes a one-click "remove from the waiting
list" link, and quiet entries lapse automatically after a configurable period (checked weekly)
- New settings (behind the ⚙ on Waiting Lists): how long offers are held,
the default offer mode, and what happens when an offer isn't actioned — removed, kept at the front for the next space, or moved to the back
- Classes at member capacity no longer offer trial bookings — a trial for
a class nobody can join led nowhere
- "Book a trial" from the Join page now lands with that class pre-selected
- New Reports → Waiting Lists view: queue depth by class — the signal for
when to open a second session
Security — Public endpoint hardening (third review pass)
Status: Pending enablement (deploys with the next release)
- Rate limits added across the remaining public endpoints: trial
availability, the examiner scoring links (generous for live scoring, per-examiner so a venue's shared wifi can't stall a panel), insurance renewal links, and external-event invites
- Coach review clips can only be saved to their own member's storage
area — a crafted request can no longer point a member's playback at an arbitrary file
- Audio, recording and certificate uploads are now checked by file
CONTENT, not just the declared type — a disguised file is rejected
- External-event invite pages return only the fields the entry form
needs, and event payment confirmations build links from the club's canonical web address
Internal — Audit follow-through
Status: Pending enablement / Local-only (docs + guard tests)
- All seven P1/P2 items from the independent SaaS audit were already
fixed in the preceding security passes — confirmed line by line
- Eight more external-event emails (invites, entry confirmations,
organiser updates) now build their links from the club's canonical address, and an automated guard prevents any future route from baking a preview/proxy domain into an emailed link
- The public class-availability lookup is cached for 30 seconds per
club — an open-day rush re-reads one snapshot instead of hitting the database per family
- The release checklist gains three audit-recommended gates: live
database schema verification SQL, automation volume watching before wide enablement, and a manual accessibility pass before public launch
Added — Expired requirements now actually block (with a human override)
Status: Pending enablement (needs migration item 25; only affects clubs that set a requirement to "block")
- When a club's annual requirement (e.g. insurance) is set to block and
a member's has expired, the class register and grading day now show a clear red marker on that member
- Marking them present or recording a grading outcome asks staff to
confirm first — the kid already on the mat can still be recorded, but never by accident
- Members with no recorded date are chased, never locked out — switching
the feature on can't strand a class
Internal — Local testing unblocked
Status: Local-only
- The local development database now allows two-factor enrolment, so the
full app (including everything behind login) can finally be tested in a local browser