Staff, supervisor and admin dashboards start with what's on today (checked in vs places, children in now, volunteers here; money in today and this week for supervisors) and, for supervisors and admins, what's waiting for someone (unpaid registrations, consent, waitlists, cover requests, roster gaps; for admins cashups, reconciling, privacy requests, failed webhooks), each linking to where it's dealt with. Ctrl+K opens a palette of pages, settings, reports and actions for the role, with search: events, payments by amount, people and registrations (admins). All campus-scoped. Bulk actions and saved filters follow as 1.49.1 and 1.49.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
75 lines
4.4 KiB
TypeScript
75 lines
4.4 KiB
TypeScript
import React from "react";
|
|
import { TrendingUp, Zap, Shield, Users, Calendar, BarChart2, Settings, CalendarClock, Search } from "lucide-react";
|
|
import { GuideItem } from "@/components/shared/GuideItem";
|
|
import type { HelpContent } from "./types";
|
|
|
|
/** Help content for the Admin dashboard root (/dashboard/admin). */
|
|
export const dashboardAdminHelpContent: HelpContent = {
|
|
title: "Admin dashboard help",
|
|
subtitle: "An overview of what's happening across all your events.",
|
|
quickLinks: [
|
|
{ label: "Manage users", href: "/dashboard/admin/users", icon: Users },
|
|
{ label: "Manage events", href: "/dashboard/supervisor/events", icon: Calendar },
|
|
{ label: "Reports", href: "/dashboard/supervisor/reports", icon: BarChart2 },
|
|
{ label: "Site Settings", href: "/dashboard/admin/settings", icon: Settings },
|
|
],
|
|
tabs: [
|
|
{
|
|
key: "overview",
|
|
label: "Overview",
|
|
icon: TrendingUp,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>The top row and the sections below it summarise your events at a glance — no need to open Reports for a quick check.</p>
|
|
<div className="space-y-4">
|
|
<GuideItem icon={CalendarClock} title="Today and Waiting for you" tone="blue">
|
|
What's on today — each event or session with how many people are checked in so far, children in at kids church, and volunteers here. Money in today and over the last week. "Waiting for you" lists what needs someone — unpaid registrations for the next two weeks, parental consent still outstanding, waitlists, cover requests and roster gaps (and for admins: cashups, payments to reconcile, privacy requests, failed webhooks); click one to deal with it. It refreshes every 30 seconds.
|
|
</GuideItem>
|
|
<GuideItem icon={Search} title="Search or jump to — Ctrl K" tone="violet">
|
|
Press Ctrl K (⌘K on a Mac) anywhere in the dashboard, or use the button at the top: type a page, setting or report and press Enter, start an action like "New event", or find an event or a payment by amount ("R450") — admins also find people and registrations.
|
|
</GuideItem>
|
|
<GuideItem icon={TrendingUp} title="Past month's KPIs" tone="brand">
|
|
Active events, revenue, donations, registrations, and tickets sold — each covers a rolling 30-ish days (today back one month), compared against the equivalent month before that, for an apples-to-apples comparison.
|
|
</GuideItem>
|
|
<GuideItem icon={BarChart2} title="Revenue trend & top events" tone="green">
|
|
A day-by-day revenue chart for the past month, and a ranking of your best-performing events by revenue, registrations, and tickets sold.
|
|
</GuideItem>
|
|
<GuideItem icon={Zap} title="Payments overview" tone="amber">
|
|
Today, past week, and past month totals — a quicker check than opening Reports for a simple "how much came in" question.
|
|
</GuideItem>
|
|
</div>
|
|
<p className="text-xs text-gray-500">For a deeper breakdown, filters, and exports, use Reports instead — this page is a summary, not a substitute.</p>
|
|
</div>
|
|
),
|
|
},
|
|
{
|
|
key: "actions",
|
|
label: "Quick actions",
|
|
icon: Zap,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>The Quick actions grid is a shortcut to every admin tool — managing users and events, taking payments, scanning tickets, reports, messaging attendees, WhatsApp API setup, and post-event cashup.</p>
|
|
</div>
|
|
),
|
|
},
|
|
{
|
|
key: "roles",
|
|
label: "Roles & permissions",
|
|
icon: Shield,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>As an admin you can also open Supervisor and Staff tools — nothing is hidden from you. Other roles see less by design:</p>
|
|
<div className="space-y-4">
|
|
<GuideItem icon={Shield} title="Supervisor" tone="green">
|
|
Sees the same financial overview you do (revenue, donations, top events), but can't manage users, WhatsApp API settings, or close out event cashups.
|
|
</GuideItem>
|
|
<GuideItem icon={Shield} title="Staff" tone="gray">
|
|
Scan-tickets and event-tickets tools only — no revenue or donation figures at all. That's intentional, not a bug, if a staff member asks why their dashboard looks different.
|
|
</GuideItem>
|
|
</div>
|
|
</div>
|
|
),
|
|
},
|
|
],
|
|
};
|