Archived
Staff can lock a section (or the whole event) to their device, download its tickets and keep scanning with no connection. Scans are queued in IndexedDB and synced idempotently when back online; conflicts go into a sync report for supervisors, who can also force-release a lost device. The server now validates scan sections and refuses scans in a scope locked to another device. Adds a web app manifest and a service worker for the scanner page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
45 lines
2.6 KiB
TypeScript
45 lines
2.6 KiB
TypeScript
import React from "react";
|
|
import { QrCode, Filter, CheckCircle2, ShieldAlert, WifiOff } from "lucide-react";
|
|
import { GuideItem } from "@/components/shared/GuideItem";
|
|
import type { HelpContent } from "./types";
|
|
|
|
/** Help content for /dashboard/staff/ticket-scanning. */
|
|
export const staffTicketScanningHelpContent: HelpContent = {
|
|
title: "Scanning tickets",
|
|
subtitle: "Validate attendees at the door with your camera.",
|
|
tabs: [
|
|
{
|
|
key: "how",
|
|
label: "How it works",
|
|
icon: QrCode,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>Point your camera at a ticket's QR code. A preview checks it belongs to the selected event (and section, if set), then a confirmation screen shows the holder, ticket type, and remaining quantity — you can adjust the redeem quantity before confirming.</p>
|
|
<div className="space-y-4">
|
|
<GuideItem icon={CheckCircle2} title="Outcomes" tone="green">
|
|
You'll see Success (with redeemed/remaining counts), Already Used, or an Error if something's wrong with the ticket.
|
|
</GuideItem>
|
|
<GuideItem icon={WifiOff} title="Offline mode" tone="amber">
|
|
Worried about the venue Wi-Fi? While you're online, pick the event and section and tap "Enable offline mode". The section is locked to your device and its tickets are downloaded, so you can keep scanning with no connection. Scans sync automatically when you're back online. Tickets bought after the download won't be on your list — send those people to the door desk. Tap "Release section" when you're done. Tip: add this page to your home screen so it opens offline.
|
|
</GuideItem>
|
|
<GuideItem icon={ShieldAlert} title="Parental consent" tone="rose">
|
|
On youth events, the confirm screen warns when a parent hasn't given consent yet (or declined). That person can't be checked in; a supervisor can override, and the override is recorded in the audit log.
|
|
</GuideItem>
|
|
</div>
|
|
</div>
|
|
),
|
|
},
|
|
{
|
|
key: "filters",
|
|
label: "Filters",
|
|
icon: Filter,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>The Event filter defaults to events that ended within the last 12 hours — toggle it to see older events. If the event has sections defined, a Section filter restricts which ticket types are valid at this scan point.</p>
|
|
<p className="text-xs text-gray-500">Changing the event or section filter stops any scan in progress.</p>
|
|
</div>
|
|
),
|
|
},
|
|
],
|
|
};
|