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: make the status badges look better
Brad Barbinae58b78c3eb2
diff --git a/apps/carbon/app/modules/sales/ui/SalesOrder/SalesStatus.tsx b/apps/carbon/app/modules/sales/ui/SalesOrder/SalesStatus.tsxindex e171d8f896..e33658a96d 100644--- a/apps/carbon/app/modules/sales/ui/SalesOrder/SalesStatus.tsx+++ b/apps/carbon/app/modules/sales/ui/SalesOrder/SalesStatus.tsx@@ -15,6 +15,7 @@ const SalesStatus = ({ status }: SalesOrderStatusProps) => {case "Confirmed":return <Status color="blue">{status}</Status>;case "In Progress":+ return <Status color="yellow">{status}</Status>;case "Needs Approval":return <Status color="orange">{status}</Status>;case "Invoiced":diff --git a/packages/react/src/Badge.tsx b/packages/react/src/Badge.tsxindex 395da7c9e4..ba7f4fff27 100644--- a/packages/react/src/Badge.tsx+++ b/packages/react/src/Badge.tsx@@ -22,13 +22,13 @@ const badgeVariants = cva("border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline: "text-foreground",green:- "border-transparent bg-[#dbeddb] text-[#1c3829] dark:bg-[#2b593f] dark:text-white",+ "border-transparent bg-green-600 text-green-100 dark:bg-green-900/50 dark:text-green-400",yellow:- "border-transparent bg-[#f9e4bc] text-[#402c1b] dark:bg-[#835e33] dark:text-white",+ "border-transparent bg-yellow-600 text-yellow-100 dark:bg-yellow-900/50 dark:text-yellow-300",orange:- "border-transparent bg-[#fadec9] text-[#49290e] dark:bg-[#854c1d] dark:text-white",- red: "border-transparent bg-[#ffe2dd] text-[#5d1715] dark:bg-[#6e3630] dark:text-white",- blue: "border-transparent bg-[#d3e5ef] text-[#183347] dark:bg-[#28456c] dark:text-white",+ "border-transparent bg-orange-600 text-orange-100 dark:bg-orange-900/50 dark:text-orange-300",+ red: "border-transparent bg-red-600 text-red-100 dark:bg-red-900/50 dark:text-red-400",+ blue: "border-transparent bg-blue-600 text-blue-100 dark:bg-blue-900/50 dark:text-blue-400",gray: "border-transparent bg-[#e3e2e080] text-[#32302c] dark:bg-[#373737] dark:text-white hover:bg-[#e3e2e0] dark:hover:bg-[#5a5a5a]",},},diff --git a/packages/react/src/Status.tsx b/packages/react/src/Status.tsxindex 44a0c41e52..bca487d64a 100644--- a/packages/react/src/Status.tsx+++ b/packages/react/src/Status.tsx@@ -1,5 +1,4 @@import type { ComponentProps } from "react";-import { RxDotFilled } from "react-icons/rx";import { Badge } from "./Badge";import { cn } from "./utils/cn";@@ -16,10 +15,12 @@ const Status = ({return (<Badgevariant={color}- className={cn("pl-0.5 truncate", className)}+ className={cn(+ "truncate uppercase font-bold text-xs tracking-tight",+ className+ )}{...props}>- <RxDotFilled className="w-5 h-5 mr-0.5" />{children}</Badge>);