@burdenoff/microfe-movethewheels 2026.1026.1 → 2026.1026.3

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 (46) hide show
  1. package/dist/MoveTheWheelsRoot.js +126 -159
  2. package/dist/MoveTheWheelsRoutes.js +16 -32
  3. package/dist/components/CustomerPicker.js +2 -2
  4. package/dist/hooks/index.js +0 -3
  5. package/dist/index.js +27 -30
  6. package/dist/movethewheels/hooks/index.d.ts +0 -3
  7. package/dist/pages/CreateOrderPage.js +1 -1
  8. package/package.json +1 -1
  9. package/src/movethewheels/MoveTheWheelsRoot.tsx +2 -46
  10. package/src/movethewheels/MoveTheWheelsRoutes.tsx +0 -16
  11. package/src/movethewheels/components/CustomerPicker.tsx +2 -2
  12. package/src/movethewheels/hooks/index.ts +0 -9
  13. package/src/movethewheels/pages/CreateOrderPage.tsx +1 -1
  14. package/dist/hooks/useImportExport.js +0 -27
  15. package/dist/hooks/useReports.js +0 -75
  16. package/dist/hooks/useSettings.js +0 -67
  17. package/dist/movethewheels/hooks/useImportExport.d.ts +0 -23
  18. package/dist/movethewheels/hooks/useReports.d.ts +0 -39
  19. package/dist/movethewheels/hooks/useSettings.d.ts +0 -17
  20. package/dist/movethewheels/pages/ImportExportPage.d.ts +0 -8
  21. package/dist/movethewheels/pages/MarketplacePage.d.ts +0 -12
  22. package/dist/movethewheels/pages/ReportsPage.d.ts +0 -8
  23. package/dist/movethewheels/pages/SettingsPage.d.ts +0 -8
  24. package/dist/node_modules/lucide-react/dist/esm/icons/bell.js +0 -11
  25. package/dist/node_modules/lucide-react/dist/esm/icons/file-chart-column-increasing.js +0 -26
  26. package/dist/node_modules/lucide-react/dist/esm/icons/file-spreadsheet.js +0 -30
  27. package/dist/node_modules/lucide-react/dist/esm/icons/globe.js +0 -20
  28. package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +0 -13
  29. package/dist/node_modules/lucide-react/dist/esm/icons/shield.js +0 -8
  30. package/dist/node_modules/lucide-react/dist/esm/icons/store.js +0 -26
  31. package/dist/node_modules/lucide-react/dist/esm/icons/webhook.js +0 -18
  32. package/dist/pages/ImportExportPage.js +0 -245
  33. package/dist/pages/MarketplacePage.js +0 -23
  34. package/dist/pages/ReportsPage.js +0 -328
  35. package/dist/pages/SettingsPage.js +0 -404
  36. package/dist/utils/download.js +0 -22
  37. package/src/movethewheels/hooks/useImportExport.ts +0 -65
  38. package/src/movethewheels/hooks/useReports.ts +0 -154
  39. package/src/movethewheels/hooks/useSettings.ts +0 -124
  40. package/src/movethewheels/pages/ImportExportPage.tsx +0 -288
  41. package/src/movethewheels/pages/MarketplacePage.tsx +0 -36
  42. package/src/movethewheels/pages/ReportsPage.tsx +0 -379
  43. package/src/movethewheels/pages/SettingsPage.tsx +0 -548
  44. package/src/operations/wspace/movethewheels/fragments/core.withdrawn.graphql +0 -59
  45. package/src/operations/wspace/movethewheels/mutations/marketplace-reports.withdrawn.graphql +0 -93
  46. package/src/operations/wspace/movethewheels/queries/marketplace-reports.withdrawn.graphql +0 -58
