Files
crosscode-platform/apps/events/frontend/src/content/help/supervisor-consent.tsx
T
joshuaandClaude Opus 5.5 f55353ecc6 Add parental consent for youth events
Youth events need a name and date of birth for every attendee, and a
parent/guardian's details for under-18s. Parents get an email and
WhatsApp link to a consent page that records the signed name, time, IP,
device and exact consent text; medical and emergency details are stored
encrypted. Tickets are issued but check-in is blocked until consent is
given (supervisor override audited). A daily job sends reminders and
purges medical details after the retention period. Adds a supervisor
consent tracker, consent status and medical list reports, and clears
consent data when an account is anonymised.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 13:24:44 +02:00

59 lines
3.2 KiB
TypeScript

import React from "react";
import { ShieldCheck, Send, RefreshCw, HeartPulse, Ban, Clock, QrCode } from "lucide-react";
import { GuideItem } from "@/components/shared/GuideItem";
import type { HelpContent } from "./types";
/** Help content for /dashboard/supervisor/consent. */
export const supervisorConsentHelpContent: HelpContent = {
title: "Parental consent",
subtitle: "Youth events: who still needs a parent's consent before check-in.",
tabs: [
{
key: "how",
label: "How it works",
icon: ShieldCheck,
content: (
<div className="space-y-4">
<div className="space-y-4">
<GuideItem icon={ShieldCheck} title="Turning it on" tone="brand">
In the event wizard&apos;s Visibility step, tick &quot;Requires parental consent&quot;, write the consent text, and choose whether to ask for medical info, an emergency contact and photo consent.
</GuideItem>
<GuideItem icon={Send} title="Requests" tone="green">
Everyone registering gives a date of birth for each attendee. For anyone under 18 on the event&apos;s start date, the parent or guardian is sent a consent link by email and WhatsApp. They read the text, fill in any medical details, type their name to sign, and give or decline consent.
</GuideItem>
<GuideItem icon={Clock} title="Reminders" tone="amber">
Unanswered requests are reminded automatically 2 days later, then every 3 days until the event. Links stop working when the event ends.
</GuideItem>
<GuideItem icon={QrCode} title="At check-in" tone="rose">
Tickets are sent as normal, but the scanner won&apos;t check someone in until consent is given. Supervisors can override, which is recorded in the audit log.
</GuideItem>
<GuideItem icon={Ban} title="Declined" tone="gray">
The registrant and the event&apos;s notification recipients are told. The registration stays, but can&apos;t be checked in — handle any refund from Payments.
</GuideItem>
</div>
</div>
),
},
{
key: "tools",
label: "This page",
icon: RefreshCw,
content: (
<div className="space-y-4">
<div className="space-y-4">
<GuideItem icon={Send} title="Resend" tone="brand">
Resend one request, or every pending one at once. Each resend issues a new link; old links stop working.
</GuideItem>
<GuideItem icon={RefreshCw} title="Re-request consent" tone="violet">
If you change the consent text, parents who already agreed keep their record of the old version. &quot;Re-request consent&quot; asks them again on the new text, and also sends requests to under-18s who never got one (for example, names added later).
</GuideItem>
<GuideItem icon={HeartPulse} title="Medical & emergency list" tone="rose">
A printable, confidential list for camp leaders, for attendees whose consent has been given. Every time it&apos;s opened is recorded in the audit log. Medical details are deleted a set number of days after the event (Site Settings → Legal).
</GuideItem>
</div>
</div>
),
},
],
};