@burdenoff/microfe-movethewheels 2026.1108.1 → 2026.1108.2
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/components/ForecastModelsPanel.js +132 -0
- package/dist/components/UpcomingDemandPanel.js +70 -65
- package/dist/generated/wspace-operations.d.ts +25 -0
- package/dist/generated/wspace-types.d.ts +1822 -134
- package/dist/hooks/useDemandForecast.js +1 -1
- package/dist/hooks/useForecastModelChoices.js +57 -0
- package/dist/movethewheels/components/ForecastModelsPanel.d.ts +4 -0
- package/dist/movethewheels/hooks/useDemandForecast.d.ts +9 -0
- package/dist/movethewheels/hooks/useForecastModelChoices.d.ts +34 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/sigma.js +8 -0
- package/dist/pages/AnalyticsPage.js +83 -81
- package/package.json +1 -1
- package/src/generated/wspace-operations.ts +13 -4
- package/src/generated/wspace-types.ts +1951 -134
- package/src/movethewheels/components/ForecastModelsPanel.tsx +188 -0
- package/src/movethewheels/components/UpcomingDemandPanel.tsx +9 -2
- package/src/movethewheels/hooks/useDemandForecast.ts +13 -0
- package/src/movethewheels/hooks/useForecastModelChoices.ts +138 -0
- package/src/movethewheels/pages/AnalyticsPage.tsx +7 -2
- package/src/operations/wspace/movethewheels/queries/forecast.graphql +22 -1
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { Sigma as e } from "../node_modules/lucide-react/dist/esm/icons/sigma.js";
|
|
2
|
+
import { Badge as t, Card as n, CardContent as r, CardDescription as i, CardHeader as a, CardTitle as o, Skeleton as s, Table as c, TableBody as l, TableCell as u, TableHead as d, TableHeader as f, TableRow as p, Tabs as m, TabsContent as h, TabsList as g, TabsTrigger as _ } from "./ui.js";
|
|
3
|
+
import { useForecastModelChoices as v } from "../hooks/useForecastModelChoices.js";
|
|
4
|
+
import { useState as y } from "react";
|
|
5
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
6
|
+
//#region src/movethewheels/components/ForecastModelsPanel.tsx
|
|
7
|
+
var S = (e, t) => {
|
|
8
|
+
switch (e) {
|
|
9
|
+
case "HOLT_LINEAR": return "Holt (trend)";
|
|
10
|
+
case "HOLT_WINTERS": return t ? `Holt-Winters (${t}-week cycle)` : "Holt-Winters (seasonal)";
|
|
11
|
+
case "HEURISTIC_MOVING_AVG":
|
|
12
|
+
case "HEURISTIC_GROWTH_RATE": return "Moving average";
|
|
13
|
+
default: return String(e);
|
|
14
|
+
}
|
|
15
|
+
}, C = (e) => e === null ? "—" : `${Math.round(e * 1e3) / 10}%`, w = (e, t) => e.candidates.find((e) => e.model === t);
|
|
16
|
+
function T() {
|
|
17
|
+
let { laneChoices: t, customerChoices: c, isLoading: l, error: u, refetch: d } = v(5), [f, p] = y("LANE");
|
|
18
|
+
return /* @__PURE__ */ x(n, {
|
|
19
|
+
"data-testid": "forecast-models-panel",
|
|
20
|
+
children: [/* @__PURE__ */ x(a, { children: [/* @__PURE__ */ x(o, {
|
|
21
|
+
className: "flex items-center gap-2",
|
|
22
|
+
children: [/* @__PURE__ */ b(e, {
|
|
23
|
+
size: 18,
|
|
24
|
+
"aria-hidden": "true"
|
|
25
|
+
}), "Forecast models"]
|
|
26
|
+
}), /* @__PURE__ */ b(i, { children: "Lanes and customers with 26 closed weeks of history are back-tested on their last 8 closed weeks. The model with the lowest error (MAPE) produces the forecast: the moving-average heuristic, Holt (trend) or Holt-Winters (seasonal). Shorter histories use the moving average." })] }), /* @__PURE__ */ b(r, { children: u && !l ? /* @__PURE__ */ x("div", {
|
|
27
|
+
className: "space-y-2 text-sm",
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ b("p", {
|
|
30
|
+
className: "text-status-error-text font-medium",
|
|
31
|
+
children: "Couldn't load forecast models"
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ b("p", {
|
|
34
|
+
className: "text-text-secondary",
|
|
35
|
+
children: u.message
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ b("button", {
|
|
38
|
+
type: "button",
|
|
39
|
+
onClick: d,
|
|
40
|
+
className: "font-medium text-primary hover:underline",
|
|
41
|
+
children: "Retry"
|
|
42
|
+
})
|
|
43
|
+
]
|
|
44
|
+
}) : l ? /* @__PURE__ */ x("div", {
|
|
45
|
+
className: "space-y-3",
|
|
46
|
+
children: [/* @__PURE__ */ b(s, { className: "h-10 w-full" }), /* @__PURE__ */ b(s, { className: "h-10 w-full" })]
|
|
47
|
+
}) : /* @__PURE__ */ x(m, {
|
|
48
|
+
value: f,
|
|
49
|
+
onValueChange: (e) => p(e),
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ x(g, { children: [/* @__PURE__ */ b(_, {
|
|
52
|
+
value: "LANE",
|
|
53
|
+
children: "Lanes"
|
|
54
|
+
}), /* @__PURE__ */ b(_, {
|
|
55
|
+
value: "CUSTOMER",
|
|
56
|
+
children: "Customers"
|
|
57
|
+
})] }),
|
|
58
|
+
/* @__PURE__ */ b(h, {
|
|
59
|
+
value: "LANE",
|
|
60
|
+
children: /* @__PURE__ */ b(E, {
|
|
61
|
+
choices: t,
|
|
62
|
+
nameHeader: "Lane"
|
|
63
|
+
})
|
|
64
|
+
}),
|
|
65
|
+
/* @__PURE__ */ b(h, {
|
|
66
|
+
value: "CUSTOMER",
|
|
67
|
+
children: /* @__PURE__ */ b(E, {
|
|
68
|
+
choices: c,
|
|
69
|
+
nameHeader: "Customer"
|
|
70
|
+
})
|
|
71
|
+
})
|
|
72
|
+
]
|
|
73
|
+
}) })]
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function E({ choices: e, nameHeader: n }) {
|
|
77
|
+
return e.length === 0 ? /* @__PURE__ */ b("p", {
|
|
78
|
+
className: "py-4 text-sm text-text-secondary",
|
|
79
|
+
children: "No forecasts yet. Model choices appear after the first forecast recalculation."
|
|
80
|
+
}) : /* @__PURE__ */ b("div", {
|
|
81
|
+
className: "overflow-x-auto",
|
|
82
|
+
children: /* @__PURE__ */ x(c, { children: [/* @__PURE__ */ b(f, { children: /* @__PURE__ */ x(p, { children: [
|
|
83
|
+
/* @__PURE__ */ b(d, { children: n }),
|
|
84
|
+
/* @__PURE__ */ b(d, {
|
|
85
|
+
className: "text-right",
|
|
86
|
+
children: "History"
|
|
87
|
+
}),
|
|
88
|
+
/* @__PURE__ */ b(d, { children: "Model" }),
|
|
89
|
+
/* @__PURE__ */ b(d, {
|
|
90
|
+
className: "text-right",
|
|
91
|
+
children: "Model error"
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ b(d, {
|
|
94
|
+
className: "text-right",
|
|
95
|
+
children: "Moving-average error"
|
|
96
|
+
})
|
|
97
|
+
] }) }), /* @__PURE__ */ b(l, { children: e.map((e) => {
|
|
98
|
+
let n = e.candidates.find((e) => e.selected), r = w(e, "HEURISTIC_MOVING_AVG");
|
|
99
|
+
return /* @__PURE__ */ x(p, { children: [
|
|
100
|
+
/* @__PURE__ */ x(u, {
|
|
101
|
+
className: "max-w-[16rem]",
|
|
102
|
+
children: [/* @__PURE__ */ b("p", {
|
|
103
|
+
className: "truncate font-medium",
|
|
104
|
+
title: e.scopeLabel,
|
|
105
|
+
children: e.scopeLabel
|
|
106
|
+
}), /* @__PURE__ */ b("p", {
|
|
107
|
+
className: "text-xs text-text-secondary whitespace-normal",
|
|
108
|
+
children: e.reason
|
|
109
|
+
})]
|
|
110
|
+
}),
|
|
111
|
+
/* @__PURE__ */ x(u, {
|
|
112
|
+
className: "text-right whitespace-nowrap",
|
|
113
|
+
children: [e.historyWeeks, " wk"]
|
|
114
|
+
}),
|
|
115
|
+
/* @__PURE__ */ b(u, { children: /* @__PURE__ */ b(t, {
|
|
116
|
+
variant: e.selectedModel === "HEURISTIC_MOVING_AVG" ? "outline" : "default",
|
|
117
|
+
children: S(e.selectedModel, n?.seasonLengthWeeks)
|
|
118
|
+
}) }),
|
|
119
|
+
/* @__PURE__ */ b(u, {
|
|
120
|
+
className: "text-right",
|
|
121
|
+
children: C(n?.mape ?? null)
|
|
122
|
+
}),
|
|
123
|
+
/* @__PURE__ */ b(u, {
|
|
124
|
+
className: "text-right",
|
|
125
|
+
children: C(r?.mape ?? null)
|
|
126
|
+
})
|
|
127
|
+
] }, `${e.scopeType}-${e.scopeKey}`);
|
|
128
|
+
}) })] })
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
//#endregion
|
|
132
|
+
export { T as ForecastModelsPanel, S as forecastModelLabel };
|
|
@@ -4,136 +4,141 @@ import { TrendingDown as n } from "../node_modules/lucide-react/dist/esm/icons/t
|
|
|
4
4
|
import { TrendingUp as r } from "../node_modules/lucide-react/dist/esm/icons/trending-up.js";
|
|
5
5
|
import { formatCurrency as i } from "../utils/formatters.js";
|
|
6
6
|
import { Card as a, CardContent as o, CardHeader as s, CardTitle as c, Skeleton as l } from "./ui.js";
|
|
7
|
-
import {
|
|
7
|
+
import { forecastModelLabel as u } from "./ForecastModelsPanel.js";
|
|
8
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
8
9
|
//#region src/movethewheels/components/UpcomingDemandPanel.tsx
|
|
9
|
-
var
|
|
10
|
+
var p = (e) => {
|
|
10
11
|
let t = new Date(e);
|
|
11
12
|
return Number.isNaN(t.getTime()) ? e : t.toLocaleDateString(void 0, {
|
|
12
13
|
month: "short",
|
|
13
14
|
day: "numeric"
|
|
14
15
|
});
|
|
15
|
-
},
|
|
16
|
+
}, m = (e, t) => e.filter((e) => e.periodStart === t && e.confidence > 0), h = (e, t) => [...m(e, t)].sort((e, t) => t.predictedVolume - e.predictedVolume || t.predictedRevenue - e.predictedRevenue).slice(0, 3), g = (e, t) => [...m(e, t)].sort((e, t) => t.predictedRevenue - e.predictedRevenue).slice(0, 3), _ = (e, t) => m(e, t).reduce((e, t) => e + t.predictedVolume, 0), v = (e, t = /* @__PURE__ */ new Date()) => {
|
|
16
17
|
let n = [...new Set(e.map((e) => e.periodStart))].sort((e, t) => new Date(e).getTime() - new Date(t).getTime());
|
|
17
18
|
return n.find((e) => new Date(e).getTime() > t.getTime()) ?? n.at(-1) ?? null;
|
|
18
|
-
},
|
|
19
|
-
function
|
|
20
|
-
if (
|
|
19
|
+
}, y = (e, t) => e === 0 && t > 0 ? "<1 job" : e === 1 ? "1 job" : `${e} jobs`, b = (e) => e <= 0 ? "Not enough history" : `${Math.round(e * 100)}% confidence`;
|
|
20
|
+
function x({ laneForecast: n, customerForecast: r, laneVariance: i, customerVariance: y, isLoading: x, error: w, onRetry: T }) {
|
|
21
|
+
if (w && !x) return /* @__PURE__ */ d(a, {
|
|
21
22
|
className: "border-status-error-border",
|
|
22
|
-
children: /* @__PURE__ */
|
|
23
|
+
children: /* @__PURE__ */ f(o, {
|
|
23
24
|
className: "p-6 text-center space-y-3",
|
|
24
25
|
children: [
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ d("p", {
|
|
26
27
|
className: "text-status-error-text font-medium",
|
|
27
28
|
children: "Couldn't load demand forecast"
|
|
28
29
|
}),
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ d("p", {
|
|
30
31
|
className: "text-sm text-text-secondary",
|
|
31
|
-
children:
|
|
32
|
+
children: w.message
|
|
32
33
|
}),
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ d("button", {
|
|
34
35
|
type: "button",
|
|
35
|
-
onClick:
|
|
36
|
+
onClick: T,
|
|
36
37
|
className: "text-sm font-medium text-primary hover:underline",
|
|
37
38
|
children: "Retry"
|
|
38
39
|
})
|
|
39
40
|
]
|
|
40
41
|
})
|
|
41
42
|
});
|
|
42
|
-
if (
|
|
43
|
+
if (x) return /* @__PURE__ */ f(a, { children: [/* @__PURE__ */ d(s, { children: /* @__PURE__ */ d(c, { children: "Upcoming demand" }) }), /* @__PURE__ */ f(o, {
|
|
43
44
|
className: "space-y-4",
|
|
44
45
|
children: [
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ d(l, { className: "h-16 w-full" }),
|
|
47
|
+
/* @__PURE__ */ d(l, { className: "h-16 w-full" }),
|
|
48
|
+
/* @__PURE__ */ d(l, { className: "h-16 w-full" })
|
|
48
49
|
]
|
|
49
50
|
})] });
|
|
50
|
-
let
|
|
51
|
-
if (!
|
|
51
|
+
let E = v([...n, ...r]), D = E !== null && (m(n, E).length > 0 || m(r, E).length > 0);
|
|
52
|
+
if (!E || !D) return /* @__PURE__ */ f(a, { children: [/* @__PURE__ */ d(s, { children: /* @__PURE__ */ f(c, {
|
|
52
53
|
className: "flex items-center gap-2",
|
|
53
|
-
children: [/* @__PURE__ */
|
|
54
|
+
children: [/* @__PURE__ */ d(e, {
|
|
54
55
|
size: 18,
|
|
55
56
|
"aria-hidden": "true"
|
|
56
57
|
}), "Upcoming demand"]
|
|
57
|
-
}) }), /* @__PURE__ */
|
|
58
|
+
}) }), /* @__PURE__ */ d(o, { children: /* @__PURE__ */ f("div", {
|
|
58
59
|
className: "flex items-start gap-2 rounded-lg border border-border/60 bg-muted/40 p-4 text-sm text-text-secondary",
|
|
59
|
-
children: [/* @__PURE__ */
|
|
60
|
+
children: [/* @__PURE__ */ d(t, {
|
|
60
61
|
size: 16,
|
|
61
62
|
"aria-hidden": "true",
|
|
62
63
|
className: "mt-0.5 shrink-0"
|
|
63
|
-
}), /* @__PURE__ */
|
|
64
|
+
}), /* @__PURE__ */ d("p", { children: "Not enough history to forecast next week yet. Once a lane or customer has at least 4 weeks of delivery jobs, this panel will surface its demand." })]
|
|
64
65
|
}) })] });
|
|
65
|
-
let
|
|
66
|
-
return /* @__PURE__ */
|
|
66
|
+
let O = h(n, E), k = g(n, E), A = h(r, E), j = m(n, E).length > 0, M = _(j ? n : r, E), N = j ? "Predicted jobs (all lanes)" : "Predicted jobs (all customers)", P = j ? O[0] : A[0], F = [...i, ...y].sort((e, t) => Math.abs(t.volumeVariance) - Math.abs(e.volumeVariance)).slice(0, 3);
|
|
67
|
+
return /* @__PURE__ */ f(a, { children: [/* @__PURE__ */ d(s, { children: /* @__PURE__ */ f(c, {
|
|
67
68
|
className: "flex items-center gap-2",
|
|
68
69
|
children: [
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ d(e, {
|
|
70
71
|
size: 18,
|
|
71
72
|
"aria-hidden": "true"
|
|
72
73
|
}),
|
|
73
74
|
"Upcoming demand — week of ",
|
|
74
|
-
|
|
75
|
+
p(E)
|
|
75
76
|
]
|
|
76
|
-
}) }), /* @__PURE__ */
|
|
77
|
+
}) }), /* @__PURE__ */ f(o, {
|
|
77
78
|
className: "space-y-4",
|
|
78
|
-
children: [/* @__PURE__ */
|
|
79
|
+
children: [/* @__PURE__ */ f("div", {
|
|
79
80
|
className: "flex items-baseline justify-between rounded-lg border border-border/60 bg-muted/40 px-4 py-3",
|
|
80
|
-
children: [/* @__PURE__ */
|
|
81
|
+
children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
|
|
81
82
|
className: "text-xs uppercase tracking-wide text-text-secondary",
|
|
82
|
-
children:
|
|
83
|
-
}), /* @__PURE__ */
|
|
83
|
+
children: N
|
|
84
|
+
}), /* @__PURE__ */ d("p", {
|
|
84
85
|
className: "text-2xl font-bold",
|
|
85
|
-
children:
|
|
86
|
-
})] }), /* @__PURE__ */
|
|
87
|
-
className: "text-xs text-text-secondary",
|
|
88
|
-
children:
|
|
86
|
+
children: M
|
|
87
|
+
})] }), /* @__PURE__ */ f("p", {
|
|
88
|
+
className: "text-xs text-text-secondary text-right",
|
|
89
|
+
children: [P ? b(P.confidence) : "", P ? /* @__PURE__ */ d("span", {
|
|
90
|
+
className: "block",
|
|
91
|
+
"data-testid": "upcoming-demand-model",
|
|
92
|
+
children: u(P.model)
|
|
93
|
+
}) : null]
|
|
89
94
|
})]
|
|
90
|
-
}), /* @__PURE__ */
|
|
95
|
+
}), /* @__PURE__ */ f("div", {
|
|
91
96
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
92
97
|
children: [
|
|
93
|
-
/* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ d(S, {
|
|
94
99
|
title: "Top lanes (volume)",
|
|
95
|
-
rows:
|
|
100
|
+
rows: O
|
|
96
101
|
}),
|
|
97
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ d(S, {
|
|
98
103
|
title: "Top lanes (revenue)",
|
|
99
|
-
rows:
|
|
104
|
+
rows: k
|
|
100
105
|
}),
|
|
101
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ d(S, {
|
|
102
107
|
title: "Top customers (volume)",
|
|
103
|
-
rows:
|
|
108
|
+
rows: A
|
|
104
109
|
}),
|
|
105
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ d(C, { rows: F })
|
|
106
111
|
]
|
|
107
112
|
})]
|
|
108
113
|
})] });
|
|
109
114
|
}
|
|
110
|
-
function
|
|
111
|
-
return t.length === 0 ? /* @__PURE__ */
|
|
115
|
+
function S({ title: e, rows: t }) {
|
|
116
|
+
return t.length === 0 ? /* @__PURE__ */ f("div", {
|
|
112
117
|
className: "rounded-lg border border-border/60 p-4",
|
|
113
|
-
children: [/* @__PURE__ */
|
|
118
|
+
children: [/* @__PURE__ */ d("p", {
|
|
114
119
|
className: "text-sm font-medium mb-2",
|
|
115
120
|
children: e
|
|
116
|
-
}), /* @__PURE__ */
|
|
121
|
+
}), /* @__PURE__ */ d("p", {
|
|
117
122
|
className: "text-xs text-text-secondary",
|
|
118
123
|
children: "No forecasts yet for this week."
|
|
119
124
|
})]
|
|
120
|
-
}) : /* @__PURE__ */
|
|
125
|
+
}) : /* @__PURE__ */ f("div", {
|
|
121
126
|
className: "rounded-lg border border-border/60 p-4",
|
|
122
|
-
children: [/* @__PURE__ */
|
|
127
|
+
children: [/* @__PURE__ */ d("p", {
|
|
123
128
|
className: "text-sm font-medium mb-3",
|
|
124
129
|
children: e
|
|
125
|
-
}), /* @__PURE__ */
|
|
130
|
+
}), /* @__PURE__ */ d("ul", {
|
|
126
131
|
className: "space-y-2",
|
|
127
|
-
children: t.map((e) => /* @__PURE__ */
|
|
132
|
+
children: t.map((e) => /* @__PURE__ */ f("li", {
|
|
128
133
|
className: "flex items-center justify-between text-sm",
|
|
129
|
-
children: [/* @__PURE__ */
|
|
134
|
+
children: [/* @__PURE__ */ d("span", {
|
|
130
135
|
className: "truncate font-medium",
|
|
131
136
|
title: e.scopeLabel,
|
|
132
137
|
children: e.scopeLabel
|
|
133
|
-
}), /* @__PURE__ */
|
|
138
|
+
}), /* @__PURE__ */ f("span", {
|
|
134
139
|
className: "ml-2 shrink-0 text-text-secondary",
|
|
135
140
|
children: [
|
|
136
|
-
|
|
141
|
+
y(e.predictedVolume, e.predictedRevenue),
|
|
137
142
|
" ·",
|
|
138
143
|
" ",
|
|
139
144
|
i(e.predictedRevenue)
|
|
@@ -143,33 +148,33 @@ function x({ title: e, rows: t }) {
|
|
|
143
148
|
})]
|
|
144
149
|
});
|
|
145
150
|
}
|
|
146
|
-
function
|
|
147
|
-
return /* @__PURE__ */
|
|
151
|
+
function C({ rows: e }) {
|
|
152
|
+
return /* @__PURE__ */ f("div", {
|
|
148
153
|
className: "rounded-lg border border-border/60 p-4",
|
|
149
|
-
children: [/* @__PURE__ */
|
|
154
|
+
children: [/* @__PURE__ */ d("p", {
|
|
150
155
|
className: "text-sm font-medium mb-3",
|
|
151
156
|
children: "Recent forecast variance"
|
|
152
|
-
}), e.length === 0 ? /* @__PURE__ */
|
|
157
|
+
}), e.length === 0 ? /* @__PURE__ */ d("p", {
|
|
153
158
|
className: "text-xs text-text-secondary",
|
|
154
159
|
children: "No closed periods to compare yet."
|
|
155
|
-
}) : /* @__PURE__ */
|
|
160
|
+
}) : /* @__PURE__ */ d("ul", {
|
|
156
161
|
className: "space-y-2",
|
|
157
162
|
children: e.map((e) => {
|
|
158
163
|
let t = e.volumeVariance > 0, i = t ? r : n, a = t ? "text-status-success-text" : "text-status-error-text";
|
|
159
|
-
return /* @__PURE__ */
|
|
164
|
+
return /* @__PURE__ */ f("li", {
|
|
160
165
|
className: "flex items-center justify-between text-sm",
|
|
161
|
-
children: [/* @__PURE__ */
|
|
166
|
+
children: [/* @__PURE__ */ f("span", {
|
|
162
167
|
className: "flex items-center gap-2 truncate",
|
|
163
|
-
children: [/* @__PURE__ */
|
|
168
|
+
children: [/* @__PURE__ */ d(i, {
|
|
164
169
|
size: 14,
|
|
165
170
|
className: a,
|
|
166
171
|
"aria-hidden": "true"
|
|
167
|
-
}), /* @__PURE__ */
|
|
172
|
+
}), /* @__PURE__ */ d("span", {
|
|
168
173
|
className: "truncate font-medium",
|
|
169
174
|
title: e.scopeLabel,
|
|
170
175
|
children: e.scopeLabel
|
|
171
176
|
})]
|
|
172
|
-
}), /* @__PURE__ */
|
|
177
|
+
}), /* @__PURE__ */ f("span", {
|
|
173
178
|
className: `ml-2 shrink-0 ${a}`,
|
|
174
179
|
children: [t ? "+" : "", Math.abs(e.volumeVariance) === 1 ? `${e.volumeVariance} job` : `${e.volumeVariance} jobs`]
|
|
175
180
|
})]
|
|
@@ -179,4 +184,4 @@ function S({ rows: e }) {
|
|
|
179
184
|
});
|
|
180
185
|
}
|
|
181
186
|
//#endregion
|
|
182
|
-
export {
|
|
187
|
+
export { x as UpcomingDemandPanel };
|
|
@@ -1149,6 +1149,7 @@ export type GetMovethewheelsDemandForecastByLaneQuery = {
|
|
|
1149
1149
|
actualVolume: number | null;
|
|
1150
1150
|
actualRevenue: number | null;
|
|
1151
1151
|
confidence: number;
|
|
1152
|
+
model: Types.MtwDemandForecastModel;
|
|
1152
1153
|
}>;
|
|
1153
1154
|
};
|
|
1154
1155
|
export type GetMovethewheelsDemandForecastByCustomerQueryVariables = Exact<{
|
|
@@ -1166,6 +1167,7 @@ export type GetMovethewheelsDemandForecastByCustomerQuery = {
|
|
|
1166
1167
|
actualVolume: number | null;
|
|
1167
1168
|
actualRevenue: number | null;
|
|
1168
1169
|
confidence: number;
|
|
1170
|
+
model: Types.MtwDemandForecastModel;
|
|
1169
1171
|
}>;
|
|
1170
1172
|
};
|
|
1171
1173
|
export type GetMovethewheelsDemandForecastVarianceQueryVariables = Exact<{
|
|
@@ -1187,6 +1189,28 @@ export type GetMovethewheelsDemandForecastVarianceQuery = {
|
|
|
1187
1189
|
revenueVariance: number;
|
|
1188
1190
|
}>;
|
|
1189
1191
|
};
|
|
1192
|
+
export type GetMovethewheelsDemandForecastModelChoicesQueryVariables = Exact<{
|
|
1193
|
+
scopeType: Types.DemandForecastScope;
|
|
1194
|
+
limit: number;
|
|
1195
|
+
}>;
|
|
1196
|
+
export type GetMovethewheelsDemandForecastModelChoicesQuery = {
|
|
1197
|
+
demandForecastModelChoices: Array<{
|
|
1198
|
+
scopeType: Types.DemandForecastScope;
|
|
1199
|
+
scopeKey: string;
|
|
1200
|
+
scopeLabel: string;
|
|
1201
|
+
historyWeeks: number;
|
|
1202
|
+
selectedModel: Types.MtwDemandForecastModel;
|
|
1203
|
+
reason: string;
|
|
1204
|
+
evaluatedAt: string;
|
|
1205
|
+
candidates: Array<{
|
|
1206
|
+
model: Types.MtwDemandForecastModel;
|
|
1207
|
+
seasonLengthWeeks: number | null;
|
|
1208
|
+
mape: number | null;
|
|
1209
|
+
holdoutWeeks: number;
|
|
1210
|
+
selected: boolean;
|
|
1211
|
+
}>;
|
|
1212
|
+
}>;
|
|
1213
|
+
};
|
|
1190
1214
|
export type ListInventoryItemsQueryVariables = Exact<{
|
|
1191
1215
|
filter?: Types.InventoryFilterInput | null | undefined;
|
|
1192
1216
|
pagination?: Types.PaginationInput | null | undefined;
|
|
@@ -1510,6 +1534,7 @@ export declare const GetWarehouseDocument: DocumentNode<GetWarehouseQuery, GetWa
|
|
|
1510
1534
|
export declare const GetMovethewheelsDemandForecastByLaneDocument: DocumentNode<GetMovethewheelsDemandForecastByLaneQuery, GetMovethewheelsDemandForecastByLaneQueryVariables>;
|
|
1511
1535
|
export declare const GetMovethewheelsDemandForecastByCustomerDocument: DocumentNode<GetMovethewheelsDemandForecastByCustomerQuery, GetMovethewheelsDemandForecastByCustomerQueryVariables>;
|
|
1512
1536
|
export declare const GetMovethewheelsDemandForecastVarianceDocument: DocumentNode<GetMovethewheelsDemandForecastVarianceQuery, GetMovethewheelsDemandForecastVarianceQueryVariables>;
|
|
1537
|
+
export declare const GetMovethewheelsDemandForecastModelChoicesDocument: DocumentNode<GetMovethewheelsDemandForecastModelChoicesQuery, GetMovethewheelsDemandForecastModelChoicesQueryVariables>;
|
|
1513
1538
|
export declare const ListInventoryItemsDocument: DocumentNode<ListInventoryItemsQuery, ListInventoryItemsQueryVariables>;
|
|
1514
1539
|
export declare const GetInventoryStatsDocument: DocumentNode<GetInventoryStatsQuery, GetInventoryStatsQueryVariables>;
|
|
1515
1540
|
export declare const ListRoutesDocument: DocumentNode<ListRoutesQuery, ListRoutesQueryVariables>;
|