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.

fix(erp): match step cards to tool cards and round first/last cards

sidgaikwadf115b4b6c273
diff --git a/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx b/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx
index 670af24e56..5f5d6167de 100644
--- a/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx
+++ b/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx
@@ -1965,7 +1965,7 @@ function AttributesForm({
)}
{steps.length > 0 && (
- <div className="border bg-card rounded-lg">
+ <div className="border rounded-lg">
<Reorder.Group
axis="y"
values={sortOrder}
@@ -1989,9 +1989,11 @@ function AttributesForm({
typeOptions={typeOptions}
isDisabled={isDisabled}
dragControls={dragControls}
- className={
- index === sortOrder.length - 1 ? "border-none" : ""
- }
+ className={cn(
+ index === 0 && "rounded-t-lg",
+ index === sortOrder.length - 1 &&
+ "rounded-b-lg border-none"
+ )}
configurable={configurable}
rulesByField={rulesByField}
onConfigure={onConfigure}
@@ -2140,7 +2142,7 @@ function AttributesListItem({
rulesByField.has(getFieldKey(`attribute:${id}:maxValue`, operationId)));
return (
- <div className={cn("border-b p-6", className)}>
+ <div className={cn("border-b p-6 bg-card", className)}>
{disclosure.isOpen ? (
<ValidatedForm
action={path.to.methodOperationStep(id)}
@@ -2829,7 +2831,10 @@ function ToolsForm({
key={t.id}
tool={t}
operationId={operationId}
- className={index === tools.length - 1 ? "border-none" : ""}
+ className={cn(
+ index === 0 && "rounded-t-lg",
+ index === tools.length - 1 && "rounded-b-lg border-none"
+ )}
isDisabled={isDisabled}
/>
))}
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
index 9a63868586..5986b4af23 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
@@ -1387,9 +1387,11 @@ function StepsForm({
isDisabled={isDisabled}
dragControls={dragControls}
itemMentions={itemMentions}
- className={
- index === sortOrder.length - 1 ? "border-none" : ""
- }
+ className={cn(
+ index === 0 && "rounded-t-lg",
+ index === sortOrder.length - 1 &&
+ "rounded-b-lg border-none"
+ )}
/>
)}
</DraggableStepItem>
@@ -1526,7 +1528,7 @@ function StepsListItem({
if (!id) return null;
return (
- <div className={cn("border-b p-6", className)}>
+ <div className={cn("border-b p-6 bg-card", className)}>
{disclosure.isOpen ? (
<ValidatedForm
action={path.to.jobOperationStep(id)}
@@ -3242,7 +3244,10 @@ function ToolsForm({
key={t.id}
tool={t}
operationId={operationId}
- className={index === tools.length - 1 ? "border-none" : ""}
+ className={cn(
+ index === 0 && "rounded-t-lg",
+ index === tools.length - 1 && "rounded-b-lg border-none"
+ )}
/>
))}
</div>