Analytics Page: - Implemented a new, dynamic analytics page with date filtering. - Added KPI summary tiles for total, completed, and aborted swaps, average swap time, and station uptime. - Included three interactive charts: Swap Activity Over Time, Hourly Swap Distribution, and Swap Abort Reasons. - Added a Slot Utilization Heatmap for at-a-glance diagnostics. - Styled charts for the dark theme and fixed axis scaling issues. Station Selection Page: - Enhanced the station selection page to display live daily swap statistics on each station card. Backend API: - Created a new '/api/analytics' endpoint to serve all KPI and chart data. - Created a new '/api/stations/daily-stats' endpoint. Fixes & Refactoring: - Centralized all common header logic into common-header.js to resolve script conflicts. - Improved dashboard WebSocket handler to correctly process partial data payloads. |
||
|---|---|---|
| backend | ||
| frontend | ||
| .gitignore | ||