@burdenoff/microfe-movethewheels 2026.1031.3 → 2026.1031.4

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.
Files changed (58) hide show
  1. package/dist/MoveTheWheelsRoot.js +136 -127
  2. package/dist/MoveTheWheelsRoutes.js +140 -135
  3. package/dist/components/DocumentsCard.js +11 -11
  4. package/dist/components/ProofOfDeliveryCard.js +13 -13
  5. package/dist/components/ShipmentRiskDialog.js +24 -24
  6. package/dist/components/ShippingQuoteResults.js +46 -46
  7. package/dist/components/TrackingAlertList.js +17 -17
  8. package/dist/generated/tracking-quality-operations.d.ts +56 -0
  9. package/dist/hooks/useOrderDispatch.js +17 -17
  10. package/dist/movethewheels/pages/SettingsPage.d.ts +1 -0
  11. package/dist/movethewheels/providers/ModuleSettingsProvider.d.ts +17 -0
  12. package/dist/movethewheels/utils/formatters.d.ts +23 -3
  13. package/dist/movethewheels/utils/moduleSettings.d.ts +52 -0
  14. package/dist/node_modules/lucide-react/dist/esm/icons/bell.js +11 -0
  15. package/dist/node_modules/lucide-react/dist/esm/icons/key-round.js +14 -0
  16. package/dist/node_modules/lucide-react/dist/esm/icons/plug.js +22 -0
  17. package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js +11 -0
  18. package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +13 -0
  19. package/dist/pages/AnalyticsPage.js +27 -27
  20. package/dist/pages/CreateOrderPage.js +340 -317
  21. package/dist/pages/CustomerDetailsPage.js +246 -246
  22. package/dist/pages/CustomersPage.js +19 -19
  23. package/dist/pages/DashboardPage.js +24 -24
  24. package/dist/pages/DeliveryCapturePage.js +74 -74
  25. package/dist/pages/DriverDetailsPage.js +337 -337
  26. package/dist/pages/DriversPage.js +26 -26
  27. package/dist/pages/FinancePage.js +26 -26
  28. package/dist/pages/InventoryPage.js +28 -28
  29. package/dist/pages/LiveTrackingPage.js +108 -108
  30. package/dist/pages/MarketplacePage.js +44 -44
  31. package/dist/pages/OrderDetailsPage.js +306 -306
  32. package/dist/pages/OrdersListPage.js +27 -27
  33. package/dist/pages/ProductDetailsPage.js +89 -89
  34. package/dist/pages/ProductsPage.js +73 -73
  35. package/dist/pages/RouteDetailsPage.js +282 -285
  36. package/dist/pages/RoutesPage.js +78 -78
  37. package/dist/pages/SettingsPage.js +459 -0
  38. package/dist/pages/TrackingPage.js +41 -41
  39. package/dist/pages/VehicleDetailsPage.js +207 -207
  40. package/dist/pages/VehiclesPage.js +17 -16
  41. package/dist/pages/WarehouseDetailsPage.js +132 -132
  42. package/dist/providers/ModuleSettingsProvider.js +74 -0
  43. package/dist/utils/formatters.js +53 -26
  44. package/dist/utils/moduleSettings.js +132 -0
  45. package/package.json +3 -2
  46. package/src/generated/tracking-quality-operations.ts +62 -0
  47. package/src/movethewheels/MoveTheWheelsRoot.tsx +14 -3
  48. package/src/movethewheels/MoveTheWheelsRoutes.tsx +9 -0
  49. package/src/movethewheels/pages/CreateOrderPage.tsx +38 -6
  50. package/src/movethewheels/pages/ProductsPage.tsx +2 -2
  51. package/src/movethewheels/pages/RouteDetailsPage.tsx +3 -6
  52. package/src/movethewheels/pages/RoutesPage.tsx +2 -2
  53. package/src/movethewheels/pages/SettingsPage.tsx +516 -0
  54. package/src/movethewheels/pages/VehicleDetailsPage.tsx +4 -2
  55. package/src/movethewheels/pages/VehiclesPage.tsx +2 -1
  56. package/src/movethewheels/providers/ModuleSettingsProvider.tsx +133 -0
  57. package/src/movethewheels/utils/formatters.ts +69 -10
  58. package/src/movethewheels/utils/moduleSettings.ts +224 -0
@@ -10,13 +10,13 @@ import { UserCheck as s } from "../node_modules/lucide-react/dist/esm/icons/user
10
10
  import { UserPlus as c } from "../node_modules/lucide-react/dist/esm/icons/user-plus.js";
11
11
  import { joinPath as l } from "../utils/navigation.js";
12
12
  import { useMoveTheWheels as u } from "../providers/MoveTheWheelsProvider.js";
