The admin dashboard is the financial and operational control center of SCO Autolavados. It aggregates data from across the platform — balance sheets, service order counts, laundrer activity, and rolling revenue trends — and surfaces them through a single KPI endpoint consumed by theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Luisangelebp/SCO_Autolavados/llms.txt
Use this file to discover all available pages before exploring further.
DashboardPage in the React frontend. The dashboard gives the business owner a real-time picture of the day’s performance at a glance.
KPI Endpoint
Available Metrics
The KPI response covers the following business metrics:| Metric | Field | Description |
|---|---|---|
| USD Balance | balanceUsd | Current accumulated USD balance of the AutoLavado entity |
| Bolívares Balance | balanceBs | Current accumulated Bs balance of the AutoLavado entity |
| Today’s Revenue | todayIncomeUsd | Sum of all Sales.totalUsd created today (VET) |
| Vehicles Attended | vehiclesAttendedToday | Count of ServiceOrders with state: "FINALIZADO" and timeEnd today |
| Active Laundrers | activeLaundrersToday | Count of laundrers with isWorkingToday: true |
| Total Laundrers | totalLaundrers | Total laundrer records in the system (active or inactive) |
| Weekly Sales Trend | weeklySales | Array of { date, incomeUsd } for the last 7 calendar days |
DD/MM. This data feeds directly into the revenue bar chart on the dashboard page.
The
balanceUsd and balanceBs fields reflect the cumulative running balance on the AutoLavado record — they grow with approved payments and shrink with registered expenses. This is the primary cash-on-hand indicator, not a per-period aggregate.Frontend Integration
The ReactDashboardPage (/dashboard) consumes the /api/dashboard/kpis endpoint on mount and renders the following UI components:
- KPI cards — Individual metric tiles for balance, today’s income, and vehicles attended today
- Revenue bar chart — Built with Recharts, visualizes
weeklySalesas a 7-day bar chart withincomeUsdon the Y-axis anddatelabels on the X-axis - Active laundrer badge — Displays
activeLaundrersToday / totalLaundrersto show staffing coverage at a glance
ProtectedRoute) to guard the dashboard — unauthenticated requests are automatically redirected to /login.
Exchange Rate Widget
The dashboard also surfaces the current USD to Bolívares exchange rate, which is pulled from theAutoLavado configuration record and (when integrated) sourced from the Banco Central de Venezuela:
tasaBs value is displayed in the dashboard header and is used as the default exchange rate when generating new sales invoices via POST /api/sales (tazaUsd field).
Dashboard API Reference
Full endpoint reference for the KPI dashboard endpoint including response schema.
AutoLavado API Reference
Configuration, exchange rate, balance, and wait-time endpoints for the AutoLavado entity.