How james-balito/nails-booking-system works
GlossX Claw is a nail-salon portfolio and appointment-management app. Clients browse designs and services, then start a booking flow from the landing page; the gallery provides design/service data and includes the booking calendar. Signed-in users and admins have separate dashboard routes, while admins also manage gallery designs. The README describes availability, booking approval, image uploads, and sales tracking, but sampled source does not show the booking persistence or management implementation; those relationships are therefore not asserted.
Main entry points: App.tsx Route Application · supabaseClient.ts Supabase Client · welcome-page.tsx Landing Page · gallery.tsx Design Gallery
Components 24
Client Experience
- Landing Page
src/pages/welcome-page.tsx - Services Section
src/pages/sections/services.tsx - Testimonials
src/pages/sections/testimonials.tsx - Contact Section
src/pages/sections/contact.tsx
Booking and Gallery
- Design Gallery
src/pages/sections/gallery.tsx - Booking Calendar
src/components/booking-calendar.tsx - Booking Selection
src/components/ui/booking-selection-modal.tsx - Design Catalog API
src/api/designs.ts - Service Catalog API
src/api/services.ts
Identity and Access
- Route Application
src/App.tsx - Supabase Client
src/config/supabaseClient.ts - Login
src/pages/auth/login.tsx - Sign Up
src/pages/auth/sign-up.tsx - Auth Context
src/context/authContext.tsx - User Route Guard
src/route/protected-route.tsx - Admin Route Guard
src/route/admin-route.tsx
Administration
- User Dashboard
src/pages/user-dashboard.tsx - Admin Dashboard
src/pages/admin/admin-dashboard.tsx - Admin Layout
src/components/layout/admin/admin-layout.tsx - Gallery Management
src/pages/admin/gallery/index.tsx - Design Editor
src/components/layout/form/gallery/design-form.tsx - User Management
src/pages/users/index.tsx
Other components
- Client
- Supabase
Connections 35
- Client → Landing Page: browses
src/pages/welcome-page.tsx - Client → Login: signs in
- Client → Sign Up: registers
- Landing Page → Design Gallery: renders
src/pages/welcome-page.tsx - Landing Page → Services Section: renders
src/pages/welcome-page.tsx - Landing Page → Testimonials: renders
src/pages/welcome-page.tsx - Landing Page → Contact Section: renders
src/pages/welcome-page.tsx - Landing Page → Design Gallery: sets booking intent
src/pages/welcome-page.tsx - Design Gallery → Design Catalog API: loads designs
src/pages/sections/gallery.tsx - Design Gallery → Service Catalog API: loads services
src/pages/sections/gallery.tsx - Design Gallery → Booking Calendar: uses calendar
src/pages/sections/gallery.tsx - Design Gallery → Booking Selection: opens booking
- Design Catalog API → Supabase Client: queries catalog
src/api/designs.ts - Service Catalog API → Supabase Client: queries services
src/api/services.ts - Supabase Client → Supabase: connects
src/config/supabaseClient.ts - Login → Supabase Client: authenticates
src/pages/auth/login.tsx - Sign Up → Supabase Client: creates account
src/pages/auth/sign-up.tsx - Auth Context → Supabase Client: loads session
src/context/authContext.tsx - Route Application → Landing Page: routes to
src/App.tsx - Route Application → Login: routes to
src/App.tsx - Route Application → Sign Up: routes to
src/App.tsx - Route Application → User Route Guard: guards dashboard
src/App.tsx - Route Application → Admin Route Guard: guards admin
src/App.tsx - User Route Guard → Auth Context: checks session
src/route/protected-route.tsx - Admin Route Guard → Auth Context: checks role
src/route/admin-route.tsx - Route Application → User Dashboard: routes to
src/App.tsx - Route Application → Admin Layout: routes to
src/App.tsx - Admin Layout → Admin Dashboard: renders
src/App.tsx - Route Application → Gallery Management: routes to
src/App.tsx - Gallery Management → Design Catalog API: manages designs
src/pages/admin/gallery/index.tsx - Design Editor → Design Catalog API: saves designs
src/components/layout/form/gallery/design-form.tsx - Route Application → Design Editor: routes editor
src/App.tsx - Route Application → User Management: routes to
src/App.tsx - Admin Dashboard → Supabase Client: reads dashboard data
src/pages/admin/admin-dashboard.tsx - User Management → Supabase Client: reads user data
src/pages/users/index.tsx