Files
hope-events/frontend/src/content/help/supervisor-manual.tsx
T
joshuaandClaude Sonnet 5 d6da2c8227 Send activation link immediately for walk-in and manual registration accounts
Accounts created by staff on someone's behalf now get their activation
link (email or WhatsApp) sent right away, instead of only on a first
failed login attempt, matching what the Terms of Use already promised.
This also fixed a real account with a real email being silently
activated with a fixed, undisclosed password (Hope123).

Also fixes the self-service kiosk's "Create an account" password field,
which never actually took effect server-side, and removes the "Guest
(no account)" checkboxes that no longer had any backend effect once
every walk-in account started behaving the same way.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-24 13:29:38 +02:00

60 lines
2.6 KiB
TypeScript

import React from "react";
import { UserPlus, CreditCard, Info } from "lucide-react";
import { GuideItem } from "@/components/shared/GuideItem";
import type { HelpContent } from "./types";
/** Help content for /dashboard/supervisor/manual. */
export const supervisorManualHelpContent: HelpContent = {
title: "Manual registration",
subtitle: "Register someone and take payment on their behalf.",
tabs: [
{
key: "register",
label: "Register",
icon: UserPlus,
content: (
<div className="space-y-4">
<p>Pick an event, then either search for an existing user or enter guest details (name, and at least one of email or phone). Choose ticket options and quantities early-bird pricing is applied automatically then create the registration. A new guest account is created inactive, and an activation link is sent immediately (by email if provided, otherwise WhatsApp) so they can set their own password.</p>
<p className="text-xs text-gray-500">After creating a registration, the Record Payment tab is pre-filled with it switch tabs to take payment right away.</p>
</div>
),
},
{
key: "payment",
label: "Record Payment",
icon: CreditCard,
content: (
<div className="space-y-4">
<p>Search for a user, pick one of their registrations with an outstanding balance, and enter the amount, method, and (optionally) a backdated payment time.</p>
</div>
),
},
],
};
/** Help content for /dashboard/supervisor/manual-registration — the older, simpler form. */
export const supervisorManualRegistrationLegacyHelpContent: HelpContent = {
title: "Manual registration (legacy)",
subtitle: "A basic form for creating a registration directly.",
quickLinks: [
{ label: "Manual registration & payment", href: "/dashboard/supervisor/manual", icon: UserPlus },
],
tabs: [
{
key: "overview",
label: "Overview",
icon: Info,
content: (
<div className="space-y-4">
<p>This is an older, simplified registration form it requires typing the exact Event ID and Option ID rather than picking from a list, and doesn&apos;t support payment or early-bird pricing.</p>
<div className="space-y-4">
<GuideItem icon={UserPlus} title="Prefer the newer page" tone="brand">
The Manual Registration &amp; Payment page (linked above) offers event/user search, live pricing, and lets you take payment in the same flow use it unless you specifically need this one.
</GuideItem>
</div>
</div>
),
},
],
};