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.

only editable cells will show the border

aashu6ea914260199
diff --git a/apps/erp/app/components/Grid/components/Cell.tsx b/apps/erp/app/components/Grid/components/Cell.tsx
index 70c98f3e01..9a64fd933c 100644
--- a/apps/erp/app/components/Grid/components/Cell.tsx
+++ b/apps/erp/app/components/Grid/components/Cell.tsx
@@ -55,7 +55,11 @@ const Cell = <T extends object>({
wasEdited && "bg-yellow-100 dark:bg-yellow-900",
!hasEditableTableCellComponent && "bg-muted/50",
hasError && "ring-inset ring-2 ring-red-500",
- isSelected && "!ring-inset !ring-2 !ring-ring",
+ // Only ring editable cells — a ring on a read-only cell wrongly signals
+ // it can be edited.
+ isSelected &&
+ hasEditableTableCellComponent &&
+ "!ring-inset !ring-2 !ring-ring",
isSelected && hasEditableTableCellComponent && "!bg-background"
)}
ref={ref}
diff --git a/apps/erp/app/components/Table/components/Cell.tsx b/apps/erp/app/components/Table/components/Cell.tsx
index eea11eac6c..f102f97a3a 100644
--- a/apps/erp/app/components/Table/components/Cell.tsx
+++ b/apps/erp/app/components/Table/components/Cell.tsx
@@ -69,7 +69,11 @@ const Cell = <T extends object>({
isEditMode && !hasEditableTableCellComponent && "bg-muted/50",
isEditMode && "border-border border-r",
hasError && "ring-inset ring-2 ring-red-500",
- isSelected && "!ring-inset !ring-2 !ring-ring",
+ // Only ring editable cells — a ring on a read-only cell wrongly signals
+ // it can be edited.
+ isSelected &&
+ hasEditableTableCellComponent &&
+ "!ring-inset !ring-2 !ring-ring",
isSelected && hasEditableTableCellComponent && "!bg-background",
"transition-[left,right,box-shadow] duration-200",
isPinned && "bg-card"