From 70ec6ec7a807738b99866fa7ad2a7b914daa5593 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 30 Jun 2026 12:44:40 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20unified=20LogisticsReadinessBoard=20for?= =?UTF-8?q?=20all=20roles=20=E2=80=94=20single=20table=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Removed OrdersTable from dashboard, all roles now use LogisticsReadinessBoard - Logistician, admin, mega_admin, manager — same grouped board with drag-and-drop - Driver still uses DriverDeliveryPlanner (card view) - Bundle size reduced (OrdersTable no longer imported) --- src/pages/DashboardPage.jsx | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/pages/DashboardPage.jsx b/src/pages/DashboardPage.jsx index 6d823d6..990e665 100644 --- a/src/pages/DashboardPage.jsx +++ b/src/pages/DashboardPage.jsx @@ -9,7 +9,7 @@ import { Navigate, useNavigate, useSearchParams, useLocation } from "react-route import { DriverDeliveryPlanner } from "../components/driver/DriverDeliveryPlanner"; import { isOrderGroupVisibleToDriver } from "../services/orderGroupViews"; import { LogisticsReadinessBoard } from "../components/logistics/LogisticsReadinessBoard"; -import { OrdersTable } from "../components/orders/OrdersTable"; + import { AdminDashboard } from "../components/admin/AdminDashboard"; import UserManagementPanel from "../components/admin/UserManagementPanel"; import ErrorLogPanel from "../components/admin/ErrorLogPanel"; @@ -192,23 +192,10 @@ const ALLOWED_DASHBOARD_ROLES = ["admin", "mega_admin", "manager", "logistician" ); } - if (userRole === "logistician") { - if (activeSection === "orders") { - return ( -
- -
- ); - } - return ( -
- -
- ); - } + // All roles (logistician, admin, mega_admin, manager) — same grouped board return (
- +
); };