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 company logo to navigation
Brad Barbin3c9ff8a2a5bb
diff --git a/apps/carbon/app/components/Layout/Navigation/IconSidebar.tsx b/apps/carbon/app/components/Layout/Navigation/IconSidebar.tsxindex 7e7ddb793d..d3d30991fa 100644--- a/apps/carbon/app/components/Layout/Navigation/IconSidebar.tsx+++ b/apps/carbon/app/components/Layout/Navigation/IconSidebar.tsx@@ -5,7 +5,7 @@ import { forwardRef, type AnchorHTMLAttributes } from "react";import { BsFillHexagonFill } from "react-icons/bs";import { LuUserCircle } from "react-icons/lu";import { z } from "zod";-import { useOptimisticLocation } from "~/hooks";+import { useOptimisticLocation, useUser } from "~/hooks";import type { Authenticated, NavItem } from "~/types";import { path } from "~/utils/path";import { useModules } from "./useModules";@@ -15,6 +15,8 @@ export const ModuleHandle = z.object({});const IconSidebar = () => {+ const { company } = useUser();+const navigationPanel = useDisclosure();const location = useOptimisticLocation();const currentModule = getModule(location.pathname);@@ -50,7 +52,15 @@ const IconSidebar = () => {<VStack spacing={1}><Button isIcon asChild variant="ghost" size="lg"><Link to="/">- <BsFillHexagonFill />+ {company?.logo ? (+ <img+ src={company.logo}+ alt={`${company.name} logo`}+ className="w-full h-auto"+ />+ ) : (+ <BsFillHexagonFill />+ )}</Link></Button>{links.map((link) => {diff --git a/apps/carbon/app/modules/purchasing/ui/usePurchasingSubmodules.tsx b/apps/carbon/app/modules/purchasing/ui/usePurchasingSubmodules.tsxindex f1c34e96eb..82d3091f07 100644--- a/apps/carbon/app/modules/purchasing/ui/usePurchasingSubmodules.tsx+++ b/apps/carbon/app/modules/purchasing/ui/usePurchasingSubmodules.tsx@@ -1,3 +1,4 @@+import { LuContainer, LuLayoutList, LuShapes, LuStar } from "react-icons/lu";import { usePermissions } from "~/hooks";import type { AuthenticatedRouteGroup } from "~/types";import { path } from "~/utils/path";@@ -6,13 +7,15 @@ const purchasingRoutes: AuthenticatedRouteGroup[] = [{name: "Manage",routes: [- {- name: "Purchase Orders",- to: path.to.purchaseOrders,- },{name: "Suppliers",to: path.to.suppliers,+ icon: <LuContainer />,+ },+ {+ name: "Purchase Orders",+ to: path.to.purchaseOrders,+ icon: <LuLayoutList />,},],},@@ -20,14 +23,16 @@ const purchasingRoutes: AuthenticatedRouteGroup[] = [name: "Configure",routes: [{- name: "Supplier Statuses",+ name: "Statuses",to: path.to.supplierStatuses,role: "employee",+ icon: <LuShapes />,},{- name: "Supplier Types",+ name: "Types",to: path.to.supplierTypes,role: "employee",+ icon: <LuStar />,},],},diff --git a/apps/carbon/app/modules/sales/ui/useSalesSubmodules.tsx b/apps/carbon/app/modules/sales/ui/useSalesSubmodules.tsxindex 87a9276b26..2e17001d81 100644--- a/apps/carbon/app/modules/sales/ui/useSalesSubmodules.tsx+++ b/apps/carbon/app/modules/sales/ui/useSalesSubmodules.tsx@@ -1,3 +1,9 @@+import { LuShapes, LuStar, LuUserSquare } from "react-icons/lu";+import {+ RiProgress2Line,+ RiProgress4Line,+ RiProgress8Line,+} from "react-icons/ri";import { usePermissions } from "~/hooks";import type { AuthenticatedRouteGroup } from "~/types";import { path } from "~/utils/path";@@ -9,18 +15,22 @@ const salesRoutes: AuthenticatedRouteGroup[] = [{name: "Customers",to: path.to.customers,+ icon: <LuUserSquare />,},{name: "RFQs",to: "#", // path.to.rfqs,+ icon: <RiProgress2Line />,},{name: "Quotes",to: path.to.quotes,+ icon: <RiProgress4Line />,},{name: "Orders",to: path.to.salesOrders,+ icon: <RiProgress8Line />,},],},@@ -28,14 +38,16 @@ const salesRoutes: AuthenticatedRouteGroup[] = [name: "Configure",routes: [{- name: "Customer Statuses",+ name: "Statuses",to: path.to.customerStatuses,role: "employee",+ icon: <LuStar />,},{- name: "Customer Types",+ name: "Types",to: path.to.customerTypes,role: "employee",+ icon: <LuShapes />,},],},diff --git a/apps/carbon/package.json b/apps/carbon/package.jsonindex 4e8899c40d..c0efe6522b 100644--- a/apps/carbon/package.json+++ b/apps/carbon/package.json@@ -62,7 +62,7 @@"react-dom": "^18.2.0","react-dropzone": "^14.2.3","react-hotkeys-hook": "~4.5.0",- "react-icons": "^4.12.0",+ "react-icons": "^5.2.1","react-pdf": "^7.7.1","react-phone-number-input": "^3.3.9","react-use-measure": "^2.1.1",diff --git a/apps/docs/package.json b/apps/docs/package.jsonindex 0bf4b4f5c8..3f257d2a47 100644--- a/apps/docs/package.json+++ b/apps/docs/package.json@@ -18,7 +18,7 @@"react": "^18.2.0","react-dom": "^18.2.0","react-hook-form": "7.51.2",- "react-icons": "^4.12.0",+ "react-icons": "^5.2.1","tailwind-merge": "^2.2.1","tailwindcss-animate": "^1.0.7","zod": "^3.23.8"diff --git a/apps/mes/package.json b/apps/mes/package.jsonindex eb972c1302..4fe553d8f7 100644--- a/apps/mes/package.json+++ b/apps/mes/package.json@@ -20,7 +20,7 @@"localforage": "^1.10.0","react": "^18.2.0","react-dom": "^18.2.0",- "react-icons": "^4.12.0",+ "react-icons": "^5.2.1","react-router-dom": "^6.23.1","react-hook-form": "7.51.2","zod": "3.23.8"diff --git a/apps/website/package.json b/apps/website/package.jsonindex e1615b7f0f..88fa7012f9 100644--- a/apps/website/package.json+++ b/apps/website/package.json@@ -31,7 +31,7 @@"next-themes": "^0.3.0","react": "^18.2.0","react-dom": "^18.2.0",- "react-icons": "^4.12.0",+ "react-icons": "^5.2.1","react-hook-form": "^7.51.2","server-only": "^0.0.1","zod": "^3.23.8"diff --git a/package-lock.json b/package-lock.jsonindex e797541caa..22d4dbf173 100644--- a/package-lock.json+++ b/package-lock.json@@ -88,7 +88,7 @@"react-dom": "^18.2.0","react-dropzone": "^14.2.3","react-hotkeys-hook": "~4.5.0",- "react-icons": "^4.12.0",+ "react-icons": "^5.2.1","react-pdf": "^7.7.1","react-phone-number-input": "^3.3.9","react-use-measure": "^2.1.1",@@ -151,7 +151,7 @@"react": "^18.2.0","react-dom": "^18.2.0","react-hook-form": "7.51.2",- "react-icons": "^4.12.0",+ "react-icons": "^5.2.1","tailwind-merge": "^2.2.1","tailwindcss-animate": "^1.0.7","zod": "^3.23.8"@@ -185,7 +185,7 @@"react": "^18.2.0","react-dom": "^18.2.0","react-hook-form": "7.51.2",- "react-icons": "^4.12.0",+ "react-icons": "^5.2.1","react-router-dom": "^6.23.1","zod": "3.23.8"},@@ -226,7 +226,7 @@"react": "^18.2.0","react-dom": "^18.2.0","react-hook-form": "^7.51.2",- "react-icons": "^4.12.0",+ "react-icons": "^5.2.1","server-only": "^0.0.1","zod": "^3.23.8"},@@ -28244,9 +28244,9 @@}},"node_modules/react-icons": {- "version": "4.12.0",- "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-4.12.0.tgz",- "integrity": "sha512-IBaDuHiShdZqmfc/TwHu6+d6k2ltNCf3AszxNmjJc1KUfXdEeRJOKyNvLmAHaarhzGmTSVygNdyu8/opXv2gaw==",+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-5.2.1.tgz",+ "integrity": "sha512-zdbW5GstTzXaVKvGSyTaBalt7HSfuK5ovrzlpyiWHAFXndXTdd/1hdDHI4xBM1Mn7YriT6aqESucFl9kEXzrdw==","peerDependencies": {"react": "*"}@@ -35116,7 +35116,7 @@"@react-email/components": "0.0.16","@react-pdf/renderer": "^3.1.14","react-hook-form": "7.51.2",- "react-icons": "^4.12.0"+ "react-icons": "^5.2.1"},"devDependencies": {"@carbon/database": "*",@@ -35322,7 +35322,7 @@"@internationalized/date": "^3.5.2","framer-motion": "^11.1.7","react": "^18.2.0",- "react-icons": "^4.12.0"+ "react-icons": "^5.2.1"}},"packages/react-hook-form": {diff --git a/packages/documents/package.json b/packages/documents/package.jsonindex 2af60777b0..82b958f9d4 100644--- a/packages/documents/package.json+++ b/packages/documents/package.json@@ -4,7 +4,7 @@"@hookform/resolvers": "^3.3.4","@react-email/components": "0.0.16","@react-pdf/renderer": "^3.1.14",- "react-icons": "^4.12.0",+ "react-icons": "^5.2.1","react-hook-form": "7.51.2"},"devDependencies": {diff --git a/packages/react/package.json b/packages/react/package.jsonindex f265453c03..be7b6303e2 100644--- a/packages/react/package.json+++ b/packages/react/package.json@@ -84,7 +84,7 @@"@internationalized/date": "^3.5.2","framer-motion": "^11.1.7","react": "^18.2.0",- "react-icons": "^4.12.0"+ "react-icons": "^5.2.1"},"private": true,"scripts": {