Archived
155 lines
9.1 KiB
TypeScript
155 lines
9.1 KiB
TypeScript
import React from "react";
|
|
import { Baby, BellRing, CloudOff, KeyRound, LogIn, LogOut, PenLine, QrCode, Settings, ShieldAlert, ShieldCheck, Users } from "lucide-react";
|
|
import { GuideItem } from "@/components/shared/GuideItem";
|
|
import type { HelpContent } from "./types";
|
|
|
|
/** Help content for /dashboard/staff/kids (the kids check-in desk). */
|
|
export const kidsDeskHelpContent: HelpContent = {
|
|
title: "Kids check-in desk",
|
|
subtitle: "Check children in and out with pickup codes — no printer needed.",
|
|
tabs: [
|
|
{
|
|
key: "in",
|
|
label: "Checking in",
|
|
icon: LogIn,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>Pick the event (and session) at the top. Find the family by a parent's or child's name or phone number, or tap "Scan family QR" and scan the code on the parent's phone (My account → Kids). New here? Tap "New family" and add the parent and their first child.</p>
|
|
<div className="space-y-4">
|
|
<GuideItem icon={Users} title="Ticking children and rooms" tone="brand">
|
|
Tick the children being dropped off. Each one gets a room suggested from their age — the room with the narrowest age range that isn't full. Change it if you need to. Children already in show "In — room".
|
|
</GuideItem>
|
|
<GuideItem icon={KeyRound} title="The pickup code" tone="green">
|
|
Checking in gives the family a 4-character pickup code for today (or this session), shared by all the children checked in together. It's sent to the parents by WhatsApp or email and shows on their phone. You can also send it to one of the family's authorised adults. Anyone with the code can collect the children.
|
|
</GuideItem>
|
|
<GuideItem icon={PenLine} title="Write on the sticker" tone="amber">
|
|
Nothing is printed. The screen shows, in large letters, what to copy onto a blank name sticker for each child: first name, room, the pickup code and a short alert like ALLERGY: PEANUTS or MEDICAL. The full details stay on the room screen.
|
|
</GuideItem>
|
|
</div>
|
|
</div>
|
|
),
|
|
},
|
|
{
|
|
key: "out",
|
|
label: "Checking out",
|
|
icon: LogOut,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>On "Check out", type the code or scan the QR on the parent's phone. You'll see the family, the children on that code (with any custody notes) and who may collect them. Untick any child staying behind, choose or type who is collecting, and tap Check out.</p>
|
|
<GuideItem icon={ShieldAlert} title="A wrong code" tone="rose">
|
|
A code that doesn't match anyone is refused, recorded in the audit log and shown as a red alert on the room screens — check the person carefully before handing over any child.
|
|
</GuideItem>
|
|
<GuideItem icon={ShieldCheck} title="Without the code" tone="gray">
|
|
Phone dead or code lost? On "Who's in" (or the room screen), tap "Without code" on the child. You must say who is collecting and why; it's recorded in the audit log.
|
|
</GuideItem>
|
|
</div>
|
|
),
|
|
},
|
|
{
|
|
key: "offline",
|
|
label: "Offline",
|
|
icon: CloudOff,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>Before the service, while the Wi-Fi works, tap "Get ready for offline". The desk downloads the families and 20 pickup codes kept for this device. If the connection drops, the desk switches to the offline list (or tap "Work offline").</p>
|
|
<ul className="list-disc pl-5 space-y-1">
|
|
<li>Offline, no messages are sent — tell the parent their code.</li>
|
|
<li>Offline, you can only check out children checked in on <strong>this</strong> device.</li>
|
|
<li>New families and family QR codes need a connection; search by name or phone instead.</li>
|
|
<li>Back online, tap "Sync". If a family got a different code from another desk meanwhile, you'll be told which code to give them.</li>
|
|
</ul>
|
|
</div>
|
|
),
|
|
},
|
|
],
|
|
quickLinks: [{ label: "Room screen", description: "Children in each room, allergies and alerts", href: "/dashboard/staff/kids/rooms", icon: Users }],
|
|
};
|
|
|
|
/** Help content for /dashboard/staff/kids/rooms. */
|
|
export const kidsRoomsHelpContent: HelpContent = {
|
|
title: "Kids rooms",
|
|
subtitle: "Who is in your room, what to watch for, and calling a parent.",
|
|
tabs: [
|
|
{
|
|
key: "room",
|
|
label: "Your room",
|
|
icon: Users,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>Choose the event and your room (the screen remembers it). Each child's card shows their pickup code, allergies (red), medical notes (amber) and custody notes — for example "Do not release to …" — with the parents' names and the adults allowed to collect. The screen refreshes every few seconds.</p>
|
|
<GuideItem icon={Baby} title="I'm on duty" tone="brand">
|
|
Tap "I'm on duty in this room" when you start, and "I'm going off duty" when you leave. With a ratio set (e.g. 5 children per leader), the room shows "Over ratio" when there are more children than the leaders on duty can look after.
|
|
</GuideItem>
|
|
<GuideItem icon={BellRing} title="Call parent" tone="amber">
|
|
Sends the parents a WhatsApp (or email) asking them to come to the room, and shows it on their Kids page. Medical details are never put in the message.
|
|
</GuideItem>
|
|
<GuideItem icon={ShieldAlert} title="Alerts" tone="rose">
|
|
When someone at the desk enters a wrong pickup code, a red alert appears at the top. Tap "Dealt with" once you've checked.
|
|
</GuideItem>
|
|
</div>
|
|
),
|
|
},
|
|
],
|
|
};
|
|
|
|
/** Help content for /dashboard/supervisor/kids. */
|
|
export const kidsSetupHelpContent: HelpContent = {
|
|
title: "Kids check-in setup",
|
|
subtitle: "Switch kids check-in on for an event and set up its rooms.",
|
|
tabs: [
|
|
{
|
|
key: "setup",
|
|
label: "Setting up",
|
|
icon: Settings,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>For weekly kids church, use one event with a session per Sunday — families and children are kept between sessions, so parents only add their children once.</p>
|
|
<ol className="list-decimal pl-5 space-y-1">
|
|
<li><strong>Kids ticket:</strong> a main ticket covering the whole event. Each child gets a free place on it the first time they're checked in, so they show on the attendance register and reports. "Add a free Kids check-in ticket" makes one.</li>
|
|
<li><strong>Rooms:</strong> an allocation set; each group is a room with an age range, a capacity and how many children one leader may look after.</li>
|
|
<li><strong>Switch on.</strong> Staff then use Staff → Kids check-in.</li>
|
|
</ol>
|
|
<GuideItem icon={ShieldCheck} title="Children's information" tone="rose">
|
|
Allergies, medical and custody notes are stored encrypted, shown only to staff at the desk and in the rooms (opening those screens is written to the access log) and never sent in messages. Only parents, supervisors and admins can change custody notes. A child's profile is deleted after 6 months without a check-in (Admin → Privacy → Retention).
|
|
</GuideItem>
|
|
</div>
|
|
),
|
|
},
|
|
],
|
|
};
|
|
|
|
/** Help content for /dashboard/user/kids. */
|
|
export const userKidsHelpContent: HelpContent = {
|
|
title: "Kids",
|
|
subtitle: "Your children for kids check-in, and their pickup codes.",
|
|
tabs: [
|
|
{
|
|
key: "family",
|
|
label: "Your family",
|
|
icon: Baby,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>Add your children once — with their date of birth (so the right room is suggested), allergies and anything leaders should know. Custody notes (e.g. someone who may not collect them) are only shown to the room leaders.</p>
|
|
<GuideItem icon={Users} title="Authorised adults" tone="brand">
|
|
List the people who may collect your children, such as grandparents. They don't need an account. The room leader sees the list, and the desk can send them the pickup code.
|
|
</GuideItem>
|
|
<GuideItem icon={QrCode} title="Family QR code" tone="gray">
|
|
Show it at the kids desk to find your family quickly. It can't be used to collect children.
|
|
</GuideItem>
|
|
</div>
|
|
),
|
|
},
|
|
{
|
|
key: "codes",
|
|
label: "Pickup codes",
|
|
icon: KeyRound,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>When your children are checked in, their pickup code shows at the top of this page with a QR code, and is sent to you. Show it to collect them. Anyone you give the code to can collect them — use "Send the code to someone else". If a leader asks you to come to the room, it shows here too.</p>
|
|
<p className="text-xs text-gray-500">A child's details are deleted after 6 months without a check-in. You can remove them at any time.</p>
|
|
</div>
|
|
),
|
|
},
|
|
],
|
|
};
|