From 6786779f2c99a20c226da49ee152b5347f55d110 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 6 Jul 2026 06:17:32 +0000 Subject: [PATCH] fix(analytics): recognize picked_up status in dashboard and stats - Add picked_up to STATUS_COLORS and STATUS_LABELS in AdminDashboard - SQL: admin_delivery_stats counts picked_up as delivered - SQL: admin_daily_trend counts picked_up as delivered - SQL: admin_driver_stats counts picked_up as delivered - Fixes: picked_up showed as Unknown, delivered count was 17 short --- src/components/admin/AdminDashboard.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/admin/AdminDashboard.jsx b/src/components/admin/AdminDashboard.jsx index ecc21a2..ba5c962 100644 --- a/src/components/admin/AdminDashboard.jsx +++ b/src/components/admin/AdminDashboard.jsx @@ -39,6 +39,7 @@ const STATUS_COLORS = { loaded: '#6366f1', on_route: '#8b5cf6', delivered: '#10b981', + picked_up: '#10b981', paid_storage: '#06b6d4', problem: '#ef4444', cancelled: '#64748b', @@ -53,6 +54,7 @@ const STATUS_LABELS = { loaded: 'Загружено', on_route: 'В пути', delivered: 'Доставлено', + picked_up: 'Вывезено', paid_storage: 'Оплаченное хранение', problem: 'Проблема', cancelled: 'Отменено',