import React from "react"; import { Building2, Palette, Bell, Mail, Scale, MessageCircle, LayoutDashboard, Timer, Play, CreditCard, ArrowUpDown, KeyRound, ArrowUpCircle, MapPinned, Archive, Users, BellOff, Megaphone, Webhook, Send } 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: "campuses", label: "Campuses", icon: MapPinned, content: (

For a church with more than one campus. Off by default — a church with one campus never sees campus fields anywhere.

Tick Use campuses, then add each campus: its name, web address (its page is /campus/…), address, contact, colour and the default location for its events. The order you set is the order of every campus list. Each event belongs to one campus, or to All campuses for church-wide conferences and camps. The events page gets a campus filter (remembered per visitor, starting on their home campus); a campus shows its own events plus the church-wide ones. People can choose a home campus on their profile. In Email and WhatsApp broadcasts, Everyone at a campus adds the people whose home campus it is — and, ticked, people who registered for its events in the last 12 months. News still only goes to people who opted in. A campus with events — or with staff limited to it — can't be deleted; archive it instead: it disappears from filters and new events, and its events keep it. Turning campuses off hides everything campus-related, and staff limits are ignored while off; nothing is deleted, and it all comes back when you turn them on again. In Admin → Users, a supervisor or staff member can be limited to some campuses — they then only work with those campuses' events and events for all campuses. See the Users help for what they can and can't do.
), }, { 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 — save, then use Test connection to check. 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: "webhooks", label: "Webhooks", icon: Webhook, content: (

Send what happens here to another system as it happens — for example to ChurchSuite, Planning Center or a Google Sheet through Zapier or Make.

"+ Add webhook": a name, the https address the other system gave you, and what to send — registrations made, paid or cancelled, payments and refunds, check-ins, new accounts, published events. Copy the signing secret it shows (once) into the other system so it can check requests really come from you. "Send test" sends a test message straight away. The delivery log shows everything sent in the last 30 days, what came back, and the full message. Anything that fails is tried again after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours; "Resend" tries again now. Webhooks send names, email addresses and phone numbers, so each webhook is added to your operator register (Admin → Privacy) — have an agreement with the service. Children's details from kids check-in are never sent. Switch a webhook off or delete it at any time.
), }, { 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.

), }, { key: "licence", label: "Licence", icon: KeyRound, content: (

The site's licence and its connection to the Cross Events Hub. The site checks in every 15 minutes with its version, health and totals — never anyone's personal information.

Enter the licence key you received (CEH-XXXX-XXXX-XXXX-XXXX). If the site moves to a new address, ask your provider to release the licence, then connect again. After the licence's end date everything keeps working for the grace period (usually 14 days); only site admins see a reminder. When a licence is suspended, revoked or past its grace period, nothing new can be added — no events, registrations or payments. Tickets for events people already paid for still scan, and all data can still be viewed and exported. When a new version is out, the Version box shows what's new in it, so you can decide whether you want it. Press Request update and your provider updates the site for you — there's nothing to run yourself. Changed your mind? Withdraw request tells your provider not to. If a newer version comes out before your provider has updated the site, the page shows which version you asked for and offers "Ask for … instead". Not now (on the Licence page or the update banner) hides the reminder until the next version comes out. Updates that fix a security problem or a serious bug can't be put off. Your provider can post notices, such as planned maintenance. Site admins and supervisors see them as a banner at the top of the dashboard; close one with ×. Current notices are also listed on this page.
), }, ], };