Overview
Dashboard Backus provides real-time session reports that aggregate operational metrics from the Supabase database. Reports help operators, supervisors, and management analyze performance trends and identify improvement opportunities.Accessing Reports
Reports can be accessed in two ways:During Active Session
Click 'Detener' in Header
While a session is running, click the “Detener” (Stop) button in the header bar.
Manual Report Access
Click Report Icon in Header
Click the 📊 report icon in the header bar at any time (session active or inactive).
Reports always fetch fresh data from Supabase when opened, regardless of how they’re accessed.
Report Structure
The Report Modal displays five key metrics in a card-based layout:1. Total Trucks Processed (Session)
Metric: Count of trucks assigned to bays during the current session Icon: 🚛 Color: Sky blue (#38bdf8) Data Source: Local session state (stats.total)
Calculation: Incremented each time:
- A truck is dragged from queue to bay (admin assigns)
- A truck auto-completes in simulation mode
- A truck is manually finalized with ”✅ Salida” button
This metric counts session activity only, not total daily throughput. It resets when a new session starts.
2. Net Average Yard Time
Metric: Mean time trucks spend in the yard, excluding incident downtime Icon: ⏱ Color: Purple (#a78bfa) Display Format: “45.3 min” or ”—” if no data Data Source: Supabase viewvista_promedio_patio_neto
Calculation:
- < 45 min: Excellent operational efficiency
- 45-60 min: Normal performance
- 60-90 min: Below target, investigate bottlenecks
- > 90 min: Critical performance issue
This metric automatically excludes incident time, providing accurate operational performance data.
3. Shift 1 Count (T1: 07:00-15:00)
Metric: Number of trucks finalized during Shift 1 (morning shift) Icon: 🌅 Color: Green (#4ade80) Data Source:- Primary: Supabase view
vista_dashboard_turnos(field:turno_1) - Fallback: Local session state (
stats.atendidosTurno1) if view returns null
SimuladorMapa.tsx:35):
- Peak days: 30-40 trucks
- Normal days: 25-35 trucks
- Low volume: 15-25 trucks
4. Shift 2 Count (T2: 15:01-23:00)
Metric: Number of trucks finalized during Shift 2 (afternoon/evening shift) Icon: 🌤 Color: Amber (#fbbf24) Data Source:- Primary: Supabase view
vista_dashboard_turnos(field:turno_2) - Fallback: Local session state (
stats.atendidosTurno2) if view returns null
SimuladorMapa.tsx:36):
The shift boundary at 15:00 means a truck finalized at 14:59:59 counts toward T1, while 15:00:00 counts toward T2.
5. Shift 3 Count (T3: 23:01-06:59)
Metric: Number of trucks finalized during Shift 3 (night shift) Icon: 🌙 Color: Red (#f87171) Data Source:- Primary: Supabase view
vista_dashboard_turnos(field:turno_3) - Fallback: Local session state (
stats.atendidosTurno3) if view returns null
SimuladorMapa.tsx:37):
- Typically lower volume than T1/T2
- May have specialized product types
- Cross-shift operations (started in T2, finished in T3)
Report Data Refresh
When the Report Modal opens, it automatically:Update Modal Display
Replaces local session state with fresh database values for:
- Net average yard time
- Shift counts (T1, T2, T3)
ModalReporte.tsx:24-35):
The report always shows database truth, not cached session data. This ensures accuracy when multiple operators are using the system.
Interpreting Report Data
Performance Analysis
High Throughput, High Average Time
- Good volume but inefficient processing
- Likely causes: incidents, bay utilization imbalance, complex products
- Review incident frequency and duration
- Analyze bay assignment patterns for optimization
- Check for equipment issues causing delays
Low Throughput, Low Average Time
- Efficient operations but low demand
- May indicate scheduling/arrival issues
- Verify expected truck volume with logistics team
- Check for external factors (weather, supplier delays)
- Consider resource reallocation if consistently low
Balanced Performance
- Optimal performance across all metrics
- Even distribution across shifts
- Maintain current processes
- Document successful practices for training
Shift Comparison
Unbalanced Shift Distribution
- Supplier delivery schedules favor morning arrivals
- Reduced staffing or bay availability in T2/T3
- Product types arriving in T1 are faster to process
- Coordinate with suppliers to distribute arrivals
- Review staffing levels for afternoon/night shifts
- Analyze product mix by shift
Consistent Cross-Shift Performance
- Well-balanced operations
- Effective 24-hour yard utilization
Exporting Report Data
Manual Export Workaround
To capture report data:-
Screenshot Method:
- Open Report Modal
- Take screenshot (Windows: Win+Shift+S, Mac: Cmd+Shift+4)
- Paste into documentation or email
-
Manual Transcription:
- Copy metrics into Excel/Google Sheets
- Format for presentation or analysis
-
Database Query (requires technical access):
Historical Data Access
Current Limitations
The Report Modal only displays current session and today’s data:- Total Trucks: Session-specific (resets on new session)
- Average Yard Time: Today only (CURRENT_DATE filter)
- Shift Counts: Today only (fecha = CURRENT_DATE filter)
Historical trend analysis requires direct database access via Supabase dashboard or custom reporting tools.
Accessing Historical Data (Admin)
If you have Supabase dashboard access:-
Login to Supabase:
- Navigate to project dashboard
- Go to Table Editor or SQL Editor
-
Query Historical Data:
-
Export Query Results:
- Supabase provides CSV export for query results
- Use for further analysis in Excel or BI tools
Report Best Practices
Generate Reports at Shift End
Generate Reports at Shift End
- Capture final metrics before logging out
- Include report data in shift handoff documentation
- Compare to previous shift for trend awareness
Weekly Performance Reviews
Weekly Performance Reviews
- Compile daily reports into weekly summaries
- Calculate weekly averages for yard time and throughput
- Identify day-of-week patterns (e.g., Mondays consistently higher volume)
Share Insights with Operations Team
Share Insights with Operations Team
Track Improvement Initiatives
Track Improvement Initiatives
- Baseline metrics before process changes
- Monitor impact of new procedures on average yard time
- Document lessons learned from successful interventions
Future Reporting Features
Planned enhancements to the reporting system:PDF Export
One-click export of session reports to PDF format for archival and distribution.
Historical Trends
Graphical visualizations of performance trends over time (daily, weekly, monthly).
Incident Analytics
Detailed breakdown of incident frequency, duration, and impact by bay and product type.
Scheduled Reports
Automated daily/weekly email reports to stakeholders with key performance indicators.
Contact your development team to request priority on specific reporting features.
Troubleshooting
Report Shows ”—” for Average Time
Cause: No trucks have been finalized today (estado=‘Finalizado’) Solution:- Verify trucks are being properly exited (not just assigned)
- Check that
hora_salidais being set in database - Confirm date filter is correct (may be timezone issue)
Shift Counts Don’t Match Expectations
Cause:- Trucks finalized in one shift but counted in another due to timing
- Database view not refreshing properly
- Close and reopen Report Modal to force refresh
- Verify shift boundaries (07:00, 15:00, 23:00 cutoffs)
- Check system time is synchronized correctly
Report Data Frozen/Not Updating
Cause: Network connectivity issue or Supabase timeout Solution:- Check “Actualizando…” indicator - should disappear within 2-3 seconds
- Close modal and reopen to retry fetch
- Verify internet connection and Supabase status
- Check browser console for API errors
Total Trucks Higher Than Shift Sum
Cause:- “Total Trucks” includes session-only data (local state)
- Shift counts are database-sourced (may include other sessions)
This discrepancy is expected and does not indicate an error. Compare shift counts to daily targets, not session totals.
Next Steps
Getting Started
Return to the getting started guide for basic navigation
Bay Assignment
Review bay assignment workflows and validation rules
API Reference
Explore technical API documentation for custom integrations
Database Schema
Understand the underlying data structure for advanced queries
