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.

style: make steps and parameters more readable

Brad Barbin7d6b7d65cd75
diff --git a/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx b/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx
index 5c9caf2dc8..c5396d50a8 100644
--- a/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx
+++ b/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx
@@ -1716,7 +1716,7 @@ function AttributesForm({
// this is a hack to re-render the editor component when the form is submitted with the default values
>
{!isDisabled && (
- <div className="p-6 border rounded-lg mb-6">
+ <div className="p-6 border bg-card rounded-lg mb-6">
<ValidatedForm
action={path.to.newMethodOperationAttribute}
method="post"
@@ -1830,7 +1830,7 @@ function AttributesForm({
isDisabled={isDisabled || fetcher.state !== "idle"}
isLoading={fetcher.state !== "idle"}
>
- Add Step
+ Save Step
</Submit>
</VStack>
</ValidatedForm>
@@ -1838,7 +1838,7 @@ function AttributesForm({
)}
{attributes.length > 0 && (
- <div className="border rounded-lg">
+ <div className="border bg-card rounded-lg">
{[...attributes]
.sort((a, b) => (a.sortOrder ?? 0) - (b.sortOrder ?? 0))
.map((a, index) => (
@@ -2294,7 +2294,7 @@ function ParametersForm({
return (
<div className="flex flex-col gap-6">
{!isDisabled && (
- <div className="p-6 border rounded-lg">
+ <div className="p-6 border rounded-lg bg-card">
<ValidatedForm
action={path.to.newMethodOperationParameter}
method="post"
@@ -2332,7 +2332,7 @@ function ParametersForm({
)}
{parameters.length > 0 && (
- <div className="border rounded-lg">
+ <div className="border bg-card rounded-lg">
{[...parameters]
.sort((a, b) =>
String(a.id ?? "").localeCompare(String(b.id ?? ""))
@@ -2605,7 +2605,7 @@ function ToolsForm({
isDisabled={isDisabled || fetcher.state !== "idle"}
isLoading={fetcher.state !== "idle"}
>
- Add Tool
+ Save Tool
</Submit>
</VStack>
</ValidatedForm>
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
index 9578101f39..29a240e4cf 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
@@ -1061,7 +1061,7 @@ function AttributesForm({
className="flex flex-col gap-6"
isLoading={fetcher.state !== "idle"}
>
- <div className="p-6 border rounded-lg mb-6">
+ <div className="p-6 border rounded-lg bg-card mb-6">
<ValidatedForm
action={path.to.newJobOperationAttribute}
method="post"
@@ -1174,7 +1174,7 @@ function AttributesForm({
isDisabled={isDisabled || fetcher.state !== "idle"}
isLoading={fetcher.state !== "idle"}
>
- Add Step
+ Save Step
</Submit>
</VStack>
</ValidatedForm>
@@ -1611,7 +1611,7 @@ function ParametersForm({
return (
<div className="flex flex-col gap-6">
- <div className="p-6 border rounded-lg">
+ <div className="p-6 border rounded-lg bg-card">
<ValidatedForm
action={path.to.newJobOperationParameter}
method="post"
@@ -2847,7 +2847,7 @@ function ToolsForm({
return (
<div className="flex flex-col gap-6">
- <div className="p-6 border rounded-lg">
+ <div className="p-6 border rounded-lg bg-card">
<ValidatedForm
action={path.to.newJobOperationTool}
method="post"
@@ -2874,7 +2874,7 @@ function ToolsForm({
isDisabled={isDisabled || fetcher.state !== "idle"}
isLoading={fetcher.state !== "idle"}
>
- Add New
+ Save Tool
</Submit>
</VStack>
</ValidatedForm>
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx
index 6833d6d051..8d8b4a6bdd 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx
@@ -895,7 +895,7 @@ function AttributesForm({
isLoading={fetcher.state !== "idle"}
// this is a hack to re-render the editor component when the form is submitted with the default values
>
- <div className="p-6 border rounded-lg mb-6">
+ <div className="p-6 border rounded-lg bg-card mb-6">
<ValidatedForm
action={path.to.newQuoteOperationAttribute}
method="post"
@@ -1009,14 +1009,14 @@ function AttributesForm({
isDisabled={isDisabled || fetcher.state !== "idle"}
isLoading={fetcher.state !== "idle"}
>
- Add Step
+ Save Step
</Submit>
</VStack>
</ValidatedForm>
</div>
{attributes.length > 0 && (
- <div className="border rounded-lg">
+ <div className="border bg-card rounded-lg">
{[...attributes]
.sort((a, b) => (a.sortOrder ?? 0) - (b.sortOrder ?? 0))
.map((a, index) => (
@@ -1378,7 +1378,7 @@ function ParametersForm({
return (
<div className="flex flex-col gap-6">
- <div className="p-6 border rounded-lg">
+ <div className="p-6 border rounded-lg bg-card">
<ValidatedForm
action={path.to.newQuoteOperationParameter}
method="post"
@@ -1415,7 +1415,7 @@ function ParametersForm({
</div>
{parameters.length > 0 && (
- <div className="border rounded-lg">
+ <div className="border bg-card rounded-lg">
{[...parameters]
.sort((a, b) =>
String(a.id ?? "").localeCompare(String(b.id ?? ""))
@@ -2482,7 +2482,7 @@ function ToolsForm({
isDisabled={isDisabled || fetcher.state !== "idle"}
isLoading={fetcher.state !== "idle"}
>
- Add New
+ Save Tool
</Submit>
</VStack>
</ValidatedForm>