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(erp): show the full line description on hover when it is truncated
sidgaikwad33f84729ba20
diff --git a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceSummary.tsx b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceSummary.tsxindex a6519b1fb1..36a467fd2d 100644--- a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceSummary.tsx+++ b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceSummary.tsx@@ -12,6 +12,7 @@ import {Tbody,Td,Tr,+ TruncatedTooltipText,VStack} from "@carbon/react";import { getItemReadableId } from "@carbon/utils";@@ -82,6 +83,12 @@ const LineItems = ({: isFixedAsset? line.assetReadableId || "Fixed Asset": getItemReadableId(items, line.itemId);+ const lineDescription = isGlAccount+ ? (accounts.find((a) => a.id === line.accountId)?.name ??+ "Indirect Expense")+ : isFixedAsset+ ? line.description || "Fixed Asset"+ : line.description;const lineTotal = (line.unitPrice ?? 0) * (line.quantity ?? 0);const supplierLineTotal =(line.supplierUnitPrice ?? 0) * (line.quantity ?? 0);@@ -144,14 +151,12 @@ const LineItems = ({</Link></Button></HStack>- <span className="text-muted-foreground text-sm truncate">- {isGlAccount- ? (accounts.find((a) => a.id === line.accountId)- ?.name ?? "Indirect Expense")- : isFixedAsset- ? line.description || "Fixed Asset"- : line.description}- </span>+ <TruncatedTooltipText+ className="text-muted-foreground text-sm truncate"+ tooltip={lineDescription}+ >+ {lineDescription}+ </TruncatedTooltipText></VStack><VStackspacing={2}diff --git a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceSummary.tsx b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceSummary.tsxindex 3ceda1eb88..d91680ff78 100644--- a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceSummary.tsx+++ b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceSummary.tsx@@ -12,6 +12,7 @@ import {Tbody,Td,Tr,+ TruncatedTooltipText,VStack} from "@carbon/react";import { getItemReadableId } from "@carbon/utils";@@ -149,9 +150,12 @@ const LineItems = ({</Link></Button></HStack>- <span className="text-muted-foreground text-sm truncate">+ <TruncatedTooltipText+ className="text-muted-foreground text-sm truncate"+ tooltip={line.description}+ >{line.description}- </span>+ </TruncatedTooltipText></VStack><VStackspacing={2}diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderSummary.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderSummary.tsxindex fa3344682c..a80c855077 100644--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderSummary.tsx+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderSummary.tsx@@ -12,6 +12,7 @@ import {Tbody,Td,Tr,+ TruncatedTooltipText,VStack} from "@carbon/react";import { getItemReadableId } from "@carbon/utils";@@ -86,6 +87,12 @@ const LineItems = ({: isFixedAsset? line.assetReadableId || "Fixed Asset": getItemReadableId(items, line.itemId);+ const lineDescription = isGlAccount+ ? (accounts.find((a) => a.id === line.accountId)?.name ??+ "Indirect Expense")+ : isFixedAsset+ ? line.description || "Fixed Asset"+ : line.description;const lineTotal = (line.unitPrice ?? 0) * (line.purchaseQuantity ?? 0);const supplierLineTotal =(line.supplierUnitPrice ?? 0) * (line.purchaseQuantity ?? 0);@@ -145,14 +152,12 @@ const LineItems = ({</Link></Button></HStack>- <span className="text-muted-foreground text-sm truncate">- {isGlAccount- ? (accounts.find((a) => a.id === line.accountId)- ?.name ?? "Indirect Expense")- : isFixedAsset- ? line.description || "Fixed Asset"- : line.description}- </span>+ <TruncatedTooltipText+ className="text-muted-foreground text-sm truncate"+ tooltip={lineDescription}+ >+ {lineDescription}+ </TruncatedTooltipText></VStack><VStackspacing={2}diff --git a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteCompareDrawer.tsx b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteCompareDrawer.tsxindex a6cd91392d..be3f7c8718 100644--- a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteCompareDrawer.tsx+++ b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteCompareDrawer.tsx@@ -26,6 +26,7 @@ import {Th,Thead,Tr,+ TruncatedTooltipText,VStack} from "@carbon/react";import { pluralize } from "@carbon/utils";@@ -705,9 +706,12 @@ const LineSelectionView = ({the card edge. min-w-0 is what lets truncate bite. */}<VStack spacing={0} className="flex-1 min-w-0"><Heading className="min-w-0">{line.itemReadableId}</Heading>- <span className="text-muted-foreground text-base truncate">+ <TruncatedTooltipText+ className="text-muted-foreground text-base truncate"+ tooltip={line.description}+ >{line.description}- </span>+ </TruncatedTooltipText></VStack></HStack>diff --git a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteSummary.tsx b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteSummary.tsxindex 3eb94cbc83..04bad53f57 100644--- a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteSummary.tsx+++ b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteSummary.tsx@@ -13,6 +13,7 @@ import {Th,Thead,Tr,+ TruncatedTooltipText,VStack} from "@carbon/react";import { getItemReadableId } from "@carbon/utils";@@ -96,6 +97,10 @@ const LineItems = ({const itemReadableId = isGlAccount? line.description || "Indirect Expense": getItemReadableId(items, line.itemId);+ const lineDescription = isGlAccount+ ? (accounts.find((a) => a.id === line.accountId)?.name ??+ "G/L Account")+ : line.description;if (!line || !prices || !line.id) {return null;}@@ -151,12 +156,12 @@ const LineItems = ({</motion.div></HStack></div>- <span className="text-muted-foreground text-sm truncate">- {isGlAccount- ? (accounts.find((a) => a.id === line.accountId)?.name ??- "G/L Account")- : line.description}- </span>+ <TruncatedTooltipText+ className="text-muted-foreground text-sm truncate"+ tooltip={lineDescription}+ >+ {lineDescription}+ </TruncatedTooltipText></div></VStack></HStack>diff --git a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteToOrderDrawer.tsx b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteToOrderDrawer.tsxindex 42c453d367..b7fb882853 100644--- a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteToOrderDrawer.tsx+++ b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteToOrderDrawer.tsx@@ -22,6 +22,7 @@ import {TooltipContent,TooltipTrigger,Tr,+ TruncatedTooltipText,VStack} from "@carbon/react";import {@@ -204,6 +205,10 @@ const LinePricingForm = ({const lineHeading = isGlAccount? line.description || "Indirect Expense": line.itemReadableId;+ const lineDescription = isGlAccount+ ? (accounts.find((a) => a.id === line.accountId)?.name ??+ "G/L Account")+ : line.description;return (<VStack key={line.id}>@@ -226,12 +231,12 @@ const LinePricingForm = ({the card edge. min-w-0 is what lets truncate bite. */}<VStack spacing={0} className="flex-1 min-w-0"><Heading className="min-w-0">{lineHeading}</Heading>- <span className="text-muted-foreground text-base truncate">- {isGlAccount- ? (accounts.find((a) => a.id === line.accountId)?.name ??- "G/L Account")- : line.description}- </span>+ <TruncatedTooltipText+ className="text-muted-foreground text-base truncate"+ tooltip={lineDescription}+ >+ {lineDescription}+ </TruncatedTooltipText></VStack></HStack><LinePricingOptionsdiff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteSummary.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteSummary.tsxindex bee1210328..1281dabe69 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteSummary.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteSummary.tsx@@ -15,6 +15,7 @@ import {Th,Thead,Tr,+ TruncatedTooltipText,VStack} from "@carbon/react";import { Trans } from "@lingui/react/macro";@@ -224,9 +225,12 @@ const LineItems = ({</motion.div></HStack></div>- <span className="text-muted-foreground text-sm truncate">+ <TruncatedTooltipText+ className="text-muted-foreground text-sm truncate"+ tooltip={line.description}+ >{line.description}- </span>+ </TruncatedTooltipText></div></VStack></HStack>diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteToOrderDrawer.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteToOrderDrawer.tsxindex 7e6b20ae59..ffeb96f214 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteToOrderDrawer.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteToOrderDrawer.tsx@@ -26,6 +26,7 @@ import {Th,Thead,Tr,+ TruncatedTooltipText,toast,VStack} from "@carbon/react";@@ -448,9 +449,12 @@ const LinePricingForm = ({the card edge. min-w-0 is what lets truncate bite. */}<VStack spacing={0} className="flex-1 min-w-0"><Heading className="min-w-0">{line.itemReadableId}</Heading>- <span className="text-muted-foreground text-base truncate">+ <TruncatedTooltipText+ className="text-muted-foreground text-base truncate"+ tooltip={line.description}+ >{line.description}- </span>+ </TruncatedTooltipText></VStack></HStack><LinePricingOptionsdiff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsxindex b802ceebbf..a3a2532b8c 100644--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsx+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsx@@ -17,6 +17,7 @@ import {TooltipContent,TooltipTrigger,Tr,+ TruncatedTooltipText,useDisclosure,VStack} from "@carbon/react";@@ -430,9 +431,12 @@ function LineItems({</Link></Button></HStack>- <span className="text-muted-foreground text-sm truncate">+ <TruncatedTooltipText+ className="text-muted-foreground text-sm truncate"+ tooltip={line.description}+ >{line.description}- </span>+ </TruncatedTooltipText></VStack><VStackspacing={2}diff --git a/apps/erp/app/routes/share+/purchasing-rfq.$id.tsx b/apps/erp/app/routes/share+/purchasing-rfq.$id.tsxindex 0d0b39f21f..303b03e32e 100644--- a/apps/erp/app/routes/share+/purchasing-rfq.$id.tsx+++ b/apps/erp/app/routes/share+/purchasing-rfq.$id.tsx@@ -15,6 +15,7 @@ import {Th,Thead,Tr,+ TruncatedTooltipText,useMode,VStack} from "@carbon/react";@@ -219,9 +220,12 @@ const LineItems = ({</motion.div></HStack></div>- <span className="text-muted-foreground text-base truncate">+ <TruncatedTooltipText+ className="text-muted-foreground text-base truncate"+ tooltip={line.description}+ >{line.description}- </span>+ </TruncatedTooltipText></div></VStack></HStack>diff --git a/apps/erp/app/routes/share+/quote.$id.tsx b/apps/erp/app/routes/share+/quote.$id.tsxindex 9ae5848f29..92dd3a131b 100644--- a/apps/erp/app/routes/share+/quote.$id.tsx+++ b/apps/erp/app/routes/share+/quote.$id.tsx@@ -29,6 +29,7 @@ import {Th,Thead,Tr,+ TruncatedTooltipText,toast,useDisclosure,useMode,@@ -456,9 +457,12 @@ const LineItems = ({</motion.div></HStack></div>- <span className="text-muted-foreground text-base truncate">+ <TruncatedTooltipText+ className="text-muted-foreground text-base truncate"+ tooltip={line.description}+ >{line.description}- </span>+ </TruncatedTooltipText>{Object.keys(line.externalNotes ?? {}).length > 0 && (<divclassName="prose dark:prose-invert mt-2 text-muted-foreground"diff --git a/apps/erp/app/routes/share+/supplier-quote.$id.tsx b/apps/erp/app/routes/share+/supplier-quote.$id.tsxindex 266e648aa2..f4608ca5f6 100644--- a/apps/erp/app/routes/share+/supplier-quote.$id.tsx+++ b/apps/erp/app/routes/share+/supplier-quote.$id.tsx@@ -30,6 +30,7 @@ import {Th,Thead,Tr,+ TruncatedTooltipText,useDisclosure,useMode,VStack@@ -373,6 +374,9 @@ const LineItems = ({const lineHeading = isGlAccount? line.description || "Indirect Expense": line.itemReadableId;+ const lineDescription = isGlAccount+ ? "Indirect Expense"+ : line.description;return (<motion.div@@ -419,9 +423,12 @@ const LineItems = ({</motion.div></HStack></div>- <span className="text-muted-foreground text-base truncate">- {isGlAccount ? "Indirect Expense" : line.description}- </span>+ <TruncatedTooltipText+ className="text-muted-foreground text-base truncate"+ tooltip={lineDescription}+ >+ {lineDescription}+ </TruncatedTooltipText></div></VStack></HStack>