Files
crosscode-platform/apps/events/frontend/src/content/help/supervisor-email-attendees.tsx
T
joshuaandClaude Opus 5.5 18f35ceeb3 POPIA toolkit part 1: privacy page, unsubscribe, WhatsApp STOP, data requests
- Privacy page: news opt-in per channel with history, download my data
  (JSON + PDF), correction and deletion requests
- Bulk messages are an Event update or News & announcements; news only
  reaches people who opted in, with unsubscribe links, one-click
  List-Unsubscribe headers and "Reply STOP" on WhatsApp
- WhatsApp STOP via WAWP's message webhook, checked against a secret in
  the webhook URL
- Sign-up opt-in box; existing accounts kept opted in and asked once
- Admin -> Data requests with 30-day due dates and a daily reminder job
- Deleting an account is a request; anonymising now covers attendees,
  form answers, consent details, payer details in provider payloads, etc.
- Unit tests (privacy.test.js) and e2e (privacy.spec.ts); docs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012mt6TCv85T9VKRq3cV7rXq
2026-10-23 18:13:47 +02:00

54 lines
2.9 KiB
TypeScript

import React from "react";
import { Mail, Users, Zap, Send, Clock, ShieldCheck } from "lucide-react";
import { GuideItem } from "@/components/shared/GuideItem";
import type { HelpContent } from "./types";
/** Help content for /dashboard/supervisor/email-attendees. */
export const supervisorEmailAttendeesHelpContent: HelpContent = {
title: "Emailing attendees",
subtitle: "Reach attendees by event, or send a one-off broadcast.",
tabs: [
{
key: "attendees",
label: "Attendees",
icon: Users,
content: (
<div className="space-y-4">
<p>Pick an event and a template (Custom, Payment reminder, Event reminder, or Tickets-with-attachments), then edit the subject and body. Placeholders like <code>{"{{name}}"}</code>, <code>{"{{event.title}}"}</code>, <code>{"{{balance}}"}</code>, and <code>{"{{payment.link}}"}</code> are filled in per recipient.</p>
<div className="space-y-4">
<GuideItem icon={Users} title="Choosing recipients" tone="brand">
Recipients are pre-selected by their notification preference and payment-status filter — a warning shows if you select someone whose preference doesn&apos;t match email.
</GuideItem>
<GuideItem icon={Send} title="Preview, send, or schedule" tone="green">
Preview the recipient list before sending, send immediately, or pick a future date and time.
</GuideItem>
<GuideItem icon={ShieldCheck} title="Message type (POPIA)" tone="violet">
An <strong>Event update</strong> is about the event they registered for and goes to everyone selected. <strong>News &amp; announcements</strong> (promoting events) only goes to people who opted in, and gets an unsubscribe link — the preview says how many were skipped. The next-event promo automation is always news.
</GuideItem>
</div>
</div>
),
},
{
key: "automation",
label: "Automations & Broadcasts",
icon: Zap,
content: (
<div className="space-y-4">
<div className="space-y-4">
<GuideItem icon={Zap} title="Automations" tone="amber">
Four canned lifecycle emails per event — a pre-event reminder, a final reminder, a thank-you, and a next-event promo — with send times auto-computed from the event&apos;s dates.
</GuideItem>
<GuideItem icon={Mail} title="Broadcasts" tone="violet">
Send to any selected users or pasted external addresses, independent of a specific event&apos;s attendee list. Broadcasts are News &amp; announcements unless you choose Event update.
</GuideItem>
<GuideItem icon={Clock} title="Scheduled" tone="gray">
Review, edit, or cancel any email that&apos;s scheduled but not yet sent.
</GuideItem>
</div>
</div>
),
},
],
};