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: overflow text on shipment line

Brad Barbinee4665402181
diff --git a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx
index 8f9b9659eb..3aba844608 100644
--- a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx
+++ b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx
@@ -337,18 +337,22 @@ function ShipmentLineItem({
</div>
<div className="flex flex-1 justify-between items-center w-full">
<HStack spacing={4} className="w-1/2">
- <HStack spacing={4} className="flex-1">
+ <HStack spacing={4}>
<ItemThumbnail
size="md"
thumbnailPath={line.thumbnailPath}
type={(item?.type as "Part") ?? "Part"}
/>
- <VStack spacing={0}>
- <span className="text-sm font-medium">{item?.name}</span>
- <span className="text-xs text-muted-foreground line-clamp-2">
- {item?.readableId}
- </span>
+ <VStack spacing={0} className="max-w-[380px] w-full">
+ <div className="w-full overflow-hidden">
+ <span className="text-sm font-medium truncate block w-full">
+ {item?.name}
+ </span>
+ <span className="text-xs text-muted-foreground truncate block w-full">
+ {item?.readableId}
+ </span>
+ </div>
<div className="mt-2">
<Enumerable
value={
@@ -358,6 +362,10 @@ function ShipmentLineItem({
/>
</div>
</VStack>
+ </HStack>
+ </HStack>
+ <div className="flex flex-grow items-center justify-between gap-2 pl-4 w-1/2">
+ <HStack spacing={4}>
<VStack spacing={1}>
<label className="text-xs text-muted-foreground">Shipped</label>
@@ -398,10 +406,6 @@ function ShipmentLineItem({
/>
</NumberField>
</VStack>
- </HStack>
- </HStack>
- <div className="flex flex-grow items-center justify-between gap-2 pl-4">
- <HStack spacing={4}>
<VStack spacing={1} className="text-center items-center">
<label className="text-xs text-muted-foreground">Ordered</label>
<span className="text-sm py-1.5">{line.orderQuantity || 0}</span>
diff --git a/packages/database/src/types.ts b/packages/database/src/types.ts
index cc20d662ba..6bc1c6f5f7 100644
--- a/packages/database/src/types.ts
+++ b/packages/database/src/types.ts
@@ -36596,6 +36596,7 @@ export type Database = {
parentMaterialId: string
order: number
isRoot: boolean
+ kit: boolean
}[]
}
get_job_methods_by_method_id: {
@@ -36816,6 +36817,7 @@ export type Database = {
parentMaterialId: string
order: number
isRoot: boolean
+ kit: boolean
}[]
}
get_quote_methods_by_method_id: {
diff --git a/packages/database/supabase/functions/lib/types.ts b/packages/database/supabase/functions/lib/types.ts
index cc20d662ba..6bc1c6f5f7 100644
--- a/packages/database/supabase/functions/lib/types.ts
+++ b/packages/database/supabase/functions/lib/types.ts
@@ -36596,6 +36596,7 @@ export type Database = {
parentMaterialId: string
order: number
isRoot: boolean
+ kit: boolean
}[]
}
get_job_methods_by_method_id: {
@@ -36816,6 +36817,7 @@ export type Database = {
parentMaterialId: string
order: number
isRoot: boolean
+ kit: boolean
}[]
}
get_quote_methods_by_method_id: {