Add production execution workflow

This commit is contained in:
Cauê Faleiros
2026-08-25 10:44:39 -03:00
parent 713cc4a9fc
commit a226e6d9f4
8 changed files with 232 additions and 24 deletions

View File

@@ -291,7 +291,7 @@ const SuppliesHub = () => {
]);
if (!isMounted) return;
setSummary(supplySummary);
setProductionCounts({ open: productionSummary.counts.open || 0, inProgress: productionSummary.counts.in_progress || 0 });
setProductionCounts({ open: productionSummary.counts.open || 0, inProgress: (productionSummary.counts.cutting || 0) + (productionSummary.counts.sewing || 0) + (productionSummary.counts.review || 0) });
};
void loadHub();
return () => { isMounted = false; };