Volunteer rosters: serving, roster and check-in pages, help, e2e

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-28 03:59:52 +02:00
co-authored by Claude Opus 5.5
parent a9f13a1b0a
commit 4166096706
19 changed files with 1023 additions and 7 deletions
@@ -35,6 +35,7 @@ import { staffEventTicketsHelpContent } from "./staff-event-tickets";
import { staffTicketScanningHelpContent } from "./staff-ticket-scanning";
import { userFormsHelpContent } from "./user-forms";
import { kidsDeskHelpContent, kidsRoomsHelpContent, kidsSetupHelpContent, userKidsHelpContent } from "./kids";
import { staffVolunteersHelpContent, userServingHelpContent, volunteerRostersHelpContent } from "./volunteers";
type HelpRegistryEntry = {
/** Unique, stable identifier for this guide. */
@@ -181,6 +182,21 @@ const REGISTRY: HelpRegistryEntry[] = [
matches: pathname => pathname === "/dashboard/user/kids",
content: userKidsHelpContent,
},
{
slug: "supervisor-volunteers",
matches: pathname => pathname === "/dashboard/supervisor/volunteers",
content: volunteerRostersHelpContent,
},
{
slug: "staff-volunteers",
matches: pathname => pathname === "/dashboard/staff/volunteers",
content: staffVolunteersHelpContent,
},
{
slug: "user-serving",
matches: pathname => pathname === "/dashboard/user/serving",
content: userServingHelpContent,
},
{
slug: "staff-my-groups",
matches: pathname => pathname === "/dashboard/staff/my-groups",
@@ -0,0 +1,113 @@
import React from "react";
import { Baby, BarChart2, CheckCircle2, ClipboardList, HandHeart, QrCode, Repeat, Ticket, UserPlus } from "lucide-react";
import { GuideItem } from "@/components/shared/GuideItem";
import type { HelpContent } from "./types";
/** Help content for /dashboard/supervisor/volunteers (setting up rosters). */
export const volunteerRostersHelpContent: HelpContent = {
title: "Volunteer rosters",
subtitle: "Plan who serves where, for an event or each session.",
tabs: [
{
key: "roles",
label: "Roles",
icon: ClipboardList,
content: (
<div className="space-y-4">
<p>Pick the event and tap &quot;Add a role&quot;: Welcome, Parking, Kids, Sound, Kitchen… with the number of people needed. On an event with sessions, each role is for one session — add the roles to every session that needs them. Rosters never repeat by themselves.</p>
<GuideItem icon={HandHeart} title="Shift times" tone="brand">
Leave the times empty and the role covers the session&apos;s (or event&apos;s) times. Give times for shifts like setting up before the service. Nobody can be in two roles at the same time, so give times when one person does two jobs one after the other.
</GuideItem>
<GuideItem icon={Baby} title="Kids rooms" tone="amber">
When kids check-in is set up for the event, link a role to a kids room. Its volunteers count as leaders on duty in that room once they check in, for the room&apos;s ratio. The room screen also lists who is rostered but not in yet.
</GuideItem>
</div>
),
},
{
key: "people",
label: "People",
icon: UserPlus,
content: (
<div className="space-y-4">
<p>Anyone with an account can sign up for a role that isn&apos;t full, under My account → Serving. You can also put someone on a role with the person button — even when it&apos;s full. They&apos;re told either way, and get a reminder the day before their shift.</p>
<GuideItem icon={Repeat} title="Swaps" tone="gray">
A volunteer who can&apos;t make it asks for cover. The event&apos;s other volunteers are told, and the first to accept takes the place straight away — nobody needs to approve it. The event&apos;s notification recipients get an email about every swap, and when someone withdraws.
</GuideItem>
<p>Delete a role or take someone off with the bin or ✕ — the volunteers are told. Once someone has checked in, they stay on (it counts for hours served).</p>
</div>
),
},
{
key: "day",
label: "On the day",
icon: QrCode,
content: (
<div className="space-y-4">
<p>Show or print the &quot;Check-in QR&quot; and put it up where volunteers arrive. They scan it with their phone&apos;s camera, log in, and are checked in for their shifts that day. Staff can also tick people in on the roster (Staff → Volunteers), and undo it.</p>
<GuideItem icon={CheckCircle2} title="The roster sheet" tone="green">
Each role shows who is serving, their phone number, and when they checked in (QR or by whom). &quot;Print&quot; gives a paper sheet with tick boxes.
</GuideItem>
</div>
),
},
{
key: "ticket",
label: "Ticket and hours",
icon: Ticket,
content: (
<div className="space-y-4">
<GuideItem icon={Ticket} title="Free volunteer ticket" tone="brand">
Off by default. Choose a ticket of the event (or add a free &quot;Volunteer&quot; ticket) and everyone on the roster gets a free place on it, unless they already have a ticket. It&apos;s never offered to the public and is given back when they leave the roster.
</GuideItem>
<GuideItem icon={BarChart2} title="Hours served" tone="gray">
Hours per person over all events (or one), counting the shifts they checked in for at the shift&apos;s length.
</GuideItem>
</div>
),
},
],
};
/** Help content for /dashboard/staff/volunteers (the roster on the day). */
export const staffVolunteersHelpContent: HelpContent = {
title: "Volunteers",
subtitle: "Who is serving today, and checking them in.",
tabs: [
{
key: "day",
label: "On the day",
icon: CheckCircle2,
content: (
<div className="space-y-4">
<p>Pick the event. The roster shows every role, who is on it, and who has checked in. Volunteers check themselves in by scanning the check-in QR code — tap &quot;Show the check-in QR code&quot; to put it on a screen. Someone without a phone? Tap &quot;Check in&quot; next to their name.</p>
<p>Volunteers in a role linked to a kids room count as leaders on duty in that room once they&apos;re checked in. Undoing a check-in takes them off duty.</p>
</div>
),
},
],
};
/** Help content for /dashboard/user/serving. */
export const userServingHelpContent: HelpContent = {
title: "Serving",
subtitle: "Your volunteer shifts.",
tabs: [
{
key: "shifts",
label: "Your shifts",
icon: HandHeart,
content: (
<div className="space-y-4">
<p>Choose an event under &quot;Serve at an event&quot; and sign up for a role that has space. You&apos;ll get a reminder the day before. When you arrive, scan the volunteer check-in QR code with your phone&apos;s camera.</p>
<GuideItem icon={Repeat} title="Can't make it?" tone="amber">
Tap &quot;Can&apos;t make it&quot;. The other volunteers at the event are asked to take over, and you stay on the roster until someone does — then you&apos;re told. If you can make it after all, cancel the request. You can also withdraw; the organisers are told.
</GuideItem>
<GuideItem icon={Ticket} title="Volunteer ticket" tone="gray">
Some events give volunteers a free ticket. It shows in My Events.
</GuideItem>
</div>
),
},
],
};