How ayingaran/arscheck works
ArsCheck supports exhibition staff from sign-in through admin operations or staff scanning: visitors and tours are managed, tickets are checked against tour windows, and attendance is surfaced in dashboards and analytics. The Next.js page selects the role-specific experience; authenticated API handlers enforce permissions and access Supabase. The README also documents CSV exports and realtime attendance refreshes. Some implementation details were not sampled, so those documented capabilities are shown at subsystem level rather than with speculative internal links.
Main entry points: dashboard.tsx Operations dashboard · page.tsx App shell and roles · supabase-server.ts Server Supabase client · route.ts Check-in validation
Components 21
Staff experience
- App shell and roles
src/app/page.tsx - Sign-in
src/components/login-screen.tsx - Operations dashboard
src/components/dashboard.tsx - QR and manual scanner
src/components/scanner.tsx - QR ticket display
src/components/ticket-dialog.tsx - Attendance analytics
src/components/checkin-chart.tsx - Ticket distribution
src/components/ticket-type-chart.tsx
Visitor and tour operations
- Visitor management dialogs
src/components - Tour management dialogs
src/components
API and security
- Visitor routes
src/app/api/visitors - Tour routes
src/app/api/tours - Check-in validation
src/app/api/check-in/route.ts - Dashboard statistics
src/app/api/dashboard-stats/route.ts - API role authorization
src/lib/api-auth.ts - Authenticated API client
src/lib/auth-fetch.ts
Data and integrations
- Domain data types
src/lib/types.ts - Browser Supabase client
src/lib/supabase-browser.ts - Server Supabase client
src/lib/supabase-server.ts - Supabase PostgreSQL
supabase/schema.sql - Supabase Auth and Realtime
Other components
- Exhibition staff
Connections 31
- Exhibition staff → App shell and roles: uses
README.md - App shell and roles → Sign-in: shows
src/app/page.tsx - App shell and roles → Operations dashboard: renders
src/app/page.tsx - App shell and roles → QR and manual scanner: renders
src/app/page.tsx - Sign-in → Browser Supabase client: authenticates with
src/components/login-screen.tsx - App shell and roles → Browser Supabase client: reads session
src/app/page.tsx - Operations dashboard → Visitor management dialogs: opens
src/components/dashboard.tsx - Operations dashboard → Tour management dialogs: opens
src/components/dashboard.tsx - Operations dashboard → QR ticket display: displays
src/components/dashboard.tsx - Operations dashboard → Attendance analytics: renders
src/components/dashboard.tsx - Operations dashboard → Ticket distribution: renders
src/components/dashboard.tsx - Operations dashboard → Authenticated API client: requests
src/components/dashboard.tsx - QR and manual scanner → Authenticated API client: submits check-in
src/components/scanner.tsx - Authenticated API client → Browser Supabase client: gets access token
src/lib/auth-fetch.ts - QR and manual scanner → Check-in validation: posts ticket code
src/components/scanner.tsx - Visitor management dialogs → Visitor routes: manages visitors
README.md - Tour management dialogs → Tour routes: manages tours
README.md - App shell and roles → Dashboard statistics: loads dashboard data
src/app/page.tsx - Check-in validation → API role authorization: requires staff or admin
src/app/api/check-in/route.ts - Visitor routes → API role authorization: checks admin role
README.md - Tour routes → API role authorization: checks admin role
README.md - Dashboard statistics → API role authorization: checks admin role
README.md - Check-in validation → Server Supabase client: gets database client
src/app/api/check-in/route.ts - Visitor routes → Server Supabase client: accesses database
src/app/api/visitors/route.ts - Tour routes → Server Supabase client: accesses database
src/app/api/tours/route.ts - Dashboard statistics → Server Supabase client: reads data
src/app/api/dashboard-stats/route.ts - Server Supabase client → Supabase PostgreSQL: queries
README.md - Browser Supabase client → Supabase Auth and Realtime: uses auth and realtime
README.md - App shell and roles → Operations dashboard: refreshes attendance
src/app/page.tsx - Operations dashboard → Domain data types: uses domain records
src/components/dashboard.tsx - Check-in validation → Domain data types: returns visitor record