import React from "react"; import { Building2, Palette, Bell, Mail, Scale, MessageCircle, LayoutDashboard, Timer, Play, CreditCard, ArrowUpDown, KeyRound } from "lucide-react"; import { GuideItem } from "@/components/shared/GuideItem"; import type { HelpContent } from "./types"; /** Help content for Site Settings (/dashboard/admin/settings). */ export const siteSettingsHelpContent: HelpContent = { title: "Site Settings help", subtitle: "Configure your organisation, branding, email, WhatsApp, payments, and legal pages.", quickLinks: [ { label: "Back to Admin dashboard", href: "/dashboard/admin", icon: LayoutDashboard }, ], tabs: [ { key: "organisation", label: "Organisation", icon: Building2, content: (

Your organisation's name, tagline, and contact details.

These feed the public Contact page directly — update them here and the Contact page updates automatically. The public URL of this site, used in email links like password resets and ticket delivery. Proves to Google that you own this site, so you can see search traffic and submit /sitemap.xml in Search Console. Add the site there as a URL-prefix property (e.g. https://events.yourchurch.org/), pick the HTML tag method, paste the tag here and save, then click Verify. Each site has its own code. Google finds your events without this; it only unlocks the Search Console reports.
), }, { key: "branding", label: "Branding", icon: Palette, content: (

Your logo and accent color.

This only recolors the organisation name next to the logo in the top navigation bar. Every other button, link, and highlight across the site uses a fixed color scheme by design — changing this setting won't change anything else.
), }, { key: "notifications", label: "Notifications", icon: Bell, content: (

The email address(es) that get notified whenever someone registers for an event — separate multiple addresses with commas.

), }, { key: "email", label: "Email", icon: Mail, content: (

Outgoing SMTP settings used for tickets, payment confirmations, and account emails.

If left blank, the server falls back to its own environment configuration. The SMTP password is stored encrypted.
), }, { key: "legal", label: "Legal", icon: Scale, content: (

Details used to populate the site's Privacy Policy and Terms pages — operator name, information officer details, website URL, and effective date.

), }, { key: "whatsapp", label: "WhatsApp", icon: MessageCircle, content: (

Connects the site to a WhatsApp number (via WAWP) for sending tickets and notifications.

Enter your WAWP access token, set up a session instance (create new or enter an existing one), then scan the QR code (or use a phone pairing code) to link a WhatsApp number. Once connected, the status card shows live connection health and auto-refreshes while reconnecting. If it fails, the system attempts to auto-recover and emails an admin alert if that doesn't work.
), }, { key: "payments", label: "Payments", icon: CreditCard, content: (

Online payments: which providers people can pay with, and each provider's settings.

Tick a provider to let people pay with it, and use the arrows to set the order. The first provider that's ticked and set up is the default. If none is, online payments are off and people pay at the door. Shown while Yoco is ticked. Paste the secret key, then generate the webhook (or enter its secret) so payments are confirmed automatically. Secrets are stored encrypted and never shown in full. Shown while PayFast is ticked. Enter the merchant ID, merchant key and salt passphrase from your PayFast dashboard (Settings), and choose Sandbox to test or Live for real payments. The passphrase must match the dashboard exactly. When more than one provider is ticked, payers choose how to pay. Online payments must be at least R15. Payments are recorded at the full amount paid; provider fees aren't deducted or added to the payer's total — deal with them at cashup.
), }, { key: "jobs", label: "Background jobs", icon: Timer, content: (

Tasks the server runs on a schedule: the daily summary email, waitlist offers, feedback forms, session reminders and certificates, consent reminders, analytics, the nightly backup and temp-file cleanup.

Each job shows when it runs and when it runs next. Click a job's last result to see its last 10 runs — when they started and finished, and what they did (or the error). A failed run is retried twice. Runs a job straight away, e.g. to send a feedback form without waiting. It's recorded in the audit log.

Jobs run once per schedule even when more than one server process is running. Schedules and on/off switches are set by the server's environment variables.

), }, ], };