This repository has been archived on 2026-11-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
hope-events/frontend/src/content/help/supervisor-whatsapp-attendees.tsx
T
joshuaandClaude Opus 5.5 594cb35a85 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

48 lines
2.2 KiB
TypeScript

import React from "react";
import { MessageCircle, Users, Zap, Clock, ShieldCheck } from "lucide-react";
import { GuideItem } from "@/components/shared/GuideItem";
import type { HelpContent } from "./types";
/** Help content for /dashboard/supervisor/whatsapp-attendees. */
export const supervisorWhatsappAttendeesHelpContent: HelpContent = {
title: "WhatsApp attendees",
subtitle: "Message attendees or send tickets over WhatsApp.",
tabs: [
{
key: "attendees",
label: "Attendees",
icon: Users,
content: (
<div className="space-y-4">
<p>Works just like Email Attendees — pick an event and a template, edit the message with placeholders like <code>{"{{name}}"}</code> and <code>{"{{payment.link}}"}</code>, and preview, send, or schedule.</p>
<div className="space-y-4">
<GuideItem icon={MessageCircle} title="Who's eligible" tone="brand">
Only recipients with a phone number can be messaged; the list is pre-filtered and colour-coded by notification preference (WhatsApp / Both), though you can still select a mismatch with a warning.
</GuideItem>
<GuideItem icon={ShieldCheck} title="Message type (POPIA)" tone="violet">
<strong>Event updates</strong> go to everyone selected. <strong>News &amp; announcements</strong> only go to people who opted in to WhatsApp news, and end with &quot;Reply STOP&quot; and an unsubscribe link. Broadcasts are news unless you choose Event update.
</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">
Same four lifecycle messages as email (reminder, final reminder, thank-you, next-event promo), auto-timed per event.
</GuideItem>
<GuideItem icon={Clock} title="Broadcasts & Scheduled" tone="gray">
Broadcasts reach arbitrary recipients outside a single event&apos;s list; Scheduled lets you review or cancel anything not yet sent.
</GuideItem>
</div>
</div>
),
},
],
};