Overview
Monitoring operations in Dashboard Backus involves tracking real-time metrics across three key areas:- Individual truck status in bays
- Aggregate performance panels
- Shift-based statistics
Real-Time Dashboard Panels
Dashboard Backus displays three live data panels that update automatically every 15 seconds:Priority Alert Panel
Location: Top right of yard map Purpose: Identifies the truck with the longest total wait time in the system. Data Displayed:- Plate number (e.g., “BFW-234”) in large red text
- Elapsed time badge showing time since arrival (e.g., ”⏱ 2h 15m”)
- Arrival time (e.g., ”🕐 Llegada: 08:30:00”)
- Current location (e.g., ”📍 Bahía: Bahía 3” or ”📍 Bahía: En cola”)
vista_unidad_prioridad view (Supabase)
Average Yard Time Panel
Location: Left side, upper position Purpose: Displays the net average time trucks spend in the yard, excluding incident downtime. Data Displayed:- Average time in minutes (e.g., “45.3 min”)
- Calculation note: “promedio neto del día”
- Green checkmark: ”✓ incidencias descontadas”
This metric automatically subtracts incident duration from total yard time, providing accurate operational performance data.
vista_promedio_patio_neto view (Supabase)
Shift Count Panel
Location: Left side, lower position Purpose: Tracks the number of trucks processed during each shift. Data Displayed:| Shift | Time Range | Display |
|---|---|---|
| T1 | 07:00 - 15:00 | Turno 1 count |
| T2 | 15:01 - 23:00 | Turno 2 count |
| T3 | 23:01 - 06:59 | Turno 3 count |
SimuladorMapa.tsx:33-38):
Shift counts represent finalized trucks only (estado=‘Finalizado’). Trucks still in queue or in-bay are not included.
vista_dashboard_turnos view (Supabase)
Monitoring Trucks in Bays
Bay Status Indicators
Each occupied bay displays comprehensive truck information:Visual Elements
-
Traffic Light Dot (top right)
- 🟢 Green: Wait time < yellow threshold
- 🟡 Yellow: Wait time between yellow and red thresholds
- 🔴 Red: Wait time ≥ red threshold (pulsing animation)
-
Incident Alert (next to traffic light)
- 🔴 Red pulsing dot: Active incident without closure time
- Only visible when
hora_fin IS NULLin incidents table
-
Progress Bar (below truck info)
- Visual representation of time spent relative to red threshold
- Color matches traffic light status
- Fills from 0% (arrival) to 100% (red threshold reached)
Truck Information
Polling and Updates
The system uses HTTP polling (no WebSockets) for data updates:| Data Type | Polling Interval | Source |
|---|---|---|
| Queue trucks | 10 seconds | fetchCamionesCola() |
| Dashboard panels | 15 seconds | fetchUnidadPrioridad(), fetchDashboardTurnos(), fetchPromedioPatioNeto() |
| Incident status | 8 seconds | fetchIncidenciaAbierta() (per bay) |
| Traffic light colors | 1 second | Local calculation based on tiempoLlegadaCola |
Completing Truck Operations
Manual Exit Workflow (Real Mode)
Verify Operation Complete
Confirm with yard staff that the truck has finished loading/unloading and is ready to exit.
Click '✅ Salida' Button
Located at the bottom right of the occupied bay card.
This button is only visible to Admin users. Client users cannot trigger exits.
Database Update
The system performs the following operations:
- Calculates net yard time:
(now - tiempoEntradaPatio) / 60000minutes - Determines current shift (T1/T2/T3) based on system time
- Calls
marcarSalidaDirecto(id_viaje)to update Supabase: - Removes truck from bay UI
- Increments shift counter in session stats
- Adds net time to average calculation
Success toast: ”✅ Salida registrada: BFW-234”
Automatic Exit (Simulation Mode)
In simulation mode, trucks automatically exit after 8 time units (8 seconds):- No manual intervention required
- Same database update process as manual exit
- Toast notification: ”✅ Finalizado (auto): BFW-234”
- Useful for testing and training scenarios
Identifying Bottlenecks
High Wait Times
Symptom: Multiple trucks in red status or Priority Alert panel shows time > 2 hours Possible Causes:- Insufficient available bays for demand
- Truck types don’t match available bay compatibility
- Incidents causing delays in bay turnover
- Review queue for compatible bay assignments
- Consider reassigning trucks to optimize bay usage
- Coordinate with yard staff to expedite current operations
- Check for open incidents that should be closed
Low Shift Counts
Symptom: Shift count significantly below target (e.g., < 20 trucks per shift) Possible Causes:- Long average yard times
- Frequent incidents not being resolved
- Trucks waiting in queue without assignment
- Review Average Yard Time panel for trends
- Analyze incident frequency and duration
- Ensure operators are actively assigning queued trucks
- Check for bay utilization imbalances
Rising Average Yard Time
Symptom: Average Yard Time panel shows increasing minutes over time Possible Causes:- Operational inefficiencies at bays
- Increased incident frequency
- Complex product types requiring longer processing
- Generate detailed report to identify trends (see Reports)
- Review incident logs for patterns
- Consider bay reassignments to match truck types with optimal bays
- Coordinate with operations team for process improvements
Traffic Light Monitoring
Understanding Color Transitions
Trucks transition through traffic light colors based on cumulative wait time:Configuring Thresholds
Admin Users:- Yellow threshold: Configurable at session start (default: 60 units)
- Red threshold: Configurable at session start (default: 120 units)
- Units = minutes in Real mode, seconds in Simulation mode
- Yellow threshold: Fixed at 60 minutes (not configurable)
- Red threshold: Fixed at 120 minutes (not configurable)
- Only Real mode available
Performance Metrics
Key Performance Indicators (KPIs)
Average Yard Time
Target: < 45 minutesCalculation: Net time (excluding incidents)Impact: Lower times indicate efficient operations
Trucks in Red Status
Target: 0 trucksCalculation: Count of trucks with wait time ≥ red thresholdImpact: Direct indicator of service level violations
Shift Throughput
Target: Varies by shift (typically 25-40 trucks)Calculation: Count of finalized trucks per 8-hour shiftImpact: Measures overall yard capacity utilization
Incident Rate
Target: < 10% of trucksCalculation: (Trucks with incidents / Total trucks) × 100Impact: Indicates operational quality and process stability
Monitoring Best Practices
Check Panels Every 5 Minutes
Check Panels Every 5 Minutes
- Review Priority Alert panel for critical trucks
- Monitor Average Yard Time for upward trends
- Compare shift counts to targets
Proactive Queue Management
Proactive Queue Management
- Assign trucks before they reach yellow status
- Keep queue length below 10 trucks when possible
- Balance assignments across all available bays
Incident Response
Incident Response
- Close incidents immediately after resolution
- Track trucks with open incidents for expedited processing
- Avoid assigning new trucks to bays with active incidents
Shift Handoff Protocol
Shift Handoff Protocol
- Generate session report before shift end
- Brief incoming shift on Priority Alert trucks
- Document any ongoing incidents or special cases
Troubleshooting
Panel Data Not Updating
Symptom: Dashboard panels show stale data or “Sin unidades en cola” Solution:- Check that session is active (header shows “Detener”)
- Verify network connection to Supabase
- Wait 15 seconds for next polling cycle
- If issue persists, stop and restart session
Traffic Light Colors Incorrect
Symptom: Truck shows green despite long wait time Solution:- Verify session mode (Real vs Simulation)
- Check configured thresholds in session settings
- Confirm
tiempoLlegadaColais set correctly in truck data - Review browser console for calculation errors
Exit Button Not Responding
Symptom: Clicking ”✅ Salida” shows loading spinner but doesn’t complete Solution:- Check network tab in browser DevTools for failed requests
- Verify truck has valid
id_viajein database - Ensure no duplicate exit requests in progress (button disabled during processing)
- Retry after 5 seconds - may be temporary connection issue
Next Steps
Handling Incidents
Learn how to register and manage incidents that affect processing times
Generating Reports
Access detailed session reports and performance analytics
