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
style: a little bit bolder
Brad Barbinf588f240bbdd
diff --git a/apps/carbon/app/components/Hyperlink.tsx b/apps/carbon/app/components/Hyperlink.tsxindex 331de7722a..f072f37464 100644--- a/apps/carbon/app/components/Hyperlink.tsx+++ b/apps/carbon/app/components/Hyperlink.tsx@@ -14,7 +14,7 @@ const Hyperlink = ({<Linkprefetch="intent"className={cn(- "text-foreground hover:underline cursor-pointer font-medium",+ "text-foreground font-bold uppercase tracking-tighter text-sm hover:underline cursor-pointer ",className)}{...props}@@ -24,7 +24,7 @@ const Hyperlink = ({) : (<spanclassName={cn(- "text-foreground hover:underline cursor-pointer ",+ "text-foreground font-bold uppercase tracking-tighter text-sm cursor-pointer ",className)}{...props}diff --git a/apps/carbon/app/components/Table/components/Pagination/Pagination.tsx b/apps/carbon/app/components/Table/components/Pagination/Pagination.tsxindex c701e45f53..7448225174 100644--- a/apps/carbon/app/components/Table/components/Pagination/Pagination.tsx+++ b/apps/carbon/app/components/Table/components/Pagination/Pagination.tsx@@ -35,7 +35,7 @@ export type PaginationProps = {const Pagination = (props: PaginationProps) => {const { pageSize, setPageSize } = props;- const pageSizes = [100, 500, 1000];+ const pageSizes = [20, 100, 500, 1000];if (!pageSizes.includes(pageSize)) {pageSizes.push(pageSize);pageSizes.sort();diff --git a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptHeader.tsx b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptHeader.tsxindex d6d36d9ba5..9c1f3ca53a 100644--- a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptHeader.tsx+++ b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptHeader.tsx@@ -87,6 +87,12 @@ const ReceiptHeader = () => {</HStack><CardContent><CardAttributes>+ <CardAttribute>+ <CardAttributeLabel>Status</CardAttributeLabel>+ <CardAttributeValue>+ <ReceiptStatus status={routeData?.receipt?.status} />+ </CardAttributeValue>+ </CardAttribute><CardAttribute><CardAttributeLabel>Assignee</CardAttributeLabel><CardAttributeValue>@@ -126,12 +132,6 @@ const ReceiptHeader = () => {: "-"}</CardAttributeValue></CardAttribute>- <CardAttribute>- <CardAttributeLabel>Status</CardAttributeLabel>- <CardAttributeValue>- <ReceiptStatus status={routeData?.receipt?.status} />- </CardAttributeValue>- </CardAttribute></CardAttributes></CardContent></Card>diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader.tsxindex 084f099bda..cb9fd69199 100644--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader.tsx+++ b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader.tsx@@ -117,6 +117,11 @@ const PurchaseInvoiceHeader = () => {<CardContent><CardAttributes>+ <CardAttribute>+ <CardAttributeLabel>Status</CardAttributeLabel>+ <PurchaseInvoicingStatus status={purchaseInvoice.status} />+ </CardAttribute>+<CardAttribute><CardAttributeLabel>Assignee</CardAttributeLabel><CardAttributeValue>@@ -150,10 +155,6 @@ const PurchaseInvoiceHeader = () => {</CardAttributeValue></CardAttribute>- <CardAttribute>- <CardAttributeLabel>Status</CardAttributeLabel>- <PurchaseInvoicingStatus status={purchaseInvoice.status} />- </CardAttribute><CardAttribute><CardAttributeLabel>Total</CardAttributeLabel><CardAttributeValue>diff --git a/apps/carbon/app/modules/production/ui/Jobs/JobForm.tsx b/apps/carbon/app/modules/production/ui/Jobs/JobForm.tsxindex 67b0f0bff1..1a876f1e72 100644--- a/apps/carbon/app/modules/production/ui/Jobs/JobForm.tsx+++ b/apps/carbon/app/modules/production/ui/Jobs/JobForm.tsx@@ -1,5 +1,5 @@import { useCarbon } from "@carbon/auth";-import { ValidatedForm } from "@carbon/form";+import { InputControlled, ValidatedForm } from "@carbon/form";import {Card,CardContent,@@ -18,7 +18,6 @@ import {DatePicker,Hidden,Input,- InputControlled,Item,Location,NumberControlled,@@ -189,13 +188,16 @@ const JobForm = ({ initialValues }: JobFormProps) => {/>)}- <InputControlled- name="description"- label="Short Description"- value={itemData.description}- isReadOnly- className="col-span-2"- />+ {isEditing && (+ <InputControlled+ name="description"+ label="Short Description"+ value={itemData.description}+ isReadOnly+ className="col-span-2"+ />+ )}+<NumberControlledname="quantity"label="Quantity"diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader.tsx b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader.tsxindex 9e1ebb635e..4216a6733b 100644--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader.tsx+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader.tsx@@ -128,6 +128,10 @@ const PurchaseOrderHeader = () => {</HStack><CardContent><CardAttributes>+ <CardAttribute>+ <CardAttributeLabel>Status</CardAttributeLabel>+ <PurchasingStatus status={routeData?.purchaseOrder?.status} />+ </CardAttribute><CardAttribute><CardAttributeLabel>Assignee</CardAttributeLabel><CardAttributeValue>@@ -159,10 +163,7 @@ const PurchaseOrderHeader = () => {<Enumerable value={routeData?.purchaseOrder?.type} /></CardAttributeValue></CardAttribute>- <CardAttribute>- <CardAttributeLabel>Status</CardAttributeLabel>- <PurchasingStatus status={routeData?.purchaseOrder?.status} />- </CardAttribute>+<CardAttribute><CardAttributeLabel>Total</CardAttributeLabel><CardAttributeValue>diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierHeader.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierHeader.tsxindex 2b34694bd2..55f1e069a9 100644--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierHeader.tsx+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierHeader.tsx@@ -64,6 +64,12 @@ const SupplierHeader = () => {</HStack><CardContent><CardAttributes>+ <CardAttribute>+ <CardAttributeLabel>Status</CardAttributeLabel>+ <CardAttributeValue>+ {supplierStatus ? <Enumerable value={supplierStatus!} /> : "-"}+ </CardAttributeValue>+ </CardAttribute><CardAttribute><CardAttributeLabel>Account Manager</CardAttributeLabel><CardAttributeValue>@@ -90,13 +96,6 @@ const SupplierHeader = () => {</CardAttributeValue></CardAttribute>)}-- <CardAttribute>- <CardAttributeLabel>Status</CardAttributeLabel>- <CardAttributeValue>- {supplierStatus ? <Enumerable value={supplierStatus!} /> : "-"}- </CardAttributeValue>- </CardAttribute></CardAttributes></CardContent></Card>diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerHeader.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerHeader.tsxindex 5d55902d6a..2651b226df 100644--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerHeader.tsx+++ b/apps/carbon/app/modules/sales/ui/Customer/CustomerHeader.tsx@@ -64,6 +64,12 @@ const CustomerHeader = () => {</HStack><CardContent><CardAttributes>+ <CardAttribute>+ <CardAttributeLabel>Status</CardAttributeLabel>+ <CardAttributeValue>+ {customerStatus ? <Enumerable value={customerStatus!} /> : "-"}+ </CardAttributeValue>+ </CardAttribute><CardAttribute><CardAttributeLabel>Account Manager</CardAttributeLabel><CardAttributeValue>@@ -89,12 +95,6 @@ const CustomerHeader = () => {</CardAttributeValue></CardAttribute>)}- <CardAttribute>- <CardAttributeLabel>Status</CardAttributeLabel>- <CardAttributeValue>- {customerStatus ? <Enumerable value={customerStatus!} /> : "-"}- </CardAttributeValue>- </CardAttribute></CardAttributes></CardContent></Card>diff --git a/apps/carbon/app/modules/sales/ui/Quotes/QuoteExplorer.tsx b/apps/carbon/app/modules/sales/ui/Quotes/QuoteExplorer.tsxindex c6b3c9eba5..65faa62f1f 100644--- a/apps/carbon/app/modules/sales/ui/Quotes/QuoteExplorer.tsx+++ b/apps/carbon/app/modules/sales/ui/Quotes/QuoteExplorer.tsx@@ -210,21 +210,6 @@ function QuoteLineItem({}};- function getStatusIcon(status: (typeof quoteLineStatusType)[number]) {- switch (status) {- case "Not Started":- return <LuCircle className="text-blue-600" />;- case "No Quote":- return <LuXCircle className="text-red-600" />;- case "Complete":- return <LuCheckCircle className="text-green-600" />;- case "In Progress":- return <LuClock3 className="text-yellow-600" />;- default:- return null;- }- }-return (<VStack spacing={0}><HStack@@ -309,3 +294,18 @@ function QuoteLineItem({</VStack>);}++function getStatusIcon(status: (typeof quoteLineStatusType)[number]) {+ switch (status) {+ case "Not Started":+ return <LuCircle size={12} className="text-blue-600" />;+ case "No Quote":+ return <LuXCircle size={12} className="text-red-600" />;+ case "Complete":+ return <LuCheckCircle size={12} className="text-green-600" />;+ case "In Progress":+ return <LuClock3 size={12} className="text-yellow-600" />;+ default:+ return null;+ }+}diff --git a/apps/carbon/app/routes/x+/_index.tsx b/apps/carbon/app/routes/x+/_index.tsxindex 0ada013d21..57e778fffa 100644--- a/apps/carbon/app/routes/x+/_index.tsx+++ b/apps/carbon/app/routes/x+/_index.tsx@@ -23,7 +23,7 @@ export default function AppIndexRoute() {);return (- <div className="p-8 w-full h-full bg-muted">+ <div className="p-8 w-full h-full bg-muted dark:bg-background"><Heading size="h3">Hello, {user.firstName}</Heading><Subheading>{formatter.format(date)}</Subheading><Hr />diff --git a/apps/carbon/app/routes/x+/_layout.tsx b/apps/carbon/app/routes/x+/_layout.tsxindex b0afac0f0d..1baa581861 100644--- a/apps/carbon/app/routes/x+/_layout.tsx+++ b/apps/carbon/app/routes/x+/_layout.tsx@@ -140,7 +140,7 @@ export default function AuthenticatedRoute() {<PrimaryNavigation /><div className="flex w-full h-full"><div className="w-full h-full flex-1 overflow-hidden">- <main className="h-full flex flex-col flex-1 max-w-[100vw] sm:max-w-[calc(100vw-56px)] overflow-x-hidden bg-muted">+ <main className="h-full flex flex-col flex-1 max-w-[100vw] sm:max-w-[calc(100vw-56px)] overflow-x-hidden bg-muted dark:bg-background"><Topbar /><main className="flex-1 overflow-y-auto max-h-[calc(100vh-49px)]"><Outlet />diff --git a/apps/carbon/app/routes/x+/job+/$jobId.make.$methodId.$materialId.tsx b/apps/carbon/app/routes/x+/job+/$jobId.make.$methodId.$materialId.tsxindex df3f9370a5..6e12d1379d 100644--- a/apps/carbon/app/routes/x+/job+/$jobId.make.$methodId.$materialId.tsx+++ b/apps/carbon/app/routes/x+/job+/$jobId.make.$methodId.$materialId.tsx@@ -108,7 +108,11 @@ export default function JobMakeMethodRoute() {return (<VStack spacing={2} className="p-2"><JobBreadcrumbs />- <JobMaterialForm initialValues={material} operations={operations} />+ <JobMaterialForm+ key={material.id}+ initialValues={material}+ operations={operations}+ /><JobBillOfProcesskey={`bop:${methodId}:${operations.length}`}jobMakeMethodId={methodId}diff --git a/apps/carbon/app/routes/x+/quote+/$quoteId.$lineId.make.$methodId.$materialId.tsx b/apps/carbon/app/routes/x+/quote+/$quoteId.$lineId.make.$methodId.$materialId.tsxindex f41f474ce8..caa49dcc46 100644--- a/apps/carbon/app/routes/x+/quote+/$quoteId.$lineId.make.$methodId.$materialId.tsx+++ b/apps/carbon/app/routes/x+/quote+/$quoteId.$lineId.make.$methodId.$materialId.tsx@@ -110,7 +110,11 @@ export default function QuoteMakeMethodRoute() {return (<VStack spacing={2}>- <QuoteMaterialForm initialValues={material} operations={operations} />+ <QuoteMaterialForm+ key={material.id}+ initialValues={material}+ operations={operations}+ /><QuoteBillOfProcesskey={`bop:${methodId}:${operations.length}`}quoteMakeMethodId={methodId}diff --git a/apps/carbon/app/routes/x+/receipt+/_layout.tsx b/apps/carbon/app/routes/x+/receipt+/_layout.tsxindex 73d24178a9..656c4bc677 100644--- a/apps/carbon/app/routes/x+/receipt+/_layout.tsx+++ b/apps/carbon/app/routes/x+/receipt+/_layout.tsx@@ -38,8 +38,10 @@ export async function loader({ request }: LoaderFunctionArgs) {export default function ReceiptRoute() {return (- <VStack spacing={4} className="h-full p-4">- <Outlet />- </VStack>+ <div className="flex h-full w-full justify-center">+ <VStack spacing={4} className="h-full p-2 w-full max-w-[80rem]">+ <Outlet />+ </VStack>+ </div>);}diff --git a/apps/developers/app/routes/x+/_index.tsx b/apps/developers/app/routes/x+/_index.tsxindex d56e10f963..fefd8f7290 100644--- a/apps/developers/app/routes/x+/_index.tsx+++ b/apps/developers/app/routes/x+/_index.tsx@@ -19,7 +19,7 @@ export default function AppIndexRoute() {);return (- <div className="p-8 w-full h-full bg-muted">+ <div className="p-8 w-full h-full bg-muted dark:bg-background"><Heading size="h3">Hello, {user.firstName}</Heading><Subheading>{formatter.format(date)}</Subheading><Hr />diff --git a/apps/developers/app/routes/x+/_layout.tsx b/apps/developers/app/routes/x+/_layout.tsxindex 63fcf80407..cb11682786 100644--- a/apps/developers/app/routes/x+/_layout.tsx+++ b/apps/developers/app/routes/x+/_layout.tsx@@ -89,7 +89,7 @@ export default function AuthenticatedRoute() {<PrimaryNavigation /><div className="flex w-full h-full"><div className="w-full h-full flex-1 overflow-hidden">- <main className="h-full flex flex-col flex-1 max-w-[100vw] sm:max-w-[calc(100vw-56px)] overflow-x-hidden bg-muted">+ <main className="h-full flex flex-col flex-1 max-w-[100vw] sm:max-w-[calc(100vw-56px)] overflow-x-hidden bg-muted dark:bg-background"><Topbar /><main className="flex-1 overflow-y-auto max-h-[calc(100vh-49px)]"><Outlet />diff --git a/apps/mes/app/routes/_public+/_layout.tsx b/apps/mes/app/routes/_public+/_layout.tsxindex 07042a5ee7..28b11de595 100644--- a/apps/mes/app/routes/_public+/_layout.tsx+++ b/apps/mes/app/routes/_public+/_layout.tsx@@ -6,7 +6,7 @@ import { Heading } from "@carbon/react";export default function PublicRoute() {return (<div className="container relative h-full flex-col items-center justify-center grid lg:max-w-none lg:grid-cols-2 lg:px-0">- <div className="relative hidden h-full flex-col bg-muted p-10 lg:flex dark:border-r">+ <div className="relative hidden h-full flex-col bg-muted dark:bg-background p-10 lg:flex dark:border-r"><div className="absolute inset-0 bg-zinc-900" /><Headingsize="h1"diff --git a/packages/react/src/Badge.tsx b/packages/react/src/Badge.tsxindex ba7f4fff27..6e5080259d 100644--- a/packages/react/src/Badge.tsx+++ b/packages/react/src/Badge.tsx@@ -10,7 +10,7 @@ import { MdClose } from "react-icons/md";import { cn } from "./utils/cn";const badgeVariants = cva(- "inline-flex items-center rounded-md border px-2.5 py-0.5 h-6 text-sm font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 truncate",+ "inline-flex items-center rounded-md border px-2.5 py-0.5 h-6 text-sm font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 truncate uppercase font-bold text-xs tracking-tight",{variants: {variant: {diff --git a/packages/react/src/Card.tsx b/packages/react/src/Card.tsxindex ae3cd66efa..9b4a3e5815 100644--- a/packages/react/src/Card.tsx+++ b/packages/react/src/Card.tsx@@ -75,7 +75,7 @@ const CardAttribute = forwardRef<<divref={ref}className={cn(- "flex flex-row md:flex-col items-start justify-between gap-1",+ "flex flex-row md:flex-col items-start justify-start gap-2",className)}{...props}@@ -101,7 +101,7 @@ const CardAttributeLabel = forwardRef<>(({ className, ...props }, ref) => (<divref={ref}- className={cn("text-xs text-muted-foreground", className)}+ className={cn("font-medium text-xs text-muted-foreground", className)}{...props}/>));@@ -113,7 +113,7 @@ const CardAttributeValue = forwardRef<>(({ className, ...props }, ref) => (<divref={ref}- className={cn("font-bold text-foreground", className)}+ className={cn("font-medium text-sm text-foreground", className)}{...props}/>));diff --git a/packages/react/src/Status.tsx b/packages/react/src/Status.tsxindex bca487d64a..40592fc0e2 100644--- a/packages/react/src/Status.tsx+++ b/packages/react/src/Status.tsx@@ -13,14 +13,7 @@ const Status = ({...props}: StatusProps) => {return (- <Badge- variant={color}- className={cn(- "truncate uppercase font-bold text-xs tracking-tight",- className- )}- {...props}- >+ <Badge variant={color} className={cn(className)} {...props}>{children}</Badge>);diff --git a/packages/utils/src/themes.ts b/packages/utils/src/themes.tsindex 27f4545cc9..47b37665b6 100644--- a/packages/utils/src/themes.ts+++ b/packages/utils/src/themes.ts@@ -259,7 +259,7 @@ export const themes = [dark: {background: "20 14.3% 6.1%",foreground: "60 9.1% 97.8%",- card: "20 14.3% 4.1%",+ card: "20 14.3% 8.9%","card-foreground": "60 9.1% 97.8%",popover: "20 14.3% 4.1%","popover-foreground": "60 9.1% 97.8%",