How alexandergdlc/tupichanga works
This is a Next.js sports-venue booking platform: customers discover venues and courts, book time slots, and manage their reservations; venue owners administer venues, courts, schedules, and bookings. Server actions centralize booking and management mutations, while authentication gates protected workflows. The available excerpts establish several calls, but much of the UI and action implementation is unsampled, so those parts are represented without speculative wiring.
Main entry points: actions.ts Server actions · auth.ts Authentication · admin/page.tsx Owner dashboard · my-bookings/page.tsx My bookings
Components 25
Venue discovery
- Venue search
src/app/search/page.tsx - Venue details
src/app/venue/[id]/page.tsx
Reservations
- Booking calendar
src/components/BookingCalendar.tsx - My bookings
src/app/my-bookings/page.tsx - Reservation cards
src/components/MyBookingsClient.tsx - Reschedule booking
src/components/RescheduleModal.tsx
Venue operations
- Owner dashboard
src/app/admin/page.tsx - Booking status
src/components/BookingStatusManager.tsx - Court filter
src/components/CourtFilter.tsx - Venue management
src/app/admin/venues/[id]/page.tsx - Venue form
src/components/VenueForm.tsx - Create court
src/components/CreateCourtForm.tsx - Edit court
src/components/EditCourtForm.tsx - Court schedules
src/components/EditCourtForm.tsx - Venue analytics
src/components/DashboardCharts.tsx - Subscription management
src/app/admin/subscription/SubscriptionForm.tsx - Server actions
src/app/actions.ts
Identity and access
- Login
src/components/LoginForm.tsx - Registration
src/components/RegisterForm.tsx - Profile
src/components/ProfileForm.tsx - Authentication
src/auth.ts - Access policy
src/auth.config.ts
Other components
- Customer
- Venue owner
- Application database
Connections 29
- Venue details → Booking calendar: renders
src/app/venue/[id]/page.tsx - My bookings → Reservation cards: renders
src/app/my-bookings/page.tsx - My bookings → Server actions: expires bookings
src/app/my-bookings/page.tsx - Reservation cards → Reschedule booking: opens
src/components/MyBookingsClient.tsx - Booking calendar → Server actions: calls booking actions
src/components/BookingCalendar.tsx - Reschedule booking → Server actions: calls reschedule action
src/components/RescheduleModal.tsx - Owner dashboard → Server actions: loads bookings
src/app/admin/page.tsx - Owner dashboard → Court filter: renders
src/app/admin/page.tsx - Owner dashboard → Booking status: renders
src/app/admin/page.tsx - Booking status → Server actions: updates status
src/components/BookingStatusManager.tsx - Venue form → Server actions: creates venue
src/components/VenueForm.tsx - Edit court → Server actions: updates court
src/components/EditCourtForm.tsx - Edit court → Server actions: saves schedules
src/components/EditCourtForm.tsx - Venue management → Server actions: loads venue data
src/app/admin/venues/[id]/page.tsx - Venue analytics → Server actions: loads statistics
src/app/admin/venues/[id]/dashboard/page.tsx - Subscription management → Server actions: submits payment
src/app/admin/subscription/SubscriptionForm.tsx - Login → Server actions: submits credentials
src/components/LoginForm.tsx - Registration → Server actions: registers account
src/components/RegisterForm.tsx - Profile → Server actions: updates profile
src/components/ProfileForm.tsx - Authentication → Access policy: uses configuration
src/auth.ts - Authentication → Application database: looks up users
src/auth.ts - Access policy → Authentication: configures sessions
src/auth.ts - Server actions → Authentication: checks session
src/app/actions.ts - Server actions → Application database: reads and writes
src/app/actions.ts - Venue details → Authentication: checks session
src/app/venue/[id]/page.tsx - My bookings → Authentication: checks session
src/app/my-bookings/page.tsx - Owner dashboard → Authentication: checks session
src/app/admin/page.tsx - Customer → Venue search: browses venues
- Venue owner → Owner dashboard: manages venue