Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Pewiz/ulagos360/llms.txt

Use this file to discover all available pages before exploring further.

The StatsOverview component sits at the very top of the dashboard, above the category tabs and the spaces grid. It renders five metric cards that give the coordination team an immediate pulse on the event — how many spaces are free, how many are occupied, how many tutors are in transit, and how many workshops and tours are currently running. All five cards update live as any tutor changes a space; no manual refresh is ever needed.

Stats cards reference

CardIconColourWhat it counts
DisponiblesCheckCircleGreenSpaces currently in disponible status across Bienvenida, Coffee Break, and Campus Tour — maintenance spaces excluded
OcupadosAlertCircleRedSpaces currently in ocupado status (same scope); also shows the current occupancy rate as a percentage
En CaminoClockNavy (#00275E)Spaces in en_camino status — tutors who have claimed a space and are currently walking to it
Talleres ActivosBookOpenBlueTalleres spaces whose status is en_curso — workshops that have been started and are actively running
Tours ActivosUsersPurpleTours en Curso spaces whose status is en_curso — tour groups currently moving through campus

Scope of the first three cards

The Disponibles, Ocupados, and En Camino cards only count spaces belonging to the bienvenida, coffee, and campus_tour categories. Talleres and tours are excluded from these totals because they follow a different lifecycle (en_curso / terminado) and are tracked by their own dedicated cards.
Spaces in mantenimiento status are excluded from the denominator when calculating totals and occupancy rate. This means a temporarily closed space does not artificially deflate the available count or skew the occupancy percentage.

Occupancy rate formula

The Ocupados card displays a subtitle showing the live occupancy rate:
occupancyRate = (occupied / total) * 100
Where:
  • occupied — number of spaces with status ocupado (Bienvenida + Coffee + Campus Tour, excluding maintenance)
  • total — total number of active spaces in those same categories (also excluding maintenance)
The result is rounded to one decimal place. If no active spaces exist, the rate is shown as 0.
const occupancyRate =
  stats.total > 0 ? ((stats.occupied / stats.total) * 100).toFixed(1) : 0;

Responsive layout

On mobile the grid collapses to two columns, on medium screens to three columns, and on large screens all five cards display in a single row. Each card shows a large bold number as the primary value, with a smaller subtitle line beneath it — for example, de 32 espacios under Disponibles, or tutores moviéndose under En Camino.

Build docs developers (and LLMs) love