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.

feat(erp): enable BOM-only dropdown hover reveal and content-aware width

Sid Gaikwadb6facede9991
diff --git a/apps/erp/app/components/Form/Item.tsx b/apps/erp/app/components/Form/Item.tsx
index 3a5a87f5e7..d13ee60e42 100644
--- a/apps/erp/app/components/Form/Item.tsx
+++ b/apps/erp/app/components/Form/Item.tsx
@@ -42,6 +42,8 @@ import { MethodItemTypeIcon } from "../Icons";
type ItemSelectProps = Omit<ComboboxProps, "options" | "type" | "inline"> & {
blacklist?: string[];
+ growDropdownToContent?: boolean;
+ showHoverTitle?: boolean;
includeInactive?: boolean;
inline?: boolean;
isConfigured?: boolean;
@@ -220,6 +222,8 @@ const Item = ({
ref={triggerRef}
options={options}
{...props}
+ growDropdownToContent={props.growDropdownToContent}
+ showHoverTitle={props.showHoverTitle}
inline={props.inline ? ItemPreview : undefined}
value={value?.replace(/"/g, '\\"')}
onChange={(newValue) => {
diff --git a/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx b/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx
index 4f4940257b..e1de6a705a 100644
--- a/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx
+++ b/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx
@@ -760,6 +760,8 @@ function MaterialForm({
<div className="grid w-full gap-x-8 gap-y-4 grid-cols-1 lg:grid-cols-3">
<Item
blacklist={[params.itemId!]}
+ growDropdownToContent
+ showHoverTitle
name="itemId"
label={itemType}
includeInactive
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBillOfMaterial.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBillOfMaterial.tsx
index aec92e8f42..4e24d339a4 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobBillOfMaterial.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobBillOfMaterial.tsx
@@ -834,6 +834,8 @@ function MaterialForm({
<div className="grid w-full gap-x-8 gap-y-4 grid-cols-1 lg:grid-cols-3">
<Item
blacklist={[params.itemId!]}
+ growDropdownToContent
+ showHoverTitle
isReadOnly={isDisabled}
name="itemId"
label={itemType}
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsx
index ad34ebd4fe..28f430b7ec 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsx
@@ -841,6 +841,8 @@ function MaterialForm({
<div className="grid w-full gap-x-8 gap-y-4 grid-cols-1 lg:grid-cols-3">
<Item
blacklist={[params.itemId!]}
+ growDropdownToContent
+ showHoverTitle
isReadOnly={isDisabled}
name="itemId"
label={itemType}