How angaoiyy/queue-csap works
This is a multi-office queue reservation and service-desk application built with Next.js and Supabase, rather than merely the starter kit described in the README. Visitors choose an office and student category, submit a reservation, and receive a queue ticket; staff manage queues while public displays show service status. Separate areas support authentication and staff approval, office-specific configuration, contact messages, and activity reporting. The sampled sources establish reservation, display, office lookup, and settings relationships; several other branches are preserved from the file tree and README but have limited implementation evidence.
Main entry points: reservation.ts Reservation Actions · server.ts Server Client · page.tsx Office Landing · display-screen.tsx Queue Display
Components 28
Public Experience
- Office Landing
app/page.tsx - Reservation Choice
app/[office]/reserve/page.tsx - New Student Form
components/admission-form.tsx - Returning Student Form
components/reservation-form.tsx - Contact Messages
lib/actions/contact.ts - Contact Forms
components/contact-section.tsx
Queue Operations
- Reservation Actions
lib/actions/reservation.ts - Ticket Printing
lib/printer/ticket.ts - Queue Console
components/admin-queue-panel.tsx - Display Route
app/[office]/display/page.tsx - Queue Display
components/display-screen.tsx - Display Media
lib/video.ts - Queue Announcements
lib/speech.ts
Administration
- Display Settings
lib/actions/display-settings.ts - Office Settings
lib/actions/settings.ts - Settings Console
components/settings-panel.tsx - Message Inbox
components/contact-messages-inbox.tsx - Staff Administration
lib/actions/staff.ts - Staff Approvals
components/staff-approvals.tsx - Activity Reporting
components/activity-logs-table.tsx
Identity
- Authentication Routes
app/auth/confirm/route.ts - Sign-in and Signup
components/sign-up-form.tsx
Data Access
- Office Lookup
lib/offices.ts - Session and Profile
lib/offices.ts - Server Client
lib/supabase/server.ts
Other components
- Visitor
- Supabase
- Ticket Printer
Connections 31
- Visitor → Office Landing: opens
app/page.tsx - Office Landing → Office Lookup: lists offices
app/page.tsx - Office Landing → Contact Forms: renders contact
app/page.tsx - Contact Forms → Contact Messages: submits message
components/contact-section.tsx - Message Inbox → Contact Messages: loads messages
components/contact-messages-inbox.tsx - Office Landing → Reservation Choice: links to reserve
app/page.tsx - Reservation Choice → Office Lookup: looks up office
app/[office]/reserve/page.tsx - New Student Form → Reservation Actions: creates reservation
components/admission-form.tsx - Returning Student Form → Reservation Actions: creates reservation
lib/actions/reservation.ts - Reservation Actions → Office Settings: loads form options
lib/actions/reservation.ts - Reservation Actions → Office Lookup: resolves office
lib/actions/reservation.ts - Reservation Actions → Display Settings: loads display config
lib/actions/reservation.ts - Reservation Actions → Ticket Printing: prints ticket
lib/actions/reservation.ts - Ticket Printing → Ticket Printer: sends ticket
- Reservation Actions → Server Client: creates client
lib/actions/reservation.ts - Office Settings → Server Client: creates client
lib/actions/settings.ts - Contact Messages → Server Client: creates client
lib/actions/contact.ts - Server Client → Supabase: connects
lib/supabase/server.ts - Display Route → Queue Display: renders
app/[office]/display/page.tsx - Queue Display → Reservation Actions: loads queue
components/display-screen.tsx - Queue Console → Reservation Actions: manages queue
components/admin-queue-panel.tsx - Queue Console → Display Settings: configures display
components/admin-queue-panel.tsx - Queue Display → Display Media: uses video
components/display-screen.tsx - Queue Display → Queue Announcements: announces queue
components/display-screen.tsx - Settings Console → Office Settings: edits settings
- Staff Approvals → Staff Administration: reviews staff
- Authentication Routes → Server Client: verifies token
app/auth/confirm/route.ts - Sign-in and Signup → Session and Profile: uses profile
- Session and Profile → Server Client: creates client
lib/offices.ts - Session and Profile → Supabase: reads profiles
lib/offices.ts - Activity Reporting → Reservation Actions: reports activity