@burdenoff/microfe-movethewheels 2026.626.2 → 2026.703.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-AvsMbunM.js → AIAssistantPage-C3ovZ0Fh.js} +100 -73
- package/dist/AnalyticsPage-O8SpY-V4.js +215 -0
- package/dist/{CreateOrderPage-CjlnEtk3.js → CreateOrderPage-CB1_-_mN.js} +33 -35
- package/dist/{CustomerDetailsPage-I6cdDHUi.js → CustomerDetailsPage-BaeKEI1D.js} +42 -44
- package/dist/{CustomersPage-CGGfD4ki.js → CustomersPage-DRaLuHMC.js} +26 -28
- package/dist/{DashboardPage-D2HRqwg9.js → DashboardPage-DPjhNfKB.js} +85 -83
- package/dist/{DataTable-CD9ZhpLB.js → DataTable-DmciIKKM.js} +3 -3
- package/dist/{DriverDetailsPage-rg_pGNuP.js → DriverDetailsPage-CSSQTOzn.js} +52 -54
- package/dist/{DriversPage-DKiynISH.js → DriversPage-C2Bk0w4Q.js} +24 -26
- package/dist/{FinancePage-Vg8WPs38.js → FinancePage-lmp0Sdsw.js} +9 -9
- package/dist/FleetPage-DZn5pIqd.js +365 -0
- package/dist/ImportExportPage-BIUJZc7O.js +290 -0
- package/dist/InventoryPage-Cxh1zYJd.js +253 -0
- package/dist/{LiveTrackingPage-DQ1q4Id3.js → LiveTrackingPage-BY1yAkIt.js} +60 -56
- package/dist/MarketplacePage-RMuL17EA.js +247 -0
- package/dist/{MetricCard-B7yMyvMX.js → MetricCard-7aYgzZHK.js} +1 -1
- package/dist/{OrderDetailsPage-CFASgsYX.js → OrderDetailsPage-C2Mf4KSy.js} +83 -85
- package/dist/{OrdersListPage-BHeT8S5o.js → OrdersListPage-BrPBtnhp.js} +31 -33
- package/dist/{PageLayout-D3N8MCTm.js → PageLayout-D4LDHJJq.js} +483 -422
- package/dist/{ProductDetailsPage-CFGcbaHo.js → ProductDetailsPage-CezzzZcj.js} +27 -29
- package/dist/{ProductsPage--xEpbQ8A.js → ProductsPage-I5DilIoY.js} +21 -23
- package/dist/ReportsPage-BDXNmUng.js +284 -0
- package/dist/RouteDetailsPage-BcomL20M.js +263 -0
- package/dist/RoutesPage-lqX9ylHP.js +144 -0
- package/dist/SettingsPage-CQVIOaNs.js +421 -0
- package/dist/StatusBadge-NpTeHVlw.js +152 -0
- package/dist/{TrackingPage-CcRc_dva.js → TrackingPage-BXrjz7V8.js} +59 -61
- package/dist/{VehicleDetailsPage-3YDMPsPs.js → VehicleDetailsPage-DZjLcJgr.js} +40 -42
- package/dist/{VehiclesPage-UlxPWP9K.js → VehiclesPage-6W39XT5W.js} +19 -21
- package/dist/{WarehouseDetailsPage-Db7KeN-d.js → WarehouseDetailsPage-C10pgRGW.js} +38 -40
- package/dist/{WarehousesPage-CuTO-OPp.js → WarehousesPage-CHvBqNaQ.js} +15 -17
- package/dist/{arrow-left-CBpZKkpq.js → arrow-left-n48Y-Wis.js} +1 -1
- package/dist/{box-CAaiElsb.js → box-D9Pal4HM.js} +1 -1
- package/dist/{chart-column-D1Ym15-S.js → chart-column-BFIJysDR.js} +1 -1
- package/dist/{chevron-right-BIFGi0UA.js → chevron-right-EMIIyyJ1.js} +1 -1
- package/dist/{circle-alert-DjmNo5_L.js → circle-alert-iY24lSlp.js} +1 -1
- package/dist/{circle-check-big-CjuPVo3_.js → circle-check-big-w0TrLKMF.js} +1 -1
- package/dist/{clock-BjkdnddD.js → clock-DJZtdl8u.js} +1 -1
- package/dist/{dollar-sign-IB4O0wuQ.js → dollar-sign-CgKQRz_e.js} +1 -1
- package/dist/{download-Dpa9vqoG.js → download-DRXxoiQR.js} +1 -1
- package/dist/{file-text-C8Uioy11.js → file-text-DWWY6_f5.js} +1 -1
- package/dist/{filter-Da5OZaHI.js → filter-DloLC2eE.js} +1 -1
- package/dist/index.js +119 -111
- package/dist/{map-_Per4sT9.js → map-CkJaULb2.js} +1 -1
- package/dist/{map-pin-BSaf5IDL.js → map-pin-BGiCvyCs.js} +1 -1
- package/dist/{navigation-DaTbrhw2.js → navigation-D36prnAn.js} +1 -1
- package/dist/{package-BE7U0wQE.js → package-BChUzpJS.js} +1 -1
- package/dist/{phone-DV4StZiA.js → phone-Ac9s3mo_.js} +1 -1
- package/dist/{plus-Dl1rLeJR.js → plus-Z76q-FZm.js} +1 -1
- package/dist/{refresh-cw-CWfERAit.js → refresh-cw-DKt6f5T6.js} +1 -1
- package/dist/{save-XH8vydOn.js → save-CojywNhG.js} +1 -1
- package/dist/{search-OxoIiL_C.js → search-CDGefqb3.js} +1 -1
- package/dist/{square-pen-hLIbFQFV.js → square-pen-CopE9GmB.js} +1 -1
- package/dist/{star-YsVV3MNQ.js → star-nHlLjDKR.js} +1 -1
- package/dist/{store-RCBl7HB-.js → store-BR9Voi5E.js} +1 -1
- package/dist/{trending-up-C-85AwGT.js → trending-up-B7W-GL6P.js} +1 -1
- package/dist/{triangle-alert-BOhfGgmh.js → triangle-alert-BonHFFNz.js} +1 -1
- package/dist/{truck-CtDjNFbi.js → truck-DrlfSpRC.js} +1 -1
- package/dist/{useAnalytics-ph7eTIK6.js → useAnalytics-CgdzUfY_.js} +40 -40
- package/dist/useAssistant-D4v3oxD3.js +84 -0
- package/dist/{useCustomers-bS3a4ytk.js → useCustomers-QrlozybF.js} +24 -24
- package/dist/{useFleet-BdETplNE.js → useFleet-DiAC-IiH.js} +70 -67
- package/dist/useImportExport-BLMnAKCC.js +55 -0
- package/dist/{useInventory-Dwn18FPz.js → useInventory-DKoks37x.js} +33 -33
- package/dist/{useOrders-D_3_hGMp.js → useOrders-D3UZVy8Y.js} +42 -42
- package/dist/useReports-Puq4DCH9.js +78 -0
- package/dist/{useRoutes-v4aBaS-E.js → useRoutes-Do57LvRb.js} +31 -31
- package/dist/useSettings-CkDH_-gM.js +81 -0
- package/dist/{useTracking-De2KIUNu.js → useTracking-GJify4HN.js} +22 -22
- package/dist/{user-Dz5TJZFs.js → user-CjSoudeu.js} +1 -1
- package/dist/{users-g2N0eL-Z.js → users-BAM4gHTn.js} +1 -1
- package/dist/{warehouse-D3WWDeTX.js → warehouse-C7MSr47B.js} +1 -1
- package/dist/{wrench-CmxY1n4I.js → wrench-CANXWxF-.js} +1 -1
- package/package.json +1 -1
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +27 -3
- package/src/movethewheels/components/StatusBadge.tsx +18 -37
- package/src/movethewheels/constants/index.ts +67 -26
- package/src/movethewheels/hooks/index.ts +12 -0
- package/src/movethewheels/hooks/useAnalytics.ts +20 -6
- package/src/movethewheels/hooks/useAssistant.ts +74 -0
- package/src/movethewheels/hooks/useFleet.ts +63 -59
- package/src/movethewheels/hooks/useImportExport.ts +101 -0
- package/src/movethewheels/hooks/useReports.ts +158 -0
- package/src/movethewheels/hooks/useSettings.ts +120 -0
- package/src/movethewheels/pages/AIAssistantPage.tsx +53 -15
- package/src/movethewheels/pages/AnalyticsPage.tsx +67 -64
- package/src/movethewheels/pages/CustomerDetailsPage.tsx +1 -1
- package/src/movethewheels/pages/CustomersPage.tsx +1 -1
- package/src/movethewheels/pages/DashboardPage.tsx +42 -22
- package/src/movethewheels/pages/DriverDetailsPage.tsx +1 -1
- package/src/movethewheels/pages/DriversPage.tsx +1 -1
- package/src/movethewheels/pages/FleetPage.tsx +96 -38
- package/src/movethewheels/pages/ImportExportPage.tsx +174 -68
- package/src/movethewheels/pages/InventoryPage.tsx +66 -28
- package/src/movethewheels/pages/LiveTrackingPage.tsx +12 -3
- package/src/movethewheels/pages/MarketplacePage.tsx +87 -45
- package/src/movethewheels/pages/OrderDetailsPage.tsx +2 -2
- package/src/movethewheels/pages/ReportsPage.tsx +194 -90
- package/src/movethewheels/pages/RouteDetailsPage.tsx +5 -11
- package/src/movethewheels/pages/RoutesPage.tsx +4 -9
- package/src/movethewheels/pages/SettingsPage.tsx +234 -56
- package/src/movethewheels/pages/TrackingPage.tsx +6 -6
- package/src/movethewheels/providers/MoveTheWheelsProvider.tsx +7 -6
- package/src/movethewheels/store/movethewheelsStore.ts +1 -1
- package/dist/AnalyticsPage-CCLfHgQZ.js +0 -212
- package/dist/FleetPage-DddXt8r8.js +0 -332
- package/dist/ImportExportPage-BW6qO3kc.js +0 -248
- package/dist/InventoryPage-rMGuaJN-.js +0 -222
- package/dist/MarketplacePage-DKrXAv62.js +0 -219
- package/dist/ReportsPage-Bb7_90rK.js +0 -235
- package/dist/RouteDetailsPage-CVtDVb1N.js +0 -282
- package/dist/RoutesPage-s57PtgcQ.js +0 -163
- package/dist/SettingsPage-BYNCBOpN.js +0 -298
- package/dist/StatusBadge-CijYQXtb.js +0 -209
- package/dist/graphqlClient-CdJyR_ed.js +0 -55
- package/dist/navigation-BgnOfsVd.js +0 -6
- package/dist/route-Dp9JiN_E.js +0 -51
- package/dist/settings-3Rw5NwFF.js +0 -28
- package/src/movethewheels/constants/mockData.ts +0 -1342
- /package/dist/{formatters-_vJlC-47.js → formatters-DhKZ-eA1.js} +0 -0
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import { M as e, a as t,
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { r as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { r as
|
|
16
|
-
import { r as
|
|
17
|
-
import { r as
|
|
18
|
-
import { n as D, r as O } from "./formatters-_vJlC-47.js";
|
|
19
|
-
import { t as k } from "./navigation-BgnOfsVd.js";
|
|
1
|
+
import { M as e, a as t, ct as n, d as r, f as i, g as a, h as o, i as s, l as c, ot as l, u } from "./PageLayout-D4LDHJJq.js";
|
|
2
|
+
import { t as d } from "./chevron-right-EMIIyyJ1.js";
|
|
3
|
+
import { t as f } from "./clock-DJZtdl8u.js";
|
|
4
|
+
import { t as p } from "./dollar-sign-CgKQRz_e.js";
|
|
5
|
+
import { t as m } from "./map-pin-BGiCvyCs.js";
|
|
6
|
+
import { t as h } from "./package-BChUzpJS.js";
|
|
7
|
+
import { t as g } from "./trending-up-B7W-GL6P.js";
|
|
8
|
+
import { t as _ } from "./triangle-alert-BonHFFNz.js";
|
|
9
|
+
import { t as v } from "./truck-DrlfSpRC.js";
|
|
10
|
+
import { t as y } from "./users-BAM4gHTn.js";
|
|
11
|
+
import { n as b, r as x } from "./useOrders-D3UZVy8Y.js";
|
|
12
|
+
import { i as S } from "./useFleet-DiAC-IiH.js";
|
|
13
|
+
import { n as C } from "./useAnalytics-CgdzUfY_.js";
|
|
14
|
+
import { r as w } from "./useTracking-GJify4HN.js";
|
|
15
|
+
import { r as T, t as E } from "./MetricCard-7aYgzZHK.js";
|
|
16
|
+
import { r as D } from "./StatusBadge-NpTeHVlw.js";
|
|
17
|
+
import { n as O, r as k } from "./formatters-DhKZ-eA1.js";
|
|
20
18
|
import { jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
21
19
|
import { CTAOverflowMenu as M, EmphasisPanel as N, PagePurpose as P } from "@burdenoff/fe-libs/ui";
|
|
22
20
|
import { useI18n as F } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
@@ -25,92 +23,88 @@ function I() {
|
|
|
25
23
|
let { t: I } = F(), L = (e, t) => {
|
|
26
24
|
let n = I(e);
|
|
27
25
|
return n === e ? t : n;
|
|
28
|
-
}, { basePath: R, navigate: z } =
|
|
29
|
-
z && z(
|
|
26
|
+
}, { basePath: R, navigate: z } = l(), { metrics: B } = C(), { orders: V } = x({ limit: 5 }), { stats: H } = b(), { stats: U } = S(), { activeDeliveries: W } = w(), G = (e) => {
|
|
27
|
+
z && z(n(R, e));
|
|
28
|
+
}, K = (e, t) => {
|
|
29
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), t());
|
|
30
30
|
};
|
|
31
|
-
return /* @__PURE__ */ j(
|
|
31
|
+
return /* @__PURE__ */ j(s, {
|
|
32
32
|
hero: !0,
|
|
33
33
|
titleAccent: L("movethewheels.dashboard.title", "Dashboard"),
|
|
34
34
|
title: L("movethewheels.dashboard.title", "Dashboard"),
|
|
35
35
|
subtitle: L("movethewheels.dashboard.subtitle", "Overview of your logistics operations"),
|
|
36
|
-
icon: /* @__PURE__ */ A(
|
|
36
|
+
icon: /* @__PURE__ */ A(g, { size: 24 }),
|
|
37
37
|
headerActions: /* @__PURE__ */ A(M, {
|
|
38
38
|
primary: {
|
|
39
39
|
label: L("movethewheels.dashboard.actions.newOrder", "New Order"),
|
|
40
|
-
icon: /* @__PURE__ */ A(
|
|
40
|
+
icon: /* @__PURE__ */ A(h, { size: 16 }),
|
|
41
41
|
onSelect: () => G("orders/new")
|
|
42
42
|
},
|
|
43
43
|
actions: [{
|
|
44
44
|
label: L("movethewheels.dashboard.actions.liveMap", "Live Map"),
|
|
45
|
-
icon: /* @__PURE__ */ A(
|
|
45
|
+
icon: /* @__PURE__ */ A(m, { size: 16 }),
|
|
46
46
|
onSelect: () => G("tracking/live")
|
|
47
47
|
}]
|
|
48
48
|
}),
|
|
49
49
|
children: [
|
|
50
50
|
/* @__PURE__ */ A(P, {
|
|
51
|
-
icon: /* @__PURE__ */ A(
|
|
51
|
+
icon: /* @__PURE__ */ A(g, { size: 18 }),
|
|
52
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
53
|
}),
|
|
54
|
-
/* @__PURE__ */ j(
|
|
54
|
+
/* @__PURE__ */ j(T, {
|
|
55
55
|
columns: 4,
|
|
56
56
|
children: [
|
|
57
|
-
/* @__PURE__ */ A(
|
|
57
|
+
/* @__PURE__ */ A(E, {
|
|
58
58
|
label: L("movethewheels.dashboard.metrics.totalOrders", "Total Orders"),
|
|
59
59
|
value: B.orders.total,
|
|
60
|
-
icon: /* @__PURE__ */ A(
|
|
61
|
-
change: `+${B.orders.today} ${L("movethewheels.dashboard.metrics.today", "today")}`,
|
|
62
|
-
changeType: "positive",
|
|
63
|
-
trend: "up",
|
|
60
|
+
icon: /* @__PURE__ */ A(h, { size: 20 }),
|
|
64
61
|
onClick: () => G("orders")
|
|
65
62
|
}),
|
|
66
|
-
/* @__PURE__ */ A(
|
|
63
|
+
/* @__PURE__ */ A(E, {
|
|
67
64
|
label: L("movethewheels.dashboard.metrics.activeDeliveries", "Active Deliveries"),
|
|
68
65
|
value: B.orders.inTransit,
|
|
69
|
-
icon: /* @__PURE__ */ A(
|
|
66
|
+
icon: /* @__PURE__ */ A(v, { size: 20 }),
|
|
70
67
|
subtitle: `${B.orders.pending} ${L("movethewheels.dashboard.metrics.pending", "pending")}`,
|
|
71
68
|
onClick: () => G("tracking")
|
|
72
69
|
}),
|
|
73
|
-
/* @__PURE__ */ A(
|
|
70
|
+
/* @__PURE__ */ A(E, {
|
|
74
71
|
label: L("movethewheels.dashboard.metrics.fleetUtilization", "Fleet Utilization"),
|
|
75
72
|
value: `${B.fleet.activeVehicles}/${B.fleet.totalVehicles}`,
|
|
76
|
-
icon: /* @__PURE__ */ A(
|
|
73
|
+
icon: /* @__PURE__ */ A(v, { size: 20 }),
|
|
77
74
|
subtitle: `${B.fleet.availableDrivers} ${L("movethewheels.dashboard.metrics.driversAvailable", "drivers available")}`,
|
|
78
75
|
onClick: () => G("fleet")
|
|
79
76
|
}),
|
|
80
|
-
/* @__PURE__ */ A(
|
|
77
|
+
/* @__PURE__ */ A(E, {
|
|
81
78
|
treatment: "glass",
|
|
82
79
|
glow: !0,
|
|
83
80
|
label: L("movethewheels.dashboard.metrics.revenue", "Revenue"),
|
|
84
|
-
value:
|
|
85
|
-
icon: /* @__PURE__ */ A(
|
|
86
|
-
change: "+12.5%",
|
|
87
|
-
changeType: "positive",
|
|
88
|
-
trend: "up",
|
|
81
|
+
value: O(B.revenue.total),
|
|
82
|
+
icon: /* @__PURE__ */ A(p, { size: 20 }),
|
|
89
83
|
onClick: () => G("analytics")
|
|
90
84
|
})
|
|
91
85
|
]
|
|
92
86
|
}),
|
|
93
|
-
/* @__PURE__ */ j(
|
|
87
|
+
/* @__PURE__ */ j(T, {
|
|
94
88
|
columns: 4,
|
|
95
89
|
children: [
|
|
96
|
-
/* @__PURE__ */ A(
|
|
90
|
+
/* @__PURE__ */ A(E, {
|
|
97
91
|
size: "sm",
|
|
98
92
|
label: L("movethewheels.dashboard.stats.onTimeDelivery", "On-Time Delivery"),
|
|
99
93
|
value: `${B.performance.onTimeDeliveryRate.toFixed(1)}%`,
|
|
100
94
|
changeType: B.performance.onTimeDeliveryRate >= 90 ? "positive" : "negative"
|
|
101
95
|
}),
|
|
102
|
-
/* @__PURE__ */ A(
|
|
96
|
+
/* @__PURE__ */ A(E, {
|
|
103
97
|
size: "sm",
|
|
104
98
|
label: L("movethewheels.dashboard.stats.avgOrderValue", "Avg Order Value"),
|
|
105
|
-
value:
|
|
99
|
+
value: O(B.revenue.avgOrderValue)
|
|
106
100
|
}),
|
|
107
|
-
/* @__PURE__ */ A(
|
|
101
|
+
/* @__PURE__ */ A(E, {
|
|
108
102
|
size: "sm",
|
|
109
103
|
label: L("movethewheels.dashboard.stats.driverRating", "Driver Rating"),
|
|
110
104
|
value: B.performance.avgDriverRating.toFixed(1),
|
|
111
105
|
subtitle: L("movethewheels.dashboard.stats.outOfFive", "out of 5")
|
|
112
106
|
}),
|
|
113
|
-
/* @__PURE__ */ A(
|
|
107
|
+
/* @__PURE__ */ A(E, {
|
|
114
108
|
size: "sm",
|
|
115
109
|
label: L("movethewheels.dashboard.stats.deliveredToday", "Delivered Today"),
|
|
116
110
|
value: B.orders.delivered
|
|
@@ -121,23 +115,27 @@ function I() {
|
|
|
121
115
|
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
122
116
|
children: [/* @__PURE__ */ A(t, {
|
|
123
117
|
title: L("movethewheels.dashboard.recentOrders.title", "Recent Orders"),
|
|
124
|
-
actions: /* @__PURE__ */ j(
|
|
118
|
+
actions: /* @__PURE__ */ j(u, {
|
|
125
119
|
variant: "ghost",
|
|
126
120
|
size: "sm",
|
|
127
121
|
onClick: () => G("orders"),
|
|
128
122
|
children: [
|
|
129
123
|
L("movethewheels.dashboard.common.viewAll", "View all"),
|
|
130
124
|
" ",
|
|
131
|
-
/* @__PURE__ */ A(
|
|
125
|
+
/* @__PURE__ */ A(d, { size: 16 })
|
|
132
126
|
]
|
|
133
127
|
}),
|
|
134
|
-
children: /* @__PURE__ */ A(
|
|
128
|
+
children: /* @__PURE__ */ A(r, { children: /* @__PURE__ */ A(i, {
|
|
135
129
|
className: "p-0",
|
|
136
130
|
children: /* @__PURE__ */ j("div", {
|
|
137
131
|
className: "divide-y",
|
|
138
132
|
children: [V.slice(0, 5).map((e) => /* @__PURE__ */ A("div", {
|
|
139
|
-
|
|
133
|
+
role: "button",
|
|
134
|
+
tabIndex: 0,
|
|
135
|
+
"aria-label": `View order ${e.orderNumber}`,
|
|
136
|
+
className: "p-4 hover:bg-bg-sunken/50 cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-action-primary-bg",
|
|
140
137
|
onClick: () => G(`orders/${e.id}`),
|
|
138
|
+
onKeyDown: (t) => K(t, () => G(`orders/${e.id}`)),
|
|
141
139
|
children: /* @__PURE__ */ j("div", {
|
|
142
140
|
className: "flex items-center justify-between",
|
|
143
141
|
children: [/* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
@@ -148,13 +146,13 @@ function I() {
|
|
|
148
146
|
children: e.customerInfo.name
|
|
149
147
|
})] }), /* @__PURE__ */ j("div", {
|
|
150
148
|
className: "text-right",
|
|
151
|
-
children: [/* @__PURE__ */ A(
|
|
149
|
+
children: [/* @__PURE__ */ A(D, {
|
|
152
150
|
status: e.status,
|
|
153
151
|
type: "order",
|
|
154
152
|
size: "sm"
|
|
155
153
|
}), /* @__PURE__ */ A("p", {
|
|
156
154
|
className: "text-sm text-text-secondary mt-1",
|
|
157
|
-
children:
|
|
155
|
+
children: O(e.pricing.total)
|
|
158
156
|
})]
|
|
159
157
|
})]
|
|
160
158
|
})
|
|
@@ -166,23 +164,27 @@ function I() {
|
|
|
166
164
|
}) })
|
|
167
165
|
}), /* @__PURE__ */ A(t, {
|
|
168
166
|
title: L("movethewheels.dashboard.activeDeliveries.title", "Active Deliveries"),
|
|
169
|
-
actions: /* @__PURE__ */ j(
|
|
167
|
+
actions: /* @__PURE__ */ j(u, {
|
|
170
168
|
variant: "ghost",
|
|
171
169
|
size: "sm",
|
|
172
170
|
onClick: () => G("tracking/live"),
|
|
173
171
|
children: [
|
|
174
172
|
L("movethewheels.dashboard.activeDeliveries.liveTracking", "Live tracking"),
|
|
175
173
|
" ",
|
|
176
|
-
/* @__PURE__ */ A(
|
|
174
|
+
/* @__PURE__ */ A(d, { size: 16 })
|
|
177
175
|
]
|
|
178
176
|
}),
|
|
179
|
-
children: /* @__PURE__ */ A(
|
|
177
|
+
children: /* @__PURE__ */ A(r, { children: /* @__PURE__ */ A(i, {
|
|
180
178
|
className: "p-0",
|
|
181
179
|
children: /* @__PURE__ */ j("div", {
|
|
182
180
|
className: "divide-y",
|
|
183
181
|
children: [W.slice(0, 5).map((e) => e.order ? /* @__PURE__ */ A("div", {
|
|
184
|
-
|
|
182
|
+
role: "button",
|
|
183
|
+
tabIndex: 0,
|
|
184
|
+
"aria-label": `Track order ${e.order.orderNumber}`,
|
|
185
|
+
className: "p-4 hover:bg-bg-sunken/50 cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-action-primary-bg",
|
|
185
186
|
onClick: () => G(`tracking?order=${e.order.id}`),
|
|
187
|
+
onKeyDown: (t) => e.order && K(t, () => G(`tracking?order=${e.order.id}`)),
|
|
186
188
|
children: /* @__PURE__ */ j("div", {
|
|
187
189
|
className: "flex items-center justify-between",
|
|
188
190
|
children: [/* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
@@ -193,7 +195,7 @@ function I() {
|
|
|
193
195
|
children: e.driver?.fullName || L("movethewheels.dashboard.activeDeliveries.unassigned", "Unassigned")
|
|
194
196
|
})] }), /* @__PURE__ */ j("div", {
|
|
195
197
|
className: "text-right",
|
|
196
|
-
children: [/* @__PURE__ */ A(
|
|
198
|
+
children: [/* @__PURE__ */ A(D, {
|
|
197
199
|
status: e.order.status,
|
|
198
200
|
type: "order",
|
|
199
201
|
size: "sm"
|
|
@@ -202,7 +204,7 @@ function I() {
|
|
|
202
204
|
children: [
|
|
203
205
|
L("movethewheels.dashboard.activeDeliveries.eta", "ETA:"),
|
|
204
206
|
" ",
|
|
205
|
-
e.estimatedArrival ?
|
|
207
|
+
e.estimatedArrival ? k(e.estimatedArrival, "time") : L("movethewheels.dashboard.activeDeliveries.na", "N/A")
|
|
206
208
|
]
|
|
207
209
|
})]
|
|
208
210
|
})]
|
|
@@ -229,22 +231,22 @@ function I() {
|
|
|
229
231
|
{
|
|
230
232
|
status: "pending",
|
|
231
233
|
count: H.byStatus.pending,
|
|
232
|
-
color: "bg-
|
|
234
|
+
color: "bg-status-warning-text"
|
|
233
235
|
},
|
|
234
236
|
{
|
|
235
237
|
status: "in_transit",
|
|
236
238
|
count: H.byStatus.in_transit,
|
|
237
|
-
color: "bg-
|
|
239
|
+
color: "bg-status-info-text"
|
|
238
240
|
},
|
|
239
241
|
{
|
|
240
242
|
status: "delivered",
|
|
241
243
|
count: H.byStatus.delivered,
|
|
242
|
-
color: "bg-
|
|
244
|
+
color: "bg-status-success-text"
|
|
243
245
|
},
|
|
244
246
|
{
|
|
245
247
|
status: "cancelled",
|
|
246
248
|
count: H.byStatus.cancelled,
|
|
247
|
-
color: "bg-
|
|
249
|
+
color: "bg-status-error-text"
|
|
248
250
|
}
|
|
249
251
|
].map(({ status: e, count: t, color: n }) => /* @__PURE__ */ j("div", {
|
|
250
252
|
className: "flex items-center justify-between",
|
|
@@ -254,7 +256,7 @@ function I() {
|
|
|
254
256
|
className: "text-sm capitalize",
|
|
255
257
|
children: L(`movethewheels.dashboard.orderStatus.status.${e}`, e.replace("_", " "))
|
|
256
258
|
})]
|
|
257
|
-
}), /* @__PURE__ */ A(
|
|
259
|
+
}), /* @__PURE__ */ A(c, {
|
|
258
260
|
variant: "secondary",
|
|
259
261
|
className: "tabular-nums",
|
|
260
262
|
children: t
|
|
@@ -262,10 +264,10 @@ function I() {
|
|
|
262
264
|
}, e))
|
|
263
265
|
})]
|
|
264
266
|
}),
|
|
265
|
-
/* @__PURE__ */ j(
|
|
267
|
+
/* @__PURE__ */ j(r, { children: [/* @__PURE__ */ A(o, { children: /* @__PURE__ */ A(a, {
|
|
266
268
|
className: "text-base",
|
|
267
269
|
children: L("movethewheels.dashboard.fleetStatus.title", "Fleet Status")
|
|
268
|
-
}) }), /* @__PURE__ */ j(
|
|
270
|
+
}) }), /* @__PURE__ */ j(i, {
|
|
269
271
|
className: "space-y-4",
|
|
270
272
|
children: [/* @__PURE__ */ j("div", {
|
|
271
273
|
className: "space-y-2",
|
|
@@ -280,21 +282,21 @@ function I() {
|
|
|
280
282
|
className: "text-text-secondary",
|
|
281
283
|
children: L("movethewheels.dashboard.fleetStatus.available", "Available")
|
|
282
284
|
}), /* @__PURE__ */ A("p", {
|
|
283
|
-
className: "text-lg font-semibold text-
|
|
285
|
+
className: "text-lg font-semibold text-status-success-text",
|
|
284
286
|
children: U.vehiclesByStatus.available
|
|
285
287
|
})] }),
|
|
286
288
|
/* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
287
289
|
className: "text-text-secondary",
|
|
288
290
|
children: L("movethewheels.dashboard.fleetStatus.inUse", "In Use")
|
|
289
291
|
}), /* @__PURE__ */ A("p", {
|
|
290
|
-
className: "text-lg font-semibold text-
|
|
292
|
+
className: "text-lg font-semibold text-status-info-text",
|
|
291
293
|
children: U.vehiclesByStatus.assigned
|
|
292
294
|
})] }),
|
|
293
295
|
/* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
294
296
|
className: "text-text-secondary",
|
|
295
297
|
children: L("movethewheels.dashboard.fleetStatus.maintenance", "Maintenance")
|
|
296
298
|
}), /* @__PURE__ */ A("p", {
|
|
297
|
-
className: "text-lg font-semibold text-
|
|
299
|
+
className: "text-lg font-semibold text-status-warning-text",
|
|
298
300
|
children: U.vehiclesByStatus.maintenance
|
|
299
301
|
})] }),
|
|
300
302
|
/* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
@@ -307,20 +309,20 @@ function I() {
|
|
|
307
309
|
]
|
|
308
310
|
})]
|
|
309
311
|
})] }),
|
|
310
|
-
/* @__PURE__ */ j(
|
|
312
|
+
/* @__PURE__ */ j(r, { children: [/* @__PURE__ */ A(o, { children: /* @__PURE__ */ j(a, {
|
|
311
313
|
className: "text-base flex items-center gap-2",
|
|
312
|
-
children: [/* @__PURE__ */ A(
|
|
314
|
+
children: [/* @__PURE__ */ A(_, {
|
|
313
315
|
size: 16,
|
|
314
|
-
className: "text-
|
|
316
|
+
className: "text-status-warning-text"
|
|
315
317
|
}), L("movethewheels.dashboard.alerts.title", "Alerts")]
|
|
316
|
-
}) }), /* @__PURE__ */ A(
|
|
318
|
+
}) }), /* @__PURE__ */ A(i, { children: /* @__PURE__ */ j("div", {
|
|
317
319
|
className: "space-y-3",
|
|
318
320
|
children: [
|
|
319
321
|
H.byStatus.pending > 5 && /* @__PURE__ */ j("div", {
|
|
320
|
-
className: "flex items-start gap-3 p-2 rounded bg-
|
|
321
|
-
children: [/* @__PURE__ */ A(
|
|
322
|
+
className: "flex items-start gap-3 p-2 rounded bg-status-warning-bg-subtle",
|
|
323
|
+
children: [/* @__PURE__ */ A(f, {
|
|
322
324
|
size: 16,
|
|
323
|
-
className: "text-
|
|
325
|
+
className: "text-status-warning-text mt-0.5"
|
|
324
326
|
}), /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
325
327
|
className: "text-sm font-medium",
|
|
326
328
|
children: L("movethewheels.dashboard.alerts.pendingOrders.title", "Pending Orders")
|
|
@@ -334,10 +336,10 @@ function I() {
|
|
|
334
336
|
})] })]
|
|
335
337
|
}),
|
|
336
338
|
U.vehiclesByStatus.maintenance > 0 && /* @__PURE__ */ j("div", {
|
|
337
|
-
className: "flex items-start gap-3 p-2 rounded bg-
|
|
338
|
-
children: [/* @__PURE__ */ A(
|
|
339
|
+
className: "flex items-start gap-3 p-2 rounded bg-status-warning-bg-subtle",
|
|
340
|
+
children: [/* @__PURE__ */ A(v, {
|
|
339
341
|
size: 16,
|
|
340
|
-
className: "text-
|
|
342
|
+
className: "text-status-warning-text mt-0.5"
|
|
341
343
|
}), /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
342
344
|
className: "text-sm font-medium",
|
|
343
345
|
children: L("movethewheels.dashboard.alerts.maintenanceVehicles.title", "Vehicles in Maintenance")
|
|
@@ -351,10 +353,10 @@ function I() {
|
|
|
351
353
|
})] })]
|
|
352
354
|
}),
|
|
353
355
|
U.driversByStatus.offline > 0 && /* @__PURE__ */ j("div", {
|
|
354
|
-
className: "flex items-start gap-3 p-2 rounded bg-
|
|
355
|
-
children: [/* @__PURE__ */ A(
|
|
356
|
+
className: "flex items-start gap-3 p-2 rounded bg-bg-sunken",
|
|
357
|
+
children: [/* @__PURE__ */ A(y, {
|
|
356
358
|
size: 16,
|
|
357
|
-
className: "text-
|
|
359
|
+
className: "text-text-secondary mt-0.5"
|
|
358
360
|
}), /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
359
361
|
className: "text-sm font-medium",
|
|
360
362
|
children: L("movethewheels.dashboard.alerts.offlineDrivers.title", "Offline Drivers")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as e, B as t, F as n, G as r, H as i, I as a, K as o, L as s, P as c, R as l, U as u, W as d,
|
|
2
|
-
import { t as g } from "./chevron-right-
|
|
3
|
-
import { t as ee } from "./search-
|
|
1
|
+
import { A as e, B as t, F as n, G as r, H as i, I as a, K as o, L as s, P as c, R as l, U as u, W as d, lt as f, q as p, rt as m, u as h } from "./PageLayout-D4LDHJJq.js";
|
|
2
|
+
import { t as g } from "./chevron-right-EMIIyyJ1.js";
|
|
3
|
+
import { t as ee } from "./search-CDGefqb3.js";
|
|
4
4
|
import { useMemo as _, useState as v } from "react";
|
|
5
5
|
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
6
6
|
import { IllustratedEmptyState as x } from "@burdenoff/fe-libs/ui";
|