How jaroenwitsorose/guan-badminton works
This is a badminton-group operations web app: players check the live court board, register ahead, review results, pay balances, and contact organizers; staff check players in, arrange and score games, manage days and members, and reconcile payments. The graph preserves the documented demo, photo, audit, export, and standings capabilities. Several subsystems are represented from README descriptions and the source index rather than inspected implementations, so their links cite the README and uncertain internal wiring is omitted.
Main entry points: board.ts Game and check-in actions · prisma.ts Application database · page.tsx Public pages · staff-board.tsx Staff court board
Components 27
Player experience
- Public pages
src/app/(public)/page.tsx - Live board
src/components/board-view.tsx - Advance registration
src/app/(public)/register/register-client.tsx - Game history
src/app/(public)/history/page.tsx - Member standings
src/app/(public)/members/page.tsx - Organizer messages
src/app/(public)/message/page.tsx - Player payments
src/app/(public)/pay/[id]/page.tsx
Court operations
- Staff court board
src/app/staff/(panel)/staff-board.tsx - Game and check-in actions
src/actions/board.ts - Matchmaking
src/lib/matchmaker.ts - Game scoring
src/lib/scoring.ts - Play-day management
src/app/staff/(panel)/days/days-manager.tsx
Members and finance
- Registration actions
src/actions/registration.ts - Staff management actions
src/actions/manage.ts - Billing rules
src/lib/billing.ts - Payment reporting API
src/app/api/pay/[attendanceId]/route.ts - Player photo APIs
src/app/api/me/photo/route.ts
Application services
- Demo mode
src/lib/demo-flag.ts - Queries and statistics
src/lib/data.ts - Authentication and roles
src/lib/auth.ts - Action audit
src/lib/audit.ts - Application database
src/lib/prisma.ts - Photo and slip storage
src/lib/storage.ts
Other components
- Players
- Staff
- Organizer
- Vercel Blob
Connections 35
- Players → Public pages: browse
README.md - Public pages → Live board: shows board
README.md - Players → Advance registration: register ahead
README.md - Advance registration → Registration actions: submits registration
src/app/(public)/register/register-client.tsx - Players → Game history: review games
README.md - Players → Member standings: view standings
README.md - Players → Organizer messages: contact
README.md - Players → Player payments: pay balance
README.md - Player payments → Payment reporting API: reports transfer
README.md - Staff → Staff court board: manage games
README.md - Staff court board → Game and check-in actions: dispatches actions
README.md - Staff court board → Matchmaking: requests pairings
README.md - Game and check-in actions → Matchmaking: uses pairing logic
src/actions/board.ts - Game and check-in actions → Game scoring: validates scores
src/actions/board.ts - Staff → Play-day management: manage play days
README.md - Play-day management → Staff management actions: calls day actions
src/app/staff/(panel)/days/days-manager.tsx - Staff management actions → Application database: updates records
src/actions/manage.ts - Game and check-in actions → Application database: reads and writes
src/actions/board.ts - Registration actions → Application database: stores registrations
- Payment reporting API → Billing rules: computes balances
src/app/api/pay/[attendanceId]/route.ts - Payment reporting API → Photo and slip storage: saves slips
src/app/api/pay/[attendanceId]/route.ts - Photo and slip storage → Vercel Blob: stores online files
src/lib/storage.ts - Staff → Staff management actions: manage members
README.md - Staff management actions → Photo and slip storage: deletes photos
src/actions/manage.ts - Players → Player photo APIs: change own photo
README.md - Player photo APIs → Photo and slip storage: replaces photo
src/app/api/me/photo/route.ts - Public pages → Queries and statistics: loads board data
- Queries and statistics → Application database: queries records
- Staff → Authentication and roles: sign in
README.md - Authentication and roles → Application database: checks credentials
src/actions/auth.ts - Game and check-in actions → Authentication and roles: requires actor
src/actions/board.ts - Game and check-in actions → Action audit: records actions
src/actions/board.ts - Organizer → Staff court board: organize games
README.md - Staff → Demo mode: enable demo
README.md - Demo mode → Public pages: serves sample view