@burdenoff/microfe-movethewheels 2026.1107.7 → 2026.1108.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.
- package/dist/components/InventoryCoverPanel.js +401 -0
- package/dist/generated/wspace-types.d.ts +1645 -0
- package/dist/hooks/useInventoryCoverPlan.js +70 -0
- package/dist/movethewheels/components/InventoryCoverPanel.d.ts +24 -0
- package/dist/movethewheels/hooks/useInventoryCoverPlan.d.ts +80 -0
- package/dist/pages/InventoryPage.js +219 -214
- package/package.json +1 -1
- package/src/generated/wspace-types.ts +1861 -0
- package/src/movethewheels/components/InventoryCoverPanel.tsx +449 -0
- package/src/movethewheels/hooks/useInventoryCoverPlan.ts +250 -0
- package/src/movethewheels/pages/InventoryPage.tsx +8 -0
|
@@ -24,6 +24,7 @@ import { MetricCard, MetricGrid, MetricCardSkeleton } from '../components/Metric
|
|
|
24
24
|
import { DataTable, type Column } from '../components/DataTable';
|
|
25
25
|
import { StatusBadge } from '../components/StatusBadge';
|
|
26
26
|
import { Notice, useNotice } from '../components/Notice';
|
|
27
|
+
import { InventoryCoverPanel } from '../components/InventoryCoverPanel';
|
|
27
28
|
import {
|
|
28
29
|
AdjustStockDialog,
|
|
29
30
|
ReceiveStockDialog,
|
|
@@ -135,6 +136,10 @@ export default function InventoryPage() {
|
|
|
135
136
|
limit: pageSize,
|
|
136
137
|
offset: pageIndex * pageSize,
|
|
137
138
|
});
|
|
139
|
+
const coverWarehouses = useMemo(
|
|
140
|
+
() => warehouses.map((warehouse) => ({ id: warehouse.id, name: warehouse.name })),
|
|
141
|
+
[warehouses]
|
|
142
|
+
);
|
|
138
143
|
const { stats, refetch: refetchStats } = useInventoryStats();
|
|
139
144
|
const {
|
|
140
145
|
transactions,
|
|
@@ -454,6 +459,9 @@ export default function InventoryPage() {
|
|
|
454
459
|
</EmphasisPanel>
|
|
455
460
|
)}
|
|
456
461
|
|
|
462
|
+
{/* Inventory planning (BOFF-10926): weeks of cover against forecast outbound demand. */}
|
|
463
|
+
<InventoryCoverPanel warehouses={coverWarehouses} />
|
|
464
|
+
|
|
457
465
|
{/* Stock position + ledger. The table is the per-warehouse stock line;
|
|
458
466
|
the side panel is the real movement history from Query.inventoryTransactions. */}
|
|
459
467
|
<div className="grid grid-cols-1 xl:grid-cols-3 gap-6">
|