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: tooltip bug for step description
Brad Barbin959b5cf04559
diff --git a/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx b/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsxindex f7bd434a92..d5c0474531 100644--- a/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx+++ b/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx@@ -2123,21 +2123,22 @@ function AttributesListItem({<p className="text-foreground text-sm font-medium">{attribute.name}</p>- {attribute.description && (- <Tooltip>- <TooltipTrigger>- <LuInfo className="text-muted-foreground size-3" />- </TooltipTrigger>- <TooltipContent side="right">- <p- className="prose prose-sm dark:prose-invert text-foreground text-sm"- dangerouslySetInnerHTML={{- __html: generateHTML(attribute.description),- }}- />- </TooltipContent>- </Tooltip>- )}+ {attribute.description &&+ Object.keys(attribute.description).length > 0 && (+ <Tooltip>+ <TooltipTrigger>+ <LuInfo className="text-muted-foreground size-3" />+ </TooltipTrigger>+ <TooltipContent side="right">+ <p+ className="prose prose-sm dark:prose-invert text-foreground text-sm"+ dangerouslySetInnerHTML={{+ __html: generateHTML(attribute.description),+ }}+ />+ </TooltipContent>+ </Tooltip>+ )}</HStack>{attribute.type === "Measurement" && (<span className="text-xs text-muted-foreground">diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsxindex 8e5457ae6c..f22dc17b95 100644--- a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx+++ b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx@@ -1403,18 +1403,22 @@ function AttributesListItem({<p className="text-foreground text-sm font-medium">{attribute.name}</p>- {attribute.description && (+ {attribute.description &&+ Object.keys(attribute.description).length > 0 ? (<Tooltip><TooltipTrigger><LuInfo className="text-muted-foreground size-3" /></TooltipTrigger><TooltipContent side="right">- <p className="text-foreground text-sm">- {attribute.description}- </p>+ <p+ className="prose prose-sm dark:prose-invert text-foreground text-sm"+ dangerouslySetInnerHTML={{+ __html: generateHTML(attribute.description),+ }}+ /></TooltipContent></Tooltip>- )}+ ) : null}</HStack>{attribute.type === "Measurement" && (<span className="text-xs text-muted-foreground">diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsxindex 0df0bc9614..ed851cca66 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx@@ -87,29 +87,29 @@ import type {} from "~/modules/shared";import {methodOperationOrders,+ operationAttributeValidator,operationParameterValidator,operationToolValidator,operationTypes,- operationAttributeValidator,procedureAttributeType,} from "~/modules/shared";import type { action as editQuoteOperationAttributeAction } from "~/routes/x+/quote+/methods+/operation.attribute.$id";-import type { action as editQuoteOperationToolAction } from "~/routes/x+/quote+/methods+/operation.tool.$id";import type { action as editQuoteOperationParameterAction } from "~/routes/x+/quote+/methods+/operation.parameter.$id";-import type { action as newQuoteOperationToolAction } from "~/routes/x+/quote+/methods+/operation.tool.new";import type { action as newQuoteOperationParameterAction } from "~/routes/x+/quote+/methods+/operation.parameter.new";+import type { action as editQuoteOperationToolAction } from "~/routes/x+/quote+/methods+/operation.tool.$id";+import type { action as newQuoteOperationToolAction } from "~/routes/x+/quote+/methods+/operation.tool.new";-import { useTools } from "~/stores";-import { getPrivateUrl, path } from "~/utils/path";-import { quoteOperationValidator } from "../../sales.models";-import type { Quotation } from "../../types";+import Procedure from "~/components/Form/Procedure";+import { SupplierProcessPreview } from "~/components/Form/SupplierProcess";import UnitOfMeasure, {useUnitOfMeasure,} from "~/components/Form/UnitOfMeasure";import { ProcedureAttributeTypeIcon } from "~/components/Icons";-import Procedure from "~/components/Form/Procedure";-import { SupplierProcessPreview } from "~/components/Form/SupplierProcess";+import { useTools } from "~/stores";+import { getPrivateUrl, path } from "~/utils/path";+import { quoteOperationValidator } from "../../sales.models";+import type { Quotation } from "../../types";export type Operation = z.infer<typeof quoteOperationValidator> & {workInstruction: JSONContent | null;@@ -1240,21 +1240,22 @@ function AttributesListItem({<p className="text-foreground text-sm font-medium">{attribute.name}</p>- {attribute.description && (- <Tooltip>- <TooltipTrigger>- <LuInfo className="text-muted-foreground size-3" />- </TooltipTrigger>- <TooltipContent side="right">- <p- className="prose prose-sm dark:prose-invert text-foreground text-sm"- dangerouslySetInnerHTML={{- __html: generateHTML(attribute.description),- }}- />- </TooltipContent>- </Tooltip>- )}+ {attribute.description &&+ Object.keys(attribute.description).length > 0 && (+ <Tooltip>+ <TooltipTrigger>+ <LuInfo className="text-muted-foreground size-3" />+ </TooltipTrigger>+ <TooltipContent side="right">+ <p+ className="prose prose-sm dark:prose-invert text-foreground text-sm"+ dangerouslySetInnerHTML={{+ __html: generateHTML(attribute.description),+ }}+ />+ </TooltipContent>+ </Tooltip>+ )}</HStack>{attribute.type === "Measurement" && (<span className="text-xs text-muted-foreground">