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
refactor: rename MES to shop floor
Brad Barbin7ef8492d9906
diff --git a/apps/erp/app/hooks/useModules.tsx b/apps/erp/app/hooks/useModules.tsxindex de8f0b945e..1cd363688e 100644--- a/apps/erp/app/hooks/useModules.tsx+++ b/apps/erp/app/hooks/useModules.tsx@@ -9,6 +9,7 @@ import {LuShield,LuShoppingCart,LuSquareStack,+ LuTvMinimalPlay,LuUsers,LuWrench,} from "react-icons/lu";@@ -20,6 +21,11 @@ export function useModules() {const permissions = usePermissions();const modules: Authenticated<NavItem>[] = [+ {+ name: "Shop Floor",+ to: path.to.external.mes,+ icon: LuTvMinimalPlay,+ },{permission: "sales",name: "Sales",diff --git a/apps/erp/app/routes/x+/_index.tsx b/apps/erp/app/routes/x+/_index.tsxindex b290017745..1e020744db 100644--- a/apps/erp/app/routes/x+/_index.tsx+++ b/apps/erp/app/routes/x+/_index.tsx@@ -3,7 +3,6 @@ import { getLocalTimeZone } from "@internationalized/date";import { useLocale } from "@react-aria/i18n";import { Link } from "@remix-run/react";import { useMemo, type ComponentProps } from "react";-import { LuHardHat } from "react-icons/lu";import { useModules, useUser } from "~/hooks";import type { Authenticated, NavItem } from "~/types";@@ -43,13 +42,6 @@ export default function AppIndexRoute() {.map((module) => (<ModuleCard key={module.name} module={module} />))}- <ModuleCard- module={{- name: "MES",- to: "https://mes.carbonos.dev",- icon: LuHardHat,- }}- /></div></div>);diff --git a/apps/erp/app/utils/path.ts b/apps/erp/app/utils/path.tsindex 15a305c01e..b1aca5f375 100644--- a/apps/erp/app/utils/path.ts+++ b/apps/erp/app/utils/path.ts@@ -5,6 +5,9 @@ const x = "/x"; // from ~/routes/x+ folderconst api = "/api"; // from ~/routes/api+ folderconst file = "/file"; // from ~/routes/file+ folderconst onboarding = "/onboarding"; // from ~/routes/onboarding+ folder+const mes = SUPABASE_URL.includes("localhost")+ ? "http://localhost:3001"+ : "https://mes.carbonos.dev";export const path = {to: {@@ -140,8 +143,8 @@ export const path = {shippingMethods: `${api}/inventory/shipping-methods`,},external: {- mesJobOperation: (id: string) =>- `https://mes.carbonos.dev/x/operation/${id}`,+ mes: mes,+ mesJobOperation: (id: string) => `${mes}/x/operation/${id}`,},file: {cadModel: (id: string) => generatePath(`${file}/model/${id}`),