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-payments.tsx
T
joshuaandClaude Opus 5.5 93cff6099e Add sponsor a spot
Events can allow sponsorships: a "Sponsor a spot" button lets anyone
(guests included) pay through Yoco for whole spots or a custom amount,
anonymously or with a name and message. Payments land as event
donations in a sponsorship pool that supervisors assign with the
existing donation flow. Adds optional public progress towards a goal,
a sponsor receipt and Automations thank-you, pool columns in the
Donations report, and sponsorship labels/filter in Payments.

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

49 lines
2.4 KiB
TypeScript

import React from "react";
import { Wallet, RotateCcw, HandHeart, ScanLine, Link2 } from "lucide-react";
import { GuideItem } from "@/components/shared/GuideItem";
import type { HelpContent } from "./types";
/** Help content for /dashboard/supervisor/payments. */
export const supervisorPaymentsHelpContent: HelpContent = {
title: "Payments help",
subtitle: "Record payments, refunds, donations, and reconcile card transactions.",
tabs: [
{
key: "modes",
label: "The five modes",
icon: Wallet,
content: (
<div className="space-y-4">
<div className="space-y-4">
<GuideItem icon={Wallet} title="Payment" tone="brand">
Record a manual payment against a registration or a donation, with amount, method, and an optional backdated time.
</GuideItem>
<GuideItem icon={RotateCcw} title="Refund" tone="rose">
Refund a specific payment or a registration — pick the user, target, amount and method, and a reason.
</GuideItem>
<GuideItem icon={HandHeart} title="Donations" tone="rose">
Assign an unassigned donation to a registration with an outstanding balance. Donations can be partially allocated, leaving the remainder available for another registration. Money from &quot;Sponsor a spot&quot; is marked as a sponsorship. Tick &quot;Only the sponsorship pool&quot; to assign just those, and you&apos;ll see the sponsor&apos;s message. The Donations breakdown report shows each event&apos;s pool: received, assigned and remaining.
</GuideItem>
<GuideItem icon={ScanLine} title="Reconcile" tone="green">
Match unreconciled Yoco card transactions to a registration, log them as a donation, or ignore them.
</GuideItem>
<GuideItem icon={Link2} title="Payment Link" tone="violet">
Generate a Yoco checkout link for a user to pay online — copy it or send by email/WhatsApp. Generating a new link invalidates the previous one.
</GuideItem>
</div>
</div>
),
},
{
key: "sidebar",
label: "Today panel",
icon: Wallet,
content: (
<div className="space-y-4">
<p>The sidebar shows today&apos;s payment count, revenue, and donation count, plus a recent-payments feed. Internal donation-allocation entries are excluded there to avoid double-counting.</p>
</div>
),
},
],
};