@burdenoff/microfe-movethewheels 2026.929.3 → 2026.929.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.
- package/dist/generated/wspace-types.d.ts +1547 -64
- package/dist/hooks/useCustomers.js +3 -9
- package/dist/hooks/useFleet.js +146 -149
- package/dist/hooks/useInventory.js +178 -153
- package/dist/hooks/useRoutes.js +9 -9
- package/dist/hooks/useTracking.js +14 -16
- package/dist/movethewheels/hooks/useFleet.d.ts +9 -2
- package/dist/movethewheels/hooks/useInventory.d.ts +13 -12
- package/dist/movethewheels/hooks/useRoutes.d.ts +4 -1
- package/dist/movethewheels/types/index.d.ts +33 -23
- package/dist/movethewheels/utils/formatters.d.ts +1 -1
- package/dist/pages/CustomerDetailsPage.js +6 -6
- package/dist/pages/CustomersPage.js +2 -2
- package/dist/pages/DashboardPage.js +1 -1
- package/dist/pages/DriverDetailsPage.js +7 -3
- package/dist/pages/DriversPage.js +4 -4
- package/dist/pages/FleetPage.js +1 -1
- package/dist/pages/InventoryPage.js +11 -12
- package/dist/pages/LiveTrackingPage.js +4 -4
- package/dist/pages/ProductDetailsPage.js +408 -249
- package/dist/pages/ProductsPage.js +5 -5
- package/dist/pages/RouteDetailsPage.js +8 -10
- package/dist/pages/RoutesPage.js +2 -2
- package/dist/pages/TrackingPage.js +14 -8
- package/dist/pages/WarehouseDetailsPage.js +166 -163
- package/dist/pages/WarehousesPage.js +29 -21
- package/package.json +1 -1
- package/src/generated/wspace-types.ts +1762 -64
- package/src/movethewheels/hooks/useCustomers.ts +7 -9
- package/src/movethewheels/hooks/useFleet.ts +89 -31
- package/src/movethewheels/hooks/useInventory.ts +143 -49
- package/src/movethewheels/hooks/useRoutes.ts +36 -16
- package/src/movethewheels/hooks/useTracking.ts +23 -15
- package/src/movethewheels/pages/CustomerDetailsPage.tsx +14 -8
- package/src/movethewheels/pages/CustomersPage.tsx +5 -2
- package/src/movethewheels/pages/DashboardPage.tsx +3 -1
- package/src/movethewheels/pages/DriverDetailsPage.tsx +13 -3
- package/src/movethewheels/pages/DriversPage.tsx +1 -1
- package/src/movethewheels/pages/FleetPage.tsx +1 -1
- package/src/movethewheels/pages/InventoryPage.tsx +20 -16
- package/src/movethewheels/pages/LiveTrackingPage.tsx +6 -4
- package/src/movethewheels/pages/ProductDetailsPage.tsx +228 -49
- package/src/movethewheels/pages/ProductsPage.tsx +13 -5
- package/src/movethewheels/pages/RouteDetailsPage.tsx +16 -8
- package/src/movethewheels/pages/RoutesPage.tsx +4 -2
- package/src/movethewheels/pages/TrackingPage.tsx +25 -10
- package/src/movethewheels/pages/WarehouseDetailsPage.tsx +42 -29
- package/src/movethewheels/pages/WarehousesPage.tsx +23 -15
- package/src/movethewheels/types/index.ts +36 -24
- package/src/movethewheels/utils/formatters.ts +1 -1
|
@@ -97,7 +97,7 @@ function S() {
|
|
|
97
97
|
children: e.name
|
|
98
98
|
}), /* @__PURE__ */ v("p", {
|
|
99
99
|
className: "text-sm text-text-secondary line-clamp-1",
|
|
100
|
-
children: e.description
|
|
100
|
+
children: e.description ?? "Not provided"
|
|
101
101
|
})] })
|
|
102
102
|
},
|
|
103
103
|
{
|
|
@@ -107,20 +107,20 @@ function S() {
|
|
|
107
107
|
sortable: !0,
|
|
108
108
|
cell: (e) => /* @__PURE__ */ v(u, {
|
|
109
109
|
variant: "outline",
|
|
110
|
-
children: e.category
|
|
110
|
+
children: e.category ?? "Not provided"
|
|
111
111
|
})
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
id: "dimensions",
|
|
115
115
|
header: "Dimensions",
|
|
116
|
-
cell: (e) => `${e.dimensions.length}x${e.dimensions.width}x${e.dimensions.height} ${e.dimensions.unit}`
|
|
116
|
+
cell: (e) => e.dimensions ? `${e.dimensions.length ?? "Not provided"}x${e.dimensions.width ?? "Not provided"}x${e.dimensions.height ?? "Not provided"}${e.dimensions.unit ? ` ${e.dimensions.unit}` : ""}` : "Not provided"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
id: "weight",
|
|
120
120
|
header: "Weight",
|
|
121
121
|
accessorKey: "weight",
|
|
122
122
|
sortable: !0,
|
|
123
|
-
cell: (e) => `${e.weight} kg`
|
|
123
|
+
cell: (e) => e.weight === void 0 ? "Not provided" : `${e.weight} kg`
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
id: "value",
|
|
@@ -129,7 +129,7 @@ function S() {
|
|
|
129
129
|
sortable: !0,
|
|
130
130
|
cell: (e) => /* @__PURE__ */ v("span", {
|
|
131
131
|
className: "font-medium",
|
|
132
|
-
children: h(e.value)
|
|
132
|
+
children: e.value === void 0 ? "Not provided" : h(e.value)
|
|
133
133
|
})
|
|
134
134
|
},
|
|
135
135
|
{
|
|
@@ -133,16 +133,14 @@ function Y({ editId: r }) {
|
|
|
133
133
|
country: ""
|
|
134
134
|
},
|
|
135
135
|
type: e.type,
|
|
136
|
-
scheduledTime: /* @__PURE__ */ new Date(),
|
|
137
|
-
duration: 0,
|
|
138
136
|
status: "pending"
|
|
139
137
|
}));
|
|
140
138
|
if (A) {
|
|
141
139
|
let t = await l(r, {
|
|
142
140
|
name: j.name.trim(),
|
|
143
141
|
status: j.status,
|
|
144
|
-
vehicleId: j.vehicleId ||
|
|
145
|
-
driverId: j.driverId ||
|
|
142
|
+
vehicleId: j.vehicleId || null,
|
|
143
|
+
driverId: j.driverId || null,
|
|
146
144
|
stops: e
|
|
147
145
|
});
|
|
148
146
|
a?.(f(i, `routes/${t.id}`));
|
|
@@ -473,8 +471,8 @@ function X() {
|
|
|
473
471
|
status: p.status,
|
|
474
472
|
customColors: A[p.status]
|
|
475
473
|
}), /* @__PURE__ */ U(h, {
|
|
476
|
-
variant: p.optimized ? "default" : "secondary",
|
|
477
|
-
children: p.optimized ? "Optimized" : "Not Optimized"
|
|
474
|
+
variant: p.optimized === !0 ? "default" : "secondary",
|
|
475
|
+
children: p.optimized === void 0 ? "Optimization unknown" : p.optimized ? "Optimized" : "Not Optimized"
|
|
478
476
|
})]
|
|
479
477
|
}),
|
|
480
478
|
children: [
|
|
@@ -576,17 +574,17 @@ function X() {
|
|
|
576
574
|
})] }), /* @__PURE__ */ W("div", {
|
|
577
575
|
className: "text-right",
|
|
578
576
|
children: [
|
|
579
|
-
/* @__PURE__ */
|
|
577
|
+
/* @__PURE__ */ U("p", {
|
|
580
578
|
className: "text-sm",
|
|
581
|
-
children:
|
|
579
|
+
children: e.scheduledTime ? `Scheduled: ${F(e.scheduledTime, "time")}` : "Scheduled: Not provided"
|
|
582
580
|
}),
|
|
583
581
|
e.actualTime && /* @__PURE__ */ W("p", {
|
|
584
582
|
className: "text-sm text-status-success-text",
|
|
585
583
|
children: ["Actual: ", F(e.actualTime, "time")]
|
|
586
584
|
}),
|
|
587
|
-
/* @__PURE__ */
|
|
585
|
+
/* @__PURE__ */ U("p", {
|
|
588
586
|
className: "text-xs text-text-secondary",
|
|
589
|
-
children:
|
|
587
|
+
children: e.duration === void 0 ? "Duration not provided" : `${e.duration} min stop`
|
|
590
588
|
})
|
|
591
589
|
]
|
|
592
590
|
})]
|
package/dist/pages/RoutesPage.js
CHANGED
|
@@ -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()
|
|
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
|
|
57
|
+
label: U?.currentLocation?.address || "Current position"
|
|
58
58
|
} : null;
|
|
59
59
|
return {
|
|
60
60
|
origin: n,
|
|
@@ -174,7 +174,7 @@ function N() {
|
|
|
174
174
|
children: P("movethewheels.tracking.details.lastUpdated", "Last Updated")
|
|
175
175
|
}), /* @__PURE__ */ O("p", {
|
|
176
176
|
className: "font-medium",
|
|
177
|
-
children: U ? x(U.lastUpdated, "relative") : P("movethewheels.tracking.details.noUpdates", "No tracking updates yet")
|
|
177
|
+
children: U?.lastUpdated ? x(U.lastUpdated, "relative") : P("movethewheels.tracking.details.noUpdates", "No tracking updates yet")
|
|
178
178
|
})] })
|
|
179
179
|
]
|
|
180
180
|
}),
|
|
@@ -306,7 +306,7 @@ function N() {
|
|
|
306
306
|
children: t.message
|
|
307
307
|
}), /* @__PURE__ */ k("p", {
|
|
308
308
|
className: "text-xs text-text-secondary",
|
|
309
|
-
children: [x(t.timestamp, "relative"), t.resolvedAt && ` - ${P("movethewheels.tracking.alerts.resolved", "Resolved")}`]
|
|
309
|
+
children: [t.timestamp ? x(t.timestamp, "relative") : P("movethewheels.tracking.alerts.timeUnknown", "Time not recorded"), t.resolvedAt && ` - ${P("movethewheels.tracking.alerts.resolved", "Resolved")}`]
|
|
310
310
|
})] })]
|
|
311
311
|
}, t.id))
|
|
312
312
|
}) })] })
|
|
@@ -332,17 +332,23 @@ function N() {
|
|
|
332
332
|
className: "text-sm",
|
|
333
333
|
children: P("movethewheels.tracking.location.noFix", "No live position fix yet")
|
|
334
334
|
})]
|
|
335
|
-
}), U
|
|
335
|
+
}), U?.currentLocation ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("p", {
|
|
336
336
|
className: "text-sm",
|
|
337
337
|
children: U.currentLocation.address || P("movethewheels.tracking.location.updating", "Location updating...")
|
|
338
|
-
}), /* @__PURE__ */ k("p", {
|
|
338
|
+
}), U.currentLocation.timestamp ? /* @__PURE__ */ k("p", {
|
|
339
339
|
className: "text-xs text-text-secondary mt-1",
|
|
340
340
|
children: [
|
|
341
341
|
P("movethewheels.tracking.location.updated", "Updated"),
|
|
342
342
|
" ",
|
|
343
|
-
x(U.currentLocation.timestamp
|
|
343
|
+
x(U.currentLocation.timestamp, "relative")
|
|
344
344
|
]
|
|
345
|
-
})
|
|
345
|
+
}) : /* @__PURE__ */ O("p", {
|
|
346
|
+
className: "text-xs text-text-secondary mt-1",
|
|
347
|
+
children: P("movethewheels.tracking.location.timeUnknown", "Update time not recorded")
|
|
348
|
+
})] }) : U ? /* @__PURE__ */ O("p", {
|
|
349
|
+
className: "text-sm text-text-secondary",
|
|
350
|
+
children: P("movethewheels.tracking.location.unknown", "Location not recorded")
|
|
351
|
+
}) : null] })] }),
|
|
346
352
|
/* @__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
353
|
className: "text-sm",
|
|
348
354
|
children: W.customerInfo.name
|