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: icons for table columns

Brad Barbin1873e95a9e4b
diff --git a/apps/carbon/app/components/Table/Table.tsx b/apps/carbon/app/components/Table/Table.tsx
index 75b589dd0c..455ce16a21 100644
--- a/apps/carbon/app/components/Table/Table.tsx
+++ b/apps/carbon/app/components/Table/Table.tsx
@@ -459,6 +459,7 @@ const Table = <T extends object>({
header: column.header,
pluralHeader: column.meta.pluralHeader,
filter: column.meta.filter,
+ icon: column.meta.icon,
};
return [...acc, filter];
}
@@ -727,7 +728,7 @@ const Table = <T extends object>({
</DropdownMenuContent>
</DropdownMenu>
) : (
- <div className="flex justify-start items-center text-xs text-foreground flex gap-2">
+ <div className="flex justify-start items-center gap-2">
{header.column.columnDef.meta?.icon}
{flexRender(
header.column.columnDef.header,
diff --git a/apps/carbon/app/components/Table/components/Columns.tsx b/apps/carbon/app/components/Table/components/Columns.tsx
index b86aea6904..34ae0f5c99 100644
--- a/apps/carbon/app/components/Table/components/Columns.tsx
+++ b/apps/carbon/app/components/Table/components/Columns.tsx
@@ -66,7 +66,8 @@ const Columns = <T extends object>({
icon={<MdOutlineDragIndicator />}
variant="ghost"
/>
- <span className="text-sm flex-grow">
+ <span className="text-sm flex-grow flex items-center gap-2">
+ {column.columnDef.meta?.icon}
<>{column.columnDef.header}</>
</span>
<IconButton
diff --git a/apps/carbon/app/components/Table/components/Filter/ActiveFilters.tsx b/apps/carbon/app/components/Table/components/Filter/ActiveFilters.tsx
index dd2f9e0e02..a985fc1c26 100644
--- a/apps/carbon/app/components/Table/components/Filter/ActiveFilters.tsx
+++ b/apps/carbon/app/components/Table/components/Filter/ActiveFilters.tsx
@@ -120,7 +120,12 @@ const ActiveFilter = ({ filter, operator, value }: ActiveFilterProps) => {
return (
<HStack spacing={0}>
- <Button className="rounded-r-none" size="sm" variant="secondary">
+ <Button
+ leftIcon={filter.icon ?? undefined}
+ className="rounded-r-none"
+ size="sm"
+ variant="secondary"
+ >
{filter.header}
</Button>
<Button className="rounded-none border-l-0" size="sm" variant="secondary">
diff --git a/apps/carbon/app/components/Table/components/Filter/Filter.tsx b/apps/carbon/app/components/Table/components/Filter/Filter.tsx
index c9b9d5d152..f6e931f606 100644
--- a/apps/carbon/app/components/Table/components/Filter/Filter.tsx
+++ b/apps/carbon/app/components/Table/components/Filter/Filter.tsx
@@ -10,6 +10,8 @@ import {
Popover,
PopoverContent,
PopoverTrigger,
+ reactNodeToString,
+ ScrollArea,
VStack,
} from "@carbon/react";
import { useFetcher } from "@remix-run/react";
@@ -71,7 +73,12 @@ const Filter = forwardRef<HTMLButtonElement, FilterProps>(
}, [fetcher.data, activeFilter]);
const columnFilters = useMemo(
- () => filters.map((f) => ({ value: f.accessorKey, label: f.header })),
+ () =>
+ filters.map((f) => ({
+ value: f.accessorKey,
+ label: f.header,
+ icon: f.icon,
+ })),
[filters]
);
@@ -166,52 +173,56 @@ const Filter = forwardRef<HTMLButtonElement, FilterProps>(
key={option.value}
value={`${option.label}:${option.value}`}
onSelect={updateActiveOptions}
+ className="flex items-center gap-2"
>
+ {option.icon}
{option.label}
</CommandItem>
))}
</CommandGroup>
) : (
- <CommandGroup>
- {activeOptions.map((option) => {
- const isChecked = hasFilter(
- activeFilter.accessorKey,
- option.value
- );
- return (
- <CommandItem
- value={option.value}
- key={option.value}
- onSelect={() => {
- toggleFilter(
- activeFilter.accessorKey,
- option.value,
- activeFilter.filter.isArray
- );
- if (trigger === "icon") {
- setOpen(false);
- } else {
- setInput("");
- }
- }}
- >
- <HStack spacing={2}>
- <Checkbox id={option.value} isChecked={isChecked} />
- <label htmlFor={option.value}>
- <VStack spacing={0}>
- <span>{option.label}</span>
- {option.helperText && (
- <p className="text-xs text-muted-foreground truncate">
- {option.helperText}
- </p>
- )}
- </VStack>
- </label>
- </HStack>
- </CommandItem>
- );
- })}
- </CommandGroup>
+ <ScrollArea className="max-h-[300px]">
+ <CommandGroup>
+ {activeOptions.map((option) => {
+ const isChecked = hasFilter(
+ activeFilter.accessorKey,
+ option.value
+ );
+ return (
+ <CommandItem
+ value={reactNodeToString(option.label)}
+ key={option.value}
+ onSelect={() => {
+ toggleFilter(
+ activeFilter.accessorKey,
+ option.value,
+ activeFilter.filter.isArray
+ );
+ if (trigger === "icon") {
+ setOpen(false);
+ } else {
+ setInput("");
+ }
+ }}
+ >
+ <HStack spacing={2}>
+ <Checkbox id={option.value} isChecked={isChecked} />
+ <label htmlFor={option.value}>
+ <VStack spacing={0}>
+ <span>{option.label}</span>
+ {option.helperText && (
+ <p className="text-xs text-muted-foreground truncate">
+ {option.helperText}
+ </p>
+ )}
+ </VStack>
+ </label>
+ </HStack>
+ </CommandItem>
+ );
+ })}
+ </CommandGroup>
+ </ScrollArea>
)}
</Command>
</PopoverContent>
diff --git a/apps/carbon/app/components/Table/components/Filter/types.ts b/apps/carbon/app/components/Table/components/Filter/types.ts
index d10dfba5e5..e8485b9fcb 100644
--- a/apps/carbon/app/components/Table/components/Filter/types.ts
+++ b/apps/carbon/app/components/Table/components/Filter/types.ts
@@ -1,10 +1,11 @@
-import type { ReactNode } from "react";
+import type { ReactElement, ReactNode } from "react";
export type ColumnFilter = {
accessorKey: string;
header: string;
pluralHeader?: string;
filter: ColumnFilterData;
+ icon?: ReactElement;
};
export type Option = {
diff --git a/apps/carbon/app/components/Table/types.ts b/apps/carbon/app/components/Table/types.ts
index f93dff5d10..6cfc70c357 100644
--- a/apps/carbon/app/components/Table/types.ts
+++ b/apps/carbon/app/components/Table/types.ts
@@ -1,4 +1,5 @@
import "@tanstack/react-table";
+import type { ReactElement } from "react";
import type { ColumnFilterData } from "./components/Filter/types";
declare module "@tanstack/react-table" {
@@ -6,7 +7,7 @@ declare module "@tanstack/react-table" {
interface ColumnMeta<TData extends unknown, TValue> {
filter?: ColumnFilterData;
pluralHeader?: string;
- icon?: React.ReactNode;
+ icon?: ReactElement;
}
}
diff --git a/apps/carbon/app/hooks/useCustomColumns.tsx b/apps/carbon/app/hooks/useCustomColumns.tsx
index d23d965b75..f135a4cf7c 100644
--- a/apps/carbon/app/hooks/useCustomColumns.tsx
+++ b/apps/carbon/app/hooks/useCustomColumns.tsx
@@ -1,6 +1,14 @@
import type { Json } from "@carbon/database";
import { Checkbox, HStack } from "@carbon/react";
import type { ColumnDef } from "@tanstack/react-table";
+import {
+ LuCalendar,
+ LuCaseSensitive,
+ LuEuro,
+ LuList,
+ LuToggleLeft,
+ LuUser,
+} from "react-icons/lu";
import { Avatar } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { DataType } from "~/modules/shared";
@@ -20,6 +28,9 @@ export function useCustomColumns<T extends { customFields: Json }>(
customColumns.push({
accessorKey: `customFields.${field.id}`,
header: field.name,
+ meta: {
+ icon: <ColumnIcon dataTypeId={field.dataTypeId} />,
+ },
cell: (item) => {
switch (field.dataTypeId) {
case DataType.Boolean:
@@ -89,3 +100,22 @@ export function useCustomColumns<T extends { customFields: Json }>(
function isObject(value: unknown): value is Record<string, unknown> {
return value !== null && typeof value === "object";
}
+
+function ColumnIcon({ dataTypeId }: { dataTypeId: DataType }) {
+ switch (dataTypeId) {
+ case DataType.Boolean:
+ return <LuToggleLeft />;
+ case DataType.Date:
+ return <LuCalendar />;
+ case DataType.List:
+ return <LuList />;
+ case DataType.Numeric:
+ return <LuEuro />;
+ case DataType.Text:
+ return <LuCaseSensitive />;
+ case DataType.User:
+ return <LuUser />;
+ default:
+ return null;
+ }
+}
diff --git a/apps/carbon/app/hooks/useNextItemId.tsx b/apps/carbon/app/hooks/useNextItemId.tsx
index 755d3ea04e..f887e25a36 100644
--- a/apps/carbon/app/hooks/useNextItemId.tsx
+++ b/apps/carbon/app/hooks/useNextItemId.tsx
@@ -20,10 +20,13 @@ export function useNextItemId(
?.from("item")
.select("readableId")
.eq("companyId", company.id)
+ .eq("type", table)
.ilike("readableId", `${prefix}%`)
.order("readableId", { ascending: false })
.limit(1)
.maybeSingle();
+
+ console.log({ data });
if (data?.readableId) {
const sequence = data.readableId.slice(prefix.length);
const currentSequence = parseInt(sequence);
diff --git a/apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTable.tsx b/apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTable.tsx
index 7af748771a..0ac206db73 100644
--- a/apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTable.tsx
+++ b/apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTable.tsx
@@ -2,7 +2,7 @@ import { MenuIcon, MenuItem } from "@carbon/react";
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
-import { LuPencil } from "react-icons/lu";
+import { LuBookMarked, LuEuro, LuPencil, LuPercent } from "react-icons/lu";
import { Hyperlink, Table } from "~/components";
import { usePermissions, useUrlParams } from "~/hooks";
import { useCustomColumns } from "~/hooks/useCustomColumns";
@@ -30,16 +30,25 @@ const CurrenciesTable = memo(({ data, count }: CurrenciesTableProps) => {
{row.original.name}
</Hyperlink>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
accessorKey: "code",
header: "Code",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuEuro />,
+ },
},
{
accessorKey: "exchangeRate",
header: "Exchange Rate",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuPercent />,
+ },
},
];
return [...defaultColumns, ...customColumns];
diff --git a/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTable.tsx b/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTable.tsx
index 7053254300..00039bde7d 100644
--- a/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTable.tsx
+++ b/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTable.tsx
@@ -2,7 +2,14 @@ import { MenuIcon, MenuItem } from "@carbon/react";
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import {
+ LuBookMarked,
+ LuCalendar,
+ LuClock,
+ LuPencil,
+ LuPercent,
+ LuTrash,
+} from "react-icons/lu";
import { Hyperlink, New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -34,21 +41,33 @@ const PaymentTermsTable = memo(({ data, count }: PaymentTermsTableProps) => {
{row.original.name}
</Hyperlink>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
accessorKey: "daysDue",
header: "Days Due",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
accessorKey: "daysDiscount",
header: "Days Discount",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
accessorKey: "discountPercentage",
header: "Discount Percentage",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuPercent />,
+ },
},
{
accessorKey: "calculationMethod",
@@ -62,6 +81,7 @@ const PaymentTermsTable = memo(({ data, count }: PaymentTermsTableProps) => {
value: v,
})),
},
+ icon: <LuClock />,
},
},
];
diff --git a/apps/carbon/app/modules/documents/ui/Documents/DocumentsTable.tsx b/apps/carbon/app/modules/documents/ui/Documents/DocumentsTable.tsx
index 9f8a2354f7..c20e6e9e8e 100644
--- a/apps/carbon/app/modules/documents/ui/Documents/DocumentsTable.tsx
+++ b/apps/carbon/app/modules/documents/ui/Documents/DocumentsTable.tsx
@@ -20,11 +20,17 @@ import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useEffect, useMemo, useState } from "react";
import { IoMdAdd } from "react-icons/io";
import {
+ LuBookMarked,
LuDownload,
LuExternalLink,
+ LuFileText,
LuPencil,
LuPin,
+ LuRuler,
+ LuTag,
LuTrash,
+ LuUser,
+ LuUsers,
LuXCircle,
} from "react-icons/lu";
import { RxCheck } from "react-icons/rx";
@@ -188,6 +194,9 @@ const DocumentsTable = memo(
</Hyperlink>
</HStack>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
accessorKey: "sourceDocument",
@@ -211,6 +220,7 @@ const DocumentsTable = memo(
</HStack>
),
meta: {
+ icon: <LuFileText />,
filter: {
type: "static",
options: documentSourceTypes?.map((type) => ({
@@ -269,6 +279,7 @@ const DocumentsTable = memo(
</HStack>
),
meta: {
+ icon: <LuTag />,
filter: {
type: "static",
options: labelOptions,
@@ -280,12 +291,16 @@ const DocumentsTable = memo(
accessorKey: "size",
header: "Size",
cell: ({ row }) => convertKbToString(row.original.size ?? 0),
+ meta: {
+ icon: <LuRuler />,
+ },
},
{
accessorKey: "type",
header: "Type",
cell: (item) => <Enumerable value={item.getValue<string>()} />,
meta: {
+ icon: <LuFileText />,
filter: {
type: "static",
options: documentTypes.map((type) => ({
@@ -305,6 +320,7 @@ const DocumentsTable = memo(
header: "File Extension",
cell: (item) => item.getValue(),
meta: {
+ icon: <LuFileText />,
filter: {
type: "static",
options: filterEmpty(extensions).map((extension) => ({
@@ -321,6 +337,7 @@ const DocumentsTable = memo(
<EmployeeAvatar employeeId={row.original.createdBy} />
),
meta: {
+ icon: <LuUser />,
filter: {
type: "static",
options: people.map((employee) => ({
@@ -334,6 +351,9 @@ const DocumentsTable = memo(
accessorKey: "createdAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuFileText />,
+ },
},
{
id: "updatedBy",
@@ -342,6 +362,7 @@ const DocumentsTable = memo(
<EmployeeAvatar employeeId={row.original.updatedBy} />
),
meta: {
+ icon: <LuUsers />,
filter: {
type: "static",
options: people.map((employee) => ({
@@ -355,6 +376,9 @@ const DocumentsTable = memo(
accessorKey: "updatedAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuFileText />,
+ },
},
];
// Don't put the revalidator in the deps array
@@ -468,8 +492,9 @@ const DocumentsTable = memo(
<Confirm
action={path.to.documentRestore(selectedDocument.id)}
isOpen
- name={`Restore ${selectedDocument.name}`}
+ title={`Restore ${selectedDocument.name}`}
text={`Are you sure you want to restore ${selectedDocument.name} from the trash?`}
+ confirmText="Restore"
onCancel={() => {
moveDocumentModal.onClose();
setSelectedDocument(null);
diff --git a/apps/carbon/app/modules/inventory/ui/Inventory/InventoryTable.tsx b/apps/carbon/app/modules/inventory/ui/Inventory/InventoryTable.tsx
index 6ffc169e09..044a3ae33c 100644
--- a/apps/carbon/app/modules/inventory/ui/Inventory/InventoryTable.tsx
+++ b/apps/carbon/app/modules/inventory/ui/Inventory/InventoryTable.tsx
@@ -2,7 +2,22 @@ import { Button, Checkbox, Combobox, HStack } from "@carbon/react";
import { Link } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useMemo } from "react";
-import { LuAlertTriangle, LuPlus } from "react-icons/lu";
+import {
+ LuAlertTriangle,
+ LuAlignLeft,
+ LuBookMarked,
+ LuBox,
+ LuCheck,
+ LuFactory,
+ LuGlassWater,
+ LuMapPin,
+ LuPackage,
+ LuPlus,
+ LuRuler,
+ LuShapes,
+ LuShoppingBag,
+ LuShoppingCart,
+} from "react-icons/lu";
import {
Hyperlink,
ItemThumbnail,
@@ -61,23 +76,32 @@ const InventoryTable = memo(
/>
<Hyperlink
to={`${path.to.inventoryItem(row.original.itemId!)}/?${params}`}
- className="max-w-[260px] truncate"
+ className="min-w-[200px] max-w-[260px] truncate"
>
<>{row.original.readableId}</>
</Hyperlink>
</HStack>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
accessorKey: "name",
header: "Short Description",
cell: ({ row }) => row.original.name,
+ meta: {
+ icon: <LuAlignLeft />,
+ },
},
{
accessorKey: "locationName",
header: "Location",
cell: ({ row }) => <Enumerable value={row.original.locationName} />,
+ meta: {
+ icon: <LuMapPin />,
+ },
},
{
@@ -97,6 +121,7 @@ const InventoryTable = memo(
value: form.id,
})),
},
+ icon: <LuShapes />,
},
},
{
@@ -116,28 +141,41 @@ const InventoryTable = memo(
value: substance.id,
})),
},
+ icon: <LuGlassWater />,
},
},
{
accessorKey: "quantityOnHand",
header: "On Hand",
cell: ({ row }) => row.original.quantityOnHand,
+ meta: {
+ icon: <LuPackage />,
+ },
},
{
accessorKey: "quantityOnPurchaseOrder",
header: "On Purchase Order",
cell: ({ row }) => row.original.quantityOnPurchaseOrder,
+ meta: {
+ icon: <LuShoppingCart />,
+ },
},
{
accessorKey: "quantityOnProdOrder",
header: "On Prod Order",
cell: ({ row }) => row.original.quantityOnProdOrder,
+ meta: {
+ icon: <LuFactory />,
+ },
},
{
accessorKey: "quantityOnSalesOrder",
header: "On Sales Order",
cell: ({ row }) => row.original.quantityOnSalesOrder,
+ meta: {
+ icon: <LuShoppingBag />,
+ },
},
{
accessorKey: "unitOfMeasureCode",
@@ -150,6 +188,9 @@ const InventoryTable = memo(
? unitOfMeasure.name
: row.original.unitOfMeasureCode;
},
+ meta: {
+ icon: <LuRuler />,
+ },
},
{
accessorKey: "type",
@@ -174,6 +215,7 @@ const InventoryTable = memo(
value: type,
})),
},
+ icon: <LuBox />,
},
},
{
@@ -189,6 +231,7 @@ const InventoryTable = memo(
],
},
pluralHeader: "Active Statuses",
+ icon: <LuCheck />,
},
},
];
@@ -199,6 +242,10 @@ const InventoryTable = memo(
type: false,
};
+ const defaultColumnPinning = {
+ left: ["readableId"],
+ };
+
return (
<>
{count === 0 && !hasFilters ? (
@@ -220,6 +267,7 @@ const InventoryTable = memo(
columns={columns}
data={data}
defaultColumnVisibility={defaultColumnVisibility}
+ defaultColumnPinning={defaultColumnPinning}
primaryAction={
<Combobox
size="sm"
diff --git a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTable.tsx b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTable.tsx
index f0722de978..a8175e7a21 100644
--- a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTable.tsx
+++ b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTable.tsx
@@ -3,7 +3,18 @@ import { formatDate } from "@carbon/utils";
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo, useState } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import {
+ LuBookMarked,
+ LuCalendar,
+ LuCheck,
+ LuClock,
+ LuFileText,
+ LuHash,
+ LuMapPin,
+ LuPencil,
+ LuTrash,
+ LuUser,
+} from "react-icons/lu";
import {
EmployeeAvatar,
Hyperlink,
@@ -53,6 +64,9 @@ const ReceiptsTable = memo(({ data, count, locations }: ReceiptsTableProps) => {
{row.original.receiptId}
</Hyperlink>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
accessorKey: "sourceDocument",
@@ -66,6 +80,7 @@ const ReceiptsTable = memo(({ data, count, locations }: ReceiptsTableProps) => {
label: <Enumerable value={type} />,
})),
},
+ icon: <LuFileText />,
},
},
{
@@ -96,6 +111,9 @@ const ReceiptsTable = memo(({ data, count, locations }: ReceiptsTableProps) => {
return null;
}
},
+ meta: {
+ icon: <LuHash />,
+ },
},
{
accessorKey: "locationName",
@@ -109,6 +127,7 @@ const ReceiptsTable = memo(({ data, count, locations }: ReceiptsTableProps) => {
label: <Enumerable value={name} />,
})),
},
+ icon: <LuMapPin />,
},
},
{
@@ -127,6 +146,7 @@ const ReceiptsTable = memo(({ data, count, locations }: ReceiptsTableProps) => {
})),
},
pluralHeader: "Statuses",
+ icon: <LuClock />,
},
},
{
@@ -143,12 +163,16 @@ const ReceiptsTable = memo(({ data, count, locations }: ReceiptsTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "postingDate",
header: "Posting Date",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
id: "supplierId",
@@ -164,6 +188,7 @@ const ReceiptsTable = memo(({ data, count, locations }: ReceiptsTableProps) => {
label: supplier.name,
})),
},
+ icon: <LuUser />,
},
},
{
@@ -179,12 +204,16 @@ const ReceiptsTable = memo(({ data, count, locations }: ReceiptsTableProps) => {
],
},
pluralHeader: "Invoiced Statuses",
+ icon: <LuCheck />,
},
},
{
accessorKey: "externalDocumentId",
header: "External Ref.",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuHash />,
+ },
},
{
id: "createdBy",
@@ -200,12 +229,16 @@ const ReceiptsTable = memo(({ data, count, locations }: ReceiptsTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "createdAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
id: "updatedBy",
@@ -221,12 +254,16 @@ const ReceiptsTable = memo(({ data, count, locations }: ReceiptsTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "updatedAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
];
diff --git a/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsx b/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsx
index 1d8a161c61..604170211f 100644
--- a/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsx
+++ b/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsx
@@ -2,7 +2,14 @@ import { MenuIcon, MenuItem } from "@carbon/react";
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import {
+ LuBanknote,
+ LuBookMarked,
+ LuGlobe,
+ LuPencil,
+ LuTrash,
+ LuTruck,
+} from "react-icons/lu";
import { Hyperlink, New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -42,6 +49,9 @@ const ShippingMethodsTable = memo(
{row.original.name}
</Hyperlink>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
accessorKey: "carrier",
@@ -55,12 +65,16 @@ const ShippingMethodsTable = memo(
value: v,
})),
},
+ icon: <LuTruck />,
},
},
{
accessorKey: "trackingUrl",
header: "Tracking URL",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuGlobe />,
+ },
},
];
result = [...result, ...customColumns];
@@ -71,6 +85,9 @@ const ShippingMethodsTable = memo(
accessorKey: "carrierAccountId",
header: "Carrier Account",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuBanknote />,
+ },
},
])
: result;
diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTable.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTable.tsx
index c988c6148e..1c8777927f 100644
--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTable.tsx
+++ b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTable.tsx
@@ -3,7 +3,17 @@ import { formatDate } from "@carbon/utils";
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useMemo, useState } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import {
+ LuBookMarked,
+ LuCalendar,
+ LuContainer,
+ LuCreditCard,
+ LuPencil,
+ LuQrCode,
+ LuStar,
+ LuTrash,
+ LuUser,
+} from "react-icons/lu";
import {
EmployeeAvatar,
Hyperlink,
@@ -56,6 +66,9 @@ const PurchaseInvoicesTable = memo(
{row.original?.invoiceId}
</Hyperlink>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
id: "supplierId",
@@ -71,6 +84,7 @@ const PurchaseInvoicesTable = memo(
label: supplier.name,
})),
},
+ icon: <LuContainer />,
},
},
{
@@ -87,12 +101,16 @@ const PurchaseInvoicesTable = memo(
label: supplier.name,
})),
},
+ icon: <LuContainer />,
},
},
{
accessorKey: "supplierReference",
header: "Supplier Ref.",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuQrCode />,
+ },
},
{
accessorKey: "status",
@@ -111,6 +129,7 @@ const PurchaseInvoicesTable = memo(
})),
},
pluralHeader: "Statuses",
+ icon: <LuStar />,
},
},
{
@@ -127,27 +146,40 @@ const PurchaseInvoicesTable = memo(
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "dateIssued",
header: "Issued Date",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
accessorKey: "dateDue",
header: "Due Date",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
accessorKey: "datePaid",
header: "Paid Date",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
accessorKey: "paymentTermName",
header: "Payment Method",
cell: (item) => <Enumerable value={item.getValue<string>()} />,
+ meta: {
+ icon: <LuCreditCard />,
+ },
},
{
id: "createdBy",
@@ -163,12 +195,16 @@ const PurchaseInvoicesTable = memo(
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "createdAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
id: "updatedBy",
@@ -184,12 +220,16 @@ const PurchaseInvoicesTable = memo(
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "updatedAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
];
diff --git a/apps/carbon/app/modules/items/ui/Consumables/ConsumablesTable.tsx b/apps/carbon/app/modules/items/ui/Consumables/ConsumablesTable.tsx
index 854974aaee..622f213df6 100644
--- a/apps/carbon/app/modules/items/ui/Consumables/ConsumablesTable.tsx
+++ b/apps/carbon/app/modules/items/ui/Consumables/ConsumablesTable.tsx
@@ -21,7 +21,18 @@ import { formatDate } from "@carbon/utils";
import { useFetcher, useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useEffect, useMemo, useState } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import {
+ LuAlignJustify,
+ LuAlignLeft,
+ LuBookMarked,
+ LuCalendar,
+ LuCheck,
+ LuPencil,
+ LuTrash,
+ LuUser,
+} from "react-icons/lu";
+import { RxCodesandboxLogo } from "react-icons/rx";
+import { TbTargetArrow } from "react-icons/tb";
import {
EmployeeAvatar,
Hyperlink,
@@ -76,6 +87,9 @@ const ConsumablesTable = memo(
</Hyperlink>
</HStack>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
accessorKey: "name",
@@ -85,6 +99,9 @@ const ConsumablesTable = memo(
{item.getValue<string>()}
</div>
),
+ meta: {
+ icon: <LuAlignLeft />,
+ },
},
{
accessorKey: "description",
@@ -94,6 +111,9 @@ const ConsumablesTable = memo(
{item.getValue<string>()}
</div>
),
+ meta: {
+ icon: <LuAlignJustify />,
+ },
},
{
accessorKey: "itemTrackingType",
@@ -120,6 +140,7 @@ const ConsumablesTable = memo(
),
})),
},
+ icon: <TbTargetArrow />,
},
},
{
@@ -144,6 +165,7 @@ const ConsumablesTable = memo(
),
})),
},
+ icon: <RxCodesandboxLogo />,
},
},
{
@@ -159,6 +181,7 @@ const ConsumablesTable = memo(
],
},
pluralHeader: "Active Statuses",
+ icon: <LuCheck />,
},
},
// {
@@ -191,12 +214,16 @@ const ConsumablesTable = memo(
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "createdAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
id: "updatedBy",
@@ -212,12 +239,16 @@ const ConsumablesTable = memo(
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "updatedAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
];
return [...defaultColumns, ...customColumns];
diff --git a/apps/carbon/app/modules/items/ui/Fixtures/FixturesTable.tsx b/apps/carbon/app/modules/items/ui/Fixtures/FixturesTable.tsx
index 343c9a6bd8..76670472db 100644
--- a/apps/carbon/app/modules/items/ui/Fixtures/FixturesTable.tsx
+++ b/apps/carbon/app/modules/items/ui/Fixtures/FixturesTable.tsx
@@ -21,7 +21,19 @@ import { formatDate } from "@carbon/utils";
import { useFetcher, useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useEffect, useMemo, useState } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import {
+ LuAlignJustify,
+ LuAlignLeft,
+ LuBookMarked,
+ LuCalendar,
+ LuCheck,
+ LuPencil,
+ LuRefreshCw,
+ LuTrash,
+ LuUser,
+} from "react-icons/lu";
+import { RxCodesandboxLogo } from "react-icons/rx";
+import { TbTargetArrow } from "react-icons/tb";
import {
CustomerAvatar,
EmployeeAvatar,
@@ -79,6 +91,9 @@ const FixturesTable = memo(
</Hyperlink>
</HStack>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
accessorKey: "name",
@@ -88,6 +103,9 @@ const FixturesTable = memo(
{item.getValue<string>()}
</div>
),
+ meta: {
+ icon: <LuAlignLeft />,
+ },
},
{
accessorKey: "description",
@@ -97,6 +115,9 @@ const FixturesTable = memo(
{item.getValue<string>()}
</div>
),
+ meta: {
+ icon: <LuAlignJustify />,
+ },
},
{
accessorKey: "itemTrackingType",
@@ -123,6 +144,7 @@ const FixturesTable = memo(
),
})),
},
+ icon: <TbTargetArrow />,
},
},
@@ -148,6 +170,7 @@ const FixturesTable = memo(
),
})),
},
+ icon: <RxCodesandboxLogo />,
},
},
{
@@ -162,6 +185,7 @@ const FixturesTable = memo(
label: <Enumerable value={type} />,
})),
},
+ icon: <LuRefreshCw />,
},
},
{
@@ -178,6 +202,7 @@ const FixturesTable = memo(
label: customer.name,
})),
},
+ icon: <LuUser />,
},
},
{
@@ -193,24 +218,9 @@ const FixturesTable = memo(
],
},
pluralHeader: "Active Statuses",
+ icon: <LuCheck />,
},
},
- // {
- // id: "assignee",
- // header: "Assignee",
- // cell: ({ row }) => (
- // <EmployeeAvatar employeeId={row.original.assignee} />
- // ),
- // meta: {
- // filter: {
- // type: "static",
- // options: people.map((employee) => ({
- // value: employee.id,
- // label: employee.name,
- // })),
- // },
- // },
- // },
{
id: "createdBy",
header: "Created By",
@@ -225,12 +235,16 @@ const FixturesTable = memo(
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "createdAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
id: "updatedBy",
@@ -246,12 +260,16 @@ const FixturesTable = memo(
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "updatedAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
];
return [...defaultColumns, ...customColumns];
diff --git a/apps/carbon/app/modules/items/ui/MaterialForms/MaterialShapesTable.tsx b/apps/carbon/app/modules/items/ui/MaterialForms/MaterialShapesTable.tsx
index 5025407168..717d703a49 100644
--- a/apps/carbon/app/modules/items/ui/MaterialForms/MaterialShapesTable.tsx
+++ b/apps/carbon/app/modules/items/ui/MaterialForms/MaterialShapesTable.tsx
@@ -2,7 +2,7 @@ import { Badge, MenuIcon, MenuItem } from "@carbon/react";
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import { LuBookMarked, LuGlobe, LuPencil, LuTrash } from "react-icons/lu";
import { Hyperlink, New, Table } from "~/components";
import { usePermissions, useUrlParams } from "~/hooks";
import { useCustomColumns } from "~/hooks/useCustomColumns";
@@ -40,6 +40,9 @@ const MaterialShapesTable = memo(
{row.original.name}
</Hyperlink>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
header: "Type",
@@ -51,6 +54,9 @@ const MaterialShapesTable = memo(
) : (
<Badge>Company</Badge>
),
+ meta: {
+ icon: <LuGlobe />,
+ },
},
];
return [...defaultColumns, ...customColumns];
diff --git a/apps/carbon/app/modules/items/ui/MaterialSubstances/MaterialSubstanceTable.tsx b/apps/carbon/app/modules/items/ui/MaterialSubstances/MaterialSubstanceTable.tsx
index bfb93dfbad..aca9abd4e8 100644
--- a/apps/carbon/app/modules/items/ui/MaterialSubstances/MaterialSubstanceTable.tsx
+++ b/apps/carbon/app/modules/items/ui/MaterialSubstances/MaterialSubstanceTable.tsx
@@ -2,7 +2,7 @@ import { Badge, MenuIcon, MenuItem } from "@carbon/react";
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import { LuBookMarked, LuGlobe, LuPencil, LuTrash } from "react-icons/lu";
import { Hyperlink, New, Table } from "~/components";
import { usePermissions, useUrlParams } from "~/hooks";
import { useCustomColumns } from "~/hooks/useCustomColumns";
@@ -40,6 +40,9 @@ const MaterialSubstancesTable = memo(
{row.original.name}
</Hyperlink>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
header: "Type",
@@ -51,6 +54,9 @@ const MaterialSubstancesTable = memo(
) : (
<Badge>Company</Badge>
),
+ meta: {
+ icon: <LuGlobe />,
+ },
},
];
return [...defaultColumns, ...customColumns];
diff --git a/apps/carbon/app/modules/items/ui/Materials/MaterialsTable.tsx b/apps/carbon/app/modules/items/ui/Materials/MaterialsTable.tsx
index 499e1cef20..c9ff65ed64 100644
--- a/apps/carbon/app/modules/items/ui/Materials/MaterialsTable.tsx
+++ b/apps/carbon/app/modules/items/ui/Materials/MaterialsTable.tsx
@@ -21,7 +21,23 @@ import { formatDate } from "@carbon/utils";
import { useFetcher, useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useEffect, useMemo, useState } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import {
+ LuAlignJustify,
+ LuAlignLeft,
+ LuBookMarked,
+ LuCalendar,
+ LuCheck,
+ LuExpand,
+ LuGlassWater,
+ LuPaintBucket,
+ LuPencil,
+ LuShapes,
+ LuStar,
+ LuTrash,
+ LuUser,
+} from "react-icons/lu";
+import { RxCodesandboxLogo } from "react-icons/rx";
+import { TbTargetArrow } from "react-icons/tb";
import {
EmployeeAvatar,
Hyperlink,
@@ -76,6 +92,9 @@ const MaterialsTable = memo(({ data, count }: MaterialsTableProps) => {
</Hyperlink>
</HStack>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
accessorKey: "name",
@@ -85,6 +104,9 @@ const MaterialsTable = memo(({ data, count }: MaterialsTableProps) => {
{item.getValue<string>()}
</div>
),
+ meta: {
+ icon: <LuAlignLeft />,
+ },
},
{
accessorKey: "description",
@@ -94,6 +116,9 @@ const MaterialsTable = memo(({ data, count }: MaterialsTableProps) => {
{item.getValue<string>()}
</div>
),
+ meta: {
+ icon: <LuAlignJustify />,
+ },
},
{
accessorKey: "materialSubstance",
@@ -109,6 +134,7 @@ const MaterialsTable = memo(({ data, count }: MaterialsTableProps) => {
label: <Enumerable value={name} />,
})) ?? [],
},
+ icon: <LuGlassWater />,
},
},
{
@@ -125,22 +151,32 @@ const MaterialsTable = memo(({ data, count }: MaterialsTableProps) => {
label: <Enumerable value={name} />,
})) ?? [],
},
+ icon: <LuShapes />,
},
},
{
accessorKey: "finish",
header: "Finish",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuPaintBucket />,
+ },
},
{
accessorKey: "grade",
header: "Grade",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuStar />,
+ },
},
{
accessorKey: "dimensions",
header: "Dimensions",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuExpand />,
+ },
},
{
accessorKey: "itemTrackingType",
@@ -164,6 +200,7 @@ const MaterialsTable = memo(({ data, count }: MaterialsTableProps) => {
),
})),
},
+ icon: <TbTargetArrow />,
},
},
{
@@ -188,6 +225,7 @@ const MaterialsTable = memo(({ data, count }: MaterialsTableProps) => {
),
})),
},
+ icon: <RxCodesandboxLogo />,
},
},
{
@@ -203,24 +241,9 @@ const MaterialsTable = memo(({ data, count }: MaterialsTableProps) => {
],
},
pluralHeader: "Active Statuses",
+ icon: <LuCheck />,
},
},
- // {
- // id: "assignee",
- // header: "Assignee",
- // cell: ({ row }) => (
- // <EmployeeAvatar employeeId={row.original.assignee} />
- // ),
- // meta: {
- // filter: {
- // type: "static",
- // options: people.map((employee) => ({
- // value: employee.id,
- // label: employee.name,
- // })),
- // },
- // },
- // },
{
id: "createdBy",
header: "Created By",
@@ -235,12 +258,16 @@ const MaterialsTable = memo(({ data, count }: MaterialsTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "createdAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
id: "updatedBy",
@@ -256,12 +283,16 @@ const MaterialsTable = memo(({ data, count }: MaterialsTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "updatedAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
];
return [...defaultColumns, ...customColumns];
diff --git a/apps/carbon/app/modules/items/ui/Parts/PartsTable.tsx b/apps/carbon/app/modules/items/ui/Parts/PartsTable.tsx
index 833487b685..1e6eb9dcbc 100644
--- a/apps/carbon/app/modules/items/ui/Parts/PartsTable.tsx
+++ b/apps/carbon/app/modules/items/ui/Parts/PartsTable.tsx
@@ -21,7 +21,19 @@ import { formatDate } from "@carbon/utils";
import { useFetcher, useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useEffect, useMemo, useState } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import {
+ LuAlignJustify,
+ LuAlignLeft,
+ LuBookMarked,
+ LuCalendar,
+ LuCheck,
+ LuPencil,
+ LuRefreshCw,
+ LuTrash,
+ LuUser,
+} from "react-icons/lu";
+import { RxCodesandboxLogo } from "react-icons/rx";
+import { TbTargetArrow } from "react-icons/tb";
import {
EmployeeAvatar,
Hyperlink,
@@ -76,6 +88,9 @@ const PartsTable = memo(({ data, count }: PartsTableProps) => {
</Hyperlink>
</HStack>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
accessorKey: "name",
@@ -85,6 +100,9 @@ const PartsTable = memo(({ data, count }: PartsTableProps) => {
{item.getValue<string>()}
</div>
),
+ meta: {
+ icon: <LuAlignLeft />,
+ },
},
{
accessorKey: "description",
@@ -94,6 +112,9 @@ const PartsTable = memo(({ data, count }: PartsTableProps) => {
{item.getValue<string>()}
</div>
),
+ meta: {
+ icon: <LuAlignJustify />,
+ },
},
{
accessorKey: "itemTrackingType",
@@ -117,6 +138,7 @@ const PartsTable = memo(({ data, count }: PartsTableProps) => {
),
})),
},
+ icon: <TbTargetArrow />,
},
},
@@ -142,6 +164,7 @@ const PartsTable = memo(({ data, count }: PartsTableProps) => {
),
})),
},
+ icon: <RxCodesandboxLogo />,
},
},
{
@@ -156,6 +179,7 @@ const PartsTable = memo(({ data, count }: PartsTableProps) => {
label: <Enumerable value={type} />,
})),
},
+ icon: <LuRefreshCw />,
},
},
{
@@ -171,24 +195,9 @@ const PartsTable = memo(({ data, count }: PartsTableProps) => {
],
},
pluralHeader: "Active Statuses",
+ icon: <LuCheck />,
},
},
- // {
- // id: "assignee",
- // header: "Assignee",
- // cell: ({ row }) => (
- // <EmployeeAvatar employeeId={row.original.assignee} />
- // ),
- // meta: {
- // filter: {
- // type: "static",
- // options: people.map((employee) => ({
- // value: employee.id,
- // label: employee.name,
- // })),
- // },
- // },
- // },
{
id: "createdBy",
header: "Created By",
@@ -203,12 +212,16 @@ const PartsTable = memo(({ data, count }: PartsTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "createdAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
id: "updatedBy",
@@ -224,12 +237,16 @@ const PartsTable = memo(({ data, count }: PartsTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "updatedAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
];
return [...defaultColumns, ...customColumns];
diff --git a/apps/carbon/app/modules/items/ui/Tools/ToolsTable.tsx b/apps/carbon/app/modules/items/ui/Tools/ToolsTable.tsx
index 4ea1405f8c..da72bc768e 100644
--- a/apps/carbon/app/modules/items/ui/Tools/ToolsTable.tsx
+++ b/apps/carbon/app/modules/items/ui/Tools/ToolsTable.tsx
@@ -21,7 +21,18 @@ import { formatDate } from "@carbon/utils";
import { useFetcher, useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useEffect, useMemo, useState } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import {
+ LuAlignJustify,
+ LuAlignLeft,
+ LuBookMarked,
+ LuCalendar,
+ LuCheck,
+ LuPencil,
+ LuTrash,
+ LuUser,
+} from "react-icons/lu";
+import { RxCodesandboxLogo } from "react-icons/rx";
+import { TbTargetArrow } from "react-icons/tb";
import {
EmployeeAvatar,
Hyperlink,
@@ -75,6 +86,9 @@ const ToolsTable = memo(({ data, count }: ToolsTableProps) => {
</Hyperlink>
</HStack>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
accessorKey: "name",
@@ -84,6 +98,9 @@ const ToolsTable = memo(({ data, count }: ToolsTableProps) => {
{item.getValue<string>()}
</div>
),
+ meta: {
+ icon: <LuAlignLeft />,
+ },
},
{
accessorKey: "description",
@@ -93,6 +110,9 @@ const ToolsTable = memo(({ data, count }: ToolsTableProps) => {
{item.getValue<string>()}
</div>
),
+ meta: {
+ icon: <LuAlignJustify />,
+ },
},
{
accessorKey: "itemTrackingType",
@@ -116,6 +136,7 @@ const ToolsTable = memo(({ data, count }: ToolsTableProps) => {
),
})),
},
+ icon: <TbTargetArrow />,
},
},
{
@@ -140,6 +161,7 @@ const ToolsTable = memo(({ data, count }: ToolsTableProps) => {
),
})),
},
+ icon: <RxCodesandboxLogo />,
},
},
{
@@ -155,6 +177,7 @@ const ToolsTable = memo(({ data, count }: ToolsTableProps) => {
],
},
pluralHeader: "Active Statuses",
+ icon: <LuCheck />,
},
},
// {
@@ -187,12 +210,16 @@ const ToolsTable = memo(({ data, count }: ToolsTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "createdAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
id: "updatedBy",
@@ -208,12 +235,16 @@ const ToolsTable = memo(({ data, count }: ToolsTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "updatedAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
];
return [...defaultColumns, ...customColumns];
diff --git a/apps/carbon/app/modules/items/ui/UnitOfMeasure/UnitOfMeasuresTable.tsx b/apps/carbon/app/modules/items/ui/UnitOfMeasure/UnitOfMeasuresTable.tsx
index 668e0a85bb..884857813d 100644
--- a/apps/carbon/app/modules/items/ui/UnitOfMeasure/UnitOfMeasuresTable.tsx
+++ b/apps/carbon/app/modules/items/ui/UnitOfMeasure/UnitOfMeasuresTable.tsx
@@ -2,7 +2,7 @@ import { MenuIcon, MenuItem } from "@carbon/react";
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import { LuBookMarked, LuCode, LuPencil, LuTrash } from "react-icons/lu";
import { New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -34,11 +34,17 @@ const UnitOfMeasuresTable = memo(
className="cursor-pointer"
/>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
accessorKey: "code",
header: "Code",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuCode />,
+ },
},
];
return [...defaultColumns, ...customColumns];
diff --git a/apps/carbon/app/modules/items/ui/useItemsSubmodules.tsx b/apps/carbon/app/modules/items/ui/useItemsSubmodules.tsx
index acf681461a..eb3ff4d221 100644
--- a/apps/carbon/app/modules/items/ui/useItemsSubmodules.tsx
+++ b/apps/carbon/app/modules/items/ui/useItemsSubmodules.tsx
@@ -1,7 +1,7 @@
import { AiOutlinePartition } from "react-icons/ai";
-import { GiWoodBeam } from "react-icons/gi";
import {
LuAtom,
+ LuGlassWater,
LuGrip,
LuHammer,
LuPizza,
@@ -75,7 +75,7 @@ const itemsRoutes: AuthenticatedRouteGroup[] = [
{
name: "Substances",
to: path.to.materialSubstances,
- icon: <GiWoodBeam />,
+ icon: <LuGlassWater />,
role: "employee",
},
// {
diff --git a/apps/carbon/app/modules/people/ui/Departments/DepartmentsTable.tsx b/apps/carbon/app/modules/people/ui/Departments/DepartmentsTable.tsx
index 5f25c20a8e..00d381a01a 100644
--- a/apps/carbon/app/modules/people/ui/Departments/DepartmentsTable.tsx
+++ b/apps/carbon/app/modules/people/ui/Departments/DepartmentsTable.tsx
@@ -2,7 +2,7 @@ import { HStack, MenuIcon, MenuItem } from "@carbon/react";
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import { LuBuilding, LuPencil, LuTrash } from "react-icons/lu";
import { New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -41,6 +41,9 @@ const DepartmentsTable = memo(({ data, count }: DepartmentsTableProps) => {
className="cursor-pointer"
/>
),
+ meta: {
+ icon: <LuBuilding />,
+ },
},
{
header: "Sub-Departments",
@@ -51,6 +54,9 @@ const DepartmentsTable = memo(({ data, count }: DepartmentsTableProps) => {
))}
</HStack>
),
+ meta: {
+ icon: <LuBuilding />,
+ },
},
];
return [...defaultColumns, ...customColumns];
diff --git a/apps/carbon/app/modules/people/ui/Holidays/HolidaysTable.tsx b/apps/carbon/app/modules/people/ui/Holidays/HolidaysTable.tsx
index 6e7804c678..14407ff99f 100644
--- a/apps/carbon/app/modules/people/ui/Holidays/HolidaysTable.tsx
+++ b/apps/carbon/app/modules/people/ui/Holidays/HolidaysTable.tsx
@@ -4,6 +4,7 @@ import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
import { BsFillPenFill } from "react-icons/bs";
import { IoMdTrash } from "react-icons/io";
+import { LuCalendar, LuCalendarDays, LuCalendarRange } from "react-icons/lu";
import { Hyperlink, New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -32,6 +33,9 @@ const HolidaysTable = memo(({ data, count, years }: HolidaysTableProps) => {
cell: ({ row }) => (
<Hyperlink to={row.original.id}>{row.original.name}</Hyperlink>
),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
accessorKey: "year",
@@ -40,6 +44,7 @@ const HolidaysTable = memo(({ data, count, years }: HolidaysTableProps) => {
<Enumerable value={item.getValue<number>().toString()} />
),
meta: {
+ icon: <LuCalendarRange />,
filter: {
type: "static",
options: years.map((year) => ({
@@ -53,6 +58,9 @@ const HolidaysTable = memo(({ data, count, years }: HolidaysTableProps) => {
accessorKey: "date",
header: "Date",
cell: (item) => item.getValue<string>(),
+ meta: {
+ icon: <LuCalendarDays />,
+ },
},
];
return [...defaultColumns, ...customColumns];
diff --git a/apps/carbon/app/modules/people/ui/People/PeopleTable.tsx b/apps/carbon/app/modules/people/ui/People/PeopleTable.tsx
index 64eb180619..b05ec18877 100644
--- a/apps/carbon/app/modules/people/ui/People/PeopleTable.tsx
+++ b/apps/carbon/app/modules/people/ui/People/PeopleTable.tsx
@@ -2,7 +2,14 @@ import { Checkbox, HStack, MenuIcon, MenuItem } from "@carbon/react";
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
-import { LuPencil } from "react-icons/lu";
+import {
+ LuBriefcase,
+ LuMail,
+ LuPencil,
+ LuToggleRight,
+ LuUser,
+ LuUsers,
+} from "react-icons/lu";
import { Avatar, EmployeeAvatar, Hyperlink, New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -94,22 +101,34 @@ const PeopleTable = memo(
</Hyperlink>
</HStack>
),
+ meta: {
+ icon: <LuUsers />,
+ },
},
{
accessorKey: "firstName",
header: "First Name",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuUser />,
+ },
},
{
accessorKey: "lastName",
header: "Last Name",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuUser />,
+ },
},
{
accessorKey: "email",
header: "Email",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuMail />,
+ },
},
{
id: "employeeTypeId",
@@ -129,6 +148,7 @@ const PeopleTable = memo(
label: <Enumerable value={type.name!} />,
})),
},
+ icon: <LuBriefcase />,
},
},
{
@@ -143,6 +163,7 @@ const PeopleTable = memo(
{ value: "false", label: "Inactive" },
],
},
+ icon: <LuToggleRight />,
},
},
];
diff --git a/apps/carbon/app/modules/people/ui/Shifts/ShiftsTable.tsx b/apps/carbon/app/modules/people/ui/Shifts/ShiftsTable.tsx
index bbb3132ba3..68ce141290 100644
--- a/apps/carbon/app/modules/people/ui/Shifts/ShiftsTable.tsx
+++ b/apps/carbon/app/modules/people/ui/Shifts/ShiftsTable.tsx
@@ -2,7 +2,14 @@ import { Badge, MenuIcon, MenuItem } from "@carbon/react";
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import {
+ LuCalendarDays,
+ LuCalendarRange,
+ LuClock,
+ LuMapPin,
+ LuPencil,
+ LuTrash,
+} from "react-icons/lu";
import { Hyperlink, New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -50,22 +57,32 @@ const ShiftsTable = memo(({ data, count, locations }: ShiftsTableProps) => {
cell: ({ row }) => (
<Hyperlink to={row.original.id!}>{row.original.name}</Hyperlink>
),
+ meta: {
+ icon: <LuCalendarRange />,
+ },
},
{
accessorKey: "startTime",
header: "Start Time",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuClock />,
+ },
},
{
accessorKey: "endTime",
header: "End Time",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuClock />,
+ },
},
{
accessorKey: "locationName",
header: "Location",
cell: (item) => <Enumerable value={item.getValue<string>()} />,
meta: {
+ icon: <LuMapPin />,
filter: {
type: "static",
options: locations.map((location) => ({
@@ -80,6 +97,9 @@ const ShiftsTable = memo(({ data, count, locations }: ShiftsTableProps) => {
header: "Days",
// @ts-ignore
cell: ({ row }) => renderDays(row.original),
+ meta: {
+ icon: <LuCalendarDays />,
+ },
},
];
diff --git a/apps/carbon/app/modules/production/ui/Jobs/JobsTable.tsx b/apps/carbon/app/modules/production/ui/Jobs/JobsTable.tsx
index b204970579..ffe1084920 100644
--- a/apps/carbon/app/modules/production/ui/Jobs/JobsTable.tsx
+++ b/apps/carbon/app/modules/production/ui/Jobs/JobsTable.tsx
@@ -3,7 +3,18 @@ import { formatDate } from "@carbon/utils";
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo, useState } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import { AiOutlinePartition } from "react-icons/ai";
+import {
+ LuBookMarked,
+ LuCalendar,
+ LuClock,
+ LuHash,
+ LuPencil,
+ LuTrash,
+ LuUser,
+ LuUsers,
+ LuUserSquare,
+} from "react-icons/lu";
import {
CustomerAvatar,
EmployeeAvatar,
@@ -83,6 +94,9 @@ const JobsTable = memo(({ data, count, locations }: JobsTableProps) => {
{row.original?.jobId}
</Hyperlink>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
accessorKey: "itemReadableId",
@@ -96,12 +110,16 @@ const JobsTable = memo(({ data, count, locations }: JobsTableProps) => {
label: item.readableId,
})),
},
+ icon: <AiOutlinePartition />,
},
},
{
accessorKey: "quantity",
header: "Quantity",
cell: (item) => item.getValue<number>(),
+ meta: {
+ icon: <LuHash />,
+ },
},
{
id: "customerId",
@@ -117,6 +135,7 @@ const JobsTable = memo(({ data, count, locations }: JobsTableProps) => {
label: customer.name,
})),
},
+ icon: <LuUserSquare />,
},
},
{
@@ -133,6 +152,9 @@ const JobsTable = memo(({ data, count, locations }: JobsTableProps) => {
{row.original?.salesOrderReadableId}
</Hyperlink>
) : null,
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
accessorKey: "status",
@@ -150,6 +172,7 @@ const JobsTable = memo(({ data, count, locations }: JobsTableProps) => {
})),
},
pluralHeader: "Statuses",
+ icon: <LuUsers />,
},
},
{
@@ -166,12 +189,16 @@ const JobsTable = memo(({ data, count, locations }: JobsTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "dueDate",
header: "Due Date",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
accessorKey: "deadlineType",
@@ -209,42 +236,64 @@ const JobsTable = memo(({ data, count, locations }: JobsTableProps) => {
),
})),
},
+ icon: <LuClock />,
},
},
{
accessorKey: "orderQuantity",
header: "Order Qty",
cell: (item) => item.getValue<number>(),
+ meta: {
+ icon: <LuHash />,
+ },
},
{
accessorKey: "inventoryQuantity",
header: "Inventory Qty",
cell: (item) => item.getValue<number>(),
+ meta: {
+ icon: <LuHash />,
+ },
},
{
accessorKey: "productionQuantity",
header: "Production Qty",
cell: (item) => item.getValue<number>(),
+ meta: {
+ icon: <LuHash />,
+ },
},
{
accessorKey: "scrapQuantity",
header: "Scrap Qty",
cell: (item) => item.getValue<number>(),
+ meta: {
+ icon: <LuHash />,
+ },
},
{
accessorKey: "quantityComplete",
header: "Completed Qty",
cell: (item) => item.getValue<number>(),
+ meta: {
+ icon: <LuHash />,
+ },
},
{
accessorKey: "quantityShipped",
header: "Shipped Qty",
cell: (item) => item.getValue<number>(),
+ meta: {
+ icon: <LuHash />,
+ },
},
{
accessorKey: "quantityReceivedToInventory",
header: "Received Qty",
cell: (item) => item.getValue<number>(),
+ meta: {
+ icon: <LuHash />,
+ },
},
{
id: "createdBy",
@@ -260,12 +309,16 @@ const JobsTable = memo(({ data, count, locations }: JobsTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "createdAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
id: "updatedBy",
@@ -281,12 +334,16 @@ const JobsTable = memo(({ data, count, locations }: JobsTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "updatedAt",
header: "Updated At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
];
return [...defaultColumns, ...customColumns];
diff --git a/apps/carbon/app/modules/production/ui/ScrapReasons/ScrapReasonsTable.tsx b/apps/carbon/app/modules/production/ui/ScrapReasons/ScrapReasonsTable.tsx
index 18f89bd5ab..bee6205757 100644
--- a/apps/carbon/app/modules/production/ui/ScrapReasons/ScrapReasonsTable.tsx
+++ b/apps/carbon/app/modules/production/ui/ScrapReasons/ScrapReasonsTable.tsx
@@ -33,6 +33,9 @@ const ScrapReasonsTable = memo(({ data, count }: ScrapReasonsTableProps) => {
className="cursor-pointer"
/>
),
+ meta: {
+ icon: <LuTrash />,
+ },
},
];
return [...defaultColumns, ...customColumns];
diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTable.tsx b/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTable.tsx
index a4387ba005..05f6574c98 100644
--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTable.tsx
+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTable.tsx
@@ -9,7 +9,19 @@ import { formatDate } from "@carbon/utils";
import { useFetcher, useFetchers } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useMemo, useState } from "react";
-import { LuPencil, LuPin, LuTrash } from "react-icons/lu";
+import {
+ LuBookMarked,
+ LuCalendar,
+ LuContainer,
+ LuCreditCard,
+ LuPencil,
+ LuPin,
+ LuQrCode,
+ LuStar,
+ LuTrash,
+ LuTruck,
+ LuUser,
+} from "react-icons/lu";
import { MdCallReceived } from "react-icons/md";
import {
EmployeeAvatar,
@@ -115,6 +127,9 @@ const PurchaseOrdersTable = memo(
</Hyperlink>
</HStack>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
id: "supplierId",
@@ -130,17 +145,24 @@ const PurchaseOrdersTable = memo(
label: supplier.name,
})),
},
+ icon: <LuContainer />,
},
},
{
accessorKey: "supplierReference",
header: "Supplier Ref.",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuQrCode />,
+ },
},
{
accessorKey: "orderDate",
header: "Order Date",
- cell: (item) => item.getValue(),
+ cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
accessorKey: "status",
@@ -159,6 +181,7 @@ const PurchaseOrdersTable = memo(
})),
},
pluralHeader: "Statuses",
+ icon: <LuStar />,
},
},
{
@@ -175,17 +198,24 @@ const PurchaseOrdersTable = memo(
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "receiptPromisedDate",
header: "Promised Date",
- cell: (item) => item.getValue(),
+ cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
accessorKey: "shippingMethodName",
header: "Shipping Method",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuTruck />,
+ },
},
// {
// accessorKey: "shippingTermName",
@@ -196,6 +226,9 @@ const PurchaseOrdersTable = memo(
accessorKey: "paymentTermName",
header: "Payment Method",
cell: (item) => <Enumerable value={item.getValue<string>()} />,
+ meta: {
+ icon: <LuCreditCard />,
+ },
},
{
accessorKey: "dropShipment",
@@ -210,6 +243,7 @@ const PurchaseOrdersTable = memo(
],
},
pluralHeader: "Drop Shipment Statuses",
+ icon: <LuTruck />,
},
},
{
@@ -226,12 +260,16 @@ const PurchaseOrdersTable = memo(
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "createdAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
id: "updatedBy",
@@ -247,12 +285,16 @@ const PurchaseOrdersTable = memo(
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "updatedAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
];
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierStatuses/SupplierStatusesTable.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierStatuses/SupplierStatusesTable.tsx
index c5be2a5989..5759230056 100644
--- a/apps/carbon/app/modules/purchasing/ui/SupplierStatuses/SupplierStatusesTable.tsx
+++ b/apps/carbon/app/modules/purchasing/ui/SupplierStatuses/SupplierStatusesTable.tsx
@@ -3,7 +3,7 @@ import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
import { BsPeopleFill } from "react-icons/bs";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import { LuPencil, LuStar, LuTrash } from "react-icons/lu";
import { New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -37,6 +37,9 @@ const SupplierStatusesTable = memo(
className="cursor-pointer"
/>
),
+ meta: {
+ icon: <LuStar />,
+ },
},
];
return [...defaultColumns, ...customColumns];
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTable.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTable.tsx
index c7419ef16c..97044cf161 100644
--- a/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTable.tsx
+++ b/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTable.tsx
@@ -3,7 +3,7 @@ import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
import { BsPeopleFill } from "react-icons/bs";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import { LuPencil, LuShapes, LuTrash } from "react-icons/lu";
import { New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -34,6 +34,9 @@ const SupplierTypesTable = memo(({ data, count }: SupplierTypesTableProps) => {
className="cursor-pointer"
/>
),
+ meta: {
+ icon: <LuShapes />,
+ },
},
];
return [...defaultColumns, ...customColumns];
diff --git a/apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTable.tsx b/apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTable.tsx
index 66b35e886d..cd2d6a1df0 100644
--- a/apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTable.tsx
+++ b/apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTable.tsx
@@ -3,7 +3,18 @@ import { formatDate } from "@carbon/utils";
import { Link, useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useMemo } from "react";
-import { LuPencil } from "react-icons/lu";
+import {
+ LuBookMarked,
+ LuCalendar,
+ LuEuro,
+ LuGlobe,
+ LuPackage,
+ LuPencil,
+ LuPhone,
+ LuPrinter,
+ LuStar,
+ LuUser,
+} from "react-icons/lu";
import {
EmployeeAvatar,
Hyperlink,
@@ -43,6 +54,9 @@ const SuppliersTable = memo(
</Hyperlink>
</div>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
accessorKey: "status",
@@ -56,6 +70,7 @@ const SuppliersTable = memo(
label: <Enumerable value={status.name ?? ""} />,
})),
},
+ icon: <LuStar />,
},
},
{
@@ -72,6 +87,7 @@ const SuppliersTable = memo(
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
// {
@@ -113,26 +129,41 @@ const SuppliersTable = memo(
</Link>
</Button>
),
+ meta: {
+ icon: <LuPackage />,
+ },
},
{
accessorKey: "currencyCode",
header: "Currency",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuEuro />,
+ },
},
{
accessorKey: "phone",
header: "Phone",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuPhone />,
+ },
},
{
accessorKey: "fax",
header: "Fax",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuPrinter />,
+ },
},
{
accessorKey: "website",
header: "Website",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuGlobe />,
+ },
},
{
id: "createdBy",
@@ -148,12 +179,16 @@ const SuppliersTable = memo(
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "createdAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
id: "updatedBy",
@@ -169,12 +204,16 @@ const SuppliersTable = memo(
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "updatedAt",
header: "Updated At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
];
diff --git a/apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTable.tsx b/apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTable.tsx
index 88b1ff3b61..bbbec462fa 100644
--- a/apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTable.tsx
+++ b/apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTable.tsx
@@ -9,7 +9,14 @@ import {
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import {
+ LuBrain,
+ LuClock,
+ LuPencil,
+ LuTrash,
+ LuTrendingUp,
+ LuUsers,
+} from "react-icons/lu";
import { Avatar, New, Table } from "~/components";
import { usePermissions, useUrlParams } from "~/hooks";
import { path } from "~/utils/path";
@@ -78,6 +85,9 @@ const AbilitiesTable = memo(({ data, count }: AbilitiesTableProps) => {
{row.original.name}
</Badge>
),
+ meta: {
+ icon: <LuBrain />,
+ },
},
{
header: "Employees",
@@ -98,10 +108,16 @@ const AbilitiesTable = memo(({ data, count }: AbilitiesTableProps) => {
<AvatarOverflowIndicator />
</AvatarGroup>
),
+ meta: {
+ icon: <LuUsers />,
+ },
},
{
header: "Time to Learn",
cell: ({ row }) => `${row.original.weeks} weeks`,
+ meta: {
+ icon: <LuClock />,
+ },
},
{
header: "Efficiency Curve",
@@ -115,6 +131,9 @@ const AbilitiesTable = memo(({ data, count }: AbilitiesTableProps) => {
margin={{ top: 0, right: 0, bottom: 0, left: 2 }}
/>
),
+ meta: {
+ icon: <LuTrendingUp />,
+ },
},
];
}, [navigate]);
diff --git a/apps/carbon/app/modules/resources/ui/Locations/LocationsTable.tsx b/apps/carbon/app/modules/resources/ui/Locations/LocationsTable.tsx
index 0c0727a753..c41260b51e 100644
--- a/apps/carbon/app/modules/resources/ui/Locations/LocationsTable.tsx
+++ b/apps/carbon/app/modules/resources/ui/Locations/LocationsTable.tsx
@@ -2,7 +2,17 @@ import { MenuIcon, MenuItem } from "@carbon/react";
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import {
+ LuBuilding2,
+ LuClock,
+ LuGlobe,
+ LuHome,
+ LuMap,
+ LuMapPin,
+ LuPencil,
+ LuTrash,
+ LuUser,
+} from "react-icons/lu";
import { EmployeeAvatar, New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -39,26 +49,41 @@ const LocationsTable = memo(({ data, count }: LocationsTableProps) => {
className="cursor-pointer"
/>
),
+ meta: {
+ icon: <LuMapPin />,
+ },
},
{
accessorKey: "addressLine1",
header: "Address",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuHome />,
+ },
},
{
accessorKey: "city",
header: "City",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuBuilding2 />,
+ },
},
{
accessorKey: "stateProvince",
header: "State / Province",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuMap />,
+ },
},
{
accessorKey: "countryCode",
header: "Country",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuGlobe />,
+ },
},
// {
// accessorKey: "timezone",
@@ -72,6 +97,7 @@ const LocationsTable = memo(({ data, count }: LocationsTableProps) => {
<EmployeeAvatar employeeId={row.original.createdBy} />
),
meta: {
+ icon: <LuUser />,
filter: {
type: "static",
options: people.map((employee) => ({
@@ -88,6 +114,7 @@ const LocationsTable = memo(({ data, count }: LocationsTableProps) => {
<EmployeeAvatar employeeId={row.original.updatedBy} />
),
meta: {
+ icon: <LuClock />,
filter: {
type: "static",
options: people.map((employee) => ({
diff --git a/apps/carbon/app/modules/resources/ui/Processes/ProcessesTable.tsx b/apps/carbon/app/modules/resources/ui/Processes/ProcessesTable.tsx
index 7c8d402cce..1c47df5087 100644
--- a/apps/carbon/app/modules/resources/ui/Processes/ProcessesTable.tsx
+++ b/apps/carbon/app/modules/resources/ui/Processes/ProcessesTable.tsx
@@ -11,7 +11,17 @@ import {
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
-import { LuAlertTriangle, LuPencil, LuTrash } from "react-icons/lu";
+import {
+ LuAlertTriangle,
+ LuBuilding2,
+ LuCog,
+ LuFactory,
+ LuPencil,
+ LuRuler,
+ LuTrash,
+ LuUser,
+ LuUsers,
+} from "react-icons/lu";
import { EmployeeAvatar, New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -60,6 +70,9 @@ const ProcessesTable = memo(({ data, count }: ProcessesTableProps) => {
<span>{row.original.name}</span>
</HStack>
),
+ meta: {
+ icon: <LuCog />,
+ },
},
{
accessorKey: "processType",
@@ -70,6 +83,9 @@ const ProcessesTable = memo(({ data, count }: ProcessesTableProps) => {
) : (
<Badge variant="secondary">{item.getValue<string>()}</Badge>
),
+ meta: {
+ icon: <LuFactory />,
+ },
},
{
id: "workCenters",
@@ -88,12 +104,16 @@ const ProcessesTable = memo(({ data, count }: ProcessesTableProps) => {
))}
</span>
),
+ meta: {
+ icon: <LuBuilding2 />,
+ },
},
{
accessorKey: "defaultStandardFactor",
header: "Default Unit",
cell: (item) => item.getValue(),
meta: {
+ icon: <LuRuler />,
filter: {
type: "static",
options: standardFactorType.map((type) => ({
@@ -118,6 +138,9 @@ const ProcessesTable = memo(({ data, count }: ProcessesTableProps) => {
<AvatarOverflowIndicator />
</AvatarGroup>
),
+ meta: {
+ icon: <LuUsers />,
+ },
},
{
id: "createdBy",
@@ -126,6 +149,7 @@ const ProcessesTable = memo(({ data, count }: ProcessesTableProps) => {
<EmployeeAvatar employeeId={row.original.createdBy} />
),
meta: {
+ icon: <LuUser />,
filter: {
type: "static",
options: people.map((employee) => ({
@@ -142,6 +166,7 @@ const ProcessesTable = memo(({ data, count }: ProcessesTableProps) => {
<EmployeeAvatar employeeId={row.original.updatedBy} />
),
meta: {
+ icon: <LuUser />,
filter: {
type: "static",
options: people.map((employee) => ({
diff --git a/apps/carbon/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx b/apps/carbon/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx
index 08da268e67..bceb278fc1 100644
--- a/apps/carbon/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx
+++ b/apps/carbon/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx
@@ -4,9 +4,15 @@ import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo, useState } from "react";
import {
LuAlertTriangle,
+ LuAlignLeft,
+ LuBuilding2,
LuCheckCircle,
+ LuCog,
+ LuDollarSign,
LuPencil,
LuTrash,
+ LuUser,
+ LuWrench,
} from "react-icons/lu";
import { EmployeeAvatar, New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
@@ -84,6 +90,9 @@ const WorkCentersTable = memo(
)}
</HStack>
),
+ meta: {
+ icon: <LuWrench />,
+ },
},
{
id: "processes",
@@ -102,12 +111,16 @@ const WorkCentersTable = memo(
)}
</span>
),
+ meta: {
+ icon: <LuCog />,
+ },
},
{
accessorKey: "locationName",
header: "Location",
cell: (item) => <Enumerable value={item.getValue<string>()} />,
meta: {
+ icon: <LuBuilding2 />,
filter: {
type: "static",
options: locations.map(({ name }) => ({
@@ -125,6 +138,9 @@ const WorkCentersTable = memo(
{row.original.description}
</span>
),
+ meta: {
+ icon: <LuAlignLeft />,
+ },
},
{
accessorKey: "laborRate",
@@ -132,6 +148,9 @@ const WorkCentersTable = memo(
cell: ({ row }) => (
<span>{formatter.format(row.original.laborRate ?? 0)}</span>
),
+ meta: {
+ icon: <LuDollarSign />,
+ },
},
{
accessorKey: "machineRate",
@@ -139,6 +158,9 @@ const WorkCentersTable = memo(
cell: ({ row }) => (
<span>{formatter.format(row.original.machineRate ?? 0)}</span>
),
+ meta: {
+ icon: <LuDollarSign />,
+ },
},
{
accessorKey: "overheadRate",
@@ -146,6 +168,9 @@ const WorkCentersTable = memo(
cell: ({ row }) => (
<span>{formatter.format(row.original.overheadRate ?? 0)}</span>
),
+ meta: {
+ icon: <LuDollarSign />,
+ },
},
{
id: "createdBy",
@@ -154,6 +179,7 @@ const WorkCentersTable = memo(
<EmployeeAvatar employeeId={row.original.createdBy} />
),
meta: {
+ icon: <LuUser />,
filter: {
type: "static",
options: people.map((employee) => ({
@@ -170,6 +196,7 @@ const WorkCentersTable = memo(
<EmployeeAvatar employeeId={row.original.updatedBy} />
),
meta: {
+ icon: <LuUser />,
filter: {
type: "static",
options: people.map((employee) => ({
diff --git a/apps/carbon/app/modules/sales/ui/CustomerStatuses/CustomerStatusesTable.tsx b/apps/carbon/app/modules/sales/ui/CustomerStatuses/CustomerStatusesTable.tsx
index 2e11fb15ab..845efe46b8 100644
--- a/apps/carbon/app/modules/sales/ui/CustomerStatuses/CustomerStatusesTable.tsx
+++ b/apps/carbon/app/modules/sales/ui/CustomerStatuses/CustomerStatusesTable.tsx
@@ -3,7 +3,7 @@ import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
import { BsPeopleFill } from "react-icons/bs";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import { LuPencil, LuStar, LuTrash } from "react-icons/lu";
import { New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -35,6 +35,9 @@ const CustomerStatusesTable = memo(
className="cursor-pointer"
/>
),
+ meta: {
+ icon: <LuStar />,
+ },
},
];
return [...defaultColumns, ...customColumns];
diff --git a/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTable.tsx b/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTable.tsx
index d685d4274b..a95d656c09 100644
--- a/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTable.tsx
+++ b/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTable.tsx
@@ -3,7 +3,7 @@ import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
import { BsPeopleFill } from "react-icons/bs";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import { LuPencil, LuShapes, LuTrash } from "react-icons/lu";
import { New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -34,6 +34,9 @@ const CustomerTypesTable = memo(({ data, count }: CustomerTypesTableProps) => {
className="cursor-pointer"
/>
),
+ meta: {
+ icon: <LuShapes />,
+ },
},
];
return [...defaultColumns, ...customColumns];
diff --git a/apps/carbon/app/modules/sales/ui/Customers/CustomersTable.tsx b/apps/carbon/app/modules/sales/ui/Customers/CustomersTable.tsx
index 3347121946..d5d407ef40 100644
--- a/apps/carbon/app/modules/sales/ui/Customers/CustomersTable.tsx
+++ b/apps/carbon/app/modules/sales/ui/Customers/CustomersTable.tsx
@@ -3,7 +3,18 @@ import { formatDate } from "@carbon/utils";
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useMemo, useState } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import {
+ LuBookMarked,
+ LuCalendar,
+ LuEuro,
+ LuGlobe,
+ LuPencil,
+ LuPhone,
+ LuPrinter,
+ LuStar,
+ LuTrash,
+ LuUser,
+} from "react-icons/lu";
import {
CustomerAvatar,
EmployeeAvatar,
@@ -48,6 +59,9 @@ const CustomersTable = memo(
</Hyperlink>
</div>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
accessorKey: "status",
@@ -61,6 +75,7 @@ const CustomersTable = memo(
label: <Enumerable value={status.name ?? ""} />,
})),
},
+ icon: <LuStar />,
},
},
{
@@ -77,6 +92,7 @@ const CustomersTable = memo(
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
// {
@@ -99,21 +115,33 @@ const CustomersTable = memo(
accessorKey: "currencyCode",
header: "Currency",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuEuro />,
+ },
},
{
accessorKey: "phone",
header: "Phone",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuPhone />,
+ },
},
{
accessorKey: "fax",
header: "Fax",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuPrinter />,
+ },
},
{
accessorKey: "website",
header: "Website",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuGlobe />,
+ },
},
{
id: "createdBy",
@@ -129,12 +157,16 @@ const CustomersTable = memo(
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "createdAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
id: "updatedBy",
@@ -150,12 +182,16 @@ const CustomersTable = memo(
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "updatedAt",
header: "Updated At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
];
diff --git a/apps/carbon/app/modules/sales/ui/Quotes/QuotesTable.tsx b/apps/carbon/app/modules/sales/ui/Quotes/QuotesTable.tsx
index b866a4a81b..6063098463 100644
--- a/apps/carbon/app/modules/sales/ui/Quotes/QuotesTable.tsx
+++ b/apps/carbon/app/modules/sales/ui/Quotes/QuotesTable.tsx
@@ -9,7 +9,18 @@ import { formatDate } from "@carbon/utils";
import { useFetcher, useFetchers, useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useMemo, useState } from "react";
-import { LuPencil, LuPin, LuTrash } from "react-icons/lu";
+import {
+ LuBookMarked,
+ LuCalendar,
+ LuMap,
+ LuPencil,
+ LuPin,
+ LuQrCode,
+ LuStar,
+ LuTrash,
+ LuUser,
+ LuUserSquare,
+} from "react-icons/lu";
import {
CustomerAvatar,
EmployeeAvatar,
@@ -111,6 +122,9 @@ const QuotesTable = memo(({ data, count }: QuotesTableProps) => {
</Hyperlink>
</HStack>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
id: "customerId",
@@ -126,6 +140,7 @@ const QuotesTable = memo(({ data, count }: QuotesTableProps) => {
label: customer.name,
})),
},
+ icon: <LuUserSquare />,
},
},
@@ -155,12 +170,16 @@ const QuotesTable = memo(({ data, count }: QuotesTableProps) => {
})),
},
pluralHeader: "Statuses",
+ icon: <LuStar />,
},
},
{
accessorKey: "customerReference",
header: "Customer Reference",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuQrCode />,
+ },
},
{
accessorKey: "salesPersonId",
@@ -173,6 +192,7 @@ const QuotesTable = memo(({ data, count }: QuotesTableProps) => {
type: "static",
options: employeeOptions,
},
+ icon: <LuUser />,
},
},
{
@@ -186,6 +206,7 @@ const QuotesTable = memo(({ data, count }: QuotesTableProps) => {
type: "static",
options: employeeOptions,
},
+ icon: <LuUser />,
},
},
{
@@ -199,17 +220,24 @@ const QuotesTable = memo(({ data, count }: QuotesTableProps) => {
type: "static",
options: employeeOptions,
},
+ icon: <LuUser />,
},
},
{
accessorKey: "dueDate",
header: "Due Date",
- cell: (item) => item.getValue(),
+ cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
accessorKey: "expirationDate",
header: "Expiration Date",
- cell: (item) => item.getValue(),
+ cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
accessorKey: "locationName",
@@ -225,6 +253,7 @@ const QuotesTable = memo(({ data, count }: QuotesTableProps) => {
label: <Enumerable value={name} />,
})) ?? [],
},
+ icon: <LuMap />,
},
},
@@ -242,12 +271,16 @@ const QuotesTable = memo(({ data, count }: QuotesTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "createdAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
id: "updatedBy",
@@ -263,12 +296,16 @@ const QuotesTable = memo(({ data, count }: QuotesTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "updatedAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
];
diff --git a/apps/carbon/app/modules/sales/ui/SalesOrders/SalesOrdersTable.tsx b/apps/carbon/app/modules/sales/ui/SalesOrders/SalesOrdersTable.tsx
index 9901613a13..ea7f929610 100644
--- a/apps/carbon/app/modules/sales/ui/SalesOrders/SalesOrdersTable.tsx
+++ b/apps/carbon/app/modules/sales/ui/SalesOrders/SalesOrdersTable.tsx
@@ -9,7 +9,19 @@ import { formatDate } from "@carbon/utils";
import { useFetcher, useFetchers } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useMemo, useState } from "react";
-import { LuPencil, LuPin, LuTrash } from "react-icons/lu";
+import {
+ LuBookMarked,
+ LuCalendar,
+ LuCreditCard,
+ LuPencil,
+ LuPin,
+ LuQrCode,
+ LuStar,
+ LuTrash,
+ LuTruck,
+ LuUser,
+ LuUserSquare,
+} from "react-icons/lu";
import {
CustomerAvatar,
EmployeeAvatar,
@@ -110,6 +122,9 @@ const SalesOrdersTable = memo(({ data, count }: SalesOrdersTableProps) => {
</Hyperlink>
</HStack>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
id: "customerId",
@@ -125,6 +140,7 @@ const SalesOrdersTable = memo(({ data, count }: SalesOrdersTableProps) => {
label: customer.name,
})),
},
+ icon: <LuUserSquare />,
},
},
{
@@ -143,17 +159,24 @@ const SalesOrdersTable = memo(({ data, count }: SalesOrdersTableProps) => {
})),
},
pluralHeader: "Statuses",
+ icon: <LuStar />,
},
},
{
accessorKey: "customerReference",
header: "Customer Ref.",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuQrCode />,
+ },
},
{
accessorKey: "orderDate",
header: "Order Date",
- cell: (item) => item.getValue(),
+ cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
@@ -170,17 +193,24 @@ const SalesOrdersTable = memo(({ data, count }: SalesOrdersTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "receiptPromisedDate",
header: "Promised Date",
- cell: (item) => item.getValue(),
+ cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
accessorKey: "shippingMethodName",
header: "Shipping Method",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuTruck />,
+ },
},
// {
// accessorKey: "shippingTermName",
@@ -191,6 +221,9 @@ const SalesOrdersTable = memo(({ data, count }: SalesOrdersTableProps) => {
accessorKey: "paymentTermName",
header: "Payment Method",
cell: (item) => <Enumerable value={item.getValue<string>()} />,
+ meta: {
+ icon: <LuCreditCard />,
+ },
},
{
accessorKey: "dropShipment",
@@ -205,6 +238,7 @@ const SalesOrdersTable = memo(({ data, count }: SalesOrdersTableProps) => {
],
},
pluralHeader: "Drop Shipment Statuses",
+ icon: <LuTruck />,
},
},
{
@@ -221,12 +255,16 @@ const SalesOrdersTable = memo(({ data, count }: SalesOrdersTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "createdAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
id: "updatedBy",
@@ -242,12 +280,16 @@ const SalesOrdersTable = memo(({ data, count }: SalesOrdersTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "updatedAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
];
diff --git a/apps/carbon/app/modules/sales/ui/SalesRFQ/SalesRFQsTable.tsx b/apps/carbon/app/modules/sales/ui/SalesRFQ/SalesRFQsTable.tsx
index 599a38417d..dcd9476ec9 100644
--- a/apps/carbon/app/modules/sales/ui/SalesRFQ/SalesRFQsTable.tsx
+++ b/apps/carbon/app/modules/sales/ui/SalesRFQ/SalesRFQsTable.tsx
@@ -3,7 +3,18 @@ import { formatDate } from "@carbon/utils";
import { useFetcher, useFetchers, useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useMemo, useState } from "react";
-import { LuPencil, LuPin, LuTrash } from "react-icons/lu";
+import {
+ LuBookMarked,
+ LuCalendar,
+ LuMap,
+ LuPencil,
+ LuPin,
+ LuQrCode,
+ LuStar,
+ LuTrash,
+ LuUser,
+ LuUserSquare,
+} from "react-icons/lu";
import {
CustomerAvatar,
EmployeeAvatar,
@@ -100,6 +111,9 @@ const SalesRFQsTable = memo(({ data, count }: SalesRFQsTableProps) => {
</Hyperlink>
</HStack>
),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
@@ -116,6 +130,7 @@ const SalesRFQsTable = memo(({ data, count }: SalesRFQsTableProps) => {
label: customer.name,
})),
},
+ icon: <LuUserSquare />,
},
},
{
@@ -134,22 +149,32 @@ const SalesRFQsTable = memo(({ data, count }: SalesRFQsTableProps) => {
})),
},
pluralHeader: "Statuses",
+ icon: <LuStar />,
},
},
{
accessorKey: "customerReference",
header: "Customer Reference",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuQrCode />,
+ },
},
{
accessorKey: "rfqDate",
header: "RFQ Date",
- cell: (item) => item.getValue(),
+ cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
accessorKey: "expirationDate",
header: "Due Date",
- cell: (item) => item.getValue(),
+ cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
@@ -166,6 +191,7 @@ const SalesRFQsTable = memo(({ data, count }: SalesRFQsTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
@@ -182,6 +208,7 @@ const SalesRFQsTable = memo(({ data, count }: SalesRFQsTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
@@ -198,12 +225,16 @@ const SalesRFQsTable = memo(({ data, count }: SalesRFQsTableProps) => {
label: <Enumerable value={name} />,
})) ?? [],
},
+ icon: <LuMap />,
},
},
{
accessorKey: "createdAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
{
id: "updatedBy",
@@ -219,12 +250,16 @@ const SalesRFQsTable = memo(({ data, count }: SalesRFQsTableProps) => {
label: employee.name,
})),
},
+ icon: <LuUser />,
},
},
{
accessorKey: "updatedAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
];
diff --git a/apps/carbon/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx b/apps/carbon/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx
index dc213a12fd..fe8f51cb50 100644
--- a/apps/carbon/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx
+++ b/apps/carbon/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx
@@ -3,7 +3,14 @@ import { formatDate } from "@carbon/utils";
import { Outlet, useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import {
+ LuCalendar,
+ LuKey,
+ LuPencil,
+ LuTag,
+ LuTrash,
+ LuUser,
+} from "react-icons/lu";
import { EmployeeAvatar, Hyperlink, New, Table } from "~/components";
import { usePermissions, useUrlParams } from "~/hooks";
import { type ApiKey } from "~/modules/settings";
@@ -29,6 +36,9 @@ const ApiKeysTable = memo(({ data, count }: ApiKeysTableProps) => {
cell: ({ row }) => (
<Hyperlink to={row.original.id!}>{row.original.name}</Hyperlink>
),
+ meta: {
+ icon: <LuTag />,
+ },
},
{
accessorKey: "key",
@@ -36,6 +46,9 @@ const ApiKeysTable = memo(({ data, count }: ApiKeysTableProps) => {
cell: (item) => (
<Badge variant="secondary">{item.getValue<string>()}</Badge>
),
+ meta: {
+ icon: <LuKey />,
+ },
},
{
id: "createdBy",
@@ -44,6 +57,7 @@ const ApiKeysTable = memo(({ data, count }: ApiKeysTableProps) => {
<EmployeeAvatar employeeId={row.original.createdBy} />
),
meta: {
+ icon: <LuUser />,
filter: {
type: "static",
options: people.map((employee) => ({
@@ -57,6 +71,9 @@ const ApiKeysTable = memo(({ data, count }: ApiKeysTableProps) => {
accessorKey: "createdAt",
header: "Created At",
cell: (item) => formatDate(item.getValue<string>()),
+ meta: {
+ icon: <LuCalendar />,
+ },
},
];
}, [people]);
diff --git a/apps/carbon/app/modules/settings/ui/CustomFields/CustomFieldsTable.tsx b/apps/carbon/app/modules/settings/ui/CustomFields/CustomFieldsTable.tsx
index b35b99eef6..04ec6d5b1e 100644
--- a/apps/carbon/app/modules/settings/ui/CustomFields/CustomFieldsTable.tsx
+++ b/apps/carbon/app/modules/settings/ui/CustomFields/CustomFieldsTable.tsx
@@ -4,6 +4,7 @@ import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
import { BiAddToQueue } from "react-icons/bi";
import { BsListUl } from "react-icons/bs";
+import { LuDatabase, LuLayoutGrid, LuList } from "react-icons/lu";
import { Hyperlink, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -28,12 +29,16 @@ const CustomFieldsTable = memo(({ data, count }: CustomFieldsTableProps) => {
cell: ({ row }) => (
<Hyperlink to={row.original.table!}>{row.original.name}</Hyperlink>
),
+ meta: {
+ icon: <LuDatabase />,
+ },
},
{
accessorKey: "module",
header: "Module",
cell: ({ row }) => <Enumerable value={row.original.module} />,
meta: {
+ icon: <LuLayoutGrid />,
filter: {
type: "static",
options: modulesType.map((m) => ({
@@ -59,6 +64,9 @@ const CustomFieldsTable = memo(({ data, count }: CustomFieldsTableProps) => {
</Link>
</Button>
),
+ meta: {
+ icon: <LuList />,
+ },
},
];
}, [params]);
diff --git a/apps/carbon/app/modules/settings/ui/Integrations/IntegrationsList.tsx b/apps/carbon/app/modules/settings/ui/Integrations/IntegrationsList.tsx
index 20753542cb..4798d558fe 100644
--- a/apps/carbon/app/modules/settings/ui/Integrations/IntegrationsList.tsx
+++ b/apps/carbon/app/modules/settings/ui/Integrations/IntegrationsList.tsx
@@ -21,7 +21,7 @@ const IntegrationsList = ({
availableIntegrations,
}: IntegrationsListProps) => {
return (
- <div className="grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 p-4 w-full">
+ <div className="grid gap-2 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 p-2 w-full">
{availableIntegrations.map((integration) => {
return (
<IntegrationCard
diff --git a/apps/carbon/app/modules/settings/ui/Sequences/SequencesTable.tsx b/apps/carbon/app/modules/settings/ui/Sequences/SequencesTable.tsx
index 8e0e448ba8..ff0e35f641 100644
--- a/apps/carbon/app/modules/settings/ui/Sequences/SequencesTable.tsx
+++ b/apps/carbon/app/modules/settings/ui/Sequences/SequencesTable.tsx
@@ -2,7 +2,15 @@ import { MenuIcon, MenuItem } from "@carbon/react";
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
-import { LuPencil } from "react-icons/lu";
+import {
+ LuArrowRight,
+ LuHash,
+ LuMaximize,
+ LuPencil,
+ LuStepForward,
+ LuText,
+ LuTextCursor,
+} from "react-icons/lu";
import { Hyperlink, Table } from "~/components";
import { usePermissions, useUrlParams } from "~/hooks";
import type { Sequence } from "~/modules/settings";
@@ -26,31 +34,49 @@ const SequencesTable = memo(({ data, count }: SequencesTableProps) => {
cell: ({ row }) => (
<Hyperlink to={row.original.table}>{row.original.name}</Hyperlink>
),
+ meta: {
+ icon: <LuText />,
+ },
},
{
accessorKey: "prefix",
header: "Prefix",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuTextCursor />,
+ },
},
{
accessorKey: "next",
header: "Next",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuArrowRight />,
+ },
},
{
accessorKey: "size",
header: "Size",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuMaximize />,
+ },
},
{
accessorKey: "step",
header: "Step",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuStepForward />,
+ },
},
{
accessorKey: "suffix",
header: "Suffix",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuHash />,
+ },
},
];
}, []);
diff --git a/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTable.tsx b/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTable.tsx
index ed8dd23434..32c1196dd4 100644
--- a/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTable.tsx
+++ b/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTable.tsx
@@ -9,7 +9,15 @@ import {
} from "@carbon/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo, useState } from "react";
-import { LuBan, LuMailCheck } from "react-icons/lu";
+import {
+ LuBan,
+ LuMail,
+ LuMailCheck,
+ LuStar,
+ LuUser,
+ LuUserCheck,
+ LuUserSquare,
+} from "react-icons/lu";
import { Avatar, New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -81,28 +89,41 @@ const CustomerAccountsTable = memo(
</span>
</HStack>
),
+ meta: {
+ icon: <LuUser />,
+ },
},
{
accessorKey: "user.firstName",
header: "First Name",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuUserCheck />,
+ },
},
{
accessorKey: "user.lastName",
header: "Last Name",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuUserCheck />,
+ },
},
{
accessorKey: "user.email",
header: "Email",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuMail />,
+ },
},
{
accessorKey: "customer.name",
header: "Customer",
cell: (item) => item.getValue(),
meta: {
+ icon: <LuUserSquare />,
filter: {
type: "static",
options: customers.map(({ name }) => ({
@@ -120,6 +141,7 @@ const CustomerAccountsTable = memo(
<Enumerable value={row.original.customer?.customerType?.name} />
),
meta: {
+ icon: <LuStar />,
filter: {
type: "static",
options: customerTypes.map((type) => ({
@@ -134,6 +156,7 @@ const CustomerAccountsTable = memo(
header: "Active",
cell: (item) => <Checkbox isChecked={item.getValue<boolean>()} />,
meta: {
+ icon: <LuUserCheck />,
filter: {
type: "static",
options: [
diff --git a/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable.tsx b/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable.tsx
index ddb54fe90f..847ba1abc2 100644
--- a/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable.tsx
+++ b/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable.tsx
@@ -3,7 +3,7 @@ import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
import { BsPeopleFill } from "react-icons/bs";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import { LuPencil, LuTrash, LuUsers } from "react-icons/lu";
import { New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -38,6 +38,9 @@ const EmployeeTypesTable = memo(({ data, count }: EmployeeTypesTableProps) => {
className="cursor-pointer"
/>
),
+ meta: {
+ icon: <LuUsers />,
+ },
},
];
}, [navigate]);
diff --git a/apps/carbon/app/modules/users/ui/Employees/EmployeesTable.tsx b/apps/carbon/app/modules/users/ui/Employees/EmployeesTable.tsx
index 6db02835ae..f8ee520ba7 100644
--- a/apps/carbon/app/modules/users/ui/Employees/EmployeesTable.tsx
+++ b/apps/carbon/app/modules/users/ui/Employees/EmployeesTable.tsx
@@ -10,7 +10,17 @@ import {
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo, useState } from "react";
-import { LuBan, LuMailCheck, LuPencil, LuShield } from "react-icons/lu";
+import {
+ LuBan,
+ LuBriefcase,
+ LuMail,
+ LuMailCheck,
+ LuPencil,
+ LuShield,
+ LuToggleRight,
+ LuUser,
+ LuUserCheck,
+} from "react-icons/lu";
import { EmployeeAvatar, Hyperlink, New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -72,22 +82,34 @@ const EmployeesTable = memo(
</Hyperlink>
</HStack>
),
+ meta: {
+ icon: <LuUser />,
+ },
},
{
accessorKey: "firstName",
header: "First Name",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuUserCheck />,
+ },
},
{
accessorKey: "lastName",
header: "Last Name",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuUserCheck />,
+ },
},
{
accessorKey: "email",
header: "Email",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuMail />,
+ },
},
{
id: "employeeTypeId",
@@ -107,6 +129,7 @@ const EmployeesTable = memo(
label: <Enumerable value={type.name} />,
})),
},
+ icon: <LuBriefcase />,
},
},
{
@@ -127,6 +150,7 @@ const EmployeesTable = memo(
},
],
},
+ icon: <LuToggleRight />,
},
},
];
diff --git a/apps/carbon/app/modules/users/ui/Groups/GroupsTable.tsx b/apps/carbon/app/modules/users/ui/Groups/GroupsTable.tsx
index c344acdebc..780e6960a9 100644
--- a/apps/carbon/app/modules/users/ui/Groups/GroupsTable.tsx
+++ b/apps/carbon/app/modules/users/ui/Groups/GroupsTable.tsx
@@ -8,7 +8,7 @@ import {
import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
-import { LuPencil, LuTrash } from "react-icons/lu";
+import { LuBookMarked, LuPencil, LuTrash, LuUsers } from "react-icons/lu";
import { Avatar, New, Table } from "~/components";
import { usePermissions, useUrlParams } from "~/hooks";
import type { Group } from "~/modules/users";
@@ -46,6 +46,9 @@ const GroupsTable = memo(({ data, count }: GroupsTableProps) => {
accessorKey: "name",
header: "Group Name",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuBookMarked />,
+ },
},
{
header: "Members",
@@ -70,6 +73,9 @@ const GroupsTable = memo(({ data, count }: GroupsTableProps) => {
<AvatarOverflowIndicator />
</AvatarGroup>
),
+ meta: {
+ icon: <LuUsers />,
+ },
},
];
}, []);
diff --git a/apps/carbon/app/modules/users/ui/Suppliers/SupplierAccountsTable/SuppliersAccountsTable.tsx b/apps/carbon/app/modules/users/ui/Suppliers/SupplierAccountsTable/SuppliersAccountsTable.tsx
index 8bea968698..9a1ff48855 100644
--- a/apps/carbon/app/modules/users/ui/Suppliers/SupplierAccountsTable/SuppliersAccountsTable.tsx
+++ b/apps/carbon/app/modules/users/ui/Suppliers/SupplierAccountsTable/SuppliersAccountsTable.tsx
@@ -9,7 +9,15 @@ import {
} from "@carbon/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo, useState } from "react";
-import { LuBan, LuMailCheck } from "react-icons/lu";
+import {
+ LuBan,
+ LuContainer,
+ LuMail,
+ LuMailCheck,
+ LuStar,
+ LuUser,
+ LuUserCheck,
+} from "react-icons/lu";
import { Avatar, New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
@@ -76,28 +84,41 @@ const SupplierAccountsTable = memo(
<span>{row.original.user?.fullName ?? ""}</span>
</HStack>
),
+ meta: {
+ icon: <LuUser />,
+ },
},
{
accessorKey: "user.firstName",
header: "First Name",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuUserCheck />,
+ },
},
{
accessorKey: "user.lastName",
header: "Last Name",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuUserCheck />,
+ },
},
{
accessorKey: "user.email",
header: "Email",
cell: (item) => item.getValue(),
+ meta: {
+ icon: <LuMail />,
+ },
},
{
accessorKey: "supplier.name",
header: "Supplier",
cell: (item) => item.getValue(),
meta: {
+ icon: <LuContainer />,
filter: {
type: "static",
options: suppliers.map(({ name }) => ({
@@ -115,6 +136,7 @@ const SupplierAccountsTable = memo(
<Enumerable value={row.original.supplier?.supplierType?.name} />
),
meta: {
+ icon: <LuStar />,
filter: {
type: "static",
options: supplierTypes.map((type) => ({
@@ -129,6 +151,7 @@ const SupplierAccountsTable = memo(
header: "Active",
cell: (item) => <Checkbox isChecked={item.getValue<boolean>()} />,
meta: {
+ icon: <LuUserCheck />,
filter: {
type: "static",
options: [
diff --git a/package-lock.json b/package-lock.json
index 1d9ef21296..41dd77364c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1512,6 +1512,10 @@
"resolved": "packages/logger",
"link": true
},
+ "node_modules/@carbon/notifications": {
+ "resolved": "packages/notifications",
+ "link": true
+ },
"node_modules/@carbon/react": {
"resolved": "packages/react",
"link": true
@@ -3498,6 +3502,45 @@
"node": ">=10.0.0"
}
},
+ "node_modules/@novu/node": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/@novu/node/-/node-2.0.1.tgz",
+ "integrity": "sha512-YIVo375oSV0UZfBOvLJr6heMxHf8MiJqcC0a3XAIgMofizBszcl0AS8+Z0ejukeZBomaX8z1q74JMbIMGc4FhA==",
+ "dependencies": {
+ "@novu/shared": "^2.0.1",
+ "axios": "^1.6.8",
+ "axios-retry": "^3.8.0",
+ "handlebars": "^4.7.7",
+ "lodash.get": "^4.4.2",
+ "lodash.merge": "^4.6.2",
+ "uuid": "^9.0.1"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@novu/node/node_modules/axios": {
+ "version": "1.7.7",
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz",
+ "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==",
+ "dependencies": {
+ "follow-redirects": "^1.15.6",
+ "form-data": "^4.0.0",
+ "proxy-from-env": "^1.1.0"
+ }
+ },
+ "node_modules/@novu/node/node_modules/uuid": {
+ "version": "9.0.1",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
+ "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
+ "funding": [
+ "https://github.com/sponsors/broofa",
+ "https://github.com/sponsors/ctavan"
+ ],
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
"node_modules/@novu/shared": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/@novu/shared/-/shared-2.1.1.tgz",
@@ -12371,6 +12414,15 @@
"follow-redirects": "^1.14.0"
}
},
+ "node_modules/axios-retry": {
+ "version": "3.9.1",
+ "resolved": "https://registry.npmjs.org/axios-retry/-/axios-retry-3.9.1.tgz",
+ "integrity": "sha512-8PJDLJv7qTTMMwdnbMvrLYuvB47M81wRtxQmEdV5w4rgbTXTt+vtPkXwajOfOdSyv/wZICJOC+/UhXH4aQ/R+w==",
+ "dependencies": {
+ "@babel/runtime": "^7.15.4",
+ "is-retry-allowed": "^2.2.0"
+ }
+ },
"node_modules/axobject-query": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz",
@@ -17705,6 +17757,34 @@
"gunzip-maybe": "bin.js"
}
},
+ "node_modules/handlebars": {
+ "version": "4.7.8",
+ "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz",
+ "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==",
+ "dependencies": {
+ "minimist": "^1.2.5",
+ "neo-async": "^2.6.2",
+ "source-map": "^0.6.1",
+ "wordwrap": "^1.0.0"
+ },
+ "bin": {
+ "handlebars": "bin/handlebars"
+ },
+ "engines": {
+ "node": ">=0.4.7"
+ },
+ "optionalDependencies": {
+ "uglify-js": "^3.1.4"
+ }
+ },
+ "node_modules/handlebars/node_modules/source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/has-bigints": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz",
@@ -18948,6 +19028,17 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/is-retry-allowed": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-2.2.0.tgz",
+ "integrity": "sha512-XVm7LOeLpTW4jV19QSH38vkswxoLud8sQ57YwJVTPWdiaI9I8keEhGFpBlslyVsgdQy4Opg8QOLb8YRgsyZiQg==",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/is-set": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz",
@@ -23072,6 +23163,11 @@
"node": ">= 0.6"
}
},
+ "node_modules/neo-async": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz",
+ "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw=="
+ },
"node_modules/netmask": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz",
@@ -31127,6 +31223,18 @@
"resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.4.tgz",
"integrity": "sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ=="
},
+ "node_modules/uglify-js": {
+ "version": "3.19.3",
+ "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz",
+ "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==",
+ "optional": true,
+ "bin": {
+ "uglifyjs": "bin/uglifyjs"
+ },
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
"node_modules/uid": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/uid/-/uid-2.0.2.tgz",
@@ -32567,6 +32675,11 @@
"node": ">=0.10.0"
}
},
+ "node_modules/wordwrap": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",
+ "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q=="
+ },
"node_modules/wrap-ansi": {
"version": "8.1.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",
@@ -33177,6 +33290,18 @@
"typescript": "^5.2.2"
}
},
+ "packages/notifications": {
+ "name": "@carbon/notifications",
+ "version": "*",
+ "dependencies": {
+ "@novu/node": "^2.0.1",
+ "nanoid": "5.0.4"
+ },
+ "devDependencies": {
+ "@carbon/tsconfig": "*",
+ "typescript": "^5.2.2"
+ }
+ },
"packages/react": {
"name": "@carbon/react",
"version": "*",
diff --git a/packages/kv/tsup.config.bundled_r5u3e79sewr.mjs b/packages/kv/tsup.config.bundled_r5u3e79sewr.mjs
deleted file mode 100644
index f9f07270cd..0000000000
--- a/packages/kv/tsup.config.bundled_r5u3e79sewr.mjs
+++ /dev/null
@@ -1,13 +0,0 @@
-// tsup.config.ts
-import { defineConfig } from "tsup";
-var isProduction = process.env.VERCEL_ENV === "production";
-var tsup_config_default = defineConfig({
- clean: true,
- dts: true,
- entry: ["src/index.ts"],
- format: ["cjs", "esm"],
- minify: isProduction,
- sourcemap: true,
-});
-export { tsup_config_default as default };
-//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidHN1cC5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9faW5qZWN0ZWRfZmlsZW5hbWVfXyA9IFwiL1VzZXJzL2JiYXJiaW4vQ29kZS9jYXJib24vcGFja2FnZXMvY2FyYm9uLXJlZGlzL3RzdXAuY29uZmlnLnRzXCI7Y29uc3QgX19pbmplY3RlZF9kaXJuYW1lX18gPSBcIi9Vc2Vycy9iYmFyYmluL0NvZGUvY2FyYm9uL3BhY2thZ2VzL2NhcmJvbi1yZWRpc1wiO2NvbnN0IF9faW5qZWN0ZWRfaW1wb3J0X21ldGFfdXJsX18gPSBcImZpbGU6Ly8vVXNlcnMvYmJhcmJpbi9Db2RlL2NhcmJvbi9wYWNrYWdlcy9jYXJib24tcmVkaXMvdHN1cC5jb25maWcudHNcIjtpbXBvcnQgeyBkZWZpbmVDb25maWcgfSBmcm9tIFwidHN1cFwiO1xuXG5jb25zdCBpc1Byb2R1Y3Rpb24gPSBwcm9jZXNzLmVudi5OT0RFX0VOViA9PT0gXCJwcm9kdWN0aW9uXCI7XG5cbmV4cG9ydCBkZWZhdWx0IGRlZmluZUNvbmZpZyh7XG4gIGNsZWFuOiB0cnVlLFxuICBkdHM6IHRydWUsXG4gIGVudHJ5OiBbXCJzcmMvaW5kZXgudHNcIl0sXG4gIGZvcm1hdDogW1wiY2pzXCIsIFwiZXNtXCJdLFxuICBtaW5pZnk6IGlzUHJvZHVjdGlvbixcbiAgc291cmNlbWFwOiB0cnVlLFxufSk7XG4iXSwKICAibWFwcGluZ3MiOiAiO0FBQThSLFNBQVMsb0JBQW9CO0FBRTNULElBQU0sZUFBZSxRQUFRLElBQUksYUFBYTtBQUU5QyxJQUFPLHNCQUFRLGFBQWE7QUFBQSxFQUMxQixPQUFPO0FBQUEsRUFDUCxLQUFLO0FBQUEsRUFDTCxPQUFPLENBQUMsY0FBYztBQUFBLEVBQ3RCLFFBQVEsQ0FBQyxPQUFPLEtBQUs7QUFBQSxFQUNyQixRQUFRO0FBQUEsRUFDUixXQUFXO0FBQ2IsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K
diff --git a/packages/react/src/Table.tsx b/packages/react/src/Table.tsx
index a05625dde6..918e55052f 100644
--- a/packages/react/src/Table.tsx
+++ b/packages/react/src/Table.tsx
@@ -85,7 +85,7 @@ const Th = forwardRef<
<th
ref={ref}
className={cn(
- "group-hover:bg-muted h-11 px-6 text-left align-middle uppercase bg-card font-semibold tracking-tight text-xs text-foreground [&:has([role=checkbox])]:pr-0",
+ "group-hover:bg-muted h-11 px-6 text-left align-middle text-foreground/80 bg-card font-medium text-sm [&:has([role=checkbox])]:pr-0",
className
)}
{...props}