How lolo1809-sudo/prototipo_gym works
This is a multi-gym website and management app: visitors browse gym information, plans, reviews, gallery and products; members can sign in and submit reviews, while gym staff administer content, members, inventory and attendance. App loads gym-scoped data from Supabase and routes users to public or protected pages. The excerpts show several admin data hooks and the attendance workflow; other admin areas are represented by their existing directories. Relationships for unsampled modules are omitted rather than inferred.
Main entry points: App.jsx App router · config.jsx Supabase · adminUtils.js Gym identity lookup · Inicio.jsx Gym homepage
Components 20
Public experience
- App router
src/App.jsx - Gym homepage
src/pages/Inicio.jsx - Content sections
src/components - Product catalog
src/pages/CategoryPage.jsx - Product detail
src/pages/ProductDetail.jsx
Gym administration
- Staff login
src/pages/Login.jsx - Protected routes
src/components/RutaProtegida.jsx - Admin dashboard
src/pages/Admin/Admin.jsx - Gym profile
src/pages/Admin/InfoGym - Gallery admin
src/pages/Admin/Galeria - Plans admin
src/pages/Admin/Planes - Review moderation
src/pages/Admin/Comentarios - Trainer admin
src/pages/Admin/Trainers - Member admin
src/pages/Admin/Socios - Stock admin
src/pages/Admin/Stock - Attendance check-in
src/pages/Admin/Sesion/useSesion.js
Data and access
- Gym identity lookup
src/pages/Admin/adminUtils.js - Supabase
src/config.jsx
Other components
- Visitor
- Gym staff
Connections 26
- Visitor → App router: opens
src/App.jsx - Gym staff → App router: opens
src/App.jsx - App router → Supabase: loads gym data
src/App.jsx - App router → Gym homepage: routes to
src/App.jsx - App router → Product catalog: routes to
src/App.jsx - App router → Product detail: routes to
src/App.jsx - App router → Staff login: routes to
src/App.jsx - App router → Protected routes: protects routes
src/App.jsx - Protected routes → Admin dashboard: allows access
src/components/RutaProtegida.jsx - Gym homepage → Content sections: renders
src/pages/Inicio.jsx - Gym homepage → Supabase: submits review
src/pages/Inicio.jsx - Gym staff → Staff login: signs in
src/pages/Login.jsx - Gym profile → Supabase: reads and updates
src/pages/Admin/InfoGym/useGym.js - Gym profile → Gym identity lookup: resolves gym
src/pages/Admin/InfoGym/useGym.js - Gallery admin → Supabase: manages gallery
src/pages/Admin/Galeria/useGaleria.js - Gallery admin → Gym identity lookup: resolves gym
src/pages/Admin/Galeria/useGaleria.js - Plans admin → Supabase: manages plans
src/pages/Admin/Planes/usePlanes.js - Plans admin → Gym identity lookup: resolves gym
src/pages/Admin/Planes/usePlanes.js - Review moderation → Supabase: moderates reviews
src/pages/Admin/Comentarios/useComentarios.js - Review moderation → Gym identity lookup: resolves gym
src/pages/Admin/Comentarios/useComentarios.js - Trainer admin → Supabase: manages trainers
src/pages/Admin/Trainers/useTrainers.js - Trainer admin → Gym identity lookup: resolves gym
src/pages/Admin/Trainers/useTrainers.js - Member admin → Supabase: manages members
src/pages/Admin/Socios/useSocios.js - Member admin → Gym identity lookup: resolves gym
src/pages/Admin/Socios/useSocios.js - Attendance check-in → Supabase: checks membership
src/pages/Admin/Sesion/useSesion.js - Attendance check-in → Gym identity lookup: resolves gym
src/pages/Admin/Sesion/useSesion.js