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: fix chart colors for estimates vs actuals

Brad Barbin27e24cdb578c
diff --git a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx
index 73a9eb2680..8c3dc2e510 100644
--- a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx
+++ b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx
@@ -253,7 +253,7 @@ const SupplierQuotesTable = memo(
}}
primaryAction={
permissions.can("create", "purchasing") && (
- <New label="SupplierQuote" to={path.to.newSupplierQuote} />
+ <New label="Supplier Quote" to={path.to.newSupplierQuote} />
)
}
renderContextMenu={renderContextMenu}
diff --git a/apps/erp/app/routes/x+/production+/_index.tsx b/apps/erp/app/routes/x+/production+/_index.tsx
index 234e5fc25a..e8952a14f0 100644
--- a/apps/erp/app/routes/x+/production+/_index.tsx
+++ b/apps/erp/app/routes/x+/production+/_index.tsx
@@ -54,12 +54,15 @@ import type { LoaderFunctionArgs } from "@vercel/remix";
const OPEN_JOB_STATUSES = ["Ready", "In Progress", "Paused"] as const;
const chartConfig = {
- actual: {
+ value: {
color: "hsl(var(--primary))",
+ },
+ actual: {
+ color: "hsl(var(--chart-1))",
label: "Actual",
},
estimate: {
- color: "hsl(var(--destructive))",
+ color: "hsl(var(--chart-2))",
label: "Estimate",
},
} satisfies ChartConfig;
@@ -476,7 +479,7 @@ export default function ProductionDashboard() {
<Bar
dataKey="value"
- fill="var(--color-actual)"
+ fill="var(--color-value)"
radius={2}
>
<LabelList
@@ -552,7 +555,7 @@ export default function ProductionDashboard() {
/>
<Bar
dataKey="value"
- fill="var(--color-actual)"
+ fill="var(--color-value)"
radius={2}
/>
</>
diff --git a/packages/react/src/Button.tsx b/packages/react/src/Button.tsx
index b89abd2f3e..e309b1b516 100644
--- a/packages/react/src/Button.tsx
+++ b/packages/react/src/Button.tsx
@@ -17,7 +17,7 @@ export const buttonVariants = cva(
variants: {
variant: {
primary:
- "bg-gradient-to-br from-primary/90 to-primary text-primary-foreground hover:bg-primary/90 saturate-[105%] shadow-[inset_0px_0.5px_0px_rgb(255_255_255_/_0.32)]",
+ "bg-gradient-to-br from-primary/90 to-primary text-white dark:text-black hover:bg-primary/90 saturate-[105%] shadow-[inset_0px_0.5px_0px_rgb(255_255_255_/_0.32)]",
active:
"bg-active text-active-foreground hover:bg-active/90 hover:text-active-foreground shadow-button-base",
secondary: