@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,49 +1,47 @@
|
|
|
1
|
-
import { M as e,
|
|
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 {
|
|
11
|
-
import {
|
|
12
|
-
import { r as
|
|
13
|
-
import { n as x, r as S } from "./formatters-_vJlC-47.js";
|
|
14
|
-
import { t as C } from "./navigation-BgnOfsVd.js";
|
|
1
|
+
import { M as e, ct as t, d as n, f as r, g as i, h as a, i as o, l as s, n as c, ot as l, r as u, u as d } from "./PageLayout-D4LDHJJq.js";
|
|
2
|
+
import { t as f } from "./arrow-left-n48Y-Wis.js";
|
|
3
|
+
import { t as p } from "./clock-DJZtdl8u.js";
|
|
4
|
+
import { t as m } from "./dollar-sign-CgKQRz_e.js";
|
|
5
|
+
import { t as h } from "./file-text-DWWY6_f5.js";
|
|
6
|
+
import { t as g } from "./map-pin-BGiCvyCs.js";
|
|
7
|
+
import { t as _ } from "./square-pen-CopE9GmB.js";
|
|
8
|
+
import { t as v } from "./star-nHlLjDKR.js";
|
|
9
|
+
import { t as y } from "./users-BAM4gHTn.js";
|
|
10
|
+
import { t as b } from "./useFleet-DiAC-IiH.js";
|
|
11
|
+
import { r as x } from "./StatusBadge-NpTeHVlw.js";
|
|
12
|
+
import { n as S, r as C } from "./formatters-DhKZ-eA1.js";
|
|
15
13
|
import { useParams as w } from "react-router-dom";
|
|
16
14
|
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
17
15
|
import { EmphasisPanel as D, NextSteps as O, PagePurpose as k } from "@burdenoff/fe-libs/ui";
|
|
18
16
|
//#region src/movethewheels/pages/DriverDetailsPage.tsx
|
|
19
17
|
function A() {
|
|
20
|
-
let { driverId: A } = w(), { basePath: j, navigate: M } =
|
|
21
|
-
return P ? /* @__PURE__ */ T(
|
|
18
|
+
let { driverId: A } = w(), { basePath: j, navigate: M } = l(), { driver: N, isLoading: P, error: F, refetch: I } = b(A), L = () => M?.(t(j, "fleet/drivers")), R = (e) => M?.(t(j, e));
|
|
19
|
+
return P ? /* @__PURE__ */ T(u, { message: "Loading driver details..." }) : F || !N ? /* @__PURE__ */ T(c, {
|
|
22
20
|
title: "Driver not found",
|
|
23
21
|
onRetry: I
|
|
24
|
-
}) : /* @__PURE__ */ E(
|
|
22
|
+
}) : /* @__PURE__ */ E(o, {
|
|
25
23
|
title: N.fullName,
|
|
26
24
|
subtitle: `Employee ID: ${N.employeeId}`,
|
|
27
|
-
icon: /* @__PURE__ */ T(
|
|
25
|
+
icon: /* @__PURE__ */ T(y, { size: 24 }),
|
|
28
26
|
headerActions: /* @__PURE__ */ E("div", {
|
|
29
27
|
className: "flex gap-2",
|
|
30
|
-
children: [/* @__PURE__ */ E(
|
|
28
|
+
children: [/* @__PURE__ */ E(d, {
|
|
31
29
|
variant: "outline",
|
|
32
30
|
onClick: L,
|
|
33
|
-
children: [/* @__PURE__ */ T(
|
|
34
|
-
}), /* @__PURE__ */ E(
|
|
31
|
+
children: [/* @__PURE__ */ T(f, { size: 16 }), " Back"]
|
|
32
|
+
}), /* @__PURE__ */ E(d, { children: [/* @__PURE__ */ T(_, { size: 16 }), " Edit"] })]
|
|
35
33
|
}),
|
|
36
34
|
headerContent: /* @__PURE__ */ E("div", {
|
|
37
35
|
className: "flex items-center gap-4",
|
|
38
|
-
children: [/* @__PURE__ */ T(
|
|
36
|
+
children: [/* @__PURE__ */ T(x, {
|
|
39
37
|
status: N.status,
|
|
40
38
|
type: "driver"
|
|
41
39
|
}), /* @__PURE__ */ E("div", {
|
|
42
40
|
className: "flex items-center gap-1",
|
|
43
41
|
children: [
|
|
44
|
-
/* @__PURE__ */ T(
|
|
42
|
+
/* @__PURE__ */ T(v, {
|
|
45
43
|
size: 16,
|
|
46
|
-
className: "text-
|
|
44
|
+
className: "text-status-warning-text fill-current"
|
|
47
45
|
}),
|
|
48
46
|
/* @__PURE__ */ T("span", {
|
|
49
47
|
className: "font-medium",
|
|
@@ -62,7 +60,7 @@ function A() {
|
|
|
62
60
|
}),
|
|
63
61
|
children: [
|
|
64
62
|
/* @__PURE__ */ T(k, {
|
|
65
|
-
icon: /* @__PURE__ */ T(
|
|
63
|
+
icon: /* @__PURE__ */ T(y, { size: 18 }),
|
|
66
64
|
children: "A driver's full profile — performance ratings, working hours, documents, earnings and live location. Use it to confirm someone is road-ready and compliant before assigning them an order or route."
|
|
67
65
|
}),
|
|
68
66
|
/* @__PURE__ */ T(O, {
|
|
@@ -72,21 +70,21 @@ function A() {
|
|
|
72
70
|
id: "assign",
|
|
73
71
|
label: "Assign to an order",
|
|
74
72
|
description: "Hand a pending delivery to this driver.",
|
|
75
|
-
icon: /* @__PURE__ */ T(
|
|
73
|
+
icon: /* @__PURE__ */ T(g, { size: 16 }),
|
|
76
74
|
onClick: () => R("orders")
|
|
77
75
|
},
|
|
78
76
|
{
|
|
79
77
|
id: "routes",
|
|
80
78
|
label: "Plan their route",
|
|
81
79
|
description: "Batch nearby drop-offs into an optimized itinerary.",
|
|
82
|
-
icon: /* @__PURE__ */ T(
|
|
80
|
+
icon: /* @__PURE__ */ T(p, { size: 16 }),
|
|
83
81
|
onClick: () => R("routes")
|
|
84
82
|
},
|
|
85
83
|
{
|
|
86
84
|
id: "edit",
|
|
87
85
|
label: "Update driver record",
|
|
88
86
|
description: "Refresh documents, shift or compliance details.",
|
|
89
|
-
icon: /* @__PURE__ */ T(
|
|
87
|
+
icon: /* @__PURE__ */ T(_, { size: 16 }),
|
|
90
88
|
onClick: () => {}
|
|
91
89
|
}
|
|
92
90
|
]
|
|
@@ -98,7 +96,7 @@ function A() {
|
|
|
98
96
|
children: [
|
|
99
97
|
/* @__PURE__ */ E(D, { children: [/* @__PURE__ */ E("h2", {
|
|
100
98
|
className: "flex items-center gap-2 text-base font-semibold text-text-primary mb-4",
|
|
101
|
-
children: [/* @__PURE__ */ T(
|
|
99
|
+
children: [/* @__PURE__ */ T(v, { size: 18 }), " Ratings"]
|
|
102
100
|
}), /* @__PURE__ */ T("div", {
|
|
103
101
|
className: "grid grid-cols-2 md:grid-cols-3 gap-4",
|
|
104
102
|
children: [
|
|
@@ -136,10 +134,10 @@ function A() {
|
|
|
136
134
|
})]
|
|
137
135
|
})] }, t.label))
|
|
138
136
|
})] }),
|
|
139
|
-
/* @__PURE__ */ E(
|
|
137
|
+
/* @__PURE__ */ E(n, { children: [/* @__PURE__ */ T(a, { children: /* @__PURE__ */ E(i, {
|
|
140
138
|
className: "flex items-center gap-2",
|
|
141
|
-
children: [/* @__PURE__ */ T(
|
|
142
|
-
}) }), /* @__PURE__ */ T(
|
|
139
|
+
children: [/* @__PURE__ */ T(p, { size: 18 }), " Working Hours"]
|
|
140
|
+
}) }), /* @__PURE__ */ T(r, { children: /* @__PURE__ */ E("div", {
|
|
143
141
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
144
142
|
children: [
|
|
145
143
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
@@ -187,10 +185,10 @@ function A() {
|
|
|
187
185
|
})] })
|
|
188
186
|
]
|
|
189
187
|
}) })] }),
|
|
190
|
-
/* @__PURE__ */ E(
|
|
188
|
+
/* @__PURE__ */ E(n, { children: [/* @__PURE__ */ T(a, { children: /* @__PURE__ */ E(i, {
|
|
191
189
|
className: "flex items-center gap-2",
|
|
192
|
-
children: [/* @__PURE__ */ T(
|
|
193
|
-
}) }), /* @__PURE__ */ T(
|
|
190
|
+
children: [/* @__PURE__ */ T(h, { size: 18 }), " Documents"]
|
|
191
|
+
}) }), /* @__PURE__ */ T(r, { children: /* @__PURE__ */ E("div", {
|
|
194
192
|
className: "space-y-3",
|
|
195
193
|
children: [/* @__PURE__ */ E("div", {
|
|
196
194
|
className: "flex items-center justify-between p-3 border rounded-lg",
|
|
@@ -209,9 +207,9 @@ function A() {
|
|
|
209
207
|
}),
|
|
210
208
|
/* @__PURE__ */ E("p", {
|
|
211
209
|
className: "text-sm text-text-secondary",
|
|
212
|
-
children: ["Expires: ",
|
|
210
|
+
children: ["Expires: ", C(N.licenseExpiry)]
|
|
213
211
|
})
|
|
214
|
-
] }), /* @__PURE__ */ T(
|
|
212
|
+
] }), /* @__PURE__ */ T(s, {
|
|
215
213
|
variant: "default",
|
|
216
214
|
children: "Valid"
|
|
217
215
|
})]
|
|
@@ -222,8 +220,8 @@ function A() {
|
|
|
222
220
|
children: e.type.replace("_", " ")
|
|
223
221
|
}), /* @__PURE__ */ E("p", {
|
|
224
222
|
className: "text-sm text-text-secondary",
|
|
225
|
-
children: ["Expires: ",
|
|
226
|
-
})] }), /* @__PURE__ */ T(
|
|
223
|
+
children: ["Expires: ", C(e.expiryDate)]
|
|
224
|
+
})] }), /* @__PURE__ */ T(s, {
|
|
227
225
|
variant: e.verified ? "default" : "secondary",
|
|
228
226
|
children: e.verified ? "Verified" : "Pending"
|
|
229
227
|
})]
|
|
@@ -233,7 +231,7 @@ function A() {
|
|
|
233
231
|
}), /* @__PURE__ */ E("div", {
|
|
234
232
|
className: "space-y-6",
|
|
235
233
|
children: [
|
|
236
|
-
/* @__PURE__ */ E(
|
|
234
|
+
/* @__PURE__ */ E(n, { children: [/* @__PURE__ */ T(a, { children: /* @__PURE__ */ T(i, { children: "Statistics" }) }), /* @__PURE__ */ E(r, {
|
|
237
235
|
className: "space-y-4",
|
|
238
236
|
children: [
|
|
239
237
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
@@ -255,14 +253,14 @@ function A() {
|
|
|
255
253
|
children: "Join Date"
|
|
256
254
|
}), /* @__PURE__ */ T("p", {
|
|
257
255
|
className: "font-medium",
|
|
258
|
-
children:
|
|
256
|
+
children: C(N.joinDate)
|
|
259
257
|
})] })
|
|
260
258
|
]
|
|
261
259
|
})] }),
|
|
262
|
-
/* @__PURE__ */ E(
|
|
260
|
+
/* @__PURE__ */ E(n, { children: [/* @__PURE__ */ T(a, { children: /* @__PURE__ */ E(i, {
|
|
263
261
|
className: "flex items-center gap-2",
|
|
264
|
-
children: [/* @__PURE__ */ T(
|
|
265
|
-
}) }), /* @__PURE__ */ E(
|
|
262
|
+
children: [/* @__PURE__ */ T(m, { size: 18 }), " Earnings"]
|
|
263
|
+
}) }), /* @__PURE__ */ E(r, {
|
|
266
264
|
className: "space-y-3",
|
|
267
265
|
children: [
|
|
268
266
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
@@ -270,7 +268,7 @@ function A() {
|
|
|
270
268
|
children: "Total Earnings"
|
|
271
269
|
}), /* @__PURE__ */ T("p", {
|
|
272
270
|
className: "text-2xl font-bold",
|
|
273
|
-
children:
|
|
271
|
+
children: S(N.earnings.totalEarnings)
|
|
274
272
|
})] }),
|
|
275
273
|
/* @__PURE__ */ E("div", {
|
|
276
274
|
className: "grid grid-cols-2 gap-3",
|
|
@@ -279,13 +277,13 @@ function A() {
|
|
|
279
277
|
children: "This Week"
|
|
280
278
|
}), /* @__PURE__ */ T("p", {
|
|
281
279
|
className: "font-medium",
|
|
282
|
-
children:
|
|
280
|
+
children: S(N.earnings.weeklyEarnings)
|
|
283
281
|
})] }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
284
282
|
className: "text-sm text-text-secondary",
|
|
285
283
|
children: "This Month"
|
|
286
284
|
}), /* @__PURE__ */ T("p", {
|
|
287
285
|
className: "font-medium",
|
|
288
|
-
children:
|
|
286
|
+
children: S(N.earnings.monthlyEarnings)
|
|
289
287
|
})] })]
|
|
290
288
|
}),
|
|
291
289
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
@@ -293,28 +291,28 @@ function A() {
|
|
|
293
291
|
children: "Base Salary"
|
|
294
292
|
}), /* @__PURE__ */ E("p", {
|
|
295
293
|
className: "font-medium",
|
|
296
|
-
children: [
|
|
294
|
+
children: [S(N.baseSalary), "/year"]
|
|
297
295
|
})] })
|
|
298
296
|
]
|
|
299
297
|
})] }),
|
|
300
|
-
N.currentLocation && /* @__PURE__ */ E(
|
|
298
|
+
N.currentLocation && /* @__PURE__ */ E(n, { children: [/* @__PURE__ */ T(a, { children: /* @__PURE__ */ E(i, {
|
|
301
299
|
className: "flex items-center gap-2",
|
|
302
|
-
children: [/* @__PURE__ */ T(
|
|
303
|
-
}) }), /* @__PURE__ */ E(
|
|
300
|
+
children: [/* @__PURE__ */ T(g, { size: 18 }), " Current Location"]
|
|
301
|
+
}) }), /* @__PURE__ */ E(r, { children: [/* @__PURE__ */ T("p", {
|
|
304
302
|
className: "text-sm",
|
|
305
303
|
children: N.currentLocation.address || "Location updating..."
|
|
306
304
|
}), /* @__PURE__ */ E("p", {
|
|
307
305
|
className: "text-xs text-text-secondary mt-1",
|
|
308
|
-
children: ["Updated ",
|
|
306
|
+
children: ["Updated ", C(N.currentLocation.timestamp || /* @__PURE__ */ new Date(), "relative")]
|
|
309
307
|
})] })] }),
|
|
310
|
-
/* @__PURE__ */ E(
|
|
308
|
+
/* @__PURE__ */ E(n, { children: [/* @__PURE__ */ T(a, { children: /* @__PURE__ */ T(i, { children: "Compliance Status" }) }), /* @__PURE__ */ T(r, {
|
|
311
309
|
className: "space-y-2",
|
|
312
310
|
children: Object.entries(N.compliance).filter(([e]) => e !== "lastUpdate").map(([e, t]) => /* @__PURE__ */ E("div", {
|
|
313
311
|
className: "flex items-center justify-between",
|
|
314
312
|
children: [/* @__PURE__ */ T("span", {
|
|
315
313
|
className: "text-sm capitalize",
|
|
316
314
|
children: e.replace(/([A-Z])/g, " $1")
|
|
317
|
-
}), /* @__PURE__ */ T(
|
|
315
|
+
}), /* @__PURE__ */ T(s, {
|
|
318
316
|
variant: t ? "default" : "destructive",
|
|
319
317
|
children: t ? "Compliant" : "Non-compliant"
|
|
320
318
|
})]
|
|
@@ -1,43 +1,41 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
9
|
-
import {
|
|
10
|
-
import { r as
|
|
11
|
-
import { r as f } from "./formatters-_vJlC-47.js";
|
|
12
|
-
import { t as p } from "./navigation-BgnOfsVd.js";
|
|
1
|
+
import { ct as e, i as t, o as n, ot as r, s as i } from "./PageLayout-D4LDHJJq.js";
|
|
2
|
+
import { t as a } from "./DataTable-DmciIKKM.js";
|
|
3
|
+
import { t as o } from "./download-DRXxoiQR.js";
|
|
4
|
+
import { t as s } from "./plus-Z76q-FZm.js";
|
|
5
|
+
import { t as c } from "./refresh-cw-DKt6f5T6.js";
|
|
6
|
+
import { t as l } from "./star-nHlLjDKR.js";
|
|
7
|
+
import { t as u } from "./users-BAM4gHTn.js";
|
|
8
|
+
import { n as d } from "./useFleet-DiAC-IiH.js";
|
|
9
|
+
import { r as f } from "./StatusBadge-NpTeHVlw.js";
|
|
10
|
+
import { r as p } from "./formatters-DhKZ-eA1.js";
|
|
13
11
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
14
12
|
import { CTAOverflowMenu as g, EmphasisPanel as _, PagePurpose as v } from "@burdenoff/fe-libs/ui";
|
|
15
13
|
//#region src/movethewheels/pages/DriversPage.tsx
|
|
16
14
|
function y() {
|
|
17
|
-
let { basePath: y, navigate: b } =
|
|
18
|
-
return /* @__PURE__ */ h(
|
|
15
|
+
let { basePath: y, navigate: b } = r(), { drivers: x, totalDrivers: S, isLoading: C, refetch: w } = d(), T = (t) => b?.(e(y, t));
|
|
16
|
+
return /* @__PURE__ */ h(t, {
|
|
19
17
|
title: "Drivers",
|
|
20
18
|
subtitle: `${S} drivers`,
|
|
21
|
-
icon: /* @__PURE__ */ m(
|
|
19
|
+
icon: /* @__PURE__ */ m(u, { size: 24 }),
|
|
22
20
|
headerActions: /* @__PURE__ */ m(g, {
|
|
23
21
|
primary: {
|
|
24
22
|
label: "Add Driver",
|
|
25
|
-
icon: /* @__PURE__ */ m(
|
|
23
|
+
icon: /* @__PURE__ */ m(s, { size: 16 }),
|
|
26
24
|
onSelect: () => {}
|
|
27
25
|
},
|
|
28
26
|
actions: [{
|
|
29
27
|
label: "Refresh",
|
|
30
|
-
icon: /* @__PURE__ */ m(
|
|
28
|
+
icon: /* @__PURE__ */ m(c, { size: 16 }),
|
|
31
29
|
onSelect: () => w()
|
|
32
30
|
}, {
|
|
33
31
|
label: "Export",
|
|
34
|
-
icon: /* @__PURE__ */ m(
|
|
32
|
+
icon: /* @__PURE__ */ m(o, { size: 16 }),
|
|
35
33
|
onSelect: () => {}
|
|
36
34
|
}]
|
|
37
35
|
}),
|
|
38
36
|
children: [
|
|
39
37
|
/* @__PURE__ */ m(v, {
|
|
40
|
-
icon: /* @__PURE__ */ m(
|
|
38
|
+
icon: /* @__PURE__ */ m(u, { size: 18 }),
|
|
41
39
|
children: "Your delivery workforce. Track each driver's availability, performance rating, completed deliveries and license status here — open a driver to review their history before assigning them to an order or route."
|
|
42
40
|
}),
|
|
43
41
|
/* @__PURE__ */ h(_, { children: [/* @__PURE__ */ m("p", {
|
|
@@ -69,14 +67,14 @@ function y() {
|
|
|
69
67
|
})] })
|
|
70
68
|
]
|
|
71
69
|
})] }),
|
|
72
|
-
/* @__PURE__ */ m(
|
|
70
|
+
/* @__PURE__ */ m(a, {
|
|
73
71
|
columns: [
|
|
74
72
|
{
|
|
75
73
|
id: "driver",
|
|
76
74
|
header: "Driver",
|
|
77
75
|
cell: (e) => /* @__PURE__ */ h("div", {
|
|
78
76
|
className: "flex items-center gap-3",
|
|
79
|
-
children: [/* @__PURE__ */ m(
|
|
77
|
+
children: [/* @__PURE__ */ m(n, { children: /* @__PURE__ */ m(i, { children: e.fullName.split(" ").map((e) => e[0]).join("") }) }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("p", {
|
|
80
78
|
className: "font-medium",
|
|
81
79
|
children: e.fullName
|
|
82
80
|
}), /* @__PURE__ */ m("p", {
|
|
@@ -90,7 +88,7 @@ function y() {
|
|
|
90
88
|
header: "Status",
|
|
91
89
|
accessorKey: "status",
|
|
92
90
|
sortable: !0,
|
|
93
|
-
cell: (e) => /* @__PURE__ */ m(
|
|
91
|
+
cell: (e) => /* @__PURE__ */ m(f, {
|
|
94
92
|
status: e.status,
|
|
95
93
|
type: "driver"
|
|
96
94
|
})
|
|
@@ -101,9 +99,9 @@ function y() {
|
|
|
101
99
|
cell: (e) => /* @__PURE__ */ h("div", {
|
|
102
100
|
className: "flex items-center gap-1",
|
|
103
101
|
children: [
|
|
104
|
-
/* @__PURE__ */ m(
|
|
102
|
+
/* @__PURE__ */ m(l, {
|
|
105
103
|
size: 14,
|
|
106
|
-
className: "text-
|
|
104
|
+
className: "text-status-warning-text fill-current"
|
|
107
105
|
}),
|
|
108
106
|
/* @__PURE__ */ m("span", {
|
|
109
107
|
className: "font-medium",
|
|
@@ -137,7 +135,7 @@ function y() {
|
|
|
137
135
|
className: "text-sm",
|
|
138
136
|
children: [/* @__PURE__ */ m("p", { children: e.licenseType }), /* @__PURE__ */ h("p", {
|
|
139
137
|
className: "text-text-secondary",
|
|
140
|
-
children: ["Exp: ",
|
|
138
|
+
children: ["Exp: ", p(e.licenseExpiry, "short")]
|
|
141
139
|
})]
|
|
142
140
|
})
|
|
143
141
|
},
|
|
@@ -146,7 +144,7 @@ function y() {
|
|
|
146
144
|
header: "Join Date",
|
|
147
145
|
accessorKey: "joinDate",
|
|
148
146
|
sortable: !0,
|
|
149
|
-
cell: (e) =>
|
|
147
|
+
cell: (e) => p(e.joinDate, "short")
|
|
150
148
|
}
|
|
151
149
|
],
|
|
152
150
|
data: x,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { d as e, f as t, g as n, h as r, i,
|
|
2
|
-
import { t as s } from "./dollar-sign-
|
|
3
|
-
import { t as c } from "./download-
|
|
4
|
-
import { t as l } from "./file-text-
|
|
5
|
-
import { t as u } from "./trending-up-
|
|
6
|
-
import { n as d } from "./useOrders-
|
|
7
|
-
import { t as f } from "./useAnalytics-
|
|
8
|
-
import { r as p, t as m } from "./MetricCard-
|
|
9
|
-
import { n as h } from "./formatters-
|
|
1
|
+
import { d as e, f as t, g as n, h as r, i, lt as a, u as o } from "./PageLayout-D4LDHJJq.js";
|
|
2
|
+
import { t as s } from "./dollar-sign-CgKQRz_e.js";
|
|
3
|
+
import { t as c } from "./download-DRXxoiQR.js";
|
|
4
|
+
import { t as l } from "./file-text-DWWY6_f5.js";
|
|
5
|
+
import { t as u } from "./trending-up-B7W-GL6P.js";
|
|
6
|
+
import { n as d } from "./useOrders-D3UZVy8Y.js";
|
|
7
|
+
import { t as f } from "./useAnalytics-CgdzUfY_.js";
|
|
8
|
+
import { r as p, t as m } from "./MetricCard-7aYgzZHK.js";
|
|
9
|
+
import { n as h } from "./formatters-DhKZ-eA1.js";
|
|
10
10
|
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
11
11
|
import { EmphasisPanel as v, IllustratedEmptyState as y, PagePurpose as b } from "@burdenoff/fe-libs/ui";
|
|
12
12
|
//#region node_modules/lucide-react/dist/esm/icons/credit-card.js
|