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 enumerables to users module tables
Brad Barbinecbbe5478032
diff --git a/apps/carbon/app/modules/resources/ui/Partners/PartnersTable.tsx b/apps/carbon/app/modules/resources/ui/Partners/PartnersTable.tsxindex 1becfa8896..5e8ae77d54 100644--- a/apps/carbon/app/modules/resources/ui/Partners/PartnersTable.tsx+++ b/apps/carbon/app/modules/resources/ui/Partners/PartnersTable.tsx@@ -51,9 +51,7 @@ const PartnersTable = memo(({ data, count }: PartnersTableProps) => {},{header: "Location",- cell: ({ row }) => (- <Enumerable value={`${row.original.city}, ${row.original.state}`} />- ),+ cell: ({ row }) => `${row.original.city}, ${row.original.state}`,},{accessorKey: "abilityName",diff --git a/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTable.tsx b/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTable.tsxindex 71b289ab28..732fd09463 100644--- a/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTable.tsx+++ b/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTable.tsx@@ -1,4 +1,10 @@-import { HStack, MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ Enumerable,+ HStack,+ MenuIcon,+ MenuItem,+ useDisclosure,+} from "@carbon/react";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo, useState } from "react";import { BsEnvelope } from "react-icons/bs";@@ -93,11 +99,10 @@ const CustomerAccountsTable = memo(},{header: "Customer Type",- cell: ({ row }) => {- const customerType = row.original.customer?.customerType;+ cell: ({ row }) => (// @ts-ignore- return customerType ? customerType.name : "";- },+ <Enumerable value={row.original.customer?.customerType?.name} />+ ),},];}, []);diff --git a/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable.tsx b/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable.tsxindex c59bb385b2..f814c4daa9 100644--- a/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable.tsx+++ b/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable.tsx@@ -1,4 +1,4 @@-import { Hyperlink, MenuIcon, MenuItem } from "@carbon/react";+import { Enumerable, MenuIcon, MenuItem } from "@carbon/react";import { useNavigate } from "@remix-run/react";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -26,11 +26,16 @@ const EmployeeTypesTable = memo(({ data, count }: EmployeeTypesTableProps) => {header: "Employee Type",cell: ({ row, getValue }) =>row.original.protected ? (- getValue()+ <Enumerable+ value={row.original.name}+ className="cursor-not-allowed"+ />) : (- <Hyperlink onClick={() => navigate(row.original.id)}>- {row.original.name}- </Hyperlink>+ <Enumerable+ value={row.original.name}+ onClick={() => navigate(row.original.id)}+ className="cursor-pointer"+ />),},];diff --git a/apps/carbon/app/modules/users/ui/Employees/EmployeesTable.tsx b/apps/carbon/app/modules/users/ui/Employees/EmployeesTable.tsxindex b57470ac7f..7feb3e0af5 100644--- a/apps/carbon/app/modules/users/ui/Employees/EmployeesTable.tsx+++ b/apps/carbon/app/modules/users/ui/Employees/EmployeesTable.tsx@@ -1,4 +1,5 @@import {+ Enumerable,HStack,Hyperlink,MenuIcon,@@ -106,7 +107,7 @@ const EmployeesTable = memo({accessorKey: "employeeType.name",header: "Employee Type",- cell: (item) => item.getValue(),+ cell: (item) => <Enumerable value={item.getValue<string>()} />,},];// eslint-disable-next-line react-hooks/exhaustive-depsdiff --git a/apps/carbon/app/modules/users/ui/Suppliers/SupplierAccountsTable/SuppliersAccountsTable.tsx b/apps/carbon/app/modules/users/ui/Suppliers/SupplierAccountsTable/SuppliersAccountsTable.tsxindex be0ec52c27..556f0eafe1 100644--- a/apps/carbon/app/modules/users/ui/Suppliers/SupplierAccountsTable/SuppliersAccountsTable.tsx+++ b/apps/carbon/app/modules/users/ui/Suppliers/SupplierAccountsTable/SuppliersAccountsTable.tsx@@ -1,4 +1,10 @@-import { HStack, MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ Enumerable,+ HStack,+ MenuIcon,+ MenuItem,+ useDisclosure,+} from "@carbon/react";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo, useState } from "react";import { BsEnvelope } from "react-icons/bs";@@ -86,11 +92,10 @@ const SupplierAccountsTable = memo(},{header: "Supplier Type",- cell: ({ row }) => {- const supplierType = row.original.supplier?.supplierType;+ cell: ({ row }) => (// @ts-ignore- return supplierType ? supplierType.name : "";- },+ <Enumerable value={row.original.supplier?.supplierType?.name} />+ ),},];}, []);