13
- import { useOrderStats as te, useOrders as d } from "../hooks/useOrders.js";
14
- import { Badge as f, Button as p, Card as ne, CardContent as re, Select as ie, SelectContent as m, SelectItem as h, SelectTrigger as g, SelectValue as ae } from "../components/ui.js";
15
- import { PageLayout as _ } from "../components/PageLayout.js";
16
- import { MetricCard as v, MetricGrid as y } from "../components/MetricCard.js";
17
- import { PriorityBadge as b, StatusBadge as x } from "../components/StatusBadge.js";
18
- import { DataTable as oe } from "../components/DataTable.js";
19
- import { formatCurrency as se, formatDate as S } from "../utils/formatters.js";
13
+ import { formatCurrency as te, formatDate as d } from "../utils/formatters.js";
14
+ import { useOrderStats as f, useOrders as ne } from "../hooks/useOrders.js";
15
+ import { Badge as re, Button as p, Card as ie, CardContent as m, Select as h, SelectContent as g, SelectItem as _, SelectTrigger as v, SelectValue as y } from "../components/ui.js";
16
+ import { PageLayout as b } from "../components/PageLayout.js";
17
+ import { MetricCard as x, MetricGrid as S } from "../components/MetricCard.js";
18
+ import { PriorityBadge as ae, StatusBadge as oe } from "../components/StatusBadge.js";
19
+ import { DataTable as se } from "../components/DataTable.js";
20
20
  import { useDebouncedValue as C } from "../hooks/useDebouncedValue.js";
21
21
  import { useEntityExport as w } from "../hooks/useEntityExport.js";
22
22
  import { ExportStatusBanner as T } from "../components/ExportStatusBanner.js";
