@burdenoff/microfe-movethewheels 2026.624.1 → 2026.626.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AIAssistantPage-BrHX2lQn.js → AIAssistantPage-AvsMbunM.js} +39 -33
- package/dist/{AnalyticsPage-DI6Wcaw5.js → AnalyticsPage-CCLfHgQZ.js} +44 -33
- package/dist/CreateOrderPage-CjlnEtk3.js +510 -0
- package/dist/CustomerDetailsPage-I6cdDHUi.js +265 -0
- package/dist/CustomersPage-CGGfD4ki.js +163 -0
- package/dist/{DashboardPage-3ZOnwg1a.js → DashboardPage-D2HRqwg9.js} +122 -111
- package/dist/DataTable-CD9ZhpLB.js +249 -0
- package/dist/DriverDetailsPage-rg_pGNuP.js +330 -0
- package/dist/DriversPage-DKiynISH.js +167 -0
- package/dist/FinancePage-Vg8WPs38.js +158 -0
- package/dist/{FleetPage-CPS7r4J3.js → FleetPage-DddXt8r8.js} +124 -85
- package/dist/ImportExportPage-BW6qO3kc.js +248 -0
- package/dist/InventoryPage-rMGuaJN-.js +222 -0
- package/dist/LiveTrackingPage-DQ1q4Id3.js +375 -0
- package/dist/MarketplacePage-DKrXAv62.js +219 -0
- package/dist/MetricCard-B7yMyvMX.js +146 -0
- package/dist/OrderDetailsPage-CFASgsYX.js +431 -0
- package/dist/OrdersListPage-BHeT8S5o.js +309 -0
- package/dist/{PageLayout-xDTiBTDS.js → PageLayout-D3N8MCTm.js} +213 -195
- package/dist/ProductDetailsPage-CFGcbaHo.js +195 -0
- package/dist/ProductsPage--xEpbQ8A.js +171 -0
- package/dist/{ReportsPage-B8OyWGzl.js → ReportsPage-Bb7_90rK.js} +57 -49
- package/dist/RouteDetailsPage-CVtDVb1N.js +282 -0
- package/dist/RoutesPage-s57PtgcQ.js +163 -0
- package/dist/SettingsPage-BYNCBOpN.js +298 -0
- package/dist/{StatusBadge-C--7NhoW.js → StatusBadge-CijYQXtb.js} +5 -2
- package/dist/{TrackingPage-BldUm_g7.js → TrackingPage-CcRc_dva.js} +88 -83
- package/dist/VehicleDetailsPage-3YDMPsPs.js +220 -0
- package/dist/VehiclesPage-UlxPWP9K.js +167 -0
- package/dist/WarehouseDetailsPage-Db7KeN-d.js +238 -0
- package/dist/WarehousesPage-CuTO-OPp.js +164 -0
- package/dist/{arrow-left-Bk5GsGNk.js → arrow-left-CBpZKkpq.js} +1 -1
- package/dist/{box-BAMv2-7M.js → box-CAaiElsb.js} +1 -1
- package/dist/{chart-column-CAfkf4o6.js → chart-column-D1Ym15-S.js} +1 -1
- package/dist/{chevron-right-Czrt_Qew.js → chevron-right-BIFGi0UA.js} +1 -1
- package/dist/{circle-alert-CEuV9Pij.js → circle-alert-DjmNo5_L.js} +1 -1
- package/dist/{circle-check-big-Cx8aO6B-.js → circle-check-big-CjuPVo3_.js} +1 -1
- package/dist/{clock-Be95bq7_.js → clock-BjkdnddD.js} +1 -1
- package/dist/{dollar-sign-kJqItPli.js → dollar-sign-IB4O0wuQ.js} +1 -1
- package/dist/{download-caab0D3V.js → download-Dpa9vqoG.js} +1 -1
- package/dist/{file-text-b1qhrJn1.js → file-text-C8Uioy11.js} +1 -1
- package/dist/{filter-BWmLTZB-.js → filter-Da5OZaHI.js} +1 -1
- package/dist/index.js +16 -16
- package/dist/{map-CS2aFgyO.js → map-_Per4sT9.js} +1 -1
- package/dist/{map-pin-96FeqL7H.js → map-pin-BSaf5IDL.js} +1 -1
- package/dist/{navigation-i6UXEjTC.js → navigation-DaTbrhw2.js} +1 -1
- package/dist/{package-KhSi3xaT.js → package-BE7U0wQE.js} +1 -1
- package/dist/{phone-B-h3tbsr.js → phone-DV4StZiA.js} +1 -1
- package/dist/{plus-D2BYAzMn.js → plus-Dl1rLeJR.js} +1 -1
- package/dist/{refresh-cw-D5Sy01s-.js → refresh-cw-CWfERAit.js} +1 -1
- package/dist/{route-CBDXuwH9.js → route-Dp9JiN_E.js} +1 -1
- package/dist/{save-CMc7h-Vi.js → save-XH8vydOn.js} +1 -1
- package/dist/{search-DVrUQbOg.js → search-OxoIiL_C.js} +1 -1
- package/dist/{settings-BwzIRYv3.js → settings-3Rw5NwFF.js} +1 -1
- package/dist/{square-pen-DmW36Bau.js → square-pen-hLIbFQFV.js} +1 -1
- package/dist/{star-Cv2MzxZL.js → star-YsVV3MNQ.js} +1 -1
- package/dist/{store-CLH957vl.js → store-RCBl7HB-.js} +1 -1
- package/dist/{trending-up-l8M0BO_w.js → trending-up-C-85AwGT.js} +1 -1
- package/dist/{triangle-alert-BI45s6bH.js → triangle-alert-BOhfGgmh.js} +1 -1
- package/dist/{truck-DX3lNQkz.js → truck-CtDjNFbi.js} +1 -1
- package/dist/{user-D8EY1uvt.js → user-Dz5TJZFs.js} +1 -1
- package/dist/{users-CfG0J8wP.js → users-g2N0eL-Z.js} +1 -1
- package/dist/{warehouse-Dt_bAr82.js → warehouse-D3WWDeTX.js} +1 -1
- package/dist/{wrench-C50eI_Iy.js → wrench-CmxY1n4I.js} +1 -1
- package/package.json +2 -2
- package/src/movethewheels/components/DataTable.tsx +41 -6
- package/src/movethewheels/components/MetricCard.tsx +51 -20
- package/src/movethewheels/components/PageLayout.tsx +60 -5
- package/src/movethewheels/components/StatusBadge.tsx +2 -1
- package/src/movethewheels/pages/AIAssistantPage.tsx +11 -3
- package/src/movethewheels/pages/AnalyticsPage.tsx +31 -25
- package/src/movethewheels/pages/CreateOrderPage.tsx +56 -17
- package/src/movethewheels/pages/CustomerDetailsPage.tsx +63 -38
- package/src/movethewheels/pages/CustomersPage.tsx +51 -12
- package/src/movethewheels/pages/DashboardPage.tsx +62 -48
- package/src/movethewheels/pages/DriverDetailsPage.tsx +57 -26
- package/src/movethewheels/pages/DriversPage.tsx +45 -12
- package/src/movethewheels/pages/FinancePage.tsx +45 -41
- package/src/movethewheels/pages/FleetPage.tsx +82 -34
- package/src/movethewheels/pages/ImportExportPage.tsx +46 -29
- package/src/movethewheels/pages/InventoryPage.tsx +37 -33
- package/src/movethewheels/pages/LiveTrackingPage.tsx +58 -20
- package/src/movethewheels/pages/MarketplacePage.tsx +37 -3
- package/src/movethewheels/pages/OrderDetailsPage.tsx +74 -46
- package/src/movethewheels/pages/OrdersListPage.tsx +81 -14
- package/src/movethewheels/pages/ProductDetailsPage.tsx +36 -11
- package/src/movethewheels/pages/ProductsPage.tsx +41 -12
- package/src/movethewheels/pages/ReportsPage.tsx +23 -19
- package/src/movethewheels/pages/RouteDetailsPage.tsx +71 -31
- package/src/movethewheels/pages/RoutesPage.tsx +48 -9
- package/src/movethewheels/pages/SettingsPage.tsx +68 -26
- package/src/movethewheels/pages/TrackingPage.tsx +52 -49
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +49 -24
- package/src/movethewheels/pages/VehiclesPage.tsx +41 -15
- package/src/movethewheels/pages/WarehouseDetailsPage.tsx +55 -30
- package/src/movethewheels/pages/WarehousesPage.tsx +46 -9
- package/dist/CreateOrderPage-DfkSi6JF.js +0 -471
- package/dist/CustomerDetailsPage-DzAIu_tH.js +0 -239
- package/dist/CustomersPage-d21ixOYa.js +0 -119
- package/dist/DataTable-CZGz3SJu.js +0 -239
- package/dist/DriverDetailsPage-YuZSlPSV.js +0 -297
- package/dist/DriversPage-BOhqEBTv.js +0 -127
- package/dist/FinancePage-CnjUNXOb.js +0 -154
- package/dist/ImportExportPage-zNjs7xsV.js +0 -232
- package/dist/InventoryPage-C9g5d3SW.js +0 -223
- package/dist/LiveTrackingPage-DoBvtdBG.js +0 -332
- package/dist/MarketplacePage-BEj5hcBF.js +0 -192
- package/dist/MetricCard-DeHVeVwl.js +0 -135
- package/dist/OrderDetailsPage-D-9lDZYU.js +0 -398
- package/dist/OrdersListPage-CJzHbgY3.js +0 -257
- package/dist/ProductDetailsPage-3rKtzXpy.js +0 -168
- package/dist/ProductsPage-B0P_wjBJ.js +0 -131
- package/dist/RouteDetailsPage-DGjKTUMj.js +0 -240
- package/dist/RoutesPage-CpopY8xN.js +0 -116
- package/dist/SettingsPage-BvXSa3gi.js +0 -247
- package/dist/VehicleDetailsPage-Dqv--MVW.js +0 -194
- package/dist/VehiclesPage-CCBHRDHu.js +0 -127
- package/dist/WarehouseDetailsPage-ZObC_c7W.js +0 -215
- package/dist/WarehousesPage-CpgZEVW9.js +0 -121
|
@@ -1,82 +1,92 @@
|
|
|
1
|
-
import { M as e, a as t, d as n, f as r, g as i, h as a, i as o, l as s, u as c } from "./PageLayout-
|
|
2
|
-
import { t as l } from "./chevron-right-
|
|
3
|
-
import { t as u } from "./clock-
|
|
4
|
-
import { t as d } from "./dollar-sign-
|
|
5
|
-
import { t as f } from "./map-pin-
|
|
6
|
-
import { t as p } from "./package-
|
|
7
|
-
import { t as m } from "./trending-up-
|
|
8
|
-
import { t as h } from "./triangle-alert-
|
|
9
|
-
import { t as g } from "./truck-
|
|
10
|
-
import { t as _ } from "./users-
|
|
1
|
+
import { M as e, a as t, d as n, f as r, g as i, h as a, i as o, l as s, u as c } from "./PageLayout-D3N8MCTm.js";
|
|
2
|
+
import { t as l } from "./chevron-right-BIFGi0UA.js";
|
|
3
|
+
import { t as u } from "./clock-BjkdnddD.js";
|
|
4
|
+
import { t as d } from "./dollar-sign-IB4O0wuQ.js";
|
|
5
|
+
import { t as f } from "./map-pin-BSaf5IDL.js";
|
|
6
|
+
import { t as p } from "./package-BE7U0wQE.js";
|
|
7
|
+
import { t as m } from "./trending-up-C-85AwGT.js";
|
|
8
|
+
import { t as h } from "./triangle-alert-BOhfGgmh.js";
|
|
9
|
+
import { t as g } from "./truck-CtDjNFbi.js";
|
|
10
|
+
import { t as _ } from "./users-g2N0eL-Z.js";
|
|
11
11
|
import { r as v } from "./graphqlClient-CdJyR_ed.js";
|
|
12
12
|
import { n as y, r as b } from "./useOrders-D_3_hGMp.js";
|
|
13
13
|
import { i as x } from "./useFleet-BdETplNE.js";
|
|
14
14
|
import { n as S } from "./useAnalytics-ph7eTIK6.js";
|
|
15
15
|
import { r as C } from "./useTracking-De2KIUNu.js";
|
|
16
|
-
import { r as w, t as T } from "./MetricCard-
|
|
17
|
-
import { r as E } from "./StatusBadge-
|
|
16
|
+
import { r as w, t as T } from "./MetricCard-B7yMyvMX.js";
|
|
17
|
+
import { r as E } from "./StatusBadge-CijYQXtb.js";
|
|
18
18
|
import { n as D, r as O } from "./formatters-_vJlC-47.js";
|
|
19
19
|
import { t as k } from "./navigation-BgnOfsVd.js";
|
|
20
20
|
import { jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
21
|
-
import {
|
|
21
|
+
import { CTAOverflowMenu as M, EmphasisPanel as N, PagePurpose as P } from "@burdenoff/fe-libs/ui";
|
|
22
|
+
import { useI18n as F } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
22
23
|
//#region src/movethewheels/pages/DashboardPage.tsx
|
|
23
|
-
function
|
|
24
|
-
let { t:
|
|
25
|
-
let n =
|
|
24
|
+
function I() {
|
|
25
|
+
let { t: I } = F(), L = (e, t) => {
|
|
26
|
+
let n = I(e);
|
|
26
27
|
return n === e ? t : n;
|
|
27
|
-
}, { basePath:
|
|
28
|
-
|
|
28
|
+
}, { basePath: R, navigate: z } = v(), { metrics: B } = S(), { orders: V } = b({ limit: 5 }), { stats: H } = y(), { stats: U } = x(), { activeDeliveries: W } = C(), G = (e) => {
|
|
29
|
+
z && z(k(R, e));
|
|
29
30
|
};
|
|
30
31
|
return /* @__PURE__ */ j(o, {
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
hero: !0,
|
|
33
|
+
titleAccent: L("movethewheels.dashboard.title", "Dashboard"),
|
|
34
|
+
title: L("movethewheels.dashboard.title", "Dashboard"),
|
|
35
|
+
subtitle: L("movethewheels.dashboard.subtitle", "Overview of your logistics operations"),
|
|
33
36
|
icon: /* @__PURE__ */ A(m, { size: 24 }),
|
|
34
|
-
headerActions: /* @__PURE__ */
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
headerActions: /* @__PURE__ */ A(M, {
|
|
38
|
+
primary: {
|
|
39
|
+
label: L("movethewheels.dashboard.actions.newOrder", "New Order"),
|
|
40
|
+
icon: /* @__PURE__ */ A(p, { size: 16 }),
|
|
41
|
+
onSelect: () => G("orders/new")
|
|
42
|
+
},
|
|
43
|
+
actions: [{
|
|
44
|
+
label: L("movethewheels.dashboard.actions.liveMap", "Live Map"),
|
|
45
|
+
icon: /* @__PURE__ */ A(f, { size: 16 }),
|
|
46
|
+
onSelect: () => G("tracking/live")
|
|
47
|
+
}]
|
|
44
48
|
}),
|
|
45
49
|
children: [
|
|
50
|
+
/* @__PURE__ */ A(P, {
|
|
51
|
+
icon: /* @__PURE__ */ A(m, { size: 18 }),
|
|
52
|
+
children: L("movethewheels.dashboard.purpose", "Your logistics command center — a live snapshot of orders, active deliveries, fleet health and revenue. Start here each day to spot what needs attention, then jump straight into an order, the live map or fleet status.")
|
|
53
|
+
}),
|
|
46
54
|
/* @__PURE__ */ j(w, {
|
|
47
55
|
columns: 4,
|
|
48
56
|
children: [
|
|
49
57
|
/* @__PURE__ */ A(T, {
|
|
50
|
-
label:
|
|
51
|
-
value:
|
|
58
|
+
label: L("movethewheels.dashboard.metrics.totalOrders", "Total Orders"),
|
|
59
|
+
value: B.orders.total,
|
|
52
60
|
icon: /* @__PURE__ */ A(p, { size: 20 }),
|
|
53
|
-
change: `+${
|
|
61
|
+
change: `+${B.orders.today} ${L("movethewheels.dashboard.metrics.today", "today")}`,
|
|
54
62
|
changeType: "positive",
|
|
55
63
|
trend: "up",
|
|
56
|
-
onClick: () =>
|
|
64
|
+
onClick: () => G("orders")
|
|
57
65
|
}),
|
|
58
66
|
/* @__PURE__ */ A(T, {
|
|
59
|
-
label:
|
|
60
|
-
value:
|
|
67
|
+
label: L("movethewheels.dashboard.metrics.activeDeliveries", "Active Deliveries"),
|
|
68
|
+
value: B.orders.inTransit,
|
|
61
69
|
icon: /* @__PURE__ */ A(g, { size: 20 }),
|
|
62
|
-
subtitle: `${
|
|
63
|
-
onClick: () =>
|
|
70
|
+
subtitle: `${B.orders.pending} ${L("movethewheels.dashboard.metrics.pending", "pending")}`,
|
|
71
|
+
onClick: () => G("tracking")
|
|
64
72
|
}),
|
|
65
73
|
/* @__PURE__ */ A(T, {
|
|
66
|
-
label:
|
|
67
|
-
value: `${
|
|
74
|
+
label: L("movethewheels.dashboard.metrics.fleetUtilization", "Fleet Utilization"),
|
|
75
|
+
value: `${B.fleet.activeVehicles}/${B.fleet.totalVehicles}`,
|
|
68
76
|
icon: /* @__PURE__ */ A(g, { size: 20 }),
|
|
69
|
-
subtitle: `${
|
|
70
|
-
onClick: () =>
|
|
77
|
+
subtitle: `${B.fleet.availableDrivers} ${L("movethewheels.dashboard.metrics.driversAvailable", "drivers available")}`,
|
|
78
|
+
onClick: () => G("fleet")
|
|
71
79
|
}),
|
|
72
80
|
/* @__PURE__ */ A(T, {
|
|
73
|
-
|
|
74
|
-
|
|
81
|
+
treatment: "glass",
|
|
82
|
+
glow: !0,
|
|
83
|
+
label: L("movethewheels.dashboard.metrics.revenue", "Revenue"),
|
|
84
|
+
value: D(B.revenue.total),
|
|
75
85
|
icon: /* @__PURE__ */ A(d, { size: 20 }),
|
|
76
86
|
change: "+12.5%",
|
|
77
87
|
changeType: "positive",
|
|
78
88
|
trend: "up",
|
|
79
|
-
onClick: () =>
|
|
89
|
+
onClick: () => G("analytics")
|
|
80
90
|
})
|
|
81
91
|
]
|
|
82
92
|
}),
|
|
@@ -85,38 +95,38 @@ function N() {
|
|
|
85
95
|
children: [
|
|
86
96
|
/* @__PURE__ */ A(T, {
|
|
87
97
|
size: "sm",
|
|
88
|
-
label:
|
|
89
|
-
value: `${
|
|
90
|
-
changeType:
|
|
98
|
+
label: L("movethewheels.dashboard.stats.onTimeDelivery", "On-Time Delivery"),
|
|
99
|
+
value: `${B.performance.onTimeDeliveryRate.toFixed(1)}%`,
|
|
100
|
+
changeType: B.performance.onTimeDeliveryRate >= 90 ? "positive" : "negative"
|
|
91
101
|
}),
|
|
92
102
|
/* @__PURE__ */ A(T, {
|
|
93
103
|
size: "sm",
|
|
94
|
-
label:
|
|
95
|
-
value: D(
|
|
104
|
+
label: L("movethewheels.dashboard.stats.avgOrderValue", "Avg Order Value"),
|
|
105
|
+
value: D(B.revenue.avgOrderValue)
|
|
96
106
|
}),
|
|
97
107
|
/* @__PURE__ */ A(T, {
|
|
98
108
|
size: "sm",
|
|
99
|
-
label:
|
|
100
|
-
value:
|
|
101
|
-
subtitle:
|
|
109
|
+
label: L("movethewheels.dashboard.stats.driverRating", "Driver Rating"),
|
|
110
|
+
value: B.performance.avgDriverRating.toFixed(1),
|
|
111
|
+
subtitle: L("movethewheels.dashboard.stats.outOfFive", "out of 5")
|
|
102
112
|
}),
|
|
103
113
|
/* @__PURE__ */ A(T, {
|
|
104
114
|
size: "sm",
|
|
105
|
-
label:
|
|
106
|
-
value:
|
|
115
|
+
label: L("movethewheels.dashboard.stats.deliveredToday", "Delivered Today"),
|
|
116
|
+
value: B.orders.delivered
|
|
107
117
|
})
|
|
108
118
|
]
|
|
109
119
|
}),
|
|
110
120
|
/* @__PURE__ */ j("div", {
|
|
111
121
|
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
112
122
|
children: [/* @__PURE__ */ A(t, {
|
|
113
|
-
title:
|
|
123
|
+
title: L("movethewheels.dashboard.recentOrders.title", "Recent Orders"),
|
|
114
124
|
actions: /* @__PURE__ */ j(c, {
|
|
115
125
|
variant: "ghost",
|
|
116
126
|
size: "sm",
|
|
117
|
-
onClick: () =>
|
|
127
|
+
onClick: () => G("orders"),
|
|
118
128
|
children: [
|
|
119
|
-
|
|
129
|
+
L("movethewheels.dashboard.common.viewAll", "View all"),
|
|
120
130
|
" ",
|
|
121
131
|
/* @__PURE__ */ A(l, { size: 16 })
|
|
122
132
|
]
|
|
@@ -125,9 +135,9 @@ function N() {
|
|
|
125
135
|
className: "p-0",
|
|
126
136
|
children: /* @__PURE__ */ j("div", {
|
|
127
137
|
className: "divide-y",
|
|
128
|
-
children: [
|
|
138
|
+
children: [V.slice(0, 5).map((e) => /* @__PURE__ */ A("div", {
|
|
129
139
|
className: "p-4 hover:bg-bg-sunken/50 cursor-pointer transition-colors",
|
|
130
|
-
onClick: () =>
|
|
140
|
+
onClick: () => G(`orders/${e.id}`),
|
|
131
141
|
children: /* @__PURE__ */ j("div", {
|
|
132
142
|
className: "flex items-center justify-between",
|
|
133
143
|
children: [/* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
@@ -148,20 +158,20 @@ function N() {
|
|
|
148
158
|
})]
|
|
149
159
|
})]
|
|
150
160
|
})
|
|
151
|
-
}, e.id)),
|
|
161
|
+
}, e.id)), V.length === 0 && /* @__PURE__ */ A("div", {
|
|
152
162
|
className: "p-8 text-center text-text-secondary",
|
|
153
|
-
children:
|
|
163
|
+
children: L("movethewheels.dashboard.recentOrders.empty", "No recent orders")
|
|
154
164
|
})]
|
|
155
165
|
})
|
|
156
166
|
}) })
|
|
157
167
|
}), /* @__PURE__ */ A(t, {
|
|
158
|
-
title:
|
|
168
|
+
title: L("movethewheels.dashboard.activeDeliveries.title", "Active Deliveries"),
|
|
159
169
|
actions: /* @__PURE__ */ j(c, {
|
|
160
170
|
variant: "ghost",
|
|
161
171
|
size: "sm",
|
|
162
|
-
onClick: () =>
|
|
172
|
+
onClick: () => G("tracking/live"),
|
|
163
173
|
children: [
|
|
164
|
-
|
|
174
|
+
L("movethewheels.dashboard.activeDeliveries.liveTracking", "Live tracking"),
|
|
165
175
|
" ",
|
|
166
176
|
/* @__PURE__ */ A(l, { size: 16 })
|
|
167
177
|
]
|
|
@@ -170,9 +180,9 @@ function N() {
|
|
|
170
180
|
className: "p-0",
|
|
171
181
|
children: /* @__PURE__ */ j("div", {
|
|
172
182
|
className: "divide-y",
|
|
173
|
-
children: [
|
|
183
|
+
children: [W.slice(0, 5).map((e) => e.order ? /* @__PURE__ */ A("div", {
|
|
174
184
|
className: "p-4 hover:bg-bg-sunken/50 cursor-pointer transition-colors",
|
|
175
|
-
onClick: () =>
|
|
185
|
+
onClick: () => G(`tracking?order=${e.order.id}`),
|
|
176
186
|
children: /* @__PURE__ */ j("div", {
|
|
177
187
|
className: "flex items-center justify-between",
|
|
178
188
|
children: [/* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
@@ -180,7 +190,7 @@ function N() {
|
|
|
180
190
|
children: e.order.orderNumber
|
|
181
191
|
}), /* @__PURE__ */ A("p", {
|
|
182
192
|
className: "text-sm text-text-secondary",
|
|
183
|
-
children: e.driver?.fullName ||
|
|
193
|
+
children: e.driver?.fullName || L("movethewheels.dashboard.activeDeliveries.unassigned", "Unassigned")
|
|
184
194
|
})] }), /* @__PURE__ */ j("div", {
|
|
185
195
|
className: "text-right",
|
|
186
196
|
children: [/* @__PURE__ */ A(E, {
|
|
@@ -190,16 +200,16 @@ function N() {
|
|
|
190
200
|
}), /* @__PURE__ */ j("p", {
|
|
191
201
|
className: "text-sm text-text-secondary mt-1",
|
|
192
202
|
children: [
|
|
193
|
-
|
|
203
|
+
L("movethewheels.dashboard.activeDeliveries.eta", "ETA:"),
|
|
194
204
|
" ",
|
|
195
|
-
e.estimatedArrival ? O(e.estimatedArrival, "time") :
|
|
205
|
+
e.estimatedArrival ? O(e.estimatedArrival, "time") : L("movethewheels.dashboard.activeDeliveries.na", "N/A")
|
|
196
206
|
]
|
|
197
207
|
})]
|
|
198
208
|
})]
|
|
199
209
|
})
|
|
200
|
-
}, e.order.id) : null),
|
|
210
|
+
}, e.order.id) : null), W.length === 0 && /* @__PURE__ */ A("div", {
|
|
201
211
|
className: "p-8 text-center text-text-secondary",
|
|
202
|
-
children:
|
|
212
|
+
children: L("movethewheels.dashboard.activeDeliveries.empty", "No active deliveries")
|
|
203
213
|
})]
|
|
204
214
|
})
|
|
205
215
|
}) })
|
|
@@ -208,32 +218,32 @@ function N() {
|
|
|
208
218
|
/* @__PURE__ */ j("div", {
|
|
209
219
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
210
220
|
children: [
|
|
211
|
-
/* @__PURE__ */ j(
|
|
212
|
-
className: "text-base",
|
|
213
|
-
children: P("movethewheels.dashboard.orderStatus.title", "Order Status")
|
|
214
|
-
}) }), /* @__PURE__ */ A(r, {
|
|
221
|
+
/* @__PURE__ */ j(N, {
|
|
215
222
|
className: "space-y-4",
|
|
216
|
-
children: /* @__PURE__ */ A("
|
|
223
|
+
children: [/* @__PURE__ */ A("h2", {
|
|
224
|
+
className: "text-base font-semibold text-text-primary",
|
|
225
|
+
children: L("movethewheels.dashboard.orderStatus.title", "Order Status")
|
|
226
|
+
}), /* @__PURE__ */ A("div", {
|
|
217
227
|
className: "space-y-3",
|
|
218
228
|
children: [
|
|
219
229
|
{
|
|
220
230
|
status: "pending",
|
|
221
|
-
count:
|
|
231
|
+
count: H.byStatus.pending,
|
|
222
232
|
color: "bg-yellow-500"
|
|
223
233
|
},
|
|
224
234
|
{
|
|
225
235
|
status: "in_transit",
|
|
226
|
-
count:
|
|
236
|
+
count: H.byStatus.in_transit,
|
|
227
237
|
color: "bg-blue-500"
|
|
228
238
|
},
|
|
229
239
|
{
|
|
230
240
|
status: "delivered",
|
|
231
|
-
count:
|
|
241
|
+
count: H.byStatus.delivered,
|
|
232
242
|
color: "bg-green-500"
|
|
233
243
|
},
|
|
234
244
|
{
|
|
235
245
|
status: "cancelled",
|
|
236
|
-
count:
|
|
246
|
+
count: H.byStatus.cancelled,
|
|
237
247
|
color: "bg-red-500"
|
|
238
248
|
}
|
|
239
249
|
].map(({ status: e, count: t, color: n }) => /* @__PURE__ */ j("div", {
|
|
@@ -242,56 +252,57 @@ function N() {
|
|
|
242
252
|
className: "flex items-center gap-2",
|
|
243
253
|
children: [/* @__PURE__ */ A("div", { className: `w-2 h-2 rounded-full ${n}` }), /* @__PURE__ */ A("span", {
|
|
244
254
|
className: "text-sm capitalize",
|
|
245
|
-
children:
|
|
255
|
+
children: L(`movethewheels.dashboard.orderStatus.status.${e}`, e.replace("_", " "))
|
|
246
256
|
})]
|
|
247
257
|
}), /* @__PURE__ */ A(s, {
|
|
248
258
|
variant: "secondary",
|
|
259
|
+
className: "tabular-nums",
|
|
249
260
|
children: t
|
|
250
261
|
})]
|
|
251
262
|
}, e))
|
|
252
|
-
})
|
|
253
|
-
})
|
|
263
|
+
})]
|
|
264
|
+
}),
|
|
254
265
|
/* @__PURE__ */ j(n, { children: [/* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(i, {
|
|
255
266
|
className: "text-base",
|
|
256
|
-
children:
|
|
267
|
+
children: L("movethewheels.dashboard.fleetStatus.title", "Fleet Status")
|
|
257
268
|
}) }), /* @__PURE__ */ j(r, {
|
|
258
269
|
className: "space-y-4",
|
|
259
270
|
children: [/* @__PURE__ */ j("div", {
|
|
260
271
|
className: "space-y-2",
|
|
261
272
|
children: [/* @__PURE__ */ j("div", {
|
|
262
273
|
className: "flex justify-between text-sm",
|
|
263
|
-
children: [/* @__PURE__ */ A("span", { children:
|
|
264
|
-
}), /* @__PURE__ */ A(e, { value:
|
|
274
|
+
children: [/* @__PURE__ */ A("span", { children: L("movethewheels.dashboard.fleetStatus.vehicleUtilization", "Vehicle Utilization") }), /* @__PURE__ */ j("span", { children: [U.utilization.toFixed(0), "%"] })]
|
|
275
|
+
}), /* @__PURE__ */ A(e, { value: U.utilization })]
|
|
265
276
|
}), /* @__PURE__ */ j("div", {
|
|
266
277
|
className: "grid grid-cols-2 gap-4 text-sm",
|
|
267
278
|
children: [
|
|
268
279
|
/* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
269
280
|
className: "text-text-secondary",
|
|
270
|
-
children:
|
|
281
|
+
children: L("movethewheels.dashboard.fleetStatus.available", "Available")
|
|
271
282
|
}), /* @__PURE__ */ A("p", {
|
|
272
283
|
className: "text-lg font-semibold text-green-600",
|
|
273
|
-
children:
|
|
284
|
+
children: U.vehiclesByStatus.available
|
|
274
285
|
})] }),
|
|
275
286
|
/* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
276
287
|
className: "text-text-secondary",
|
|
277
|
-
children:
|
|
288
|
+
children: L("movethewheels.dashboard.fleetStatus.inUse", "In Use")
|
|
278
289
|
}), /* @__PURE__ */ A("p", {
|
|
279
290
|
className: "text-lg font-semibold text-blue-600",
|
|
280
|
-
children:
|
|
291
|
+
children: U.vehiclesByStatus.assigned
|
|
281
292
|
})] }),
|
|
282
293
|
/* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
283
294
|
className: "text-text-secondary",
|
|
284
|
-
children:
|
|
295
|
+
children: L("movethewheels.dashboard.fleetStatus.maintenance", "Maintenance")
|
|
285
296
|
}), /* @__PURE__ */ A("p", {
|
|
286
297
|
className: "text-lg font-semibold text-yellow-600",
|
|
287
|
-
children:
|
|
298
|
+
children: U.vehiclesByStatus.maintenance
|
|
288
299
|
})] }),
|
|
289
300
|
/* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
290
301
|
className: "text-text-secondary",
|
|
291
|
-
children:
|
|
302
|
+
children: L("movethewheels.dashboard.fleetStatus.avgFuel", "Avg Fuel")
|
|
292
303
|
}), /* @__PURE__ */ j("p", {
|
|
293
304
|
className: "text-lg font-semibold",
|
|
294
|
-
children: [
|
|
305
|
+
children: [U.avgFuelLevel.toFixed(0), "%"]
|
|
295
306
|
})] })
|
|
296
307
|
]
|
|
297
308
|
})]
|
|
@@ -301,66 +312,66 @@ function N() {
|
|
|
301
312
|
children: [/* @__PURE__ */ A(h, {
|
|
302
313
|
size: 16,
|
|
303
314
|
className: "text-yellow-500"
|
|
304
|
-
}),
|
|
315
|
+
}), L("movethewheels.dashboard.alerts.title", "Alerts")]
|
|
305
316
|
}) }), /* @__PURE__ */ A(r, { children: /* @__PURE__ */ j("div", {
|
|
306
317
|
className: "space-y-3",
|
|
307
318
|
children: [
|
|
308
|
-
|
|
319
|
+
H.byStatus.pending > 5 && /* @__PURE__ */ j("div", {
|
|
309
320
|
className: "flex items-start gap-3 p-2 rounded bg-yellow-50 dark:bg-yellow-900/20",
|
|
310
321
|
children: [/* @__PURE__ */ A(u, {
|
|
311
322
|
size: 16,
|
|
312
323
|
className: "text-yellow-600 mt-0.5"
|
|
313
324
|
}), /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
314
325
|
className: "text-sm font-medium",
|
|
315
|
-
children:
|
|
326
|
+
children: L("movethewheels.dashboard.alerts.pendingOrders.title", "Pending Orders")
|
|
316
327
|
}), /* @__PURE__ */ j("p", {
|
|
317
328
|
className: "text-xs text-text-secondary",
|
|
318
329
|
children: [
|
|
319
|
-
|
|
330
|
+
H.byStatus.pending,
|
|
320
331
|
" ",
|
|
321
|
-
|
|
332
|
+
L("movethewheels.dashboard.alerts.pendingOrders.description", "orders awaiting confirmation")
|
|
322
333
|
]
|
|
323
334
|
})] })]
|
|
324
335
|
}),
|
|
325
|
-
|
|
336
|
+
U.vehiclesByStatus.maintenance > 0 && /* @__PURE__ */ j("div", {
|
|
326
337
|
className: "flex items-start gap-3 p-2 rounded bg-orange-50 dark:bg-orange-900/20",
|
|
327
338
|
children: [/* @__PURE__ */ A(g, {
|
|
328
339
|
size: 16,
|
|
329
340
|
className: "text-orange-600 mt-0.5"
|
|
330
341
|
}), /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
331
342
|
className: "text-sm font-medium",
|
|
332
|
-
children:
|
|
343
|
+
children: L("movethewheels.dashboard.alerts.maintenanceVehicles.title", "Vehicles in Maintenance")
|
|
333
344
|
}), /* @__PURE__ */ j("p", {
|
|
334
345
|
className: "text-xs text-text-secondary",
|
|
335
346
|
children: [
|
|
336
|
-
|
|
347
|
+
U.vehiclesByStatus.maintenance,
|
|
337
348
|
" ",
|
|
338
|
-
|
|
349
|
+
L("movethewheels.dashboard.alerts.maintenanceVehicles.description", "vehicles unavailable")
|
|
339
350
|
]
|
|
340
351
|
})] })]
|
|
341
352
|
}),
|
|
342
|
-
|
|
353
|
+
U.driversByStatus.offline > 0 && /* @__PURE__ */ j("div", {
|
|
343
354
|
className: "flex items-start gap-3 p-2 rounded bg-gray-50 dark:bg-gray-800",
|
|
344
355
|
children: [/* @__PURE__ */ A(_, {
|
|
345
356
|
size: 16,
|
|
346
357
|
className: "text-gray-600 mt-0.5"
|
|
347
358
|
}), /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
348
359
|
className: "text-sm font-medium",
|
|
349
|
-
children:
|
|
360
|
+
children: L("movethewheels.dashboard.alerts.offlineDrivers.title", "Offline Drivers")
|
|
350
361
|
}), /* @__PURE__ */ j("p", {
|
|
351
362
|
className: "text-xs text-text-secondary",
|
|
352
363
|
children: [
|
|
353
|
-
|
|
364
|
+
U.driversByStatus.offline,
|
|
354
365
|
" ",
|
|
355
|
-
|
|
366
|
+
L("movethewheels.dashboard.alerts.offlineDrivers.description", "drivers currently offline")
|
|
356
367
|
]
|
|
357
368
|
})] })]
|
|
358
369
|
}),
|
|
359
|
-
|
|
370
|
+
H.byStatus.pending <= 5 && U.vehiclesByStatus.maintenance === 0 && U.driversByStatus.offline === 0 && /* @__PURE__ */ A("div", {
|
|
360
371
|
className: "text-center py-4 text-text-secondary",
|
|
361
372
|
children: /* @__PURE__ */ A("p", {
|
|
362
373
|
className: "text-sm",
|
|
363
|
-
children:
|
|
374
|
+
children: L("movethewheels.dashboard.alerts.allOperational", "All systems operational")
|
|
364
375
|
})
|
|
365
376
|
})
|
|
366
377
|
]
|
|
@@ -371,4 +382,4 @@ function N() {
|
|
|
371
382
|
});
|
|
372
383
|
}
|
|
373
384
|
//#endregion
|
|
374
|
-
export {
|
|
385
|
+
export { I as default };
|