@burdenoff/microfe-movethewheels 2026.929.3 → 2026.930.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.
Files changed (72) hide show
  1. package/dist/components/CustomerPicker.js +52 -48
  2. package/dist/components/EntityCombobox.js +25 -23
  3. package/dist/components/OrderItemRow.js +123 -78
  4. package/dist/generated/wspace-types.d.ts +1547 -64
  5. package/dist/hooks/useCustomers.js +55 -26
  6. package/dist/hooks/useFleet.js +236 -157
  7. package/dist/hooks/useInventory.js +214 -153
  8. package/dist/hooks/useMultiModalShipments.js +30 -26
  9. package/dist/hooks/useRoutes.js +64 -24
  10. package/dist/hooks/useTracking.js +14 -16
  11. package/dist/movethewheels/components/CustomerPicker.d.ts +5 -1
  12. package/dist/movethewheels/components/EntityCombobox.d.ts +6 -3
  13. package/dist/movethewheels/components/OrderItemRow.d.ts +7 -1
  14. package/dist/movethewheels/hooks/useCustomers.d.ts +3 -0
  15. package/dist/movethewheels/hooks/useFleet.d.ts +15 -2
  16. package/dist/movethewheels/hooks/useInventory.d.ts +15 -12
  17. package/dist/movethewheels/hooks/useMultiModalShipments.d.ts +1 -0
  18. package/dist/movethewheels/hooks/useRoutes.d.ts +7 -1
  19. package/dist/movethewheels/types/index.d.ts +33 -23
  20. package/dist/movethewheels/utils/formatters.d.ts +1 -1
  21. package/dist/movethewheels/utils/orderValidation.d.ts +11 -0
  22. package/dist/pages/CreateOrderPage.js +349 -297
  23. package/dist/pages/CustomerDetailsPage.js +6 -6
  24. package/dist/pages/CustomersPage.js +2 -2
  25. package/dist/pages/DashboardPage.js +1 -1
  26. package/dist/pages/DriverDetailsPage.js +340 -332
  27. package/dist/pages/DriversPage.js +7 -5
  28. package/dist/pages/FleetPage.js +1 -1
  29. package/dist/pages/InventoryPage.js +11 -12
  30. package/dist/pages/LiveTrackingPage.js +4 -4
  31. package/dist/pages/MultiModalShipmentPage.js +139 -125
  32. package/dist/pages/OrderDetailsPage.js +132 -140
  33. package/dist/pages/ProductDetailsPage.js +408 -249
  34. package/dist/pages/ProductsPage.js +5 -5
  35. package/dist/pages/RouteDetailsPage.js +208 -210
  36. package/dist/pages/RoutesPage.js +2 -2
  37. package/dist/pages/TrackingPage.js +16 -9
  38. package/dist/pages/WarehouseDetailsPage.js +166 -163
  39. package/dist/pages/WarehousesPage.js +29 -21
  40. package/dist/utils/orderValidation.js +18 -0
  41. package/package.json +1 -1
  42. package/src/generated/wspace-types.ts +1762 -64
  43. package/src/movethewheels/components/CustomerPicker.tsx +12 -0
  44. package/src/movethewheels/components/EntityCombobox.tsx +30 -11
  45. package/src/movethewheels/components/OrderItemRow.tsx +44 -0
  46. package/src/movethewheels/hooks/useCustomers.ts +45 -9
  47. package/src/movethewheels/hooks/useFleet.ts +214 -36
  48. package/src/movethewheels/hooks/useInventory.ts +185 -49
  49. package/src/movethewheels/hooks/useMultiModalShipments.ts +9 -7
  50. package/src/movethewheels/hooks/useRoutes.ts +87 -16
  51. package/src/movethewheels/hooks/useTracking.ts +23 -15
  52. package/src/movethewheels/pages/CreateOrderPage.tsx +66 -2
  53. package/src/movethewheels/pages/CustomerDetailsPage.tsx +14 -8
  54. package/src/movethewheels/pages/CustomersPage.tsx +5 -2
  55. package/src/movethewheels/pages/DashboardPage.tsx +3 -1
  56. package/src/movethewheels/pages/DriverDetailsPage.tsx +25 -4
  57. package/src/movethewheels/pages/DriversPage.tsx +8 -2
  58. package/src/movethewheels/pages/FleetPage.tsx +1 -1
  59. package/src/movethewheels/pages/InventoryPage.tsx +20 -16
  60. package/src/movethewheels/pages/LiveTrackingPage.tsx +6 -4
  61. package/src/movethewheels/pages/MultiModalShipmentPage.tsx +15 -1
  62. package/src/movethewheels/pages/OrderDetailsPage.tsx +25 -25
  63. package/src/movethewheels/pages/ProductDetailsPage.tsx +228 -49
  64. package/src/movethewheels/pages/ProductsPage.tsx +13 -5
  65. package/src/movethewheels/pages/RouteDetailsPage.tsx +24 -12
  66. package/src/movethewheels/pages/RoutesPage.tsx +4 -2
  67. package/src/movethewheels/pages/TrackingPage.tsx +32 -12
  68. package/src/movethewheels/pages/WarehouseDetailsPage.tsx +42 -29
  69. package/src/movethewheels/pages/WarehousesPage.tsx +23 -15
  70. package/src/movethewheels/types/index.ts +36 -24
  71. package/src/movethewheels/utils/formatters.ts +1 -1
  72. package/src/movethewheels/utils/orderValidation.ts +53 -0
