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: add icons to cards in dashboards
Brad Barbin68bc57e31f71
diff --git a/apps/erp/app/routes/x+/production+/_index.tsx b/apps/erp/app/routes/x+/production+/_index.tsxindex 9cefbe196f..056ac40bac 100644--- a/apps/erp/app/routes/x+/production+/_index.tsx+++ b/apps/erp/app/routes/x+/production+/_index.tsx@@ -54,7 +54,7 @@ import {LuClipboardCheck,LuEllipsisVertical,LuFile,- LuSquareUser+ LuInbox} from "react-icons/lu";import { RiProgress8Line } from "react-icons/ri";import type { LoaderFunctionArgs } from "react-router";@@ -292,7 +292,8 @@ export default function ProductionDashboard() {<div className="flex flex-col gap-4 w-full p-4 h-[calc(100dvh-var(--header-height))] overflow-y-auto scrollbar-thin scrollbar-thumb-rounded-full scrollbar-thumb-muted-foreground"><div className="grid w-full gap-y-4 lg:gap-x-4 grid-cols-1 lg:grid-cols-6"><Card className="col-span-3">- <CardHeader>+ <CardHeader className="flex-row gap-2">+ <LuCirclePlay className="text-muted-foreground" /><CardTitle>Active Jobs</CardTitle></CardHeader><CardContent>@@ -318,7 +319,8 @@ export default function ProductionDashboard() {</Card><Card className="col-span-3">- <CardHeader>+ <CardHeader className="flex-row gap-2">+ <LuInbox className="text-muted-foreground" /><CardTitle>Jobs Assigned to Me</CardTitle></CardHeader>@@ -935,7 +937,7 @@ function WorkCenterCards({{customerId && (<HStack className="justify-start space-x-2">- <LuSquareUser className="text-muted-foreground flex-shrink-0" />+ <LuInbox className="text-muted-foreground flex-shrink-0" /><CustomerAvatar customerId={customerId} /></HStack>)}diff --git a/apps/erp/app/routes/x+/purchasing+/_index.tsx b/apps/erp/app/routes/x+/purchasing+/_index.tsxindex 0a4acc1f5f..baad7b66d5 100644--- a/apps/erp/app/routes/x+/purchasing+/_index.tsx+++ b/apps/erp/app/routes/x+/purchasing+/_index.tsx@@ -48,9 +48,11 @@ import { CSVLink } from "react-csv";import {LuArrowUpRight,LuChevronDown,+ LuClock,LuCreditCard,LuEllipsisVertical,LuFile,+ LuInbox,LuLayoutList,LuPackageSearch} from "react-icons/lu";@@ -359,7 +361,8 @@ export default function PurchaseDashboard() {<div className="flex flex-col gap-4 w-full p-4 h-[calc(100dvh-var(--header-height))] overflow-y-auto scrollbar-thin scrollbar-thumb-rounded-full scrollbar-thumb-muted-foreground"><div className="grid w-full gap-4 grid-cols-1 lg:grid-cols-3"><Card>- <CardHeader>+ <CardHeader className="flex-row gap-2">+ <LuPackageSearch className="text-muted-foreground" /><CardTitle>Active Supplier Quotes</CardTitle></CardHeader><CardContent>@@ -385,7 +388,8 @@ export default function PurchaseDashboard() {</Card><Card>- <CardHeader>+ <CardHeader className="flex-row gap-2">+ <LuLayoutList className="text-muted-foreground" /><CardTitle>Open Purchase Orders</CardTitle></CardHeader><CardContent>@@ -411,7 +415,8 @@ export default function PurchaseDashboard() {</Card><Card>- <CardHeader>+ <CardHeader className="flex-row gap-2">+ <LuCreditCard className="text-muted-foreground" /><CardTitle>Open Purchase Invoices</CardTitle></CardHeader><CardContent>@@ -625,7 +630,8 @@ export default function PurchaseDashboard() {</Card><div className="grid w-full gap-4 grid-cols-1 lg:grid-cols-2"><Card>- <CardHeader>+ <CardHeader className="flex-row gap-2">+ <LuClock className="text-muted-foreground" /><CardTitle>Recently Created</CardTitle></CardHeader><CardContent className="p-6">@@ -679,7 +685,8 @@ export default function PurchaseDashboard() {</Card><Card>- <CardHeader>+ <CardHeader className="flex-row gap-2">+ <LuInbox className="text-muted-foreground" /><CardTitle>Assigned to Me</CardTitle></CardHeader><CardContent className="min-h-[200px]">diff --git a/apps/erp/app/routes/x+/resources+/_index.tsx b/apps/erp/app/routes/x+/resources+/_index.tsxindex 680cbc4a77..41e9b8711a 100644--- a/apps/erp/app/routes/x+/resources+/_index.tsx+++ b/apps/erp/app/routes/x+/resources+/_index.tsx@@ -42,9 +42,13 @@ import { Suspense, useEffect, useMemo, useState } from "react";import { CSVLink } from "react-csv";import {LuArrowUpRight,+ LuCalendarClock,LuChevronDown,+ LuClock,LuEllipsisVertical,LuFile,+ LuInbox,+ LuTriangleAlert,LuWrench} from "react-icons/lu";import type { LoaderFunctionArgs } from "react-router";@@ -341,7 +345,8 @@ export default function MaintenanceDashboard() {<div className="flex flex-col gap-4 w-full p-4 h-[calc(100dvh-var(--header-height))] overflow-y-auto scrollbar-thin scrollbar-thumb-rounded-full scrollbar-thumb-muted-foreground"><div className="grid w-full gap-4 grid-cols-1 lg:grid-cols-3"><Card>- <CardHeader>+ <CardHeader className="flex-row gap-2">+ <LuWrench className="text-muted-foreground" /><CardTitle>Open Dispatches</CardTitle></CardHeader><CardContent>@@ -367,7 +372,8 @@ export default function MaintenanceDashboard() {</Card><Card>- <CardHeader>+ <CardHeader className="flex-row gap-2">+ <LuCalendarClock className="text-muted-foreground" /><CardTitle>Open Scheduled</CardTitle></CardHeader><CardContent>@@ -393,7 +399,8 @@ export default function MaintenanceDashboard() {</Card><Card>- <CardHeader>+ <CardHeader className="flex-row gap-2">+ <LuTriangleAlert className="text-muted-foreground" /><CardTitle>Open Reactive</CardTitle></CardHeader><CardContent>@@ -654,7 +661,8 @@ export default function MaintenanceDashboard() {</Card><div className="grid w-full gap-4 grid-cols-1 lg:grid-cols-2"><Card>- <CardHeader>+ <CardHeader className="flex-row gap-2">+ <LuClock className="text-muted-foreground" /><CardTitle>Recently Created</CardTitle></CardHeader><CardContent className="p-6">@@ -671,7 +679,8 @@ export default function MaintenanceDashboard() {</Card><Card>- <CardHeader>+ <CardHeader className="flex-row gap-2">+ <LuInbox className="text-muted-foreground" /><CardTitle>Assigned to Me</CardTitle></CardHeader><CardContent className="min-h-[200px]">diff --git a/apps/erp/app/routes/x+/sales+/_index.tsx b/apps/erp/app/routes/x+/sales+/_index.tsxindex 468b606278..84a5e66cd3 100644--- a/apps/erp/app/routes/x+/sales+/_index.tsx+++ b/apps/erp/app/routes/x+/sales+/_index.tsx@@ -43,8 +43,10 @@ import { CSVLink } from "react-csv";import {LuArrowUpRight,LuChevronDown,+ LuClock,LuEllipsisVertical,- LuFile+ LuFile,+ LuInbox} from "react-icons/lu";import {RiProgress2Line,@@ -366,7 +368,8 @@ export default function SalesDashboard() {<div className="flex flex-col gap-4 w-full p-4 h-[calc(100dvh-var(--header-height))] overflow-y-auto scrollbar-thin scrollbar-thumb-rounded-full scrollbar-thumb-muted-foreground"><div className="grid w-full gap-4 grid-cols-1 lg:grid-cols-3"><Card>- <CardHeader>+ <CardHeader className="flex-row gap-2">+ <RiProgress2Line className="text-muted-foreground" /><CardTitle>Open RFQs</CardTitle></CardHeader><CardContent>@@ -392,7 +395,8 @@ export default function SalesDashboard() {</Card><Card>- <CardHeader>+ <CardHeader className="flex-row gap-2">+ <RiProgress4Line className="text-muted-foreground" /><CardTitle>Open Quotes</CardTitle></CardHeader><CardContent>@@ -418,7 +422,8 @@ export default function SalesDashboard() {</Card><Card>- <CardHeader>+ <CardHeader className="flex-row gap-2">+ <RiProgress8Line className="text-muted-foreground" /><CardTitle>Open Sales Orders</CardTitle></CardHeader><CardContent>@@ -634,7 +639,8 @@ export default function SalesDashboard() {</Card><div className="grid w-full gap-4 grid-cols-1 lg:grid-cols-2"><Card>- <CardHeader>+ <CardHeader className="flex-row gap-2">+ <LuClock className="text-muted-foreground" /><CardTitle>Recently Created</CardTitle></CardHeader><CardContent className="p-6">@@ -688,7 +694,8 @@ export default function SalesDashboard() {</Card><Card>- <CardHeader>+ <CardHeader className="flex-row gap-2">+ <LuInbox className="text-muted-foreground" /><CardTitle>Assigned to Me</CardTitle></CardHeader><CardContent className="min-h-[200px]">