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 4cae0fc672
CI / Backend tests (push) Canceled after 0s
CI / Frontend lint, typecheck, build (push) Canceled after 0s
CI / End-to-end tests (push) Canceled after 0s
CI / Deploy tagged release (push) Canceled after 0s
Fix the production build: escape quotes in the Payments help text
The deploy's next build fails on react/no-unescaped-entities. Bump to
1.37.3; the handover now says to lint the whole frontend before tagging.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 15:57:46 +02:00

49 lines
2.9 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 online payments (from Yoco, PayFast…) to a registration, log them as a donation, or ignore them. A payment of a different amount from its checkout lands here with a note — check it in the provider&apos;s dashboard first. &quot;Waiting for payment&quot; lists online checkouts with no payment yet: if someone paid but it hasn&apos;t shown up, press Check status (PayFast) — it&apos;s also checked automatically every 15 minutes. Yoco can&apos;t be checked automatically: find the payment in the Yoco portal.
</GuideItem>
<GuideItem icon={Link2} title="Payment Link" tone="violet">
Generate an online payment link for a user — copy it or send by email/WhatsApp. It uses the default payment provider (Site settings → Payments). Online payments must be at least R15. 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>
),
},
],
};