Files
crosscode-platform/apps/events/frontend/src/content/help/event-detail.tsx
T
joshuaandClaude Opus 5.5 736d17caff Add waitlist for sold-out tickets
Events can take a waitlist for sold-out lines. When places free up
(cancellation, smaller booking, higher stock limit) the next person is
offered them with a claim link and the places are held for a set time;
unclaimed offers expire and move on, with optional partial offers. Stock
is now counted in one place (utils/stock.js), including held places,
and manual registrations and booking edits are now stock-checked. Adds a
supervisor waitlist page, My Events waitlists, and the daily summary count.

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

61 lines
3.3 KiB
TypeScript

import React from "react";
import { Ticket, Tag, Share2, QrCode, Calendar, Users } from "lucide-react";
import { GuideItem } from "@/components/shared/GuideItem";
import type { HelpContent } from "./types";
/** Help content for a single public event page (/events/[id]). */
export const eventDetailHelpContent: HelpContent = {
title: "Event details help",
subtitle: "Understanding pricing, availability, and how to register.",
quickLinks: [
{ label: "Browse all events", href: "/events", icon: Calendar },
],
tabs: [
{
key: "tickets",
label: "Tickets & pricing",
icon: Tag,
content: (
<div className="space-y-4">
<p>The tickets panel lists every option available for this event, with live availability.</p>
<div className="space-y-4">
<GuideItem icon={Tag} title="Early-bird pricing" tone="amber">
If a discounted price is shown with the original struck through, an early-bird window is active — the price rises automatically once it ends. Got a discount code? Enter it on the registration page under &quot;Have a code?&quot; (you need to be logged in).
</GuideItem>
<GuideItem icon={Ticket} title="Availability badges" tone="brand">
&quot;N remaining&quot; appears once stock runs low, and &quot;Sold out&quot; once an option is fully booked. Some events have a waitlist: tap &quot;Join waitlist&quot; and you&apos;ll be emailed or WhatsApped a link to claim a place if one opens up (it&apos;s held for you for a limited time).
</GuideItem>
<GuideItem icon={Users} title="Registering for other people?" tone="violet">
Some events let you name each person you&apos;re booking for. Each named person gets their own ticket and their own attendee form, and you can choose to have every ticket sent to you or each person their own. On youth events, you&apos;ll give each person&apos;s date of birth; for anyone under 18, their parent or guardian is asked to give consent by email and WhatsApp before they can be checked in.
</GuideItem>
</div>
</div>
),
},
{
key: "registering",
label: "Registering",
icon: Ticket,
content: (
<div className="space-y-4">
<p>The Register button reflects the event&apos;s current state:</p>
<ul className="list-disc pl-5 space-y-1 text-sm text-gray-600">
<li><strong>Opens &lt;date&gt;</strong> — registration hasn&apos;t started yet.</li>
<li><strong>Registration closed</strong> — the deadline or event has passed.</li>
<li><strong>Sold Out</strong> — every ticket option is fully booked.</li>
<li><strong>Register</strong> — you&apos;re good to go.</li>
</ul>
<div className="space-y-4">
<GuideItem icon={Share2} title="Share & Save QR" tone="green">
Use Share to send the event link, or Save QR to download a scannable code for the page — handy for posters or flyers.
</GuideItem>
<GuideItem icon={QrCode} title="Downloads" tone="violet">
If the organiser has attached files (like a program or map), they appear in the Downloads section below the description.
</GuideItem>
</div>
</div>
),
},
],
};