@@ -180,8 +180,8 @@ function A() {
180
180
  id: "optimized",
181
181
  header: "Optimized",
182
182
  cell: (e) => /* @__PURE__ */ w(c, {
183
- variant: e.optimized ? "default" : "outline",
184
- children: e.optimized ? "Yes" : "No"
183
+ variant: e.optimized === void 0 ? "outline" : e.optimized ? "default" : "outline",
184
+ children: e.optimized === void 0 ? "Unknown" : e.optimized ? "Yes" : "No"
185
185
  })
186
186
  },
187
187
  {
@@ -43,7 +43,7 @@ function N() {
43
43
  return t ? {
44
44
  lat: t.lat,
45
45
  lng: t.lng,
46
- timestamp: e.timestamp?.toISOString() ?? (/* @__PURE__ */ new Date()).toISOString()
46
+ timestamp: e.timestamp?.toISOString()
47
47
  } : null;
48
48
  }).filter((e) => e !== null), a = W.timeline.map((e) => {
49
49
  let t = e.location ? S(e.location) : null;
@@ -54,7 +54,7 @@ function N() {
54
54
  } : null;
55
55
  }).filter((e) => e !== null), o = i.length > 0 ? i : a, s = U ? S(U.currentLocation) : null, c = s ? {
56
56
  ...s,
57
- label: U?.currentLocation.address || "Current position"
57
+ label: U?.currentLocation?.address || "Current position"
58
58
  } : null;
59
59
  return {
60
60
  origin: n,
@@ -82,7 +82,7 @@ function N() {
82
82
  className: "p-6",
83
83
  children: /* @__PURE__ */ k("form", {
84
84
  onSubmit: q,
85
- className: "flex gap-4",
85
+ className: "flex flex-col gap-4 sm:flex-row",
86
86
  children: [/* @__PURE__ */ k("div", {
87
87
  className: "flex-1 relative",
88
88
  children: [/* @__PURE__ */ O(a, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-text-secondary" }), /* @__PURE__ */ O(h, {
@@ -94,6 +94,7 @@ function N() {
94
94
  }), /* @__PURE__ */ O(u, {
95
95
  type: "submit",
96
96
  size: "lg",
97
+ className: "w-full sm:w-auto",
97
98
  disabled: !z || G,
98
99
  children: G ? P("movethewheels.tracking.search.searching", "Searching...") : P("movethewheels.tracking.search.track", "Track")
99
100
  })]
@@ -174,7 +175,7 @@ function N() {
174
175
  children: P("movethewheels.tracking.details.lastUpdated", "Last Updated")
175
176
  }), /* @__PURE__ */ O("p", {
176
177
  className: "font-medium",
177
- children: U ? x(U.lastUpdated, "relative") : P("movethewheels.tracking.details.noUpdates", "No tracking updates yet")
178
+ children: U?.lastUpdated ? x(U.lastUpdated, "relative") : P("movethewheels.tracking.details.noUpdates", "No tracking updates yet")
178
179
  })] })
179
180
  ]
180
181
  }),
@@ -306,7 +307,7 @@ function N() {
306
307
  children: t.message
307
308
  }), /* @__PURE__ */ k("p", {
308
309
  className: "text-xs text-text-secondary",
309
- children: [x(t.timestamp, "relative"), t.resolvedAt && ` - ${P("movethewheels.tracking.alerts.resolved", "Resolved")}`]
310
+ children: [t.timestamp ? x(t.timestamp, "relative") : P("movethewheels.tracking.alerts.timeUnknown", "Time not recorded"), t.resolvedAt && ` - ${P("movethewheels.tracking.alerts.resolved", "Resolved")}`]
310
311
  })] })]
311
312
  }, t.id))
312
313
  }) })] })
@@ -332,17 +333,23 @@ function N() {
332
333
  className: "text-sm",
333
334
  children: P("movethewheels.tracking.location.noFix", "No live position fix yet")
334
335
  })]
335
- }), U && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("p", {
336
+ }), U?.currentLocation ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("p", {
336
337
  className: "text-sm",
337
338
  children: U.currentLocation.address || P("movethewheels.tracking.location.updating", "Location updating...")
338
- }), /* @__PURE__ */ k("p", {
339
+ }), U.currentLocation.timestamp ? /* @__PURE__ */ k("p", {
339
340
  className: "text-xs text-text-secondary mt-1",
340
341
  children: [
341
342
  P("movethewheels.tracking.location.updated", "Updated"),
342
343
  " ",
343
- x(U.currentLocation.timestamp || /* @__PURE__ */ new Date(), "relative")
344
+ x(U.currentLocation.timestamp, "relative")
344
345
  ]
345
- })] })] })] }),
346
+ }) : /* @__PURE__ */ O("p", {
347
+ className: "text-xs text-text-secondary mt-1",
348
+ children: P("movethewheels.tracking.location.timeUnknown", "Update time not recorded")
349
+ })] }) : U ? /* @__PURE__ */ O("p", {
350
+ className: "text-sm text-text-secondary",
351
+ children: P("movethewheels.tracking.location.unknown", "Location not recorded")
352
+ }) : null] })] }),
346
353
  /* @__PURE__ */ k(d, { children: [/* @__PURE__ */ O(p, { children: /* @__PURE__ */ O(m, { children: P("movethewheels.tracking.deliveryAddress.title", "Delivery Address") }) }), /* @__PURE__ */ k(f, { children: [/* @__PURE__ */ O("p", {
347
354
  className: "text-sm",
348
355
  children: W.customerInfo.name