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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
fix: BoM / Bill of Process lists grow unbounded with no scrollbar (#1230)
Siddharth Gaikwadf98e9f619183
diff --git a/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx b/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsxindex 9fd05b85ee..dc0ff1226a 100644--- a/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx+++ b/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx@@ -19,6 +19,7 @@ import {HStack,IconButton,Label,+ ScrollArea,Tooltip,TooltipContent,TooltipTrigger,@@ -538,14 +539,16 @@ const BillOfMaterial = ({{isProductionRevision && (<ReleaseLockAlert isLocked={isReleaseLocked} className="mb-4" />)}- <SortableList- isReadOnly={isReadOnly}- items={materials}- onReorder={onReorder}- onToggleItem={onToggleItem}- onRemoveItem={onRemoveItem}- renderItem={renderListItem}- />+ <ScrollArea type="auto" className="max-h-[60dvh]">+ <SortableList+ isReadOnly={isReadOnly}+ items={materials}+ onReorder={onReorder}+ onToggleItem={onToggleItem}+ onRemoveItem={onRemoveItem}+ renderItem={renderListItem}+ />+ </ScrollArea></CardContent>{configuratorDisclosure.isOpen && configuration && (<ConfigurationEditordiff --git a/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx b/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsxindex 9bf90bca28..207f75df62 100644--- a/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx+++ b/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx@@ -24,6 +24,7 @@ import {IconButton,Label,Loading,+ ScrollArea,ToggleGroup,ToggleGroupItem,Tooltip,@@ -882,14 +883,16 @@ const BillOfProcess = ({{isProductionRevision && (<ReleaseLockAlert isLocked={isReleaseLocked} className="mb-4" />)}- <SortableList- isReadOnly={isReadOnly}- items={items}- onReorder={onReorder}- onToggleItem={onToggleItem}- onRemoveItem={onRemoveItem}- renderItem={renderListItem}- />+ <ScrollArea type="auto" className="max-h-[60dvh]">+ <SortableList+ isReadOnly={isReadOnly}+ items={items}+ onReorder={onReorder}+ onToggleItem={onToggleItem}+ onRemoveItem={onRemoveItem}+ renderItem={renderListItem}+ />+ </ScrollArea></CardContent>{configuratorDisclosure.isOpen && configuration && (<ConfigurationEditordiff --git a/apps/erp/app/modules/production/ui/Jobs/JobBillOfMaterial.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBillOfMaterial.tsxindex b4cd7fc842..2831284672 100644--- a/apps/erp/app/modules/production/ui/Jobs/JobBillOfMaterial.tsx+++ b/apps/erp/app/modules/production/ui/Jobs/JobBillOfMaterial.tsx@@ -18,6 +18,7 @@ import {HStack,IconButton,Label,+ ScrollArea,Tooltip,TooltipContent,TooltipTrigger,@@ -564,13 +565,15 @@ const JobBillOfMaterial = ({</CardAction></HStack><CardContent>- <SortableList- items={items}- onReorder={onReorder}- onToggleItem={onToggleItem}- onRemoveItem={onRemoveItem}- renderItem={renderListItem}- />+ <ScrollArea type="auto" className="max-h-[60dvh]">+ <SortableList+ items={items}+ onReorder={onReorder}+ onToggleItem={onToggleItem}+ onRemoveItem={onRemoveItem}+ renderItem={renderListItem}+ />+ </ScrollArea></CardContent></Card>);diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsxindex 39e1c5a83b..5b311dcad8 100644--- a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx+++ b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx@@ -1072,13 +1072,15 @@ const JobBillOfProcess = ({</CardAction></HStack><CardContent>- <SortableList- items={items}- onReorder={onReorder}- onToggleItem={onToggleItem}- onRemoveItem={onRemoveItem}- renderItem={renderListItem}- />+ <ScrollArea type="auto" className="max-h-[60dvh]">+ <SortableList+ items={items}+ onReorder={onReorder}+ onToggleItem={onToggleItem}+ onRemoveItem={onRemoveItem}+ renderItem={renderListItem}+ />+ </ScrollArea></CardContent></Card>);diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsxindex 33b1825b4b..e17db3f600 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsx@@ -19,6 +19,7 @@ import {HStack,IconButton,Label,+ ScrollArea,Tooltip,TooltipContent,TooltipTrigger,@@ -541,13 +542,15 @@ const QuoteBillOfMaterial = ({</CardAction></HStack><CardContent>- <SortableList- items={items}- onReorder={onReorder}- onToggleItem={onToggleItem}- onRemoveItem={onRemoveItem}- renderItem={renderListItem}- />+ <ScrollArea type="auto" className="max-h-[60dvh]">+ <SortableList+ items={items}+ onReorder={onReorder}+ onToggleItem={onToggleItem}+ onRemoveItem={onRemoveItem}+ renderItem={renderListItem}+ />+ </ScrollArea></CardContent></Card>);diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsxindex e420827ff7..498b6895eb 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx@@ -24,6 +24,7 @@ import {IconButton,Label,Loading,+ ScrollArea,ToggleGroup,ToggleGroupItem,Tooltip,@@ -830,13 +831,15 @@ const QuoteBillOfProcess = ({</CardAction></HStack><CardContent>- <SortableList- items={items}- onReorder={onReorder}- onToggleItem={onToggleItem}- onRemoveItem={onRemoveItem}- renderItem={renderListItem}- />+ <ScrollArea type="auto" className="max-h-[60dvh]">+ <SortableList+ items={items}+ onReorder={onReorder}+ onToggleItem={onToggleItem}+ onRemoveItem={onRemoveItem}+ renderItem={renderListItem}+ />+ </ScrollArea></CardContent></Card>);diff --git a/apps/erp/app/routes/x+/job+/$jobId.details.tsx b/apps/erp/app/routes/x+/job+/$jobId.details.tsxindex d3addf51d6..b013d0497d 100644--- a/apps/erp/app/routes/x+/job+/$jobId.details.tsx+++ b/apps/erp/app/routes/x+/job+/$jobId.details.tsx@@ -242,7 +242,7 @@ export default function JobDetailsRoute() {const methodId = makeMethod?.id;return (- <div className="h-full w-full items-start overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent">+ <div className="h-full w-full items-start overflow-y-auto scrollbar-hide"><VStack spacing={2} className="p-2"><JobMakeMethodTools makeMethod={makeMethod ?? undefined} />diff --git a/apps/erp/app/routes/x+/job+/$jobId.make.$methodId.tsx b/apps/erp/app/routes/x+/job+/$jobId.make.$methodId.tsxindex 94530ee0d8..e88c93e44e 100644--- a/apps/erp/app/routes/x+/job+/$jobId.make.$methodId.tsx+++ b/apps/erp/app/routes/x+/job+/$jobId.make.$methodId.tsx@@ -140,7 +140,7 @@ export default function JobMakeMethodRoute() {});return (- <div className="h-full w-full items-start overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent">+ <div className="h-full w-full items-start overflow-y-auto scrollbar-hide"><VStack spacing={2} className="p-2"><JobMakeMethodTools makeMethod={makeMethod} />diff --git a/apps/erp/app/routes/x+/part+/$itemId.tsx b/apps/erp/app/routes/x+/part+/$itemId.tsxindex 18e25b8aac..fb507d903e 100644--- a/apps/erp/app/routes/x+/part+/$itemId.tsx+++ b/apps/erp/app/routes/x+/part+/$itemId.tsx@@ -574,7 +574,7 @@ export default function PartRoute() {</div>}content={- <div className="h-[calc(100dvh-99px)] overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent w-full">+ <div className="h-[calc(100dvh-99px)] overflow-y-auto scrollbar-hide w-full"><Outlet /></div>}diff --git a/apps/erp/app/routes/x+/quote+/$quoteId.tsx b/apps/erp/app/routes/x+/quote+/$quoteId.tsxindex bcf62ace39..49d271e750 100644--- a/apps/erp/app/routes/x+/quote+/$quoteId.tsx+++ b/apps/erp/app/routes/x+/quote+/$quoteId.tsx@@ -246,7 +246,7 @@ export default function QuoteRoute() {<ResizablePanelsexplorer={<QuoteExplorer methods={methods} />}content={- <div className="h-[calc(100dvh-99px)] overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent w-full">+ <div className="h-[calc(100dvh-99px)] overflow-y-auto scrollbar-hide w-full"><VStack spacing={2} className="p-2"><Outlet /></VStack>diff --git a/apps/erp/app/routes/x+/service+/$itemId.tsx b/apps/erp/app/routes/x+/service+/$itemId.tsxindex 8c8fbbaa75..a8039abf34 100644--- a/apps/erp/app/routes/x+/service+/$itemId.tsx+++ b/apps/erp/app/routes/x+/service+/$itemId.tsx@@ -321,7 +321,7 @@ export default function ServiceRoute() {</div>}content={- <div className="h-[calc(100dvh-99px)] overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent w-full">+ <div className="h-[calc(100dvh-99px)] overflow-y-auto scrollbar-hide w-full"><Outlet /></div>}diff --git a/apps/erp/app/routes/x+/tool+/$itemId.tsx b/apps/erp/app/routes/x+/tool+/$itemId.tsxindex 44e81cdbe8..eaa4e27eaa 100644--- a/apps/erp/app/routes/x+/tool+/$itemId.tsx+++ b/apps/erp/app/routes/x+/tool+/$itemId.tsx@@ -540,7 +540,7 @@ export default function ToolRoute() {</div>}content={- <div className="h-[calc(100dvh-99px)] overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent w-full">+ <div className="h-[calc(100dvh-99px)] overflow-y-auto scrollbar-hide w-full"><Outlet /></div>}