Skip to content

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.

refactor: rename MaterialForms to MaterialShapes

Brad Barbinec2c6fe4e94d
diff --git a/apps/erp/app/components/Form/Shape.tsx b/apps/erp/app/components/Form/Shape.tsx
index ea6215dfa2..9d6f469b8b 100644
--- a/apps/erp/app/components/Form/Shape.tsx
+++ b/apps/erp/app/components/Form/Shape.tsx
@@ -5,7 +5,7 @@ import { useFetcher } from "@remix-run/react";
import { useMemo, useRef, useState } from "react";
import { usePermissions } from "~/hooks";
import type { getMaterialFormsList } from "~/modules/items";
-import { MaterialShapeForm } from "~/modules/items/ui/MaterialForms";
+import { MaterialShapeForm } from "~/modules/items/ui/MaterialShapes";
import { path } from "~/utils/path";
import { Enumerable } from "../Enumerable";
diff --git a/apps/erp/app/modules/items/ui/MaterialForms/MaterialShapeForm.tsx b/apps/erp/app/modules/items/ui/MaterialShapes/MaterialShapeForm.tsx
similarity index 97%
rename from apps/erp/app/modules/items/ui/MaterialForms/MaterialShapeForm.tsx
rename to apps/erp/app/modules/items/ui/MaterialShapes/MaterialShapeForm.tsx
index 27bd899e20..b66837f969 100644
--- a/apps/erp/app/modules/items/ui/MaterialForms/MaterialShapeForm.tsx
+++ b/apps/erp/app/modules/items/ui/MaterialShapes/MaterialShapeForm.tsx
@@ -16,7 +16,13 @@ import { useFetcher } from "@remix-run/react";
import type { PostgrestResponse } from "@supabase/supabase-js";
import { useEffect, useState } from "react";
import type { z } from "zod";
-import { CustomFormFields, Hidden, Input, InputControlled, Submit } from "~/components/Form";
+import {
+ CustomFormFields,
+ Hidden,
+ Input,
+ InputControlled,
+ Submit,
+} from "~/components/Form";
import { usePermissions } from "~/hooks";
import { path } from "~/utils/path";
import { materialFormValidator } from "../../items.models";
diff --git a/apps/erp/app/modules/items/ui/MaterialForms/MaterialShapesTable.tsx b/apps/erp/app/modules/items/ui/MaterialShapes/MaterialShapesTable.tsx
similarity index 100%
rename from apps/erp/app/modules/items/ui/MaterialForms/MaterialShapesTable.tsx
rename to apps/erp/app/modules/items/ui/MaterialShapes/MaterialShapesTable.tsx
diff --git a/apps/erp/app/modules/items/ui/MaterialForms/index.ts b/apps/erp/app/modules/items/ui/MaterialShapes/index.ts
similarity index 100%
rename from apps/erp/app/modules/items/ui/MaterialForms/index.ts
rename to apps/erp/app/modules/items/ui/MaterialShapes/index.ts
diff --git a/apps/erp/app/routes/x+/items+/forms.$formId.tsx b/apps/erp/app/routes/x+/items+/forms.$formId.tsx
index 9c378fd569..7424f843a9 100644
--- a/apps/erp/app/routes/x+/items+/forms.$formId.tsx
+++ b/apps/erp/app/routes/x+/items+/forms.$formId.tsx
@@ -10,7 +10,7 @@ import {
materialFormValidator,
upsertMaterialForm,
} from "~/modules/items";
-import { MaterialShapeForm } from "~/modules/items/ui/MaterialForms";
+import { MaterialShapeForm } from "~/modules/items/ui/MaterialShapes";
import { getCustomFields, setCustomFields } from "~/utils/form";
import { getParams, path } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/items+/forms.new.tsx b/apps/erp/app/routes/x+/items+/forms.new.tsx
index cd0e8c944b..0ff45edd61 100644
--- a/apps/erp/app/routes/x+/items+/forms.new.tsx
+++ b/apps/erp/app/routes/x+/items+/forms.new.tsx
@@ -6,7 +6,7 @@ import { useNavigate } from "@remix-run/react";
import type { ActionFunctionArgs, LoaderFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
import { materialFormValidator, upsertMaterialForm } from "~/modules/items";
-import { MaterialShapeForm } from "~/modules/items/ui/MaterialForms";
+import { MaterialShapeForm } from "~/modules/items/ui/MaterialShapes";
import { setCustomFields } from "~/utils/form";
import { getParams, path } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/items+/forms.tsx b/apps/erp/app/routes/x+/items+/forms.tsx
index 580f11946f..6500bc8dcd 100644
--- a/apps/erp/app/routes/x+/items+/forms.tsx
+++ b/apps/erp/app/routes/x+/items+/forms.tsx
@@ -6,7 +6,7 @@ import { Outlet, useLoaderData } from "@remix-run/react";
import type { LoaderFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
import { getMaterialForms } from "~/modules/items";
-import { MaterialFormsTable } from "~/modules/items/ui/MaterialForms";
+import { MaterialFormsTable } from "~/modules/items/ui/MaterialShapes";
import type { Handle } from "~/utils/handle";
import { path } from "~/utils/path";
import { getGenericQueryFilters } from "~/utils/query";