@@ -29,7 +29,7 @@ function M() {
29
29
  let { t: M } = k(), N = (e, t) => {
30
30
  let n = M(e);
31
31
  return n === e ? t : n;
32
- }, { basePath: P, navigate: F } = u(), { state: I, isExporting: L, startExport: R, dismiss: z } = w("orders", "order"), [B, V] = E("all"), [H, U] = E(!1), [W, G] = E(0), [K, ce] = E(25), [q, J] = E(""), le = C(q), ue = B !== "all" || H || q.length > 0, { orders: de, totalOrders: fe, hasMore: pe, isLoading: me, error: he, refetch: Y } = d({
32
+ }, { basePath: P, navigate: F } = u(), { state: I, isExporting: L, startExport: R, dismiss: z } = w("orders", "order"), [B, V] = E("all"), [H, U] = E(!1), [W, G] = E(0), [K, ce] = E(25), [q, J] = E(""), le = C(q), ue = B !== "all" || H || q.length > 0, { orders: de, totalOrders: fe, hasMore: pe, isLoading: me, error: he, refetch: Y } = ne({
33
33
  filters: {
34
34
  status: B === "all" ? void 0 : B,
35
35
  unassigned: H || void 0,
@@ -37,7 +37,7 @@ function M() {
37
37
  },
38
38
  limit: K,
39
39
  offset: W * K
40
- }), { stats: X } = te(), Z = X.total, Q = (e) => {
40
+ }), { stats: X } = f(), Z = X.total, Q = (e) => {
41
41
  F && F(l(P, e));
42
42
  }, $ = () => G(0), ge = [
43
43
  {
@@ -72,7 +72,7 @@ function M() {
72
72
  accessorKey: "status",
73
73
  sortable: !0,
74
74
  className: "min-w-[130px] whitespace-nowrap",
75
- cell: (e) => /* @__PURE__ */ D(x, {
75
+ cell: (e) => /* @__PURE__ */ D(oe, {
76
76
  status: e.status,
77
77
  type: "order"
78
78
  })
@@ -83,13 +83,13 @@ function M() {
83
83
  accessorKey: "priority",
84
84
  sortable: !0,
85
85
  className: "min-w-[90px] whitespace-nowrap",
86
- cell: (e) => /* @__PURE__ */ D(b, { priority: e.priority })
86
+ cell: (e) => /* @__PURE__ */ D(ae, { priority: e.priority })
87
87
  },
88
88
  {
89
89
  id: "items",
90
90
  header: N("movethewheels.orders.table.items", "Items"),
91
91
  className: "min-w-[80px] whitespace-nowrap",
92
- cell: (e) => /* @__PURE__ */ O(f, {
92
+ cell: (e) => /* @__PURE__ */ O(re, {
93
93
  variant: "secondary",
94
94
  children: [
95
95
  e.items.length,
@@ -106,7 +106,7 @@ function M() {
106
106
  className: "min-w-[100px] whitespace-nowrap text-right",
107
107
  cell: (e) => /* @__PURE__ */ D("span", {
108
108
  className: "font-medium",
109
- children: se(e.pricing.total)
109
+ children: te(e.pricing.total)
110
110
  })
111
111
  },
112
112
  {
@@ -115,7 +115,7 @@ function M() {
115
115
  accessorKey: "scheduledDelivery",
116
116
  sortable: !0,
117
117
  className: "min-w-[110px] whitespace-nowrap",
118
- cell: (e) => e.scheduledDelivery ? S(e.scheduledDelivery) : "-"
118
+ cell: (e) => e.scheduledDelivery ? d(e.scheduledDelivery) : "-"
119
119
  },
120
120
  {
121
121
  id: "createdAt",
@@ -123,7 +123,7 @@ function M() {
123
123
  accessorKey: "createdAt",
124
124
  sortable: !0,
125
125
  className: "min-w-[100px] whitespace-nowrap",
126
- cell: (e) => S(e.createdAt, "relative")
126
+ cell: (e) => d(e.createdAt, "relative")
127
127
  },
128
128
  {
129
129
  id: "driver",
@@ -194,7 +194,7 @@ function M() {
194
194
  label: N("movethewheels.orders.status.failed", "Failed")
195
195
  }
196
196
  ];
197
- return /* @__PURE__ */ O(_, {
197
+ return /* @__PURE__ */ O(b, {
198
198
  title: N("movethewheels.orders.title", "Orders"),
199
199
  subtitle: `${Z} ${N("movethewheels.orders.subtitle", "total orders")}`,
200
200
  icon: /* @__PURE__ */ D(r, { size: 24 }),
@@ -226,30 +226,30 @@ function M() {
226
226
  /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("p", {
227
227
  className: "mb-3 text-sm font-medium text-text-secondary",
228
228
  children: N("movethewheels.orders.glance.title", "Pipeline at a glance")
229
- }), /* @__PURE__ */ O(y, {
229
+ }), /* @__PURE__ */ O(S, {
230
230
  columns: 4,
231
231
  children: [
232
- /* @__PURE__ */ D(v, {
232
+ /* @__PURE__ */ D(x, {
233
233
  label: N("movethewheels.orders.glance.total", "Total orders"),
234
234
  value: Z,
235
235
  icon: /* @__PURE__ */ D(r, { size: 20 }),
236
236
  accent: "brand"
237
237
  }),
238
- /* @__PURE__ */ D(v, {
238
+ /* @__PURE__ */ D(x, {
239
239
  label: N("movethewheels.orders.glance.pending", "Pending"),
240
240
  value: X.byStatus.pending,
241
241
  icon: /* @__PURE__ */ D(t, { size: 20 }),
242
242
  accent: "warning",
243
243
  subtitle: N("movethewheels.orders.glance.pendingSub", "Awaiting fulfilment")
244
244
  }),
245
- /* @__PURE__ */ D(v, {
245
+ /* @__PURE__ */ D(x, {
246
246
  label: N("movethewheels.orders.glance.inTransit", "In transit"),
247
247
  value: X.byStatus.in_transit + X.byStatus.out_for_delivery,
248
248
  icon: /* @__PURE__ */ D(o, { size: 20 }),
249
249
  accent: "blue",
250
250
  subtitle: N("movethewheels.orders.glance.inTransitSub", "On the road now")
251
251
  }),
252
- /* @__PURE__ */ D(v, {
252
+ /* @__PURE__ */ D(x, {
253
253
  label: N("movethewheels.orders.glance.delivered", "Delivered"),
254
254
  value: X.byStatus.delivered,
255
255
  icon: /* @__PURE__ */ D(e, { size: 20 }),
@@ -257,7 +257,7 @@ function M() {
257
257
  })
258
258
  ]
259
259
  })] }),
260
- /* @__PURE__ */ D(ne, { children: /* @__PURE__ */ D(re, {
260
+ /* @__PURE__ */ D(ie, { children: /* @__PURE__ */ D(m, {
261
261
  className: "p-4",
262
262
  children: /* @__PURE__ */ O("div", {
263
263
  className: "flex flex-wrap items-center gap-4",
@@ -272,15 +272,15 @@ function M() {
272
272
  children: N("movethewheels.orders.filters.label", "Filters:")
273
273
  })]
274
274
  }),
275
- /* @__PURE__ */ O(ie, {
275
+ /* @__PURE__ */ O(h, {
276
276
  value: B,
277
277
  onValueChange: (e) => {
278
278
  V(e), $();
279
279
  },
280
- children: [/* @__PURE__ */ D(g, {
280
+ children: [/* @__PURE__ */ D(v, {
281
281
  className: "w-[180px]",
282
- children: /* @__PURE__ */ D(ae, { placeholder: N("movethewheels.orders.filters.status", "Status") })
283
- }), /* @__PURE__ */ D(m, { children: _e.map((e) => /* @__PURE__ */ D(h, {
282
+ children: /* @__PURE__ */ D(y, { placeholder: N("movethewheels.orders.filters.status", "Status") })
283
+ }), /* @__PURE__ */ D(g, { children: _e.map((e) => /* @__PURE__ */ D(_, {
284
284
  value: e.value,
285
285
  children: e.label
286
286
  }, e.value)) })]
@@ -307,7 +307,7 @@ function M() {
307
307
  ]
308
308
  })
309
309
  }) }),
310
- /* @__PURE__ */ D(oe, {
310
+ /* @__PURE__ */ D(se, {
311
311
  columns: ge,
312
312
  data: de,
313
313
  isLoading: me,