@burdenoff/microfe-movethewheels 2026.1031.3 → 2026.1031.5
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/MoveTheWheelsRoot.js +136 -127
- package/dist/MoveTheWheelsRoutes.js +143 -135
- package/dist/components/DocumentsCard.js +11 -11
- package/dist/components/ProofOfDeliveryCard.js +13 -13
- package/dist/components/ShipmentRiskDialog.js +24 -24
- package/dist/components/ShippingQuoteResults.js +46 -46
- package/dist/components/TrackingAlertList.js +17 -17
- package/dist/generated/tracking-quality-operations.d.ts +56 -0
- package/dist/hooks/useOrderDispatch.js +17 -17
- package/dist/movethewheels/pages/SettingsPage.d.ts +1 -0
- package/dist/movethewheels/providers/ModuleSettingsProvider.d.ts +17 -0
- package/dist/movethewheels/utils/formatters.d.ts +23 -3
- package/dist/movethewheels/utils/moduleSettings.d.ts +52 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/bell.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/key-round.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/plug.js +22 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +13 -0
- package/dist/pages/AnalyticsPage.js +27 -27
- package/dist/pages/CreateOrderPage.js +340 -317
- package/dist/pages/CustomerDetailsPage.js +246 -246
- package/dist/pages/CustomersPage.js +19 -19
- package/dist/pages/DashboardPage.js +24 -24
- package/dist/pages/DeliveryCapturePage.js +74 -74
- package/dist/pages/DriverDetailsPage.js +337 -337
- package/dist/pages/DriversPage.js +26 -26
- package/dist/pages/FinancePage.js +26 -26
- package/dist/pages/InventoryPage.js +28 -28
- package/dist/pages/LiveTrackingPage.js +108 -108
- package/dist/pages/MarketplacePage.js +44 -44
- package/dist/pages/OrderDetailsPage.js +306 -306
- package/dist/pages/OrdersListPage.js +27 -27
- package/dist/pages/ProductDetailsPage.js +89 -89
- package/dist/pages/ProductsPage.js +73 -73
- package/dist/pages/RouteDetailsPage.js +282 -285
- package/dist/pages/RoutesPage.js +78 -78
- package/dist/pages/SettingsPage.js +459 -0
- package/dist/pages/TrackingPage.js +41 -41
- package/dist/pages/VehicleDetailsPage.js +207 -207
- package/dist/pages/VehiclesPage.js +17 -16
- package/dist/pages/WarehouseDetailsPage.js +132 -132
- package/dist/providers/ModuleSettingsProvider.js +74 -0
- package/dist/utils/formatters.js +53 -26
- package/dist/utils/moduleSettings.js +132 -0
- package/package.json +3 -2
- package/src/generated/tracking-quality-operations.ts +62 -0
- package/src/movethewheels/MoveTheWheelsRoot.tsx +18 -5
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +19 -4
- package/src/movethewheels/pages/CreateOrderPage.tsx +38 -6
- package/src/movethewheels/pages/ProductsPage.tsx +2 -2
- package/src/movethewheels/pages/RouteDetailsPage.tsx +3 -6
- package/src/movethewheels/pages/RoutesPage.tsx +2 -2
- package/src/movethewheels/pages/SettingsPage.tsx +516 -0
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +4 -2
- package/src/movethewheels/pages/VehiclesPage.tsx +2 -1
- package/src/movethewheels/providers/ModuleSettingsProvider.tsx +133 -0
- package/src/movethewheels/utils/formatters.ts +69 -10
- package/src/movethewheels/utils/moduleSettings.ts +224 -0
- package/dist/movethewheels/pages/AIAssistantPage.d.ts +0 -22
- package/dist/node_modules/lucide-react/dist/esm/icons/message-circle.js +0 -8
- package/dist/node_modules/lucide-react/dist/esm/icons/wallet.js +0 -11
- package/dist/pages/AIAssistantPage.js +0 -81
- package/src/movethewheels/pages/AIAssistantPage.tsx +0 -123
|
@@ -9,8 +9,9 @@ import { Upload as s } from "../node_modules/lucide-react/dist/esm/icons/upload.
|
|
|
9
9
|
import { Wrench as c } from "../node_modules/lucide-react/dist/esm/icons/wrench.js";
|
|
10
10
|
import { joinPath as l } from "../utils/navigation.js";
|
|
11
11
|
import { useMoveTheWheels as u } from "../providers/MoveTheWheelsProvider.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { formatWeight as d } from "../utils/formatters.js";
|
|
13
|
+
import { useFleetStats as f, useVehicles as ee } from "../hooks/useFleet.js";
|
|
14
|
+
import { Button as te, Card as p, CardContent as m, Progress as h, Select as g, SelectContent as ne, SelectItem as re, SelectTrigger as ie, SelectValue as _ } from "../components/ui.js";
|
|
14
15
|
import { PageLayout as v } from "../components/PageLayout.js";
|
|
15
16
|
import { MetricCard as y, MetricGrid as b } from "../components/MetricCard.js";
|
|
16
17
|
import { VEHICLE_STATUS_LABELS as x } from "../constants/index.js";
|
|
@@ -31,12 +32,12 @@ var N = [{
|
|
|
31
32
|
label: t
|
|
32
33
|
}))];
|
|
33
34
|
function P() {
|
|
34
|
-
let { basePath: x, navigate: P } = u(), { state: F, isExporting:
|
|
35
|
+
let { basePath: x, navigate: P } = u(), { state: F, isExporting: ae, startExport: I, dismiss: L } = E("vehicles", "vehicle"), [R, z] = O(0), [B, V] = O(25), [H, U] = O(""), [W, G] = O("all"), K = T(H), { vehicles: q, totalVehicles: J, hasMore: oe, isLoading: Y, error: se, refetch: X } = ee({
|
|
35
36
|
limit: B,
|
|
36
37
|
offset: R * B,
|
|
37
38
|
search: K || void 0,
|
|
38
39
|
status: W === "all" ? void 0 : W
|
|
39
|
-
}),
|
|
40
|
+
}), ce = W !== "all" || H.length > 0, { stats: Z } = f(), Q = Z.totalVehicles, $ = (e) => {
|
|
40
41
|
P && P(l(x, e));
|
|
41
42
|
};
|
|
42
43
|
return /* @__PURE__ */ A(v, {
|
|
@@ -61,9 +62,9 @@ function P() {
|
|
|
61
62
|
onSelect: () => $("import-export?entity=VEHICLE")
|
|
62
63
|
},
|
|
63
64
|
{
|
|
64
|
-
label:
|
|
65
|
+
label: ae ? "Exporting…" : "Export",
|
|
65
66
|
icon: /* @__PURE__ */ k(t, { size: 16 }),
|
|
66
|
-
onSelect:
|
|
67
|
+
onSelect: I
|
|
67
68
|
}
|
|
68
69
|
]
|
|
69
70
|
}),
|
|
@@ -109,7 +110,7 @@ function P() {
|
|
|
109
110
|
})
|
|
110
111
|
]
|
|
111
112
|
})] }),
|
|
112
|
-
/* @__PURE__ */ k(
|
|
113
|
+
/* @__PURE__ */ k(p, { children: /* @__PURE__ */ k(m, {
|
|
113
114
|
className: "p-4",
|
|
114
115
|
children: /* @__PURE__ */ A("div", {
|
|
115
116
|
className: "flex flex-wrap items-center gap-4",
|
|
@@ -124,20 +125,20 @@ function P() {
|
|
|
124
125
|
children: "Filters:"
|
|
125
126
|
})]
|
|
126
127
|
}),
|
|
127
|
-
/* @__PURE__ */ A(
|
|
128
|
+
/* @__PURE__ */ A(g, {
|
|
128
129
|
value: W,
|
|
129
130
|
onValueChange: (e) => {
|
|
130
131
|
G(e), z(0);
|
|
131
132
|
},
|
|
132
|
-
children: [/* @__PURE__ */ k(
|
|
133
|
+
children: [/* @__PURE__ */ k(ie, {
|
|
133
134
|
className: "w-[180px]",
|
|
134
135
|
children: /* @__PURE__ */ k(_, { placeholder: "Status" })
|
|
135
|
-
}), /* @__PURE__ */ k(
|
|
136
|
+
}), /* @__PURE__ */ k(ne, { children: N.map((e) => /* @__PURE__ */ k(re, {
|
|
136
137
|
value: e.value,
|
|
137
138
|
children: e.label
|
|
138
139
|
}, e.value)) })]
|
|
139
140
|
}),
|
|
140
|
-
|
|
141
|
+
ce && /* @__PURE__ */ k(te, {
|
|
141
142
|
variant: "ghost",
|
|
142
143
|
size: "sm",
|
|
143
144
|
onClick: () => {
|
|
@@ -196,7 +197,7 @@ function P() {
|
|
|
196
197
|
header: "Capacity",
|
|
197
198
|
cell: (e) => /* @__PURE__ */ A("div", {
|
|
198
199
|
className: "text-sm",
|
|
199
|
-
children: [/* @__PURE__ */ k("p", { children: e.capacity.weight === void 0 ? "—" :
|
|
200
|
+
children: [/* @__PURE__ */ k("p", { children: e.capacity.weight === void 0 ? "—" : d(e.capacity.weight) }), /* @__PURE__ */ k("p", {
|
|
200
201
|
className: "text-text-secondary",
|
|
201
202
|
children: e.capacity.volume === void 0 ? "—" : `${e.capacity.volume} m³`
|
|
202
203
|
})]
|
|
@@ -207,7 +208,7 @@ function P() {
|
|
|
207
208
|
header: "Fuel Level",
|
|
208
209
|
cell: (e) => e.fuelLevel === void 0 ? "-" : /* @__PURE__ */ A("div", {
|
|
209
210
|
className: "flex items-center gap-2",
|
|
210
|
-
children: [/* @__PURE__ */ k(
|
|
211
|
+
children: [/* @__PURE__ */ k(h, {
|
|
211
212
|
value: e.fuelLevel,
|
|
212
213
|
className: "w-16 h-2"
|
|
213
214
|
}), /* @__PURE__ */ A("span", {
|
|
@@ -225,8 +226,8 @@ function P() {
|
|
|
225
226
|
}
|
|
226
227
|
],
|
|
227
228
|
data: q,
|
|
228
|
-
isLoading:
|
|
229
|
-
error:
|
|
229
|
+
isLoading: Y,
|
|
230
|
+
error: se,
|
|
230
231
|
onRetry: X,
|
|
231
232
|
searchable: !0,
|
|
232
233
|
searchPlaceholder: "Search vehicles...",
|
|
@@ -248,7 +249,7 @@ function P() {
|
|
|
248
249
|
V(e), z(0);
|
|
249
250
|
},
|
|
250
251
|
totalItems: J,
|
|
251
|
-
hasNextPage:
|
|
252
|
+
hasNextPage: oe,
|
|
252
253
|
emptyIllustration: "empty-data",
|
|
253
254
|
emptyTitle: "No vehicles yet",
|
|
254
255
|
emptyDescription: "Add vehicles to your fleet to start assigning them to deliveries."
|