@@ -1,20 +0,0 @@
1
- import { createLucideIcon as e } from "../createLucideIcon.js";
2
- //#region node_modules/lucide-react/dist/esm/icons/globe.js
3
- var t = e("Globe", [
4
- ["circle", {
5
- cx: "12",
6
- cy: "12",
7
- r: "10",
8
- key: "1mglay"
9
- }],
10
- ["path", {
11
- d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",
12
- key: "13o1zl"
13
- }],
14
- ["path", {
15
- d: "M2 12h20",
16
- key: "9i4pu4"
17
- }]
18
- ]);
19
- //#endregion
20
- export { t as Globe };
@@ -1,13 +0,0 @@
1
- import { createLucideIcon as e } from "../createLucideIcon.js";
2
- //#region node_modules/lucide-react/dist/esm/icons/settings.js
3
- var t = e("Settings", [["path", {
4
- d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",
5
- key: "1qme2f"
6
- }], ["circle", {
7
- cx: "12",
8
- cy: "12",
9
- r: "3",
10
- key: "1v7zrd"
11
- }]]);
12
- //#endregion
13
- export { t as Settings };
@@ -1,8 +0,0 @@
1
- import { createLucideIcon as e } from "../createLucideIcon.js";
2
- //#region node_modules/lucide-react/dist/esm/icons/shield.js
3
- var t = e("Shield", [["path", {
4
- d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
5
- key: "oel41y"
6
- }]]);
7
- //#endregion
8
- export { t as Shield };
@@ -1,26 +0,0 @@
1
- import { createLucideIcon as e } from "../createLucideIcon.js";
2
- //#region node_modules/lucide-react/dist/esm/icons/store.js
3
- var t = e("Store", [
4
- ["path", {
5
- d: "m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",
6
- key: "ztvudi"
7
- }],
8
- ["path", {
9
- d: "M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",
10
- key: "1b2hhj"
11
- }],
12
- ["path", {
13
- d: "M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",
14
- key: "2ebpfo"
15
- }],
16
- ["path", {
17
- d: "M2 7h20",
18
- key: "1fcdvo"
19
- }],
20
- ["path", {
21
- d: "M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",
22
- key: "6c3vgh"
23
- }]
24
- ]);
25
- //#endregion
26
- export { t as Store };
@@ -1,18 +0,0 @@
1
- import { createLucideIcon as e } from "../createLucideIcon.js";
2
- //#region node_modules/lucide-react/dist/esm/icons/webhook.js
3
- var t = e("Webhook", [
4
- ["path", {
5
- d: "M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",
6
- key: "q3hayz"
7
- }],
8
- ["path", {
9
- d: "m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",
10
- key: "1go1hn"
11
- }],
12
- ["path", {
13
- d: "m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",
14
- key: "qlwsc0"
15
- }]
16
- ]);
17
- //#endregion
18
- export { t as Webhook };
@@ -1,245 +0,0 @@
1
- import { Check as e } from "../node_modules/lucide-react/dist/esm/icons/check.js";
2
- import { Download as t } from "../node_modules/lucide-react/dist/esm/icons/download.js";
3
- import { FileSpreadsheet as n } from "../node_modules/lucide-react/dist/esm/icons/file-spreadsheet.js";
4
- import { FileText as r } from "../node_modules/lucide-react/dist/esm/icons/file-text.js";
5
- import { Upload as i } from "../node_modules/lucide-react/dist/esm/icons/upload.js";
6
- import { X as a } from "../node_modules/lucide-react/dist/esm/icons/x.js";
7
- import { useImportExport as o } from "../hooks/useImportExport.js";
8
- import { Badge as s, Button as c, Card as l, CardContent as u, CardHeader as d, CardTitle as f } from "../components/ui.js";
9
- import { PageLayout as p } from "../components/PageLayout.js";
10
- import { useRef as m, useState as h } from "react";
11
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
12
- import { EmphasisPanel as v, IllustratedEmptyState as y, PagePurpose as b } from "@burdenoff/fe-libs/ui";
13
- //#region src/movethewheels/pages/ImportExportPage.tsx
14
- var x = [
15
- {
16
- name: "Orders",
17
- description: "Import orders from CSV or JSON",
18
- resource: "orders"
19
- },
20
- {
21
- name: "Customers",
22
- description: "Import customer database",
23
- resource: "customers"
24
- },
25
- {
26
- name: "Products",
27
- description: "Import product catalog",
28
- resource: "products"
29
- },
30
- {
31
- name: "Inventory",
32
- description: "Import inventory levels",
33
- resource: "inventory"
34
- }
35
- ], S = [
36
- {
37
- name: "Orders Report",
38
- description: "Export all orders data",
39
- resource: "orders",
40
- formats: ["CSV", "JSON"]
41
- },
42
- {
43
- name: "Financial Report",
44
- description: "Export revenue and payments",
45
- resource: "finance",
46
- formats: ["CSV", "JSON"]
47
- },
48
- {
49
- name: "Fleet Report",
50
- description: "Export vehicle and driver data",
51
- resource: "fleet",
52
- formats: ["CSV", "JSON"]
53
- },
54
- {
55
- name: "Analytics Report",
56
- description: "Export performance metrics",
57
- resource: "analytics",
58
- formats: ["CSV", "JSON"]
59
- }
60
- ];
61
- function C() {
62
- let { exportData: C, importData: w, isBusy: T } = o(), [E, D] = h([]), [O, k] = h(null), A = m(null), j = m(null), M = (e) => D((t) => [e, ...t]), N = async (e, t) => {
63
- k(`${e.resource}:${t}`);
64
- try {
65
- let n = await C(e.resource, t);
66
- if (n.success && n.payload) {
67
- let r = JSON.stringify(n.payload, null, 2), i = new Blob([r], { type: "application/json" }), a = URL.createObjectURL(i), o = document.createElement("a");
68
- o.href = a, o.download = `${e.resource}-export.${t.toLowerCase() === "csv" ? "csv" : "json"}`, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a);
69
- }
70
- M({
71
- type: "export",
72
- name: `${e.name} (${t})`,
73
- at: /* @__PURE__ */ new Date(),
74
- success: n.success,
75
- message: n.message
76
- });
77
- } catch (n) {
78
- M({
79
- type: "export",
80
- name: `${e.name} (${t})`,
81
- at: /* @__PURE__ */ new Date(),
82
- success: !1,
83
- message: n instanceof Error ? n.message : "Export failed"
84
- });
85
- } finally {
86
- k(null);
87
- }
88
- }, P = (e) => {
89
- j.current = e, A.current?.click();
90
- };
91
- return /* @__PURE__ */ _(p, {
92
- title: "Import / Export",
93
- subtitle: "Import and export your data",
94
- icon: /* @__PURE__ */ g(r, { size: 24 }),
95
- children: [
96
- /* @__PURE__ */ g(b, {
97
- icon: /* @__PURE__ */ g(r, { size: 18 }),
98
- children: "Move data in and out in bulk. Import orders, customers, products or inventory from CSV/JSON to onboard or migrate without re-keying, and export any dataset for accounting, BI tools or backups — no manual copy-paste required."
99
- }),
100
- /* @__PURE__ */ g("input", {
101
- ref: A,
102
- type: "file",
103
- accept: ".csv,.json,application/json,text/csv",
104
- className: "hidden",
105
- onChange: async (e) => {
106
- let t = e.target.files?.[0], n = j.current;
107
- if (e.target.value = "", !(!t || !n)) {
108
- k(`import:${n.resource}`);
109
- try {
110
- let e = await t.text(), r = await w(n.resource, {
111
- filename: t.name,
112
- content: e
113
- });
114
- M({
115
- type: "import",
116
- name: `${n.name} — ${t.name}`,
117
- at: /* @__PURE__ */ new Date(),
118
- success: r.success,
119
- message: r.message
120
- });
121
- } catch (e) {
122
- M({
123
- type: "import",
124
- name: `${n.name} — ${t.name}`,
125
- at: /* @__PURE__ */ new Date(),
126
- success: !1,
127
- message: e instanceof Error ? e.message : "Import failed"
128
- });
129
- } finally {
130
- k(null);
131
- }
132
- }
133
- }
134
- }),
135
- /* @__PURE__ */ _("div", {
136
- className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
137
- children: [/* @__PURE__ */ _(v, {
138
- className: "space-y-4",
139
- children: [/* @__PURE__ */ _("h2", {
140
- className: "flex items-center gap-2 text-base font-semibold text-text-primary",
141
- children: [/* @__PURE__ */ g(i, { size: 18 }), " Import Data"]
142
- }), /* @__PURE__ */ g("div", {
143
- className: "space-y-4",
144
- children: x.map((e) => /* @__PURE__ */ _("div", {
145
- className: "flex items-center justify-between p-4 border rounded-lg hover:border-primary/50 transition-colors",
146
- children: [/* @__PURE__ */ _("div", {
147
- className: "flex items-center gap-3",
148
- children: [/* @__PURE__ */ g("div", {
149
- className: "w-10 h-10 rounded-lg bg-action-primary-bg/10 flex items-center justify-center",
150
- children: /* @__PURE__ */ g(n, {
151
- size: 20,
152
- className: "text-primary"
153
- })
154
- }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
155
- className: "font-medium",
156
- children: e.name
157
- }), /* @__PURE__ */ g("p", {
158
- className: "text-sm text-text-secondary",
159
- children: e.description
160
- })] })]
161
- }), /* @__PURE__ */ _("div", {
162
- className: "text-right",
163
- children: [/* @__PURE__ */ g(s, {
164
- variant: "outline",
165
- children: "CSV, JSON"
166
- }), /* @__PURE__ */ g(c, {
167
- variant: "outline",
168
- size: "sm",
169
- className: "ml-2",
170
- "aria-label": `Import ${e.name}`,
171
- disabled: T,
172
- onClick: () => P(e),
173
- children: /* @__PURE__ */ g(i, { size: 14 })
174
- })]
175
- })]
176
- }, e.name))
177
- })]
178
- }), /* @__PURE__ */ _(l, { children: [/* @__PURE__ */ g(d, { children: /* @__PURE__ */ _(f, {
179
- className: "flex items-center gap-2",
180
- children: [/* @__PURE__ */ g(t, { size: 18 }), " Export Data"]
181
- }) }), /* @__PURE__ */ g(u, {
182
- className: "space-y-4",
183
- children: S.map((e) => /* @__PURE__ */ _("div", {
184
- className: "flex items-center justify-between p-4 border rounded-lg hover:border-primary/50 transition-colors",
185
- children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
186
- className: "font-medium",
187
- children: e.name
188
- }), /* @__PURE__ */ g("p", {
189
- className: "text-sm text-text-secondary",
190
- children: e.description
191
- })] }), /* @__PURE__ */ g("div", {
192
- className: "flex gap-1",
193
- children: e.formats.map((t) => /* @__PURE__ */ g(c, {
194
- variant: "outline",
195
- size: "sm",
196
- disabled: O === `${e.resource}:${t}`,
197
- onClick: () => void N(e, t),
198
- children: t
199
- }, t))
200
- })]
201
- }, e.name))
202
- })] })]
203
- }),
204
- /* @__PURE__ */ _(l, { children: [/* @__PURE__ */ g(d, { children: /* @__PURE__ */ g(f, { children: "Recent Activity" }) }), /* @__PURE__ */ g(u, { children: E.length === 0 ? /* @__PURE__ */ g(y, {
205
- illustration: "empty-data",
206
- title: "No import or export activity yet",
207
- description: "Your recent imports and exports will show up here once you run one."
208
- }) : /* @__PURE__ */ g("div", {
209
- className: "space-y-3",
210
- children: E.map((n, r) => /* @__PURE__ */ _("div", {
211
- className: "flex items-center justify-between p-3 bg-bg-sunken/50 rounded-lg",
212
- children: [/* @__PURE__ */ _("div", {
213
- className: "flex items-center gap-3",
214
- children: [n.type === "import" ? /* @__PURE__ */ g(i, {
215
- size: 16,
216
- className: "text-primary"
217
- }) : /* @__PURE__ */ g(t, {
218
- size: 16,
219
- className: "text-primary"
220
- }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
221
- className: "font-medium",
222
- children: n.name
223
- }), /* @__PURE__ */ _("p", {
224
- className: "text-sm text-text-secondary",
225
- children: [
226
- n.type === "import" ? "Imported" : "Exported",
227
- " at",
228
- " ",
229
- n.at.toLocaleTimeString(),
230
- " — ",
231
- n.message
232
- ]
233
- })] })]
234
- }), /* @__PURE__ */ _(s, {
235
- variant: n.success ? "default" : "destructive",
236
- className: "gap-1",
237
- children: [n.success ? /* @__PURE__ */ g(e, { size: 12 }) : /* @__PURE__ */ g(a, { size: 12 }), n.success ? "done" : "failed"]
238
- })]
239
- }, r))
240
- }) })] })
241
- ]
242
- });
243
- }
244
- //#endregion
245
- export { C as default };
@@ -1,23 +0,0 @@
1
- import { Store as e } from "../node_modules/lucide-react/dist/esm/icons/store.js";
2
- import { Card as t, CardContent as n } from "../components/ui.js";
3
- import { PageLayout as r } from "../components/PageLayout.js";
4
- import { jsx as i } from "react/jsx-runtime";
5
- import { IllustratedEmptyState as a } from "@burdenoff/fe-libs/ui";
6
- //#region src/movethewheels/pages/MarketplacePage.tsx
7
- function o() {
8
- return /* @__PURE__ */ i(r, {
9
- title: "Marketplace",
10
- subtitle: "Find logistics service providers",
11
- icon: /* @__PURE__ */ i(e, { size: 24 }),
12
- children: /* @__PURE__ */ i(t, { children: /* @__PURE__ */ i(n, {
13
- className: "p-0",
14
- children: /* @__PURE__ */ i(a, {
15
- illustration: "empty-people",
16
- title: "Marketplace is coming soon",
17
- description: "The collaborative logistics marketplace is not open yet. Check back after it launches to browse verified third-party service providers."
18
- })
19
- }) })
20
- });
21
- }
22
- //#endregion
23
- export { o as default };