Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
style: handle case where there are 4 progress bars
Brad Barbin83fb4df26290
diff --git a/apps/mes/app/components/JobOperation.tsx b/apps/mes/app/components/JobOperation.tsxindex ff238ca499..b47857fbe9 100644--- a/apps/mes/app/components/JobOperation.tsx+++ b/apps/mes/app/components/JobOperation.tsx@@ -123,13 +123,6 @@ type JobOperationProps = {job: Job;};-const operationsToControlsHeight = {- "3": 194,- "2": 170,- "1": 146,- "0": 122,-};-export const JobOperation = ({backPath,events,@@ -154,13 +147,11 @@ export const JobOperation = ({} = useOperationState(originalOperation, job);const controlsHeight = useMemo(() => {- let operations = 0;+ let operations = 1;if (operation.setupDuration > 0) operations++;if (operation.laborDuration > 0) operations++;if (operation.machineDuration > 0) operations++;- return operationsToControlsHeight[- operations.toString() as keyof typeof operationsToControlsHeight- ];+ return 122 + operations * 24;}, [operation.laborDuration,operation.machineDuration,diff --git a/apps/mes/app/routes/x+/_layout.tsx b/apps/mes/app/routes/x+/_layout.tsxindex 978bea0c81..552f9b70ff 100644--- a/apps/mes/app/routes/x+/_layout.tsx+++ b/apps/mes/app/routes/x+/_layout.tsx@@ -241,7 +241,7 @@ export default function AuthenticatedRoute() {)}</ClientOnly></TooltipProvider>- <Toaster position="top-right" />+ <Toaster position="bottom-left" /></CarbonProvider></div>);