The GymSys dashboard — rendered by theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Hansel-Pan/sistema-de-informacion-web-para-un-gimnasio/llms.txt
Use this file to discover all available pages before exploring further.
Inicio page — is the first screen you see after the app loads. It gives staff an at-a-glance view of three core business metrics: how many clients are registered, how many hold an active membership, and how many people are physically inside the gym right now. Below the stats, four quick-action shortcuts let you jump to the most common tasks without navigating through the sidebar.
Stats Panel
When the page mounts,Inicio fires two API calls in parallel — clientesApi.listar() to fetch every registered client and accesoApi.ocupacion() to fetch the current in-gym list — and then derives the three stat card values from the responses.
👥 Clientes registrados
The total count of all clients returned by
clientesApi.listar(). This is simply clientes.length and includes members with expired memberships.✅ Con membresía activa
The number of clients whose
dias_restantes field is greater than zero — i.e. clientes.filter(c => c.dias_restantes > 0).length. Clients with zero or negative remaining days are excluded.🚪 Dentro del gimnasio
The real-time occupancy count returned directly by
accesoApi.ocupacion() as ocupacion.length. This reflects every member currently marked en_gimnasio = true on the server.Promise.all so both API calls happen concurrently:
Quick Actions
Below the stat cards, the dashboard renders four shortcut links under the Acciones rápidas heading. Each card displays an icon and a label, and clicking it navigates directly to the corresponding module.| Icon | Label | Destination route |
|---|---|---|
| ➕ | Nuevo Cliente | /clientes/nuevo |
| 💰 | Registrar Pago | /pagos |
| 🚪 | Control Acceso | /acceso |
| 📊 | Ver Reportes | /reportes |
<Link> components, so no full page reload occurs when you click them.