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.

feat: add notes to estimates, upgrade react icons

Brad Barbin1aebf0dbd8e5
diff --git a/apps/erp/app/components/AvatarMenu.tsx b/apps/erp/app/components/AvatarMenu.tsx
index 327b72fc1c..f49b24c2bb 100644
--- a/apps/erp/app/components/AvatarMenu.tsx
+++ b/apps/erp/app/components/AvatarMenu.tsx
@@ -18,7 +18,7 @@ import { Form, Link, useFetcher } from "@remix-run/react";
import { useRef, useState } from "react";
import {
LuFileText,
- LuHome,
+ LuHouse,
LuLogOut,
LuMoon,
LuPalette,
@@ -73,7 +73,7 @@ const AvatarMenu = () => {
<DropdownMenuSeparator />
<DropdownMenuItem asChild>
<Link to={path.to.authenticatedRoot}>
- <DropdownMenuIcon icon={<LuHome />} />
+ <DropdownMenuIcon icon={<LuHouse />} />
Dashboard
</Link>
</DropdownMenuItem>
diff --git a/apps/erp/app/components/CadModel.tsx b/apps/erp/app/components/CadModel.tsx
index e061a578f1..e3b033aa71 100644
--- a/apps/erp/app/components/CadModel.tsx
+++ b/apps/erp/app/components/CadModel.tsx
@@ -14,7 +14,7 @@ import { useFetcher } from "@remix-run/react";
import { nanoid } from "nanoid";
import { useState } from "react";
import { useDropzone } from "react-dropzone";
-import { LuUploadCloud } from "react-icons/lu";
+import { LuCloudUpload } from "react-icons/lu";
import { useUser } from "~/hooks";
import { useMode } from "~/hooks/useMode";
import { getPrivateUrl, path } from "~/utils/path";
@@ -231,7 +231,7 @@ const CadModelUpload = ({
title ? "-mt-16" : "-mt-6"
)}
>
- <LuUploadCloud className="mx-auto h-12 w-12 text-muted-foreground group-hover:text-primary-foreground" />
+ <LuCloudUpload className="mx-auto h-12 w-12 text-muted-foreground group-hover:text-primary-foreground" />
</div>
<p className="text-lg text-muted-foreground group-hover:text-foreground mt-8">
Choose file to upload or drag and drop
diff --git a/apps/erp/app/components/Configurator/ConfigurationEditor/ConfigurationEditor.tsx b/apps/erp/app/components/Configurator/ConfigurationEditor/ConfigurationEditor.tsx
index 85f90c7af3..e0880200fd 100644
--- a/apps/erp/app/components/Configurator/ConfigurationEditor/ConfigurationEditor.tsx
+++ b/apps/erp/app/components/Configurator/ConfigurationEditor/ConfigurationEditor.tsx
@@ -20,8 +20,8 @@ import { useFetcher, useParams } from "@remix-run/react";
import type * as Monaco from "monaco-editor";
import { useCallback, useEffect, useMemo, useState } from "react";
import {
- LuFunctionSquare,
- LuMoreVertical,
+ LuSquareFunction,
+ LuEllipsisVertical,
LuPlay,
LuSave,
LuTrash2,
@@ -329,13 +329,13 @@ export default function Configurator({
<HStack>
<Badge variant={isActive ? "green" : "gray"}>
{isActive ? "Active" : "Inactive"}
- <LuFunctionSquare className="ml-1" />
+ <LuSquareFunction className="ml-1" />
</Badge>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<IconButton
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="secondary"
size="sm"
aria-label="Actions"
diff --git a/apps/erp/app/components/Configurator/ConfiguratorForm/ConfiguratorForm.tsx b/apps/erp/app/components/Configurator/ConfiguratorForm/ConfiguratorForm.tsx
index daddf5e427..5cd809710f 100644
--- a/apps/erp/app/components/Configurator/ConfiguratorForm/ConfiguratorForm.tsx
+++ b/apps/erp/app/components/Configurator/ConfiguratorForm/ConfiguratorForm.tsx
@@ -25,7 +25,7 @@ import {
toast,
} from "@carbon/react";
import { createContext, useContext, useEffect, useMemo, useState } from "react";
-import { LuAlertTriangle, LuChevronDown, LuChevronUp } from "react-icons/lu";
+import { LuChevronDown, LuChevronUp, LuTriangleAlert } from "react-icons/lu";
import { z } from "zod";
import { zfd } from "zod-form-data";
import type {
@@ -324,7 +324,7 @@ function ConfiguratorFormContent({
{isLastStep && destructive && (
<Alert variant="destructive">
- <LuAlertTriangle className="h-4 w-4" />
+ <LuTriangleAlert className="h-4 w-4" />
<AlertTitle>
Changing this will overwrite the existing method
</AlertTitle>
diff --git a/apps/erp/app/components/Documents.tsx b/apps/erp/app/components/Documents.tsx
index 34e0afa089..19e360c802 100644
--- a/apps/erp/app/components/Documents.tsx
+++ b/apps/erp/app/components/Documents.tsx
@@ -25,7 +25,7 @@ import { convertKbToString } from "@carbon/utils";
import { Link, useFetchers, useRevalidator, useSubmit } from "@remix-run/react";
import type { ChangeEvent } from "react";
import { useCallback } from "react";
-import { LuAxis3D, LuMoreVertical, LuUpload } from "react-icons/lu";
+import { LuAxis3D, LuEllipsisVertical, LuUpload } from "react-icons/lu";
import { DocumentPreview, FileDropzone, Hyperlink } from "~/components";
import DocumentIcon from "~/components/DocumentIcon";
import { usePermissions, useUser } from "~/hooks";
@@ -311,7 +311,7 @@ const Documents = ({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="secondary"
/>
</DropdownMenuTrigger>
@@ -383,7 +383,7 @@ const Documents = ({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="secondary"
/>
</DropdownMenuTrigger>
diff --git a/apps/erp/app/components/FileDropzone.tsx b/apps/erp/app/components/FileDropzone.tsx
index e8f359d27a..868c270b7d 100644
--- a/apps/erp/app/components/FileDropzone.tsx
+++ b/apps/erp/app/components/FileDropzone.tsx
@@ -1,6 +1,6 @@
import React from "react";
import { useDropzone } from "react-dropzone";
-import { LuUploadCloud } from "react-icons/lu";
+import { LuCloudUpload } from "react-icons/lu";
interface FileDropzoneProps {
onDrop: (acceptedFiles: File[]) => void;
@@ -17,7 +17,7 @@ const FileDropzone: React.FC<FileDropzoneProps> = ({ onDrop }) => {
}`}
>
<input {...getInputProps()} />
- <LuUploadCloud className="mx-auto h-12 w-12 text-muted-foreground" />
+ <LuCloudUpload className="mx-auto h-12 w-12 text-muted-foreground" />
<p className="mt-2 text-sm text-muted-foreground">
Drag and drop some files here, or click to select files
</p>
diff --git a/apps/erp/app/components/Gantt/components/GanttTaskStatus.tsx b/apps/erp/app/components/Gantt/components/GanttTaskStatus.tsx
index f184a4fa7c..d70e65a0f1 100644
--- a/apps/erp/app/components/Gantt/components/GanttTaskStatus.tsx
+++ b/apps/erp/app/components/Gantt/components/GanttTaskStatus.tsx
@@ -2,14 +2,14 @@ import { Spinner, cn } from "@carbon/react";
import assertNever from "assert-never";
import {
LuBan,
- LuCheckCircle,
+ LuCircleCheck,
+ LuCirclePause,
LuCircleSlash,
+ LuCircleX,
LuFlame,
LuLayers,
- LuPauseCircle,
LuRefreshCcw,
LuSnowflake,
- LuXCircle,
} from "react-icons/lu";
export type GanttTaskStatus =
@@ -133,7 +133,7 @@ export function GanttTaskStatusIcon({
);
case "PAUSED":
return (
- <LuPauseCircle
+ <LuCirclePause
className={cn(runStatusClassNameColor(status), className)}
/>
);
@@ -149,17 +149,17 @@ export function GanttTaskStatusIcon({
);
case "COMPLETED_SUCCESSFULLY":
return (
- <LuCheckCircle
+ <LuCircleCheck
className={cn(runStatusClassNameColor(status), className)}
/>
);
case "COMPLETED_WITH_ERRORS":
return (
- <LuXCircle className={cn(runStatusClassNameColor(status), className)} />
+ <LuCircleX className={cn(runStatusClassNameColor(status), className)} />
);
case "SYSTEM_FAILURE":
return (
- <LuXCircle className={cn(runStatusClassNameColor(status), className)} />
+ <LuCircleX className={cn(runStatusClassNameColor(status), className)} />
);
case "CRASHED":
return (
diff --git a/apps/erp/app/components/Grid/Grid.tsx b/apps/erp/app/components/Grid/Grid.tsx
index 0708205389..6dfcc0ff49 100644
--- a/apps/erp/app/components/Grid/Grid.tsx
+++ b/apps/erp/app/components/Grid/Grid.tsx
@@ -19,7 +19,7 @@ import {
useReactTable,
} from "@tanstack/react-table";
import { useCallback, useEffect, useRef, useState } from "react";
-import { LuPlusCircle } from "react-icons/lu";
+import { LuCirclePlus } from "react-icons/lu";
import type {
EditableTableCellComponent,
Position,
@@ -421,7 +421,7 @@ const Grid = <T extends object>({
>
<Td colSpan={24}>
<HStack className="items-start h-6">
- <LuPlusCircle className="text-muted-foreground h-6 w-6" />
+ <LuCirclePlus className="text-muted-foreground h-6 w-6" />
</HStack>
</Td>
</Tr>
diff --git a/apps/erp/app/components/Icons.tsx b/apps/erp/app/components/Icons.tsx
index 324c949d09..de0cacbe8a 100644
--- a/apps/erp/app/components/Icons.tsx
+++ b/apps/erp/app/components/Icons.tsx
@@ -3,7 +3,8 @@ import { AiOutlinePartition } from "react-icons/ai";
import { FaCodePullRequest } from "react-icons/fa6";
import {
LuAtom,
- LuCheckCircle,
+ LuCircleCheck,
+ LuCircleX,
LuExternalLink,
LuHammer,
LuHardHat,
@@ -12,7 +13,6 @@ import {
LuShoppingCart,
LuSquare,
LuTimer,
- LuXCircle,
} from "react-icons/lu";
import { RxCodesandboxLogo } from "react-icons/rx";
@@ -132,9 +132,9 @@ export function OperationStatusIcon({
return <TodoStatusIcon className={cn("text-foreground", className)} />;
case "Waiting":
case "Canceled":
- return <LuXCircle className={cn("text-muted-foreground", className)} />;
+ return <LuCircleX className={cn("text-muted-foreground", className)} />;
case "Done":
- return <LuCheckCircle className={cn("text-blue-600", className)} />;
+ return <LuCircleCheck className={cn("text-blue-600", className)} />;
case "In Progress":
return <AlmostDoneIcon className={className} />;
case "Paused":
diff --git a/apps/erp/app/components/Layout/Topbar/CreateMenu.tsx b/apps/erp/app/components/Layout/Topbar/CreateMenu.tsx
index 9d82013bf4..c408a24fa1 100644
--- a/apps/erp/app/components/Layout/Topbar/CreateMenu.tsx
+++ b/apps/erp/app/components/Layout/Topbar/CreateMenu.tsx
@@ -11,10 +11,10 @@ import { Link } from "@remix-run/react";
import {
LuContainer,
LuHardHat,
- LuPenSquare,
LuShoppingCart,
+ LuSquarePen,
LuSquareStack,
- LuUserSquare,
+ LuSquareUser,
LuUsers,
} from "react-icons/lu";
@@ -70,7 +70,7 @@ function useCreate(): Route[] {
links.push({
name: "Customer",
to: path.to.newCustomer,
- icon: <LuUserSquare />,
+ icon: <LuSquareUser />,
});
links.push({
name: "RFQ",
@@ -113,7 +113,7 @@ const CreateMenu = () => {
<DropdownMenuTrigger asChild>
<IconButton
aria-label="Create"
- icon={<LuPenSquare />}
+ icon={<LuSquarePen />}
variant="secondary"
/>
</DropdownMenuTrigger>
diff --git a/apps/erp/app/components/Layout/Topbar/HelpMenu.tsx b/apps/erp/app/components/Layout/Topbar/HelpMenu.tsx
index 3b5a24acfb..96cf3e396a 100644
--- a/apps/erp/app/components/Layout/Topbar/HelpMenu.tsx
+++ b/apps/erp/app/components/Layout/Topbar/HelpMenu.tsx
@@ -7,7 +7,7 @@ import {
IconButton,
} from "@carbon/react";
import { Link } from "@remix-run/react";
-import { LuFiles, LuHelpCircle } from "react-icons/lu";
+import { LuCircleHelp, LuFiles } from "react-icons/lu";
import { path } from "~/utils/path";
const HelpMenu = () => {
@@ -17,7 +17,7 @@ const HelpMenu = () => {
<IconButton
className="hidden sm:flex"
aria-label="Help"
- icon={<LuHelpCircle />}
+ icon={<LuCircleHelp />}
variant="ghost"
/>
</DropdownMenuTrigger>
diff --git a/apps/erp/app/components/Layout/Topbar/Search.tsx b/apps/erp/app/components/Layout/Topbar/Search.tsx
index d18080979f..213e1a6ea4 100644
--- a/apps/erp/app/components/Layout/Topbar/Search.tsx
+++ b/apps/erp/app/components/Layout/Topbar/Search.tsx
@@ -29,8 +29,8 @@ import {
LuHardHat,
LuSearch,
LuShoppingCart,
+ LuSquareUser,
LuUser,
- LuUserSquare,
LuWrench,
} from "react-icons/lu";
import { PiShareNetworkFill } from "react-icons/pi";
@@ -255,7 +255,7 @@ const SearchModal = ({
function ResultIcon({ entity }: { entity: SearchResult["entity"] | "Module" }) {
switch (entity) {
case "Customer":
- return <LuUserSquare className="w-4 h-4 flex-shrink-0 mr-2" />;
+ return <LuSquareUser className="w-4 h-4 flex-shrink-0 mr-2" />;
case "Document":
return <LuFileCheck className="w-4 h-4 flex-shrink-0 mr-2" />;
case "Job":
diff --git a/apps/erp/app/components/New.tsx b/apps/erp/app/components/New.tsx
index 86c2200a0a..7f3aad37bd 100644
--- a/apps/erp/app/components/New.tsx
+++ b/apps/erp/app/components/New.tsx
@@ -9,7 +9,7 @@ import {
} from "@carbon/react";
import { Link } from "@remix-run/react";
import { useRef } from "react";
-import { LuPlusCircle } from "react-icons/lu";
+import { LuCirclePlus } from "react-icons/lu";
type NewProps = {
label?: string;
@@ -28,7 +28,7 @@ const New = ({ label, to }: NewProps) => {
return (
<Tooltip>
<TooltipTrigger>
- <Button asChild leftIcon={<LuPlusCircle />} ref={buttonRef}>
+ <Button asChild leftIcon={<LuCirclePlus />} ref={buttonRef}>
<Link to={to} prefetch="intent">
New
</Link>
diff --git a/apps/erp/app/components/Table/Table.tsx b/apps/erp/app/components/Table/Table.tsx
index 385901d7c0..3568dce924 100644
--- a/apps/erp/app/components/Table/Table.tsx
+++ b/apps/erp/app/components/Table/Table.tsx
@@ -38,7 +38,7 @@ import {
} from "@tanstack/react-table";
import type { CSSProperties, ReactNode } from "react";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
-import { LuAlertTriangle, LuArrowDown, LuArrowUp } from "react-icons/lu";
+import { LuArrowDown, LuArrowUp, LuTriangleAlert } from "react-icons/lu";
import { useSpinDelay } from "spin-delay";
import type {
EditableTableCellComponent,
@@ -627,7 +627,7 @@ const Table = <T extends object>({
) : hasFilters ? (
<div className="flex flex-col w-full h-full items-center justify-center gap-4">
<div className="flex justify-center items-center h-12 w-12 rounded-full bg-foreground text-background">
- <LuAlertTriangle className="h-6 w-6" />
+ <LuTriangleAlert className="h-6 w-6" />
</div>
<span className="text-xs font-mono font-light text-foreground uppercase">
No results found
@@ -639,7 +639,7 @@ const Table = <T extends object>({
) : (
<div className="flex flex-col w-full h-full items-center justify-center gap-4">
<div className="flex justify-center items-center h-12 w-12 rounded-full bg-foreground text-background">
- <LuAlertTriangle className="h-6 w-6" />
+ <LuTriangleAlert className="h-6 w-6" />
</div>
<span className="text-xs font-mono font-light text-foreground uppercase">
No data exists
diff --git a/apps/erp/app/components/Table/components/Columns.tsx b/apps/erp/app/components/Table/components/Columns.tsx
index edb7146f9b..bebf248ec5 100644
--- a/apps/erp/app/components/Table/components/Columns.tsx
+++ b/apps/erp/app/components/Table/components/Columns.tsx
@@ -12,7 +12,7 @@ import {
import type { Column, ColumnOrderState } from "@tanstack/react-table";
import { Reorder } from "framer-motion";
import {
- LuColumns,
+ LuColumns2,
LuEye,
LuEyeOff,
LuGripVertical,
@@ -40,7 +40,7 @@ const Columns = <T extends object>({
aria-label="Columns"
title="Columns"
variant="ghost"
- icon={<LuColumns />}
+ icon={<LuColumns2 />}
/>
</DrawerTrigger>
<DrawerContent>
diff --git a/apps/erp/app/components/Table/components/TableHeader.tsx b/apps/erp/app/components/Table/components/TableHeader.tsx
index b8f781659f..584165916f 100644
--- a/apps/erp/app/components/Table/components/TableHeader.tsx
+++ b/apps/erp/app/components/Table/components/TableHeader.tsx
@@ -15,7 +15,7 @@ import {
import type { Column, ColumnOrderState } from "@tanstack/react-table";
import { useState, type ReactNode } from "react";
import { BsThreeDotsVertical } from "react-icons/bs";
-import { LuFileEdit, LuImport, LuLock, LuZap } from "react-icons/lu";
+import { LuFilePen, LuImport, LuLock, LuZap } from "react-icons/lu";
import { SearchFilter } from "~/components";
import { ImportCSVModal } from "~/components/ImportCSVModal";
import { CollapsibleSidebarTrigger } from "~/components/Layout/Navigation";
@@ -167,7 +167,7 @@ const TableHeader = <T extends object>({
</Button>
) : (
<Button
- leftIcon={<LuFileEdit />}
+ leftIcon={<LuFilePen />}
variant="secondary"
onClick={() => setEditMode(true)}
>
diff --git a/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTable.tsx b/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTable.tsx
index f23505c7f2..411c5c2a32 100644
--- a/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTable.tsx
+++ b/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTable.tsx
@@ -2,7 +2,7 @@ import { Button, Checkbox, HStack, cn } from "@carbon/react";
import { Link as RemixLink } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useMemo } from "react";
-import { LuMoreVertical } from "react-icons/lu";
+import { LuEllipsisVertical } from "react-icons/lu";
import { Hyperlink } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import Grid from "~/components/Grid";
@@ -46,7 +46,7 @@ const ChartOfAccountsTable = memo(({ data }: ChartOfAccountsTableProps) => {
onClick={(e) => e.stopPropagation()}
>
<RemixLink to={`${row.original.id}`}>
- <LuMoreVertical />
+ <LuEllipsisVertical />
</RemixLink>
</Button>
</div>
diff --git a/apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsx b/apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsx
index 41bc96df0c..cf211ab174 100644
--- a/apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsx
+++ b/apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsx
@@ -21,6 +21,7 @@ import { memo, useCallback, useEffect, useMemo, useState } from "react";
import { IoMdAdd } from "react-icons/io";
import {
LuBookMarked,
+ LuCircleX,
LuDownload,
LuExternalLink,
LuFileText,
@@ -31,7 +32,6 @@ import {
LuTrash,
LuUser,
LuUsers,
- LuXCircle,
} from "react-icons/lu";
import { RxCheck } from "react-icons/rx";
import { EmployeeAvatar, Hyperlink, Table } from "~/components";
@@ -439,7 +439,7 @@ const DocumentsTable = memo(
deleteDocumentModal.onOpen();
}}
>
- <MenuIcon icon={<LuXCircle />} />
+ <MenuIcon icon={<LuCircleX />} />
Permanently Delete
</MenuItem>
</>
diff --git a/apps/erp/app/modules/inventory/ui/Inventory/InventoryActivity.tsx b/apps/erp/app/modules/inventory/ui/Inventory/InventoryActivity.tsx
index 6b4610d81b..ef5c7a405f 100644
--- a/apps/erp/app/modules/inventory/ui/Inventory/InventoryActivity.tsx
+++ b/apps/erp/app/modules/inventory/ui/Inventory/InventoryActivity.tsx
@@ -1,4 +1,4 @@
-import { LuMinusCircle, LuPlusCircle } from "react-icons/lu";
+import { LuCircleMinus, LuCirclePlus } from "react-icons/lu";
import { Hyperlink } from "~/components";
import Activity from "~/components/Activity";
import { path } from "~/utils/path";
@@ -95,10 +95,10 @@ const getActivityText = (ledgerRecord: ItemLedger) => {
const getActivityIcon = (ledgerRecord: ItemLedger) => {
switch (ledgerRecord.entryType) {
case "Positive Adjmt.":
- return <LuPlusCircle className="text-blue-500 w-5 h-5" />;
+ return <LuCirclePlus className="text-blue-500 w-5 h-5" />;
case "Negative Adjmt.":
case "Consumption":
- return <LuMinusCircle className="text-red-500 w-5 h-5" />;
+ return <LuCircleMinus className="text-red-500 w-5 h-5" />;
default:
return "";
}
diff --git a/apps/erp/app/modules/inventory/ui/Inventory/InventoryTable.tsx b/apps/erp/app/modules/inventory/ui/Inventory/InventoryTable.tsx
index 9d8889e90a..15f20a3055 100644
--- a/apps/erp/app/modules/inventory/ui/Inventory/InventoryTable.tsx
+++ b/apps/erp/app/modules/inventory/ui/Inventory/InventoryTable.tsx
@@ -3,19 +3,19 @@ import { Link } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useMemo } from "react";
import {
- LuAlertTriangle,
LuBookMarked,
LuBox,
LuCheck,
+ LuCirclePlus,
LuFactory,
LuGlassWater,
LuMapPin,
LuPackage,
- LuPlusCircle,
LuRuler,
LuShapes,
LuShoppingBag,
LuShoppingCart,
+ LuTriangleAlert,
} from "react-icons/lu";
import {
Hyperlink,
@@ -250,12 +250,12 @@ const InventoryTable = memo(
{count === 0 && !hasFilters ? (
<div className="flex flex-col w-full h-full items-center justify-center gap-4">
<div className="flex justify-center items-center h-12 w-12 rounded-full bg-foreground text-background">
- <LuAlertTriangle className="h-6 w-6" />
+ <LuTriangleAlert className="h-6 w-6" />
</div>
<span className="text-xs font-mono font-light text-foreground uppercase">
No inventory items exists
</span>
- <Button leftIcon={<LuPlusCircle />} asChild>
+ <Button leftIcon={<LuCirclePlus />} asChild>
<Link to={path.to.newPart}>New Part</Link>
</Button>
</div>
diff --git a/apps/erp/app/modules/inventory/ui/Inventory/useInventoryNavigation.tsx b/apps/erp/app/modules/inventory/ui/Inventory/useInventoryNavigation.tsx
index 8524d22481..c1e5981cef 100644
--- a/apps/erp/app/modules/inventory/ui/Inventory/useInventoryNavigation.tsx
+++ b/apps/erp/app/modules/inventory/ui/Inventory/useInventoryNavigation.tsx
@@ -1,6 +1,6 @@
import { useParams } from "@remix-run/react";
-import { LuFileBarChart, LuFileText } from "react-icons/lu";
+import { LuChartBar, LuFileText } from "react-icons/lu";
import { usePermissions } from "~/hooks";
import { path } from "~/utils/path";
@@ -21,7 +21,7 @@ export function useInventoryNavigation() {
name: "Activity",
to: path.to.inventoryItemActivity(itemId),
role: ["employee"],
- icon: LuFileBarChart,
+ icon: LuChartBar,
shortcut: "Command+Shift+a",
},
];
diff --git a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptForm/ReceiptForm.tsx b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptForm/ReceiptForm.tsx
index 84a5e616a5..d78e309cbd 100644
--- a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptForm/ReceiptForm.tsx
+++ b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptForm/ReceiptForm.tsx
@@ -17,7 +17,7 @@ import {
useDisclosure,
VStack,
} from "@carbon/react";
-import { LuMoreVertical, LuTrash } from "react-icons/lu";
+import { LuEllipsisVertical, LuTrash } from "react-icons/lu";
import type { z } from "zod";
import {
Combobox,
@@ -95,7 +95,7 @@ const ReceiptForm = ({ initialValues, status }: ReceiptFormProps) => {
<IconButton
aria-label="Open menu"
variant="secondary"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
diff --git a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceExplorer.tsx b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceExplorer.tsx
index f32b7e052b..24c36c69d6 100644
--- a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceExplorer.tsx
+++ b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceExplorer.tsx
@@ -19,7 +19,7 @@ import {
import { prettifyKeyboardShortcut } from "@carbon/utils";
import { Link, useParams } from "@remix-run/react";
import { useRef, useState } from "react";
-import { LuMoreVertical, LuPlusCircle, LuTrash } from "react-icons/lu";
+import { LuCirclePlus, LuEllipsisVertical, LuTrash } from "react-icons/lu";
import { Empty, ItemThumbnail, MethodItemTypeIcon } from "~/components";
import {
useOptimisticLocation,
@@ -107,7 +107,7 @@ export default function PurchaseInvoiceExplorer() {
{permissions.can("update", "sales") && (
<Button
isDisabled={isDisabled}
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
variant="secondary"
onClick={newPurchaseInvoiceLineDisclosure.onOpen}
>
@@ -124,7 +124,7 @@ export default function PurchaseInvoiceExplorer() {
ref={newButtonRef}
className="w-full"
isDisabled={isDisabled || !permissions.can("update", "sales")}
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
variant="secondary"
onClick={newPurchaseInvoiceLineDisclosure.onOpen}
>
@@ -206,7 +206,7 @@ function PurchaseInvoiceLineItem({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="ghost"
onClick={(e) => e.stopPropagation()}
/>
diff --git a/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx b/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx
index 9185d85c0c..13483ba5da 100644
--- a/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx
+++ b/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx
@@ -22,7 +22,7 @@ import { AnimatePresence, LayoutGroup, motion } from "framer-motion";
import type { Dispatch, SetStateAction } from "react";
import { useCallback, useEffect, useState } from "react";
import { flushSync } from "react-dom";
-import { LuFunctionSquare, LuSettings2, LuX } from "react-icons/lu";
+import { LuSettings2, LuSquareFunction, LuX } from "react-icons/lu";
import type { z } from "zod";
import { MethodIcon, MethodItemTypeIcon } from "~/components";
import type { Configuration } from "~/components/Configurator/types";
@@ -435,7 +435,7 @@ const BillOfMaterial = ({
</Button>
{configurable && materials.length > 0 && (
<IconButton
- icon={<LuFunctionSquare />}
+ icon={<LuSquareFunction />}
aria-label="Configure"
variant="ghost"
className={cn(
diff --git a/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx b/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx
index da2eaaa010..6352095c28 100644
--- a/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx
+++ b/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx
@@ -35,13 +35,13 @@ import { nanoid } from "nanoid";
import type { Dispatch, SetStateAction } from "react";
import { useEffect, useRef, useState } from "react";
import {
- LuAlertTriangle,
LuChevronDown,
- LuFunctionSquare,
+ LuCirclePlus,
+ LuEllipsisVertical,
LuHammer,
- LuMoreVertical,
- LuPlusCircle,
LuSettings2,
+ LuSquareFunction,
+ LuTriangleAlert,
LuX,
} from "react-icons/lu";
import type { z } from "zod";
@@ -601,7 +601,7 @@ const BillOfProcess = ({
</Button>
{configurable && operations.length > 0 && (
<IconButton
- icon={<LuFunctionSquare />}
+ icon={<LuSquareFunction />}
aria-label="Configure"
variant="ghost"
className={cn(
@@ -1437,7 +1437,7 @@ function ToolsListItem({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="Open menu"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="ghost"
/>
</DropdownMenuTrigger>
@@ -1488,7 +1488,7 @@ function ToolsForm({
if (isDisabled && isTemporaryId(operationId)) {
return (
<Alert className="max-w-[420px] mx-auto my-8">
- <LuAlertTriangle />
+ <LuTriangleAlert />
<AlertTitle>Cannot add tools to unsaved operation</AlertTitle>
<AlertDescription>
Please save the operation before adding tools.
@@ -1522,7 +1522,7 @@ function ToolsForm({
</div>
<Submit
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
isDisabled={isDisabled || fetcher.state !== "idle"}
isLoading={fetcher.state !== "idle"}
>
diff --git a/apps/erp/app/modules/items/ui/Item/CustomerParts/CustomerParts.tsx b/apps/erp/app/modules/items/ui/Item/CustomerParts/CustomerParts.tsx
index d2ff09b826..c7c8c30e26 100644
--- a/apps/erp/app/modules/items/ui/Item/CustomerParts/CustomerParts.tsx
+++ b/apps/erp/app/modules/items/ui/Item/CustomerParts/CustomerParts.tsx
@@ -15,7 +15,7 @@ import {
import { Outlet, useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { useMemo } from "react";
-import { LuMoreVertical, LuPencil, LuTrash } from "react-icons/lu";
+import { LuEllipsisVertical, LuPencil, LuTrash } from "react-icons/lu";
import { CustomerAvatar, New } from "~/components";
import { EditableText } from "~/components/Editable";
import Grid from "~/components/Grid";
@@ -45,7 +45,7 @@ const CustomerParts = ({ customerParts, itemId }: CustomerPartsProps) => {
<DropdownMenuTrigger asChild>
<IconButton
aria-label="Edit purchase order line type"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
size="md"
className="absolute right-[-1px] top-[-6px]"
variant="ghost"
diff --git a/apps/erp/app/modules/items/ui/Item/ItemDocuments.tsx b/apps/erp/app/modules/items/ui/Item/ItemDocuments.tsx
index 08c2731c9e..24da37c8d7 100644
--- a/apps/erp/app/modules/items/ui/Item/ItemDocuments.tsx
+++ b/apps/erp/app/modules/items/ui/Item/ItemDocuments.tsx
@@ -22,7 +22,7 @@ import {
Tr,
} from "@carbon/react";
import { convertKbToString } from "@carbon/utils";
-import { LuAxis3D, LuMoreVertical, LuUpload } from "react-icons/lu";
+import { LuAxis3D, LuEllipsisVertical, LuUpload } from "react-icons/lu";
import { DocumentPreview, FileDropzone, Hyperlink } from "~/components";
import DocumentIcon from "~/components/DocumentIcon";
import type { MethodItemType, OptimisticFileObject } from "~/modules/shared";
@@ -130,7 +130,7 @@ const ItemDocuments = ({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="secondary"
/>
</DropdownMenuTrigger>
@@ -193,7 +193,7 @@ const ItemDocuments = ({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="secondary"
/>
</DropdownMenuTrigger>
diff --git a/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx b/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx
index 6991d545b8..77ac43ee0a 100644
--- a/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx
+++ b/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx
@@ -20,7 +20,7 @@ import {
} from "@carbon/react";
import { useFetcher } from "@remix-run/react";
import { useEffect, useState } from "react";
-import { LuAlertTriangle, LuDownload, LuUpload } from "react-icons/lu";
+import { LuDownload, LuTriangleAlert, LuUpload } from "react-icons/lu";
import { Hidden, Item } from "~/components/Form";
import { usePermissions } from "~/hooks";
import type { MethodItemType } from "~/modules/shared";
@@ -132,7 +132,7 @@ const MakeMethodTools = ({ itemId, type }: MakeMethodToolsProps) => {
</div>
<Alert variant="destructive">
- <LuAlertTriangle className="h-4 w-4" />
+ <LuTriangleAlert className="h-4 w-4" />
<AlertTitle>
This will overwrite the existing manufacturing method
</AlertTitle>
diff --git a/apps/erp/app/modules/items/ui/Parts/ConfigurationParameters.tsx b/apps/erp/app/modules/items/ui/Parts/ConfigurationParameters.tsx
index 0a253f8920..68d2e00cd0 100644
--- a/apps/erp/app/modules/items/ui/Parts/ConfigurationParameters.tsx
+++ b/apps/erp/app/modules/items/ui/Parts/ConfigurationParameters.tsx
@@ -39,11 +39,11 @@ import {
import { cva } from "class-variance-authority";
import { useEffect, useRef, useState } from "react";
import {
+ LuCirclePlus,
+ LuEllipsisVertical,
LuFolderOpen,
LuGripVertical,
LuKeySquare,
- LuMoreVertical,
- LuPlusCircle,
} from "react-icons/lu";
import { EmployeeAvatar } from "~/components";
import type { ConfigurationParameter } from "~/modules/items";
@@ -245,7 +245,7 @@ export default function ConfigurationParametersForm({
</div>
<HStack spacing={2}>
<Submit
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
isDisabled={fetcher.state !== "idle"}
isLoading={
fetcher.state !== "idle" &&
@@ -732,7 +732,7 @@ function ParameterGroup({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="Open menu"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="ghost"
/>
</DropdownMenuTrigger>
@@ -947,7 +947,7 @@ function ConfigurableParameter({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="Open menu"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="ghost"
/>
</DropdownMenuTrigger>
diff --git a/apps/erp/app/modules/items/ui/Parts/PartForm.tsx b/apps/erp/app/modules/items/ui/Parts/PartForm.tsx
index fca323201a..937522da59 100644
--- a/apps/erp/app/modules/items/ui/Parts/PartForm.tsx
+++ b/apps/erp/app/modules/items/ui/Parts/PartForm.tsx
@@ -23,7 +23,7 @@ import { nanoid } from "nanoid";
import { useEffect, useState } from "react";
import { flushSync } from "react-dom";
import { useDropzone } from "react-dropzone";
-import { LuUploadCloud } from "react-icons/lu";
+import { LuCloudUpload } from "react-icons/lu";
import type { z } from "zod";
import {
Boolean,
@@ -316,7 +316,7 @@ const PartForm = ({ initialValues, type = "card", onClose }: PartFormProps) => {
</>
) : (
<Loading isLoading={modelIsUploading}>
- <LuUploadCloud className="mx-auto h-12 w-12 text-muted-foreground group-hover:text-primary-foreground" />
+ <LuCloudUpload className="mx-auto h-12 w-12 text-muted-foreground group-hover:text-primary-foreground" />
<p className="text-xs text-muted-foreground group-hover:text-foreground">
Supports {supportedModelTypes.join(", ")} files
</p>
diff --git a/apps/erp/app/modules/items/ui/Tools/ToolForm.tsx b/apps/erp/app/modules/items/ui/Tools/ToolForm.tsx
index b54ae4cd23..722e02af19 100644
--- a/apps/erp/app/modules/items/ui/Tools/ToolForm.tsx
+++ b/apps/erp/app/modules/items/ui/Tools/ToolForm.tsx
@@ -23,7 +23,7 @@ import { nanoid } from "nanoid";
import { useEffect, useState } from "react";
import { flushSync } from "react-dom";
import { useDropzone } from "react-dropzone";
-import { LuUploadCloud } from "react-icons/lu";
+import { LuCloudUpload } from "react-icons/lu";
import type { z } from "zod";
import {
Boolean,
@@ -316,7 +316,7 @@ const ToolForm = ({ initialValues, type = "card", onClose }: ToolFormProps) => {
</>
) : (
<Loading isLoading={modelIsUploading}>
- <LuUploadCloud className="mx-auto h-12 w-12 text-muted-foreground group-hover:text-primary-foreground" />
+ <LuCloudUpload className="mx-auto h-12 w-12 text-muted-foreground group-hover:text-primary-foreground" />
<p className="text-xs text-muted-foreground group-hover:text-foreground">
Supports {supportedModelTypes.join(", ")} files
</p>
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
index 13364382fd..f3518cdaea 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
@@ -40,13 +40,13 @@ import { nanoid } from "nanoid";
import type { Dispatch, SetStateAction } from "react";
import { useCallback, useEffect, useRef, useState } from "react";
import {
- LuAlertTriangle,
LuChevronDown,
+ LuCirclePlus,
LuDollarSign,
+ LuEllipsisVertical,
LuHammer,
- LuMoreVertical,
- LuPlusCircle,
LuSettings2,
+ LuTriangleAlert,
LuX,
} from "react-icons/lu";
import type { z } from "zod";
@@ -1659,7 +1659,7 @@ function ToolsListItem({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="Open menu"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="ghost"
/>
</DropdownMenuTrigger>
@@ -1710,7 +1710,7 @@ function ToolsForm({
if (isDisabled && isTemporaryId(operationId)) {
return (
<Alert className="max-w-[420px] mx-auto my-8">
- <LuAlertTriangle />
+ <LuTriangleAlert />
<AlertTitle>Cannot add tools to unsaved operation</AlertTitle>
<AlertDescription>
Please save the operation before adding tools.
@@ -1744,7 +1744,7 @@ function ToolsForm({
</div>
<Submit
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
isDisabled={isDisabled || fetcher.state !== "idle"}
isLoading={fetcher.state !== "idle"}
>
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobEstimatesVsActuals.tsx b/apps/erp/app/modules/production/ui/Jobs/JobEstimatesVsActuals.tsx
index c805638e03..8d063de8fa 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobEstimatesVsActuals.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobEstimatesVsActuals.tsx
@@ -8,6 +8,9 @@ import {
cn,
HStack,
IconButton,
+ Popover,
+ PopoverContent,
+ PopoverTrigger,
Switch,
Table,
Tabs,
@@ -44,8 +47,8 @@ import {
toZoned,
} from "@internationalized/date";
import { useEffect, useState } from "react";
-import { LuExternalLink } from "react-icons/lu";
-import { EmployeeAvatarGroup } from "~/components";
+import { LuExternalLink, LuNotebook } from "react-icons/lu";
+import { EmployeeAvatar, EmployeeAvatarGroup } from "~/components";
import { useCurrencyFormatter, usePercentFormatter } from "~/hooks";
import { makeDurations } from "~/utils/duration";
import { path } from "~/utils/path";
@@ -203,6 +206,40 @@ const JobEstimatesVsActuals = ({
return Array.from(employeeIds);
};
+ const getNotes = (
+ operation: Operation,
+ type?: "Setup" | "Labor" | "Machine"
+ ) => {
+ const eventNotes = productionEvents
+ .filter(
+ (pe) =>
+ pe.jobOperationId === operation.id &&
+ (type === undefined || pe.type === type)
+ )
+ .map((pe) => ({
+ employeeId: pe.employeeId,
+ notes: pe.notes,
+ createdAt: pe.createdAt,
+ productionEventId: pe.id,
+ }));
+
+ const quantityNotes = productionQuantities
+ .filter((pq) => pq.jobOperationId === operation.id && type === undefined)
+ .map((pq) => ({
+ employeeId: pq.createdBy,
+ notes: pq.notes,
+ createdAt: pq.createdAt,
+ productionEventId:
+ pq.setupProductionEventId ??
+ pq.laborProductionEventId ??
+ pq.machineProductionEventId,
+ }));
+
+ const notes = [...eventNotes, ...quantityNotes].filter((n) => n.notes);
+ if (notes.length === 0) return null;
+ return notes;
+ };
+
return (
<Tabs defaultValue="processes" className="w-full">
<Card>
@@ -248,6 +285,8 @@ const JobEstimatesVsActuals = ({
{operations.map((operation) => {
const estimated = getEstimatedTime(operation);
const actual = getActualTime(operation);
+ const notes = getNotes(operation);
+
return (
<>
<Tr key={operation.id} className="border-b border-border">
@@ -298,17 +337,51 @@ const JobEstimatesVsActuals = ({
}`}</Td>
<Td>{getScrapQuantity(operation)}</Td>
<Td>
- <Link
- to={`${path.to.jobProductionEvents(
- jobId
- )}?filter=jobOperationId:eq:${operation.id}`}
- >
- <IconButton
- variant="ghost"
- icon={<LuExternalLink />}
- aria-label="View Production Events"
- />
- </Link>
+ <HStack spacing={0} className="justify-end">
+ {notes && (
+ <Popover>
+ <PopoverTrigger asChild>
+ <IconButton
+ variant="ghost"
+ icon={<LuNotebook />}
+ aria-label="Notes"
+ />
+ </PopoverTrigger>
+ <PopoverContent className="w-96 max-h-[300px] overflow-y-auto scrollbar-thin scrollbar-thumb-rounded-full scrollbar-thumb-gray-300">
+ <div className="flex flex-col gap-3 p-2">
+ {notes.map((note, index) => (
+ <div
+ key={index}
+ className="flex gap-2 items-center"
+ >
+ <div className="flex-shrink-0">
+ <EmployeeAvatar
+ employeeId={note.employeeId}
+ size="sm"
+ withName={false}
+ />
+ </div>
+ <div className="flex-1 rounded-lg bg-muted p-2 text-sm">
+ {note.notes}
+ </div>
+ </div>
+ ))}
+ </div>
+ </PopoverContent>
+ </Popover>
+ )}
+ <Link
+ to={`${path.to.jobProductionEvents(
+ jobId
+ )}?filter=jobOperationId:eq:${operation.id}`}
+ >
+ <IconButton
+ variant="ghost"
+ icon={<LuExternalLink />}
+ aria-label="View Production Events"
+ />
+ </Link>
+ </HStack>
</Td>
</Tr>
{detailsDisclosure.isOpen && (
@@ -322,6 +395,7 @@ const JobEstimatesVsActuals = ({
return null;
}
const employeeIds = getEmployeeIds(operation, type);
+ const notes = getNotes(operation, type);
return (
<Tr key={type} className="border-b border-border">
<Td className="border-r border-border pl-10">
@@ -366,19 +440,53 @@ const JobEstimatesVsActuals = ({
<Td />
<Td />
<Td>
- <Link
- to={`${path.to.jobProductionEvents(
- jobId
- )}?filter=jobOperationId:eq:${
- operation.id
- }&filter=type:eq:${type}`}
- >
- <IconButton
- variant="ghost"
- icon={<LuExternalLink />}
- aria-label="View Production Events"
- />
- </Link>
+ <HStack spacing={0} className="justify-end">
+ {notes && (
+ <Popover>
+ <PopoverTrigger asChild>
+ <IconButton
+ variant="ghost"
+ icon={<LuNotebook />}
+ aria-label="Notes"
+ />
+ </PopoverTrigger>
+ <PopoverContent className="w-96 max-h-[300px] overflow-y-auto scrollbar-thin scrollbar-thumb-rounded-full scrollbar-thumb-gray-300">
+ <div className="flex flex-col gap-3 p-2">
+ {notes.map((note, index) => (
+ <div
+ key={index}
+ className="flex gap-2 items-center"
+ >
+ <div className="flex-shrink-0">
+ <EmployeeAvatar
+ employeeId={note.employeeId}
+ size="sm"
+ withName={false}
+ />
+ </div>
+ <div className="flex-1 rounded-lg bg-muted p-2 text-sm">
+ {note.notes}
+ </div>
+ </div>
+ ))}
+ </div>
+ </PopoverContent>
+ </Popover>
+ )}
+ <Link
+ to={`${path.to.jobProductionEvents(
+ jobId
+ )}?filter=jobOperationId:eq:${
+ operation.id
+ }&filter=type:eq:${type}`}
+ >
+ <IconButton
+ variant="ghost"
+ icon={<LuExternalLink />}
+ aria-label="View Production Events"
+ />
+ </Link>
+ </HStack>
</Td>
</Tr>
);
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobHeader.tsx b/apps/erp/app/modules/production/ui/Jobs/JobHeader.tsx
index 9ba8e9362c..32eb5bbb07 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobHeader.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobHeader.tsx
@@ -34,22 +34,22 @@ import { Link, useFetcher, useNavigate, useParams } from "@remix-run/react";
import { useState } from "react";
import { flushSync } from "react-dom";
import {
- LuAlertTriangle,
- LuCheckCircle,
LuChevronDown,
+ LuCircleCheck,
+ LuCirclePause,
+ LuCirclePlay,
+ LuCircleStop,
LuClock,
LuHardHat,
LuList,
LuPackage,
LuPanelLeft,
LuPanelRight,
- LuPauseCircle,
- LuPlayCircle,
LuRefreshCw,
LuSettings,
- LuSigmaSquare,
- LuStopCircle,
+ LuSquareSigma,
LuTable,
+ LuTriangleAlert,
} from "react-icons/lu";
import { RiProgress8Line } from "react-icons/ri";
import { Location, Shelf } from "~/components/Form";
@@ -179,7 +179,7 @@ const JobHeader = () => {
statusFetcher.state !== "idle" ||
!permissions.can("update", "production")
}
- leftIcon={<LuPauseCircle />}
+ leftIcon={<LuCirclePause />}
type="submit"
variant="secondary"
>
@@ -198,7 +198,7 @@ const JobHeader = () => {
statusFetcher.state !== "idle" ||
!permissions.can("update", "production")
}
- leftIcon={<LuPlayCircle />}
+ leftIcon={<LuCirclePlay />}
type="submit"
>
Resume
@@ -219,7 +219,7 @@ const JobHeader = () => {
(routeData?.job?.quantity === 0 &&
routeData?.job?.scrapQuantity === 0)
}
- leftIcon={<LuPlayCircle />}
+ leftIcon={<LuCirclePlay />}
variant={status === "Draft" ? "primary" : "secondary"}
>
Release
@@ -236,7 +236,7 @@ const JobHeader = () => {
statusFetcher.state !== "idle" ||
!permissions.can("update", "production")
}
- leftIcon={<LuCheckCircle />}
+ leftIcon={<LuCircleCheck />}
variant={status === "Completed" ? "primary" : "secondary"}
>
Complete
@@ -252,7 +252,7 @@ const JobHeader = () => {
statusFetcher.state !== "idle" ||
!permissions.can("update", "production")
}
- leftIcon={<LuStopCircle />}
+ leftIcon={<LuCircleStop />}
variant="secondary"
>
Cancel
@@ -342,7 +342,7 @@ function getExplorerMenuIcon(type: string) {
case "events":
return <LuClock />;
case "quantities":
- return <LuSigmaSquare />;
+ return <LuSquareSigma />;
default:
return <LuHardHat />;
}
@@ -453,7 +453,7 @@ function JobStartModal({
</p>
) : (
<Alert variant="warning">
- <LuAlertTriangle />
+ <LuTriangleAlert />
<AlertTitle>Missing Operations</AlertTitle>
<AlertDescription>
There are Bills of Processes associated with this job that
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobMakeMethodTools.tsx b/apps/erp/app/modules/production/ui/Jobs/JobMakeMethodTools.tsx
index 717a8187b4..15b49f3fe7 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobMakeMethodTools.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobMakeMethodTools.tsx
@@ -28,10 +28,10 @@ import { Await, useFetcher, useLocation, useParams } from "@remix-run/react";
import type { PostgrestResponse } from "@supabase/supabase-js";
import { Suspense, useEffect, useMemo, useState } from "react";
import {
- LuAlertTriangle,
LuDownload,
LuSettings,
LuSquareStack,
+ LuTriangleAlert,
LuUpload,
} from "react-icons/lu";
import { RiProgress4Line } from "react-icons/ri";
@@ -252,7 +252,7 @@ const JobBreadcrumbs = () => {
</div>
{hasMethods && (
<Alert variant="destructive">
- <LuAlertTriangle className="h-4 w-4" />
+ <LuTriangleAlert className="h-4 w-4" />
<AlertTitle>
This will overwrite the existing job method
</AlertTitle>
@@ -344,7 +344,7 @@ const JobBreadcrumbs = () => {
</div>
{hasMethods && (
<Alert variant="destructive">
- <LuAlertTriangle className="h-4 w-4" />
+ <LuTriangleAlert className="h-4 w-4" />
<AlertTitle>
This will overwrite the existing manufacturing method
</AlertTitle>
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobMaterialsTable.tsx b/apps/erp/app/modules/production/ui/Jobs/JobMaterialsTable.tsx
index 39e41dce26..fcfe921d1d 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobMaterialsTable.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobMaterialsTable.tsx
@@ -19,7 +19,7 @@ import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
import {
LuBookMarked,
- LuCheckCircle,
+ LuCircleCheck,
LuFlag,
LuHash,
LuRefreshCcwDot,
@@ -217,7 +217,7 @@ const JobMaterialsTable = memo(({ data, count }: JobMaterialsTableProps) => {
return (
<Badge variant="green">
- <LuCheckCircle className="mr-2" />
+ <LuCircleCheck className="mr-2" />
<span className="group-hover:hidden">In Stock</span>
<span className="hidden group-hover:block">{quantityOnHand}</span>
</Badge>
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobOperationsTable.tsx b/apps/erp/app/modules/production/ui/Jobs/JobOperationsTable.tsx
index 2140e11780..d3a3b29a3a 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobOperationsTable.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobOperationsTable.tsx
@@ -20,12 +20,12 @@ import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
import { AiOutlinePartition } from "react-icons/ai";
import {
- LuAlertTriangle,
- LuCheckCircle2,
+ LuCircleCheckBig,
LuClipboardList,
LuHash,
LuRefreshCcwDot,
LuRotateCcw,
+ LuTriangleAlert,
LuWrench,
} from "react-icons/lu";
import { Hyperlink, Table } from "~/components";
@@ -166,7 +166,7 @@ const JobOperationsTable = memo(({ data, count }: JobOperationsTableProps) => {
header: "Qty. Complete",
cell: (item) => item.getValue(),
meta: {
- icon: <LuCheckCircle2 />,
+ icon: <LuCircleCheckBig />,
},
},
{
@@ -174,7 +174,7 @@ const JobOperationsTable = memo(({ data, count }: JobOperationsTableProps) => {
header: "Qty. Scrapped",
cell: (item) => item.getValue(),
meta: {
- icon: <LuAlertTriangle />,
+ icon: <LuTriangleAlert />,
},
},
{
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsx b/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsx
index 810f77a419..560cf3b6cd 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsx
@@ -16,11 +16,11 @@ import {
LuClock,
LuHash,
LuPencil,
+ LuSquareUser,
LuTag,
LuTrash,
LuUser,
LuUsers,
- LuUserSquare,
} from "react-icons/lu";
import {
CustomerAvatar,
@@ -146,7 +146,7 @@ const JobsTable = memo(({ data, count, tags }: JobsTableProps) => {
label: customer.name,
})),
},
- icon: <LuUserSquare />,
+ icon: <LuSquareUser />,
},
},
{
diff --git a/apps/erp/app/modules/production/ui/Jobs/ProductionEventsTable.tsx b/apps/erp/app/modules/production/ui/Jobs/ProductionEventsTable.tsx
index f14a64e434..9d88230682 100644
--- a/apps/erp/app/modules/production/ui/Jobs/ProductionEventsTable.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/ProductionEventsTable.tsx
@@ -153,6 +153,18 @@ const ProductionEventsTable = memo(
cell: ({ row }) =>
row.original.endTime ? formatDateTime(row.original.endTime) : null,
},
+ {
+ accessorKey: "notes",
+ header: "Notes",
+ cell: ({ row }) => (
+ <div
+ className="max-w-[200px] truncate"
+ title={row.original.notes ?? ""}
+ >
+ {row.original.notes}
+ </div>
+ ),
+ },
];
}, [operations, people, workCenters]);
diff --git a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx
index f188388f78..b9a1809d58 100644
--- a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx
+++ b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx
@@ -21,17 +21,17 @@ import { CSS } from "@dnd-kit/utilities";
import { cva } from "class-variance-authority";
import {
LuCalendarDays,
- LuCheckCircle,
+ LuCircleCheck,
+ LuCircleX,
LuClipboardCheck,
LuExternalLink,
LuFlashlight,
LuFlashlightOff,
LuGripVertical,
+ LuSquareUser,
LuTimer,
LuTrash,
LuUsers,
- LuUserSquare,
- LuXCircle,
} from "react-icons/lu";
import { Link } from "@remix-run/react";
@@ -336,7 +336,7 @@ export function ItemCard({
{showCustomer && item.customerId && (
<HStack className="justify-start space-x-2">
- <LuUserSquare className="text-muted-foreground" />
+ <LuSquareUser className="text-muted-foreground" />
<CustomerAvatar customerId={item.customerId} />
</HStack>
)}
@@ -368,9 +368,9 @@ function getStatusIcon(status: Item["status"]) {
return <TodoStatusIcon className="text-foreground" />;
case "Waiting":
case "Canceled":
- return <LuXCircle className="text-muted-foreground" />;
+ return <LuCircleX className="text-muted-foreground" />;
case "Done":
- return <LuCheckCircle className="text-blue-600" />;
+ return <LuCircleCheck className="text-blue-600" />;
case "In Progress":
return <AlmostDoneIcon />;
case "Paused":
diff --git a/apps/erp/app/modules/production/ui/useProductionSubmodules.tsx b/apps/erp/app/modules/production/ui/useProductionSubmodules.tsx
index ba24026493..265b358538 100644
--- a/apps/erp/app/modules/production/ui/useProductionSubmodules.tsx
+++ b/apps/erp/app/modules/production/ui/useProductionSubmodules.tsx
@@ -1,4 +1,4 @@
-import { LuHardHat, LuKanbanSquare, LuTrash } from "react-icons/lu";
+import { LuHardHat, LuSquareKanban, LuTrash } from "react-icons/lu";
import { usePermissions } from "~/hooks";
import type { AuthenticatedRouteGroup } from "~/types";
import { path } from "~/utils/path";
@@ -15,7 +15,7 @@ const productionRoutes: AuthenticatedRouteGroup[] = [
{
name: "Schedule",
to: path.to.schedule,
- icon: <LuKanbanSquare />,
+ icon: <LuSquareKanban />,
},
],
},
diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsx
index 9e28e14f5d..be0afd10d8 100644
--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsx
+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsx
@@ -20,7 +20,7 @@ import {
import { prettifyKeyboardShortcut } from "@carbon/utils";
import { Link, useParams } from "@remix-run/react";
import { useRef, useState } from "react";
-import { LuMoreVertical, LuPlusCircle, LuTrash } from "react-icons/lu";
+import { LuCirclePlus, LuEllipsisVertical, LuTrash } from "react-icons/lu";
import { Empty, ItemThumbnail, MethodItemTypeIcon } from "~/components";
import {
useOptimisticLocation,
@@ -103,7 +103,7 @@ export default function PurchaseOrderExplorer() {
{permissions.can("update", "sales") && (
<Button
isDisabled={isDisabled}
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
variant="secondary"
onClick={newPurchaseOrderLineDisclosure.onOpen}
>
@@ -120,7 +120,7 @@ export default function PurchaseOrderExplorer() {
ref={newButtonRef}
className="w-full"
isDisabled={isDisabled || !permissions.can("update", "sales")}
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
variant="secondary"
onClick={newPurchaseOrderLineDisclosure.onOpen}
>
@@ -210,7 +210,7 @@ function PurchaseOrderLineItem({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="ghost"
onClick={(e) => e.stopPropagation()}
/>
diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader.tsx
index 71469bc6e3..a6d6d9915c 100644
--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader.tsx
+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader.tsx
@@ -17,12 +17,12 @@ import {
LuArrowDownToLine,
LuCheckCheck,
LuChevronDown,
+ LuCirclePlus,
LuCreditCard,
LuEye,
LuFile,
LuPanelLeft,
LuPanelRight,
- LuPlusCircle,
LuRefreshCw,
} from "react-icons/lu";
@@ -152,7 +152,7 @@ const PurchaseOrderHeader = () => {
receive(routeData?.purchaseOrder);
}}
>
- <DropdownMenuIcon icon={<LuPlusCircle />} />
+ <DropdownMenuIcon icon={<LuCirclePlus />} />
New Receipt
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -220,7 +220,7 @@ const PurchaseOrderHeader = () => {
invoice(routeData?.purchaseOrder);
}}
>
- <DropdownMenuIcon icon={<LuPlusCircle />} />
+ <DropdownMenuIcon icon={<LuCirclePlus />} />
New Invoice
</DropdownMenuItem>
<DropdownMenuSeparator />
diff --git a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierProcesses.tsx b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierProcesses.tsx
index f8958676c3..71dcf0b42f 100644
--- a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierProcesses.tsx
+++ b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierProcesses.tsx
@@ -16,7 +16,7 @@ import {
import { Outlet, useNavigate, useParams } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { useCallback, useMemo } from "react";
-import { LuMoreVertical, LuPencil, LuTrash } from "react-icons/lu";
+import { LuEllipsisVertical, LuPencil, LuTrash } from "react-icons/lu";
import { New } from "~/components";
import { EditableNumber } from "~/components/Editable";
import Grid from "~/components/Grid";
@@ -74,7 +74,7 @@ const SupplierProccesses = ({ processes }: SupplierProccessesProps) => {
<DropdownMenuTrigger asChild>
<IconButton
aria-label="Edit supplier process"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
size="md"
className="absolute right-[-1px] top-[-6px]"
variant="ghost"
diff --git a/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionDocuments.tsx b/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionDocuments.tsx
index 377f34f742..aac40dc640 100644
--- a/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionDocuments.tsx
+++ b/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionDocuments.tsx
@@ -31,7 +31,7 @@ import {
import type { FileObject } from "@supabase/storage-js";
import type { ChangeEvent } from "react";
import { useCallback } from "react";
-import { LuMoreVertical, LuUpload } from "react-icons/lu";
+import { LuEllipsisVertical, LuUpload } from "react-icons/lu";
import { DocumentPreview, FileDropzone } from "~/components";
import DocumentIcon from "~/components/DocumentIcon";
import { usePermissions, useUser } from "~/hooks";
@@ -130,7 +130,7 @@ const SupplierInteractionDocuments = ({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="secondary"
/>
</DropdownMenuTrigger>
diff --git a/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionLineDocuments.tsx b/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionLineDocuments.tsx
index 400808249d..c45fb75629 100644
--- a/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionLineDocuments.tsx
+++ b/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionLineDocuments.tsx
@@ -22,7 +22,7 @@ import {
} from "@carbon/react";
import { convertKbToString } from "@carbon/utils";
import type { FileObject } from "@supabase/storage-js";
-import { LuMoreVertical, LuUpload } from "react-icons/lu";
+import { LuEllipsisVertical, LuUpload } from "react-icons/lu";
import { DocumentPreview, FileDropzone } from "~/components";
import DocumentIcon from "~/components/DocumentIcon";
import type { ItemFile } from "~/modules/items";
@@ -291,7 +291,7 @@ const SupplierInteractionLineDocuments = ({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="secondary"
/>
</DropdownMenuTrigger>
diff --git a/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionState.tsx b/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionState.tsx
deleted file mode 100644
index 4b0a34aebf..0000000000
--- a/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionState.tsx
+++ /dev/null
@@ -1,125 +0,0 @@
-import { Button, cn, Menubar } from "@carbon/react";
-import { useOptimisticLocation } from "@carbon/remix";
-import { Link } from "@remix-run/react";
-import { LuCircle, LuLayoutList, LuPackageSearch } from "react-icons/lu";
-import { path } from "~/utils/path";
-import type { SupplierInteraction } from "../../types";
-
-function getSupplierInteractionStarted(
- interaction: SupplierInteraction,
- state: string
-) {
- switch (state) {
- case "Purchase Order":
- return interaction.purchaseOrderId !== null;
- case "Supplier Quote":
- return interaction.supplierQuoteId !== null;
- }
-}
-
-function getSupplierInteractionCompleted(
- interaction: SupplierInteraction,
- state: string
-) {
- switch (state) {
- case "Purchase Order":
- return interaction.purchaseOrderCompletedDate !== null;
- case "Supplier Quote":
- return interaction.supplierQuoteCompletedDate !== null;
- }
-}
-
-function getSupplierInteractionIcon(state: string) {
- switch (state) {
- case "Purchase Order":
- return LuLayoutList;
- case "Supplier Quote":
- return LuPackageSearch;
- default:
- return LuCircle;
- }
-}
-
-function getPath(interaction: SupplierInteraction, state: string) {
- switch (state) {
- case "Purchase Order":
- return path.to.purchaseOrderDetails(interaction.purchaseOrderId!);
- case "Supplier Quote":
- return path.to.supplierQuoteDetails(interaction.supplierQuoteId!);
- }
-}
-
-function getIsCurrent(
- interaction: SupplierInteraction,
- pathname: string,
- state: string
-) {
- switch (state) {
- case "Purchase Order":
- return pathname.includes(
- path.to.purchaseOrderDetails(interaction.purchaseOrderId!)
- );
- case "Supplier Quote":
- return pathname.includes(
- path.to.supplierQuoteDetails(interaction.supplierQuoteId!)
- );
-
- default:
- return false;
- }
-}
-
-const states = ["Purchase Order", "Supplier Quote"];
-
-const SupplierInteractionState = ({
- interaction,
-}: {
- interaction: SupplierInteraction;
-}) => {
- const { pathname } = useOptimisticLocation();
- return (
- <Menubar>
- {states.map((state, index) => {
- const isStarted = getSupplierInteractionStarted(interaction, state);
- const isCompleted = getSupplierInteractionCompleted(interaction, state);
- const isCurrent = getIsCurrent(interaction, pathname, state);
- const Icon = getSupplierInteractionIcon(state);
- const to = getPath(interaction, state);
-
- return isStarted && to ? (
- <Button
- leftIcon={
- <Icon
- className={cn(
- isCurrent && "text-emerald-500",
- !isCurrent && "opacity-80 hover:opacity-100"
- )}
- />
- }
- variant="ghost"
- asChild
- >
- <Link to={to}>{state}</Link>
- </Button>
- ) : (
- <Button
- variant="ghost"
- isDisabled
- leftIcon={
- <Icon
- className={cn(
- isCompleted && "text-emerald-500",
- !isCurrent && "opacity-80 hover:opacity-100"
- )}
- />
- }
- >
- {state}
- </Button>
- );
- })}
- </Menubar>
- );
-};
-
-export default SupplierInteractionState;
diff --git a/apps/erp/app/modules/purchasing/ui/SupplierInteraction/index.ts b/apps/erp/app/modules/purchasing/ui/SupplierInteraction/index.ts
index 82393a21a6..55a4266e13 100644
--- a/apps/erp/app/modules/purchasing/ui/SupplierInteraction/index.ts
+++ b/apps/erp/app/modules/purchasing/ui/SupplierInteraction/index.ts
@@ -2,12 +2,10 @@ import SupplierInteractionDocuments from "./SupplierInteractionDocuments";
import SupplierInteractionLineDocuments from "./SupplierInteractionLineDocuments";
import SupplierInteractionLineNotes from "./SupplierInteractionLineNotes";
import SupplierInteractionNotes from "./SupplierInteractionNotes";
-import SupplierInteractionState from "./SupplierInteractionState";
export {
SupplierInteractionDocuments,
SupplierInteractionLineDocuments,
SupplierInteractionLineNotes,
SupplierInteractionNotes,
- SupplierInteractionState,
};
diff --git a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteExplorer.tsx b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteExplorer.tsx
index 5f0fdfb9bd..c65a9d7819 100644
--- a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteExplorer.tsx
+++ b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteExplorer.tsx
@@ -20,7 +20,7 @@ import {
import { prettifyKeyboardShortcut } from "@carbon/utils";
import { Link, useParams } from "@remix-run/react";
import { useRef, useState } from "react";
-import { LuMoreVertical, LuPlusCircle, LuTrash } from "react-icons/lu";
+import { LuCirclePlus, LuEllipsisVertical, LuTrash } from "react-icons/lu";
import { Empty, ItemThumbnail, MethodItemTypeIcon } from "~/components";
import { useOptimisticLocation, usePermissions, useRouteData } from "~/hooks";
import { getLinkToItemDetails } from "~/modules/items/ui/Item/ItemForm";
@@ -97,7 +97,7 @@ export default function SupplierQuoteExplorer() {
{permissions.can("update", "sales") && (
<Button
isDisabled={isDisabled}
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
variant="secondary"
onClick={newSupplierQuoteLineDisclosure.onOpen}
>
@@ -114,7 +114,7 @@ export default function SupplierQuoteExplorer() {
ref={newButtonRef}
className="w-full"
isDisabled={isDisabled || !permissions.can("update", "sales")}
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
variant="secondary"
onClick={newSupplierQuoteLineDisclosure.onOpen}
>
@@ -210,7 +210,7 @@ function SupplierQuoteLineItem({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="ghost"
onClick={(e) => e.stopPropagation()}
/>
diff --git a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx
index 5803cbeedc..73a9eb2680 100644
--- a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx
+++ b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx
@@ -8,10 +8,10 @@ import {
LuCalendar,
LuPencil,
LuQrCode,
+ LuSquareUser,
LuStar,
LuTrash,
LuUser,
- LuUserSquare,
} from "react-icons/lu";
import {
EmployeeAvatar,
@@ -94,7 +94,7 @@ const SupplierQuotesTable = memo(
label: supplier.name,
})),
},
- icon: <LuUserSquare />,
+ icon: <LuSquareUser />,
},
},
diff --git a/apps/erp/app/modules/resources/ui/Locations/LocationsTable.tsx b/apps/erp/app/modules/resources/ui/Locations/LocationsTable.tsx
index 511c7df7c6..964e6587e8 100644
--- a/apps/erp/app/modules/resources/ui/Locations/LocationsTable.tsx
+++ b/apps/erp/app/modules/resources/ui/Locations/LocationsTable.tsx
@@ -6,7 +6,7 @@ import {
LuBuilding2,
LuClock,
LuGlobe,
- LuHome,
+ LuHouse,
LuMap,
LuMapPin,
LuPencil,
@@ -58,7 +58,7 @@ const LocationsTable = memo(({ data, count }: LocationsTableProps) => {
header: "Address",
cell: (item) => item.getValue(),
meta: {
- icon: <LuHome />,
+ icon: <LuHouse />,
},
},
{
diff --git a/apps/erp/app/modules/resources/ui/Processes/ProcessForm.tsx b/apps/erp/app/modules/resources/ui/Processes/ProcessForm.tsx
index 272be25e9c..d7246dd5de 100644
--- a/apps/erp/app/modules/resources/ui/Processes/ProcessForm.tsx
+++ b/apps/erp/app/modules/resources/ui/Processes/ProcessForm.tsx
@@ -23,9 +23,9 @@ import { useFetcher, useNavigate } from "@remix-run/react";
import type { PostgrestResponse } from "@supabase/supabase-js";
import { useEffect, useState } from "react";
import {
- LuMoreVertical,
+ LuCirclePlus,
+ LuEllipsisVertical,
LuPencil,
- LuPlusCircle,
LuTrash,
} from "react-icons/lu";
import type { z } from "zod";
@@ -181,7 +181,7 @@ function SupplierProcesses({ processId }: { processId?: string }) {
<DropdownMenuTrigger asChild>
<IconButton
aria-label="Edit supplier process"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
size="md"
variant="ghost"
onClick={(e) => e.stopPropagation()}
@@ -218,7 +218,7 @@ function SupplierProcesses({ processId }: { processId?: string }) {
)}
<Button
isDisabled={!isEditing}
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
variant="secondary"
onClick={newSupplierProcessModal.onOpen}
>
diff --git a/apps/erp/app/modules/resources/ui/Processes/ProcessesTable.tsx b/apps/erp/app/modules/resources/ui/Processes/ProcessesTable.tsx
index 9d08c0c76e..8c6141d1be 100644
--- a/apps/erp/app/modules/resources/ui/Processes/ProcessesTable.tsx
+++ b/apps/erp/app/modules/resources/ui/Processes/ProcessesTable.tsx
@@ -12,13 +12,13 @@ import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo } from "react";
import {
- LuAlertTriangle,
LuBuilding2,
LuCog,
LuFactory,
LuPencil,
LuRuler,
LuTrash,
+ LuTriangleAlert,
LuUser,
LuUsers,
} from "react-icons/lu";
@@ -66,7 +66,7 @@ const ProcessesTable = memo(({ data, count }: ProcessesTableProps) => {
/>
) : (
<HStack onClick={() => navigate(row.original.id!)} spacing={2}>
- <LuAlertTriangle />
+ <LuTriangleAlert />
<span>{row.original.name}</span>
</HStack>
),
diff --git a/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx b/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx
index b3f230a00b..4d5f376f01 100644
--- a/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx
+++ b/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx
@@ -3,14 +3,14 @@ import { useNavigate } from "@remix-run/react";
import type { ColumnDef } from "@tanstack/react-table";
import { memo, useCallback, useMemo, useState } from "react";
import {
- LuAlertTriangle,
LuAlignLeft,
LuBuilding2,
- LuCheckCircle,
+ LuCircleCheck,
LuCog,
LuDollarSign,
LuPencil,
LuTrash,
+ LuTriangleAlert,
LuUser,
LuWrench,
} from "react-icons/lu";
@@ -77,13 +77,13 @@ const WorkCentersTable = memo(
/>
) : (
<HStack onClick={() => navigate(row.original.id!)} spacing={2}>
- <LuAlertTriangle />
+ <LuTriangleAlert />
<span>{row.original.name}</span>
</HStack>
)}
{row.original.requiredAbilityId && (
- <LuCheckCircle
+ <LuCircleCheck
className="text-emerald-500"
title="Requires ability"
/>
diff --git a/apps/erp/app/modules/sales/ui/Opportunity/OpportunityDocuments.tsx b/apps/erp/app/modules/sales/ui/Opportunity/OpportunityDocuments.tsx
index 339a4c0d4d..d551b7c8a5 100644
--- a/apps/erp/app/modules/sales/ui/Opportunity/OpportunityDocuments.tsx
+++ b/apps/erp/app/modules/sales/ui/Opportunity/OpportunityDocuments.tsx
@@ -35,7 +35,7 @@ import type { ChangeEvent } from "react";
import { useCallback } from "react";
import {
LuGripVertical,
- LuMoreVertical,
+ LuEllipsisVertical,
LuRadioTower,
LuShoppingCart,
LuUpload,
@@ -138,7 +138,7 @@ const OpportunityDocuments = ({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="secondary"
/>
</DropdownMenuTrigger>
diff --git a/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx b/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx
index ec9c85dedb..309987bcf8 100644
--- a/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx
+++ b/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx
@@ -25,7 +25,7 @@ import { convertKbToString } from "@carbon/utils";
import { Link, useFetchers, useRevalidator, useSubmit } from "@remix-run/react";
import type { FileObject } from "@supabase/storage-js";
import type { ChangeEvent } from "react";
-import { LuMoreVertical, LuUpload } from "react-icons/lu";
+import { LuEllipsisVertical, LuUpload } from "react-icons/lu";
import { DocumentPreview, FileDropzone, Hyperlink } from "~/components";
import DocumentIcon from "~/components/DocumentIcon";
import { usePermissions, useUser } from "~/hooks";
@@ -361,7 +361,7 @@ const OpportunityLineDocuments = ({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="secondary"
/>
</DropdownMenuTrigger>
@@ -424,7 +424,7 @@ const OpportunityLineDocuments = ({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="secondary"
/>
</DropdownMenuTrigger>
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx
index 513b7ca8ec..341dfaae9f 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx
@@ -34,13 +34,13 @@ import { nanoid } from "nanoid";
import type { Dispatch, SetStateAction } from "react";
import { useEffect, useRef, useState } from "react";
import {
- LuAlertTriangle,
LuChevronDown,
+ LuCirclePlus,
LuDollarSign,
+ LuEllipsisVertical,
LuHammer,
- LuMoreVertical,
- LuPlusCircle,
LuSettings2,
+ LuTriangleAlert,
LuX,
} from "react-icons/lu";
import type { z } from "zod";
@@ -1456,7 +1456,7 @@ function ToolsListItem({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="Open menu"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="ghost"
/>
</DropdownMenuTrigger>
@@ -1507,7 +1507,7 @@ function ToolsForm({
if (isDisabled && isTemporaryId(operationId)) {
return (
<Alert className="max-w-[420px] mx-auto my-8">
- <LuAlertTriangle />
+ <LuTriangleAlert />
<AlertTitle>Cannot add tools to unsaved operation</AlertTitle>
<AlertDescription>
Please save the operation before adding tools.
@@ -1541,7 +1541,7 @@ function ToolsForm({
</div>
<Submit
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
isDisabled={isDisabled || fetcher.state !== "idle"}
isLoading={fetcher.state !== "idle"}
>
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteExplorer.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteExplorer.tsx
index c97820bd11..92ee4b6562 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteExplorer.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteExplorer.tsx
@@ -21,14 +21,14 @@ import { prettifyKeyboardShortcut } from "@carbon/utils";
import { Link, useNavigate, useParams } from "@remix-run/react";
import { useMemo, useRef, useState } from "react";
import {
- LuCheckCircle,
LuChevronDown,
LuCircle,
+ LuCircleCheck,
+ LuCirclePlus,
+ LuCircleX,
LuClock3,
- LuMoreVertical,
- LuPlusCircle,
+ LuEllipsisVertical,
LuTrash,
- LuXCircle,
} from "react-icons/lu";
import { Empty, ItemThumbnail, MethodItemTypeIcon } from "~/components";
import type { Tree } from "~/components/TreeView";
@@ -135,7 +135,7 @@ export default function QuoteExplorer({ methods }: QuoteExplorerProps) {
{permissions.can("update", "sales") && (
<Button
isDisabled={isDisabled}
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
variant="secondary"
onClick={newQuoteLineDisclosure.onOpen}
>
@@ -152,7 +152,7 @@ export default function QuoteExplorer({ methods }: QuoteExplorerProps) {
ref={newButtonRef}
className="w-full"
isDisabled={isDisabled || !permissions.can("update", "sales")}
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
variant="secondary"
onClick={newQuoteLineDisclosure.onOpen}
>
@@ -277,7 +277,7 @@ function QuoteLineItem({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
size="sm"
variant="ghost"
onClick={(e) => e.stopPropagation()}
@@ -333,9 +333,9 @@ function getStatusIcon(status: (typeof quoteLineStatusType)[number]) {
case "Not Started":
return <LuCircle size={12} className="text-blue-600" />;
case "No Quote":
- return <LuXCircle size={12} className="text-red-600" />;
+ return <LuCircleX size={12} className="text-red-600" />;
case "Complete":
- return <LuCheckCircle size={12} className="text-emerald-600" />;
+ return <LuCircleCheck size={12} className="text-emerald-600" />;
case "In Progress":
return <LuClock3 size={12} className="text-yellow-600" />;
default:
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteFinalizeModal.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteFinalizeModal.tsx
index b84f6729cd..06c36b7632 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteFinalizeModal.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteFinalizeModal.tsx
@@ -18,7 +18,7 @@ import {
import type { FetcherWithComponents } from "@remix-run/react";
import { useParams } from "@remix-run/react";
import { useState } from "react";
-import { LuAlertTriangle } from "react-icons/lu";
+import { LuTriangleAlert } from "react-icons/lu";
import { CustomerContact, SelectControlled } from "~/components/Form";
import { useIntegrations } from "~/hooks/useIntegrations";
import { path } from "~/utils/path";
@@ -130,7 +130,7 @@ const QuotationFinalizeModal = ({
<ModalBody>
{warningLineReadableIds.length > 0 && (
<Alert variant="destructive">
- <LuAlertTriangle className="h-4 w-4" />
+ <LuTriangleAlert className="h-4 w-4" />
<AlertTitle>Lines need prices or lead times</AlertTitle>
<AlertDescription>
The following line items are missing prices or lead times:
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteHeader.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteHeader.tsx
index 7acc6de877..4245ad9ac7 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteHeader.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteHeader.tsx
@@ -28,6 +28,8 @@ import { Link, useFetcher, useParams } from "@remix-run/react";
import {
LuCheckCheck,
LuChevronDown,
+ LuCircleStop,
+ LuCircleX,
LuExternalLink,
LuEye,
LuFile,
@@ -35,9 +37,7 @@ import {
LuPanelRight,
LuRefreshCw,
LuShare,
- LuStopCircle,
LuTrophy,
- LuXCircle,
} from "react-icons/lu";
import { Copy } from "~/components";
import { usePanels } from "~/components/Layout";
@@ -197,7 +197,7 @@ const QuoteHeader = () => {
statusFetcher.state !== "idle" &&
statusFetcher.formData?.get("status") === "Lost"
}
- leftIcon={<LuXCircle />}
+ leftIcon={<LuCircleX />}
type="submit"
variant={
["Sent", "Lost"].includes(routeData?.quote?.status ?? "")
@@ -224,7 +224,7 @@ const QuoteHeader = () => {
statusFetcher.state !== "idle" &&
statusFetcher.formData?.get("status") === "Cancelled"
}
- leftIcon={<LuStopCircle />}
+ leftIcon={<LuCircleStop />}
type="submit"
variant="secondary"
>
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx
index b2c876a471..03237c26b2 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteLinePricing.tsx
@@ -32,8 +32,8 @@ import { useFetcher, useParams } from "@remix-run/react";
import { useCallback, useEffect, useMemo, useState } from "react";
import {
LuChevronDown,
+ LuCirclePlus,
LuInfo,
- LuPlusCircle,
LuRefreshCcw,
LuTrash,
} from "react-icons/lu";
@@ -806,7 +806,7 @@ const QuoteLinePricing = ({
<Button
className="-ml-3"
type="submit"
- rightIcon={<LuPlusCircle />}
+ rightIcon={<LuCirclePlus />}
variant="ghost"
isLoading={
fetcher.formAction ===
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteMakeMethodTools.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteMakeMethodTools.tsx
index 161f9b086a..2785540ea7 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteMakeMethodTools.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteMakeMethodTools.tsx
@@ -23,9 +23,9 @@ import {
import { Await, useFetcher, useLocation, useParams } from "@remix-run/react";
import { Suspense, useEffect, useState } from "react";
import {
- LuAlertTriangle,
LuDownload,
LuSettings,
+ LuTriangleAlert,
LuUpload,
} from "react-icons/lu";
import { ConfiguratorModal } from "~/components/Configurator/ConfiguratorForm";
@@ -234,7 +234,7 @@ const QuoteMakeMethodTools = () => {
</div>
{hasMethods && (
<Alert variant="destructive">
- <LuAlertTriangle className="h-4 w-4" />
+ <LuTriangleAlert className="h-4 w-4" />
<AlertTitle>
This will overwrite the existing quote method
</AlertTitle>
@@ -323,7 +323,7 @@ const QuoteMakeMethodTools = () => {
</div>
{hasMethods && (
<Alert variant="destructive">
- <LuAlertTriangle className="h-4 w-4" />
+ <LuTriangleAlert className="h-4 w-4" />
<AlertTitle>
This will overwrite the existing manufacturing method
</AlertTitle>
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteToOrderDrawer.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteToOrderDrawer.tsx
index f1cf310847..26b4993ef4 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteToOrderDrawer.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteToOrderDrawer.tsx
@@ -37,10 +37,10 @@ import {
LuChevronDown,
LuCreditCard,
LuImage,
+ LuSquareUser,
LuTrash,
LuTruck,
LuUpload,
- LuUserSquare,
} from "react-icons/lu";
import type { z } from "zod";
import { CustomerAvatar } from "~/components";
@@ -817,7 +817,7 @@ function CustomerDetailsForm() {
onClick={() => setIsExpanded(!isExpanded)}
>
<HStack>
- <LuUserSquare />
+ <LuSquareUser />
<Label>Customer Details</Label>
</HStack>
<LuChevronDown
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuotesTable.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuotesTable.tsx
index c7742bc070..b5d9a2ccfd 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuotesTable.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuotesTable.tsx
@@ -15,10 +15,10 @@ import {
LuMap,
LuPencil,
LuQrCode,
+ LuSquareUser,
LuStar,
LuTrash,
LuUser,
- LuUserSquare,
} from "react-icons/lu";
import {
CustomerAvatar,
@@ -97,7 +97,7 @@ const QuotesTable = memo(({ data, count }: QuotesTableProps) => {
label: customer.name,
})),
},
- icon: <LuUserSquare />,
+ icon: <LuSquareUser />,
},
},
diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderExplorer.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderExplorer.tsx
index 878ba82b6a..ef36b5cae2 100644
--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderExplorer.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderExplorer.tsx
@@ -20,7 +20,7 @@ import {
import { prettifyKeyboardShortcut } from "@carbon/utils";
import { Link, useParams } from "@remix-run/react";
import { useRef, useState } from "react";
-import { LuMoreVertical, LuPlusCircle, LuTrash } from "react-icons/lu";
+import { LuCirclePlus, LuEllipsisVertical, LuTrash } from "react-icons/lu";
import { Empty, ItemThumbnail, MethodItemTypeIcon } from "~/components";
import {
useOptimisticLocation,
@@ -109,7 +109,7 @@ export default function SalesOrderExplorer() {
{permissions.can("update", "sales") && (
<Button
isDisabled={isDisabled}
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
variant="secondary"
onClick={newSalesOrderLineDisclosure.onOpen}
>
@@ -126,7 +126,7 @@ export default function SalesOrderExplorer() {
ref={newButtonRef}
className="w-full"
isDisabled={isDisabled || !permissions.can("update", "sales")}
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
variant="secondary"
onClick={newSalesOrderLineDisclosure.onOpen}
>
@@ -216,7 +216,7 @@ function SalesOrderLineItem({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="ghost"
onClick={(e) => e.stopPropagation()}
/>
diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderHeader.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderHeader.tsx
index 6bae05241d..193a9555a0 100644
--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderHeader.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderHeader.tsx
@@ -14,16 +14,16 @@ import {
import { Link, useFetcher, useParams } from "@remix-run/react";
import {
LuCheckCheck,
- LuCheckCircle,
LuChevronDown,
+ LuCircleCheck,
+ LuCircleStop,
+ LuEllipsisVertical,
LuEye,
LuFile,
LuGitCompare,
- LuMoreVertical,
LuPanelLeft,
LuPanelRight,
LuRefreshCw,
- LuStopCircle,
} from "react-icons/lu";
import { usePanels } from "~/components/Layout";
@@ -73,7 +73,7 @@ const SalesOrderHeader = () => {
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More options"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="ghost"
/>
</DropdownMenuTrigger>
@@ -170,7 +170,7 @@ const SalesOrderHeader = () => {
? "primary"
: "secondary"
}
- leftIcon={<LuCheckCircle />}
+ leftIcon={<LuCircleCheck />}
isDisabled={
[
"Draft",
@@ -199,7 +199,7 @@ const SalesOrderHeader = () => {
<Button
type="submit"
variant="secondary"
- leftIcon={<LuStopCircle />}
+ leftIcon={<LuCircleStop />}
isDisabled={
["Cancelled", "Closed", "Completed", "Invoiced"].includes(
routeData?.salesOrder?.status ?? ""
diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderLineJobs.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderLineJobs.tsx
index f90a16c5bd..d27238ec64 100644
--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderLineJobs.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderLineJobs.tsx
@@ -24,7 +24,7 @@ import {
} from "@carbon/react";
import { useParams } from "@remix-run/react";
import { useState } from "react";
-import { LuHardHat, LuPlusCircle } from "react-icons/lu";
+import { LuCirclePlus, LuHardHat } from "react-icons/lu";
import { Assignee, Empty, Hyperlink } from "~/components";
import {
DatePicker,
@@ -145,7 +145,7 @@ export function SalesOrderLineJobs({
) : (
<Empty className="pb-12">
<Button
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
onClick={newJobDisclosure.onOpen}
>
Make to Order
diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrdersTable.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrdersTable.tsx
index c2c78f8dcf..235f24aa83 100644
--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrdersTable.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrdersTable.tsx
@@ -22,11 +22,11 @@ import {
LuExternalLink,
LuPencil,
LuQrCode,
+ LuSquareUser,
LuStar,
LuTrash,
LuTruck,
LuUser,
- LuUserSquare,
} from "react-icons/lu";
import {
CustomerAvatar,
@@ -109,7 +109,7 @@ const SalesOrdersTable = memo(({ data, count }: SalesOrdersTableProps) => {
label: customer.name,
})),
},
- icon: <LuUserSquare />,
+ icon: <LuSquareUser />,
},
},
{
diff --git a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQExplorer.tsx b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQExplorer.tsx
index 6af4cd1829..7ed599d427 100644
--- a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQExplorer.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQExplorer.tsx
@@ -21,7 +21,7 @@ import { prettifyKeyboardShortcut } from "@carbon/utils";
import { useDroppable } from "@dnd-kit/core";
import { Link, useFetchers, useParams } from "@remix-run/react";
import { useRef, useState } from "react";
-import { LuMoreVertical, LuPlusCircle, LuTrash } from "react-icons/lu";
+import { LuCirclePlus, LuEllipsisVertical, LuTrash } from "react-icons/lu";
import type { z } from "zod";
import { Empty, ItemThumbnail } from "~/components";
import { usePermissions, useRealtime, useRouteData } from "~/hooks";
@@ -141,7 +141,7 @@ export default function SalesRFQExplorer() {
<Empty>
{permissions.can("update", "sales") && (
<Button
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
isDisabled={isDisabled}
variant="secondary"
onClick={newSalesRFQLineDisclosure.onOpen}
@@ -159,7 +159,7 @@ export default function SalesRFQExplorer() {
ref={newButtonRef}
className="w-full"
isDisabled={isDisabled || !permissions.can("update", "sales")}
- leftIcon={<LuPlusCircle />}
+ leftIcon={<LuCirclePlus />}
variant="secondary"
onClick={newSalesRFQLineDisclosure.onOpen}
>
@@ -305,7 +305,7 @@ function SalesRFQLineItem({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="ghost"
onClick={(e) => e.stopPropagation()}
/>
diff --git a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQHeader.tsx b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQHeader.tsx
index 7fa966a9dd..eb28dd216c 100644
--- a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQHeader.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQHeader.tsx
@@ -22,12 +22,12 @@ import {
import { Link, useFetcher, useParams } from "@remix-run/react";
import { useEffect } from "react";
import {
- LuAlertTriangle,
- LuCheckCircle,
+ LuCircleCheck,
+ LuCircleX,
LuPanelLeft,
LuPanelRight,
LuRefreshCw,
- LuXCircle,
+ LuTriangleAlert,
} from "react-icons/lu";
import { RiProgress4Line } from "react-icons/ri";
import { usePanels } from "~/components/Layout";
@@ -90,7 +90,7 @@ const SalesRFQHeader = () => {
statusFetcher.state !== "idle" &&
statusFetcher.formData?.get("status") === "Ready for Quote"
}
- leftIcon={<LuCheckCircle />}
+ leftIcon={<LuCircleCheck />}
variant={status === "Draft" ? "primary" : "secondary"}
type="submit"
>
@@ -104,7 +104,7 @@ const SalesRFQHeader = () => {
routeData?.lines?.length === 0 ||
!permissions.can("update", "sales")
}
- leftIcon={<LuCheckCircle />}
+ leftIcon={<LuCircleCheck />}
variant={status === "Draft" ? "primary" : "secondary"}
onClick={requiresCustomerAlert.onOpen}
>
@@ -144,7 +144,7 @@ const SalesRFQHeader = () => {
statusFetcher.state !== "idle" &&
statusFetcher.formData?.get("status") === "Closed"
}
- leftIcon={<LuXCircle />}
+ leftIcon={<LuCircleX />}
type="submit"
variant={
["Ready for Quote", "Closed"].includes(status)
@@ -229,7 +229,7 @@ function RequiresCustomerAlert({ onClose }: { onClose: () => void }) {
</ModalHeader>
<ModalBody>
<Alert variant="destructive">
- <LuAlertTriangle className="h-4 w-4" />
+ <LuTriangleAlert className="h-4 w-4" />
<AlertTitle>RFQ has no customer</AlertTitle>
<AlertDescription>
In order to convert this RFQ to a quote, it must be associated
@@ -290,7 +290,7 @@ function ConvertToQuoteModal({
<ModalBody>
{requiresCustomer && (
<Alert variant="destructive">
- <LuAlertTriangle className="h-4 w-4" />
+ <LuTriangleAlert className="h-4 w-4" />
<AlertTitle>RFQ has no customer</AlertTitle>
<AlertDescription>
In order to convert this RFQ to a quote, it must have a
@@ -300,7 +300,7 @@ function ConvertToQuoteModal({
)}
{requiresPartNumbers && (
<Alert variant="warning">
- <LuAlertTriangle className="h-4 w-4" />
+ <LuTriangleAlert className="h-4 w-4" />
<AlertTitle>Lines need internal part numbers</AlertTitle>
<AlertDescription>
In order to convert this RFQ to a quote, all lines must have an
diff --git a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQsTable.tsx b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQsTable.tsx
index 48a2f5a2cb..d9e6e0f928 100644
--- a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQsTable.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQsTable.tsx
@@ -9,10 +9,10 @@ import {
LuMap,
LuPencil,
LuQrCode,
+ LuSquareUser,
LuStar,
LuTrash,
LuUser,
- LuUserSquare,
} from "react-icons/lu";
import {
CustomerAvatar,
@@ -80,7 +80,7 @@ const SalesRFQsTable = memo(({ data, count }: SalesRFQsTableProps) => {
label: customer.name,
})),
},
- icon: <LuUserSquare />,
+ icon: <LuSquareUser />,
},
},
{
diff --git a/apps/erp/app/modules/sales/ui/useSalesSubmodules.tsx b/apps/erp/app/modules/sales/ui/useSalesSubmodules.tsx
index 3bfad80e31..ad212b4635 100644
--- a/apps/erp/app/modules/sales/ui/useSalesSubmodules.tsx
+++ b/apps/erp/app/modules/sales/ui/useSalesSubmodules.tsx
@@ -1,4 +1,4 @@
-import { LuStar, LuUserSquare } from "react-icons/lu";
+import { LuSquareUser, LuStar } from "react-icons/lu";
import {
RiProgress2Line,
RiProgress4Line,
@@ -15,7 +15,7 @@ const salesRoutes: AuthenticatedRouteGroup[] = [
{
name: "Customers",
to: path.to.customers,
- icon: <LuUserSquare />,
+ icon: <LuSquareUser />,
},
{
name: "RFQs",
diff --git a/apps/erp/app/modules/users/ui/Customers/CustomerAccountsTable.tsx b/apps/erp/app/modules/users/ui/Customers/CustomerAccountsTable.tsx
index ae294f5f4f..4954d5e917 100644
--- a/apps/erp/app/modules/users/ui/Customers/CustomerAccountsTable.tsx
+++ b/apps/erp/app/modules/users/ui/Customers/CustomerAccountsTable.tsx
@@ -13,10 +13,10 @@ import {
LuBan,
LuMail,
LuMailCheck,
+ LuSquareUser,
LuStar,
LuUser,
LuUserCheck,
- LuUserSquare,
} from "react-icons/lu";
import { Avatar, New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
@@ -128,7 +128,7 @@ const CustomerAccountsTable = memo(
header: "Customer",
cell: (item) => item.getValue(),
meta: {
- icon: <LuUserSquare />,
+ icon: <LuSquareUser />,
filter: {
type: "static",
options: customers.map(({ name }) => ({
diff --git a/apps/erp/app/modules/users/ui/useUsersSubmodules.tsx b/apps/erp/app/modules/users/ui/useUsersSubmodules.tsx
index 64bcd4d626..74cce9dc4f 100644
--- a/apps/erp/app/modules/users/ui/useUsersSubmodules.tsx
+++ b/apps/erp/app/modules/users/ui/useUsersSubmodules.tsx
@@ -14,7 +14,7 @@ const usersRoutes: RouteGroup[] = [
// {
// name: "Customers",
// to: path.to.customerAccounts,
- // icon: <LuUserSquare />,
+ // icon: <LuSquareUser />,
// },
// {
// name: "Suppliers",
diff --git a/apps/erp/app/routes/_public+/callback.tsx b/apps/erp/app/routes/_public+/callback.tsx
index 7c1a5c6af0..72e95ceda5 100644
--- a/apps/erp/app/routes/_public+/callback.tsx
+++ b/apps/erp/app/routes/_public+/callback.tsx
@@ -27,7 +27,7 @@ import {
Button,
VStack,
} from "@carbon/react";
-import { LuAlertTriangle } from "react-icons/lu";
+import { LuTriangleAlert } from "react-icons/lu";
import type { FormActionData } from "~/types";
import { path } from "~/utils/path";
@@ -155,7 +155,7 @@ export default function AuthCallback() {
<div className="rounded-lg md:bg-card md:border md:border-border md:shadow-lg p-8 mt-8 w-[380px]">
<VStack spacing={4}>
<Alert variant="destructive">
- <LuAlertTriangle className="h-4 w-4" />
+ <LuTriangleAlert className="h-4 w-4" />
<AlertTitle>Error</AlertTitle>
<AlertDescription>{error}</AlertDescription>
</Alert>
diff --git a/apps/erp/app/routes/_public+/forgot-password.tsx b/apps/erp/app/routes/_public+/forgot-password.tsx
index b8801881d7..c909ad7206 100644
--- a/apps/erp/app/routes/_public+/forgot-password.tsx
+++ b/apps/erp/app/routes/_public+/forgot-password.tsx
@@ -24,7 +24,7 @@ import type {
MetaFunction,
} from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
-import { LuAlertCircle, LuCheckCircle } from "react-icons/lu";
+import { LuCircleAlert, LuCircleCheck } from "react-icons/lu";
import { Input, Submit } from "~/components/Form";
import type { FormActionData, Result } from "~/types";
@@ -101,7 +101,7 @@ export default function ForgotPasswordRoute() {
variant="success"
className="h-[240px] [&>svg]:left-8 [&>svg]:top-8 p-8 w-[380px]"
>
- <LuCheckCircle className="w-4 h-4" />
+ <LuCircleCheck className="w-4 h-4" />
<AlertTitle>Success</AlertTitle>
<AlertDescription>
If you have an account, you should receive an email shortly with a
@@ -117,7 +117,7 @@ export default function ForgotPasswordRoute() {
</p>
{actionData?.success === false && (
<Alert variant="destructive">
- <LuAlertCircle className="w-4 h-4" />
+ <LuCircleAlert className="w-4 h-4" />
<AlertTitle>{actionData?.message}</AlertTitle>
</Alert>
)}
diff --git a/apps/erp/app/routes/_public+/login.tsx b/apps/erp/app/routes/_public+/login.tsx
index a46d06d2ab..347af95719 100644
--- a/apps/erp/app/routes/_public+/login.tsx
+++ b/apps/erp/app/routes/_public+/login.tsx
@@ -23,7 +23,7 @@ import type {
} from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
import posthog from "posthog-js";
-import { LuAlertCircle } from "react-icons/lu";
+import { LuCircleAlert } from "react-icons/lu";
import { Hidden, Input, Password, Submit } from "~/components/Form";
@@ -110,7 +110,7 @@ export default function LoginRoute() {
<VStack spacing={4}>
{result && result?.message && (
<Alert variant="destructive">
- <LuAlertCircle className="w-4 h-4" />
+ <LuCircleAlert className="w-4 h-4" />
<AlertTitle>Authentication Error</AlertTitle>
<AlertDescription>{result?.message}</AlertDescription>
</Alert>
diff --git a/apps/erp/app/routes/share+/quote.$id.tsx b/apps/erp/app/routes/share+/quote.$id.tsx
index fde9b7455d..3b92205809 100644
--- a/apps/erp/app/routes/share+/quote.$id.tsx
+++ b/apps/erp/app/routes/share+/quote.$id.tsx
@@ -45,11 +45,11 @@ import { useEffect, useMemo, useRef, useState } from "react";
import { useDropzone } from "react-dropzone";
import {
LuChevronDown,
+ LuCircleX,
LuCreditCard,
LuImage,
LuTruck,
LuUpload,
- LuXCircle,
} from "react-icons/lu";
import { usePercentFormatter } from "~/hooks";
import { useMode } from "~/hooks/useMode";
@@ -875,7 +875,7 @@ const LinePricingOptions = ({
<HStack spacing={2} className="w-full justify-end items-center">
<Button
variant="primary"
- leftIcon={<LuXCircle />}
+ leftIcon={<LuCircleX />}
onClick={() => {
setSelectedValue("0");
setSelectedLines((prev) => ({
diff --git a/apps/erp/app/routes/x+/_layout.tsx b/apps/erp/app/routes/x+/_layout.tsx
index 1814e27051..1498e01b5a 100644
--- a/apps/erp/app/routes/x+/_layout.tsx
+++ b/apps/erp/app/routes/x+/_layout.tsx
@@ -1,4 +1,4 @@
-import { TooltipProvider } from "@carbon/react";
+import { TooltipProvider, useMount } from "@carbon/react";
import { Outlet, useLoaderData, useNavigation } from "@remix-run/react";
import type { LoaderFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
@@ -23,6 +23,8 @@ import {
import { path } from "~/utils/path";
import type { ShouldRevalidateFunction } from "@remix-run/react";
+import posthog from "posthog-js";
+import { useUser } from "~/hooks";
export const shouldRevalidate: ShouldRevalidateFunction = ({
currentUrl,
@@ -105,6 +107,14 @@ export async function loader({ request }: LoaderFunctionArgs) {
export default function AuthenticatedRoute() {
const { session } = useLoaderData<typeof loader>();
+ const user = useUser();
+
+ useMount(() => {
+ posthog.identify(user.id, {
+ email: user.email,
+ name: `${user.firstName} ${user.lastName}`,
+ });
+ });
const transition = useNavigation();
diff --git a/apps/erp/app/routes/x+/api+/$lang.intro.tsx b/apps/erp/app/routes/x+/api+/$lang.intro.tsx
index 28909b5251..fe7b561b67 100644
--- a/apps/erp/app/routes/x+/api+/$lang.intro.tsx
+++ b/apps/erp/app/routes/x+/api+/$lang.intro.tsx
@@ -1,7 +1,7 @@
import { getBrowserEnv, SUPABASE_ANON_PUBLIC } from "@carbon/auth";
import { Alert, AlertDescription, AlertTitle } from "@carbon/react";
import { Link } from "@remix-run/react";
-import { LuAlertTriangle } from "react-icons/lu";
+import { LuTriangleAlert } from "react-icons/lu";
import { useUser } from "~/hooks";
import { CodeSnippet, Snippets, useSelectedLang } from "~/modules/api";
import { path } from "~/utils/path";
@@ -53,7 +53,7 @@ export default function Route() {
environment variables you set up earlier.
</p>
<Alert variant="destructive">
- <LuAlertTriangle className="h-4 w-4 my-1" />
+ <LuTriangleAlert className="h-4 w-4 my-1" />
<AlertTitle className="!my-0 font-bold text-base">
You should never expose the <code>carbon-key</code> in the
client
diff --git a/apps/erp/app/routes/x+/job+/$jobId.details.tsx b/apps/erp/app/routes/x+/job+/$jobId.details.tsx
index 8ae303c6d1..2c6537ebdb 100644
--- a/apps/erp/app/routes/x+/job+/$jobId.details.tsx
+++ b/apps/erp/app/routes/x+/job+/$jobId.details.tsx
@@ -8,12 +8,13 @@ import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
import type { JSONContent } from "@carbon/react";
-import { Spinner, VStack } from "@carbon/react";
+import { Spinner, useMount, VStack } from "@carbon/react";
import { Await, useParams } from "@remix-run/react";
import type { ActionFunctionArgs } from "@vercel/remix";
import { redirect } from "@vercel/remix";
import { Suspense } from "react";
import { CadModel, Documents } from "~/components";
+import { usePanels } from "~/components/Layout";
import { usePermissions, useRealtime, useRouteData } from "~/hooks";
import type { Job } from "~/modules/production";
import {
@@ -82,6 +83,12 @@ export default function JobDetailsRoute() {
if (!jobId) throw new Error("Could not find jobId");
const permissions = usePermissions();
+ const { setIsExplorerCollapsed } = usePanels();
+
+ useMount(() => {
+ setIsExplorerCollapsed(false);
+ });
+
const jobData = useRouteData<{
job: Job;
files: Promise<StorageItem[]> | StorageItem[];
diff --git a/apps/erp/app/routes/x+/job+/$jobId.events.tsx b/apps/erp/app/routes/x+/job+/$jobId.events.tsx
index b45b63d9d3..cd2b7dca80 100644
--- a/apps/erp/app/routes/x+/job+/$jobId.events.tsx
+++ b/apps/erp/app/routes/x+/job+/$jobId.events.tsx
@@ -1,10 +1,11 @@
import { error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import { VStack } from "@carbon/react";
+import { useMount, VStack } from "@carbon/react";
import { Outlet, useLoaderData } from "@remix-run/react";
import type { LoaderFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
+import { usePanels } from "~/components/Layout";
import {
getJobOperationsList,
getProductionEvents,
@@ -78,6 +79,12 @@ export default function ProductionEventsRoute() {
const { count, events, operations, workCenters } =
useLoaderData<typeof loader>();
+ const { setIsExplorerCollapsed } = usePanels();
+
+ useMount(() => {
+ setIsExplorerCollapsed(true);
+ });
+
return (
<>
<VStack spacing={0} className="h-[calc(100dvh-99px)]">
diff --git a/apps/erp/app/routes/x+/job+/$jobId.materials.tsx b/apps/erp/app/routes/x+/job+/$jobId.materials.tsx
index 4619965867..2220ce8daf 100644
--- a/apps/erp/app/routes/x+/job+/$jobId.materials.tsx
+++ b/apps/erp/app/routes/x+/job+/$jobId.materials.tsx
@@ -1,10 +1,11 @@
import { error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import { VStack } from "@carbon/react";
+import { useMount, VStack } from "@carbon/react";
import { useLoaderData } from "@remix-run/react";
import type { LoaderFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
+import { usePanels } from "~/components/Layout";
import {
getJob,
getJobMaterialsWithQuantityOnHand,
@@ -62,6 +63,11 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
export default function JobMaterialsRoute() {
const { count, materials } = useLoaderData<typeof loader>();
+ const { setIsExplorerCollapsed } = usePanels();
+
+ useMount(() => {
+ setIsExplorerCollapsed(true);
+ });
return (
<VStack spacing={0} className="h-[calc(100dvh-99px)]">
diff --git a/apps/erp/app/routes/x+/job+/$jobId.operations.tsx b/apps/erp/app/routes/x+/job+/$jobId.operations.tsx
index 06835b0712..e843c425e9 100644
--- a/apps/erp/app/routes/x+/job+/$jobId.operations.tsx
+++ b/apps/erp/app/routes/x+/job+/$jobId.operations.tsx
@@ -1,10 +1,11 @@
import { error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import { VStack } from "@carbon/react";
+import { useMount, VStack } from "@carbon/react";
import { useLoaderData } from "@remix-run/react";
import type { LoaderFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
+import { usePanels } from "~/components/Layout";
import { getJob, getJobOperations } from "~/modules/production";
import { JobOperationsTable } from "~/modules/production/ui/Jobs";
@@ -63,6 +64,12 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
export default function JobOperationsRoute() {
const { count, operations } = useLoaderData<typeof loader>();
+ const { setIsExplorerCollapsed } = usePanels();
+
+ useMount(() => {
+ setIsExplorerCollapsed(true);
+ });
+
return (
<VStack spacing={0} className="h-[calc(100dvh-99px)]">
<JobOperationsTable data={operations} count={count} />
diff --git a/apps/erp/app/routes/x+/job+/$jobId.quantities.tsx b/apps/erp/app/routes/x+/job+/$jobId.quantities.tsx
index 2d4577278b..3e9951141c 100644
--- a/apps/erp/app/routes/x+/job+/$jobId.quantities.tsx
+++ b/apps/erp/app/routes/x+/job+/$jobId.quantities.tsx
@@ -1,10 +1,11 @@
import { error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import { VStack } from "@carbon/react";
+import { useMount, VStack } from "@carbon/react";
import { Outlet, useLoaderData } from "@remix-run/react";
import type { LoaderFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
+import { usePanels } from "~/components/Layout";
import {
getJobOperationsList,
getProductionQuantities,
@@ -78,6 +79,12 @@ export default function ProductionQuantitiesRoute() {
const { count, events, operations, scrapReasons } =
useLoaderData<typeof loader>();
+ const { setIsExplorerCollapsed } = usePanels();
+
+ useMount(() => {
+ setIsExplorerCollapsed(true);
+ });
+
return (
<>
<VStack spacing={0} className="h-[calc(100dvh-99px)]">
diff --git a/apps/erp/app/routes/x+/resources+/ability.$abilityId.tsx b/apps/erp/app/routes/x+/resources+/ability.$abilityId.tsx
index ee56ed4fb3..f669da7860 100644
--- a/apps/erp/app/routes/x+/resources+/ability.$abilityId.tsx
+++ b/apps/erp/app/routes/x+/resources+/ability.$abilityId.tsx
@@ -24,7 +24,7 @@ import {
LuChevronDown,
LuChevronLeft,
LuChevronUp,
- LuPenSquare,
+ LuSquarePen,
} from "react-icons/lu";
import { Hidden, Input, Submit } from "~/components/Form";
import type { AbilityDatum } from "~/modules/resources";
@@ -222,7 +222,7 @@ export default function AbilitiesRoute() {
<IconButton
aria-label="Edit"
variant="ghost"
- icon={<LuPenSquare />}
+ icon={<LuSquarePen />}
onClick={editingTitle.onOpen}
/>
</HStack>
diff --git a/apps/erp/app/routes/x+/sales+/_index.tsx b/apps/erp/app/routes/x+/sales+/_index.tsx
index 7f952c9968..6f56cbaae2 100644
--- a/apps/erp/app/routes/x+/sales+/_index.tsx
+++ b/apps/erp/app/routes/x+/sales+/_index.tsx
@@ -44,7 +44,7 @@ import {
LuArrowUpRight,
LuChevronDown,
LuFile,
- LuMoreVertical,
+ LuEllipsisVertical,
} from "react-icons/lu";
import {
RiProgress2Line,
@@ -412,7 +412,7 @@ export default function SalesDashboard() {
<DropdownMenuTrigger asChild>
<IconButton
variant="secondary"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
aria-label="More"
/>
</DropdownMenuTrigger>
diff --git a/apps/erp/app/routes/x+/schedule+/index.tsx b/apps/erp/app/routes/x+/schedule+/index.tsx
index 92cb092661..8cd648853e 100644
--- a/apps/erp/app/routes/x+/schedule+/index.tsx
+++ b/apps/erp/app/routes/x+/schedule+/index.tsx
@@ -29,7 +29,7 @@ import { Link, useLoaderData } from "@remix-run/react";
import type { RealtimeChannel } from "@supabase/supabase-js";
import { json, redirect, type LoaderFunctionArgs } from "@vercel/remix";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
-import { LuAlertTriangle, LuPlusCircle, LuSettings2 } from "react-icons/lu";
+import { LuCirclePlus, LuSettings2, LuTriangleAlert } from "react-icons/lu";
import { SearchFilter } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { ActiveFilters, Filter } from "~/components/Table/components/Filter";
@@ -400,7 +400,7 @@ function KanbanSchedule() {
) : hasFilters ? (
<div className="flex flex-col w-full h-full items-center justify-center gap-4">
<div className="flex justify-center items-center h-12 w-12 rounded-full bg-foreground text-background">
- <LuAlertTriangle className="h-6 w-6" />
+ <LuTriangleAlert className="h-6 w-6" />
</div>
<span className="text-xs font-mono font-light text-foreground uppercase">
No results
@@ -410,12 +410,12 @@ function KanbanSchedule() {
) : (
<div className="flex flex-col w-full h-full items-center justify-center gap-4">
<div className="flex justify-center items-center h-12 w-12 rounded-full bg-foreground text-background">
- <LuAlertTriangle className="h-6 w-6" />
+ <LuTriangleAlert className="h-6 w-6" />
</div>
<span className="text-xs font-mono font-light text-foreground uppercase">
No work centers exist
</span>
- <Button leftIcon={<LuPlusCircle />} asChild>
+ <Button leftIcon={<LuCirclePlus />} asChild>
<Link to={path.to.newWorkCenter}>Create Work Center</Link>
</Button>
</div>
diff --git a/apps/erp/app/routes/x+/settings+/terms.tsx b/apps/erp/app/routes/x+/settings+/terms.tsx
index f734ff6b35..d107cbdf0c 100644
--- a/apps/erp/app/routes/x+/settings+/terms.tsx
+++ b/apps/erp/app/routes/x+/settings+/terms.tsx
@@ -17,7 +17,7 @@ import { getLocalTimeZone, today } from "@internationalized/date";
import { json, redirect, useLoaderData } from "@remix-run/react";
import type { LoaderFunctionArgs } from "@vercel/remix";
import { useState } from "react";
-import { LuCheckCircle } from "react-icons/lu";
+import { LuCircleCheck } from "react-icons/lu";
import { usePermissions, useUser } from "~/hooks";
import { getTerms } from "~/modules/settings";
@@ -129,7 +129,7 @@ export default function Terms() {
{purchasingTermsStatus === "draft" ? (
<Badge variant="secondary">Draft</Badge>
) : (
- <LuCheckCircle className="w-4 h-4 text-emerald-500" />
+ <LuCircleCheck className="w-4 h-4 text-emerald-500" />
)}
</CardAction>
</HStack>
@@ -162,7 +162,7 @@ export default function Terms() {
{salesTermsStatus === "draft" ? (
<Badge variant="secondary">Draft</Badge>
) : (
- <LuCheckCircle className="w-4 h-4 text-emerald-500" />
+ <LuCircleCheck className="w-4 h-4 text-emerald-500" />
)}
</CardAction>
</HStack>
diff --git a/apps/erp/package.json b/apps/erp/package.json
index 98b26f1c8e..0316657262 100644
--- a/apps/erp/package.json
+++ b/apps/erp/package.json
@@ -66,7 +66,7 @@
"react-dom": "^18.3.1",
"react-dropzone": "^14.2.3",
"react-hotkeys-hook": "~4.5.0",
- "react-icons": "^5.3.0",
+ "react-icons": "^5.4.0",
"react-pdf": "^7.7.1",
"react-use-measure": "^2.1.1",
"recharts": "^2.15.0",
diff --git a/apps/mes/app/components/EndShift.tsx b/apps/mes/app/components/EndShift.tsx
index 98ad37e0ea..7f0295fbd7 100644
--- a/apps/mes/app/components/EndShift.tsx
+++ b/apps/mes/app/components/EndShift.tsx
@@ -1,6 +1,6 @@
"use client";
-import { LuStopCircle } from "react-icons/lu";
+import { LuCircleStop } from "react-icons/lu";
import { useCarbon } from "@carbon/auth";
import {
@@ -71,7 +71,7 @@ export function EndShift() {
className="text-sidebar-foreground/70"
onClick={openModal}
>
- <LuStopCircle className="text-sidebar-foreground/70" />
+ <LuCircleStop className="text-sidebar-foreground/70" />
<span>End Shift</span>
</SidebarMenuButton>
{confirmModal.isOpen && (
diff --git a/apps/mes/app/components/Icons.tsx b/apps/mes/app/components/Icons.tsx
index efa4e073b1..8029f578a4 100644
--- a/apps/mes/app/components/Icons.tsx
+++ b/apps/mes/app/components/Icons.tsx
@@ -3,13 +3,13 @@ import { AiOutlinePartition } from "react-icons/ai";
import { FaCodePullRequest } from "react-icons/fa6";
import {
LuAtom,
- LuCheckCircle,
+ LuCircleCheck,
+ LuCircleX,
LuHammer,
LuHeadphones,
LuPizza,
LuShoppingCart,
LuSquare,
- LuXCircle,
} from "react-icons/lu";
import {
@@ -158,9 +158,9 @@ export function OperationStatusIcon({
return <TodoStatusIcon className="text-foreground" />;
case "Waiting":
case "Canceled":
- return <LuXCircle className="text-muted-foreground" />;
+ return <LuCircleX className="text-muted-foreground" />;
case "Done":
- return <LuCheckCircle className="text-blue-600" />;
+ return <LuCircleCheck className="text-blue-600" />;
case "In Progress":
return <AlmostDoneIcon />;
case "Paused":
diff --git a/apps/mes/app/components/JobOperation.tsx b/apps/mes/app/components/JobOperation.tsx
index aae986c8ef..a997ebfd26 100644
--- a/apps/mes/app/components/JobOperation.tsx
+++ b/apps/mes/app/components/JobOperation.tsx
@@ -123,16 +123,16 @@ import { flushSync } from "react-dom";
import { FaTasks } from "react-icons/fa";
import { FaCheck, FaPause, FaPlay, FaPlus, FaTrash } from "react-icons/fa6";
import {
- LuAlertTriangle,
LuAxis3D,
LuChevronLeft,
LuClipboardCheck,
LuDownload,
+ LuEllipsisVertical,
LuGitBranchPlus,
LuHammer,
LuHardHat,
- LuMoreVertical,
LuTimer,
+ LuTriangleAlert,
} from "react-icons/lu";
import { MethodIcon, MethodItemTypeIcon } from "~/components/Icons";
import { getFileType } from "~/services/operations.service";
@@ -575,7 +575,7 @@ export const JobOperation = ({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="secondary"
/>
</DropdownMenuTrigger>
@@ -632,7 +632,7 @@ export const JobOperation = ({
<DropdownMenuTrigger asChild>
<IconButton
aria-label="More"
- icon={<LuMoreVertical />}
+ icon={<LuEllipsisVertical />}
variant="secondary"
/>
</DropdownMenuTrigger>
@@ -1702,7 +1702,7 @@ function QuantityModal({
<VStack spacing={2}>
{type === "finish" && !isOperationComplete && (
<Alert variant="destructive">
- <LuAlertTriangle className="h-4 w-4" />
+ <LuTriangleAlert className="h-4 w-4" />
<AlertTitle>Insufficient quantity</AlertTitle>
<AlertDescription>
The completed quantity for this operation is less than the
diff --git a/apps/mes/app/components/Kanban/components/ItemCard.tsx b/apps/mes/app/components/Kanban/components/ItemCard.tsx
index 80e454b623..6000bebeed 100644
--- a/apps/mes/app/components/Kanban/components/ItemCard.tsx
+++ b/apps/mes/app/components/Kanban/components/ItemCard.tsx
@@ -15,11 +15,11 @@ import {
import { cva } from "class-variance-authority";
import {
LuCalendarDays,
- LuCheckCircle,
+ LuCircleCheck,
+ LuCircleX,
LuClipboardCheck,
+ LuSquareUser,
LuTimer,
- LuUserSquare,
- LuXCircle,
} from "react-icons/lu";
import { Link } from "@remix-run/react";
@@ -217,7 +217,7 @@ export function ItemCard({
{showCustomer && item.customerId && (
<HStack className="justify-start space-x-2">
- <LuUserSquare className="text-muted-foreground" />
+ <LuSquareUser className="text-muted-foreground" />
<HStack className="truncate no-underline hover:no-underline">
<Avatar size="xs" name={customer?.name ?? ""} />
<span>{customer?.name}</span>
@@ -237,9 +237,9 @@ function getStatusIcon(status: Item["status"]) {
return <TodoStatusIcon className="text-foreground" />;
case "Waiting":
case "Canceled":
- return <LuXCircle className="text-muted-foreground" />;
+ return <LuCircleX className="text-muted-foreground" />;
case "Done":
- return <LuCheckCircle className="text-blue-600" />;
+ return <LuCircleCheck className="text-blue-600" />;
case "In Progress":
return <AlmostDoneIcon />;
case "Paused":
diff --git a/apps/mes/app/routes/_public+/login.tsx b/apps/mes/app/routes/_public+/login.tsx
index 584448ca43..48835d5e43 100644
--- a/apps/mes/app/routes/_public+/login.tsx
+++ b/apps/mes/app/routes/_public+/login.tsx
@@ -32,7 +32,7 @@ import type {
} from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
import posthog from "posthog-js";
-import { LuAlertCircle } from "react-icons/lu";
+import { LuCircleAlert } from "react-icons/lu";
import { path } from "~/utils/path";
@@ -116,7 +116,7 @@ export default function LoginRoute() {
<VStack spacing={4}>
{result && result?.message && (
<Alert variant="destructive">
- <LuAlertCircle className="w-4 h-4" />
+ <LuCircleAlert className="w-4 h-4" />
<AlertTitle>Authentication Error</AlertTitle>
<AlertDescription>{result?.message}</AlertDescription>
</Alert>
diff --git a/apps/mes/app/routes/x+/_layout.tsx b/apps/mes/app/routes/x+/_layout.tsx
index 19ae2ba4b8..9b140124ea 100644
--- a/apps/mes/app/routes/x+/_layout.tsx
+++ b/apps/mes/app/routes/x+/_layout.tsx
@@ -3,15 +3,17 @@ import {
destroyAuthSession,
requireAuthSession,
} from "@carbon/auth/session.server";
-import { SidebarProvider, TooltipProvider } from "@carbon/react";
+import { SidebarProvider, TooltipProvider, useMount } from "@carbon/react";
import type { ShouldRevalidateFunction } from "@remix-run/react";
import { Outlet, useLoaderData, useNavigation } from "@remix-run/react";
import type { LoaderFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
import NProgress from "nprogress";
+import posthog from "posthog-js";
import { useEffect } from "react";
import { AppSidebar } from "~/components";
import RealtimeDataProvider from "~/components/RealtimeDataProvider";
+import { useUser } from "~/hooks";
import { getLocation, setLocation } from "~/services/location.server";
import {
getActiveJobCount,
@@ -101,6 +103,14 @@ export default function AuthenticatedRoute() {
const transition = useNavigation();
+ const user = useUser();
+ useMount(() => {
+ posthog.identify(user.id, {
+ email: user.email,
+ name: `${user.firstName} ${user.lastName}`,
+ });
+ });
+
/* NProgress */
useEffect(() => {
if (
diff --git a/apps/mes/app/routes/x+/active.tsx b/apps/mes/app/routes/x+/active.tsx
index b7452f1052..8753966e49 100644
--- a/apps/mes/app/routes/x+/active.tsx
+++ b/apps/mes/app/routes/x+/active.tsx
@@ -10,7 +10,7 @@ import { json, useLoaderData, useParams } from "@remix-run/react";
import type { LoaderFunctionArgs } from "@vercel/remix";
import { useEffect, useMemo, useRef, useState } from "react";
-import { LuAlertTriangle, LuSearch } from "react-icons/lu";
+import { LuSearch, LuTriangleAlert } from "react-icons/lu";
import type { ImperativePanelHandle } from "react-resizable-panels";
import { OperationsList } from "~/components";
import { getActiveJobOperationsByEmployee } from "~/services/operations.service";
@@ -90,7 +90,7 @@ export default function ActiveRoute() {
) : searchTerm ? (
<div className="flex flex-col flex-1 w-full h-[calc(100%-var(--header-height)*2)] items-center justify-center gap-4">
<div className="flex justify-center items-center h-12 w-12 rounded-full bg-foreground text-background">
- <LuAlertTriangle className="h-6 w-6" />
+ <LuTriangleAlert className="h-6 w-6" />
</div>
<span className="text-xs font-mono font-light text-foreground uppercase">
No results exist
@@ -100,7 +100,7 @@ export default function ActiveRoute() {
) : (
<div className="flex flex-col flex-1 w-full h-[calc(100%-var(--header-height)*2)] items-center justify-center gap-4">
<div className="flex justify-center items-center h-12 w-12 rounded-full bg-foreground text-background">
- <LuAlertTriangle className="h-6 w-6" />
+ <LuTriangleAlert className="h-6 w-6" />
</div>
<span className="text-xs font-mono font-light text-foreground uppercase">
No active operations
diff --git a/apps/mes/app/routes/x+/operations.tsx b/apps/mes/app/routes/x+/operations.tsx
index 0bab170e99..a857bfed05 100644
--- a/apps/mes/app/routes/x+/operations.tsx
+++ b/apps/mes/app/routes/x+/operations.tsx
@@ -17,7 +17,7 @@ import {
import { json, redirect, useLoaderData } from "@remix-run/react";
import type { LoaderFunctionArgs } from "@vercel/remix";
import { useMemo } from "react";
-import { LuAlertTriangle, LuSettings2 } from "react-icons/lu";
+import { LuSettings2, LuTriangleAlert } from "react-icons/lu";
import type { ColumnFilter } from "~/components/Filter";
import { ActiveFilters, Filter, useFilters } from "~/components/Filter";
@@ -428,7 +428,7 @@ function KanbanSchedule() {
) : hasFilters ? (
<div className="flex flex-col w-full h-full items-center justify-center gap-4">
<div className="flex justify-center items-center h-12 w-12 rounded-full bg-foreground text-background">
- <LuAlertTriangle className="h-6 w-6" />
+ <LuTriangleAlert className="h-6 w-6" />
</div>
<span className="text-xs font-mono font-light text-foreground uppercase">
No results
@@ -438,7 +438,7 @@ function KanbanSchedule() {
) : (
<div className="flex flex-col w-full h-full items-center justify-center gap-4">
<div className="flex justify-center items-center h-12 w-12 rounded-full bg-foreground text-background">
- <LuAlertTriangle className="h-6 w-6" />
+ <LuTriangleAlert className="h-6 w-6" />
</div>
<span className="text-xs font-mono font-light text-foreground uppercase">
No work centers exist
diff --git a/apps/mes/app/routes/x+/recent.tsx b/apps/mes/app/routes/x+/recent.tsx
index 685977f21e..d6cf279fbb 100644
--- a/apps/mes/app/routes/x+/recent.tsx
+++ b/apps/mes/app/routes/x+/recent.tsx
@@ -9,7 +9,7 @@ import {
import { json, useLoaderData, useParams } from "@remix-run/react";
import type { LoaderFunctionArgs } from "@vercel/remix";
import { useEffect, useMemo, useRef, useState } from "react";
-import { LuAlertTriangle, LuSearch } from "react-icons/lu";
+import { LuSearch, LuTriangleAlert } from "react-icons/lu";
import type { ImperativePanelHandle } from "react-resizable-panels";
import { OperationsList } from "~/components";
import { getRecentJobOperationsByEmployee } from "~/services/operations.service";
@@ -89,7 +89,7 @@ export default function ActiveRoute() {
) : searchTerm ? (
<div className="flex flex-col flex-1 w-full h-[calc(100%-var(--header-height)*2)] items-center justify-center gap-4">
<div className="flex justify-center items-center h-12 w-12 rounded-full bg-foreground text-background">
- <LuAlertTriangle className="h-6 w-6" />
+ <LuTriangleAlert className="h-6 w-6" />
</div>
<span className="text-xs font-mono font-light text-foreground uppercase">
No results exist
@@ -99,7 +99,7 @@ export default function ActiveRoute() {
) : (
<div className="flex flex-col flex-1 w-full h-[calc(100%-var(--header-height)*2)] items-center justify-center gap-4">
<div className="flex justify-center items-center h-12 w-12 rounded-full bg-foreground text-background">
- <LuAlertTriangle className="h-6 w-6" />
+ <LuTriangleAlert className="h-6 w-6" />
</div>
<span className="text-xs font-mono font-light text-foreground uppercase">
No recent operations
diff --git a/apps/mes/package.json b/apps/mes/package.json
index dbce596828..b96589972f 100644
--- a/apps/mes/package.json
+++ b/apps/mes/package.json
@@ -35,7 +35,7 @@
"react-dom": "^18.3.1",
"react-dropzone": "^14.2.3",
"react-hotkeys-hook": "~4.5.0",
- "react-icons": "^5.3.0",
+ "react-icons": "^5.4.0",
"react-router-dom": "^6.23.1",
"tailwind-merge": "^2.2.1",
"tailwindcss-animate": "^1.0.7",
diff --git a/apps/starter/app/components/AppSidebar.tsx b/apps/starter/app/components/AppSidebar.tsx
index cbf5982651..20fc683a5d 100644
--- a/apps/starter/app/components/AppSidebar.tsx
+++ b/apps/starter/app/components/AppSidebar.tsx
@@ -34,17 +34,17 @@ import {
LuBell,
LuBookOpen,
LuBot,
+ LuChartPie,
LuChevronRight,
LuChevronsUpDown,
LuCommand,
LuCreditCard,
+ LuEllipsis,
LuFolder,
LuFrame,
LuLifeBuoy,
LuLogOut,
LuMap,
- LuMoreHorizontal,
- LuPieChart,
LuSend,
LuSettings2,
LuShare,
@@ -146,7 +146,7 @@ const data = {
{
name: "Sales & Marketing",
url: "#",
- icon: LuPieChart,
+ icon: LuChartPie,
},
{
name: "Travel",
@@ -270,7 +270,7 @@ export function NavProjects({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<SidebarMenuAction showOnHover>
- <LuMoreHorizontal />
+ <LuEllipsis />
<span className="sr-only">More</span>
</SidebarMenuAction>
</DropdownMenuTrigger>
@@ -304,7 +304,7 @@ export function NavProjects({
))}
<SidebarMenuItem>
<SidebarMenuButton>
- <LuMoreHorizontal />
+ <LuEllipsis />
<span>More</span>
</SidebarMenuButton>
</SidebarMenuItem>
diff --git a/apps/starter/app/components/AvatarMenu.tsx b/apps/starter/app/components/AvatarMenu.tsx
index 4268d31107..3a5236dc08 100644
--- a/apps/starter/app/components/AvatarMenu.tsx
+++ b/apps/starter/app/components/AvatarMenu.tsx
@@ -10,7 +10,7 @@ import {
} from "@carbon/react";
import { Form, Link, useFetcher } from "@remix-run/react";
import { useRef, useState } from "react";
-import { LuHome, LuLogOut, LuMoon, LuSun, LuUser } from "react-icons/lu";
+import { LuHouse, LuLogOut, LuMoon, LuSun, LuUser } from "react-icons/lu";
import { Avatar } from "~/components";
import { useUser } from "~/hooks";
import { useMode } from "~/hooks/useMode";
@@ -39,7 +39,7 @@ const AvatarMenu = () => {
<DropdownMenuSeparator />
<DropdownMenuItem asChild>
<Link to={path.to.dashboard}>
- <DropdownMenuIcon icon={<LuHome />} />
+ <DropdownMenuIcon icon={<LuHouse />} />
Dashboard
</Link>
</DropdownMenuItem>
diff --git a/apps/starter/app/routes/_public+/login.tsx b/apps/starter/app/routes/_public+/login.tsx
index 1b6e3d347a..82fe7fa6bd 100644
--- a/apps/starter/app/routes/_public+/login.tsx
+++ b/apps/starter/app/routes/_public+/login.tsx
@@ -32,7 +32,7 @@ import type {
} from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
import posthog from "posthog-js";
-import { LuAlertCircle } from "react-icons/lu";
+import { LuCircleAlert } from "react-icons/lu";
import { path } from "~/utils/path";
@@ -116,7 +116,7 @@ export default function LoginRoute() {
<VStack spacing={4}>
{result && result?.message && (
<Alert variant="destructive">
- <LuAlertCircle className="w-4 h-4" />
+ <LuCircleAlert className="w-4 h-4" />
<AlertTitle>Authentication Error</AlertTitle>
<AlertDescription>{result?.message}</AlertDescription>
</Alert>
diff --git a/apps/starter/package.json b/apps/starter/package.json
index 5471590482..a8e9ae6785 100644
--- a/apps/starter/package.json
+++ b/apps/starter/package.json
@@ -30,7 +30,7 @@
"react-dom": "^18.3.1",
"react-dropzone": "^14.2.3",
"react-hotkeys-hook": "~4.5.0",
- "react-icons": "^5.3.0",
+ "react-icons": "^5.4.0",
"tailwind-merge": "^2.2.1",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.23.8",
diff --git a/package-lock.json b/package-lock.json
index 442e66317f..6c4e624aee 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -248,7 +248,7 @@
"react-dom": "^18.3.1",
"react-dropzone": "^14.2.3",
"react-hotkeys-hook": "~4.5.0",
- "react-icons": "^5.3.0",
+ "react-icons": "^5.4.0",
"react-pdf": "^7.7.1",
"react-use-measure": "^2.1.1",
"recharts": "^2.15.0",
@@ -341,7 +341,7 @@
"react-dom": "^18.3.1",
"react-dropzone": "^14.2.3",
"react-hotkeys-hook": "~4.5.0",
- "react-icons": "^5.3.0",
+ "react-icons": "^5.4.0",
"react-router-dom": "^6.23.1",
"tailwind-merge": "^2.2.1",
"tailwindcss-animate": "^1.0.7",
@@ -397,7 +397,7 @@
"react-dom": "^18.3.1",
"react-dropzone": "^14.2.3",
"react-hotkeys-hook": "~4.5.0",
- "react-icons": "^5.3.0",
+ "react-icons": "^5.4.0",
"tailwind-merge": "^2.2.1",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.23.8",
@@ -26746,9 +26746,9 @@
}
},
"node_modules/react-icons": {
- "version": "5.3.0",
- "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-5.3.0.tgz",
- "integrity": "sha512-DnUk8aFbTyQPSkCfF8dbX6kQjXA9DktMeJqfjrg6cK9vwQVMxmcA3BfP4QoiztVmEHtwlTgLFsPuH2NskKT6eg==",
+ "version": "5.4.0",
+ "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-5.4.0.tgz",
+ "integrity": "sha512-7eltJxgVt7X64oHh6wSWNwwbKTCtMfK35hcjvJS0yxEAhPM8oUKdS3+kqaW1vicIltw+kR2unHaa12S9pPALoQ==",
"peerDependencies": {
"react": "*"
}
@@ -33316,7 +33316,7 @@
"@hookform/resolvers": "^3.3.4",
"@react-email/components": "0.0.16",
"@react-pdf/renderer": "^3.1.14",
- "react-icons": "^5.3.0",
+ "react-icons": "^5.4.0",
"react-pdf-tailwind": "~2.3.0"
},
"devDependencies": {
diff --git a/packages/documents/package.json b/packages/documents/package.json
index c858d65b92..68183ede9c 100644
--- a/packages/documents/package.json
+++ b/packages/documents/package.json
@@ -4,7 +4,7 @@
"@hookform/resolvers": "^3.3.4",
"@react-email/components": "0.0.16",
"@react-pdf/renderer": "^3.1.14",
- "react-icons": "^5.3.0",
+ "react-icons": "^5.4.0",
"react-pdf-tailwind": "~2.3.0"
},
"devDependencies": {
diff --git a/packages/react/src/CreateableMultiSelect.tsx b/packages/react/src/CreateableMultiSelect.tsx
index aa47b79975..b7cddbba58 100644
--- a/packages/react/src/CreateableMultiSelect.tsx
+++ b/packages/react/src/CreateableMultiSelect.tsx
@@ -3,7 +3,7 @@ import { CommandEmpty } from "cmdk";
import type { ComponentPropsWithoutRef } from "react";
import { forwardRef, useId, useMemo, useRef, useState } from "react";
import { FaRegSquare, FaSquareCheck } from "react-icons/fa6";
-import { LuPlusCircle, LuSettings2, LuX } from "react-icons/lu";
+import { LuCirclePlus, LuSettings2, LuX } from "react-icons/lu";
import { RxMagnifyingGlass } from "react-icons/rx";
import { Badge, BadgeCloseButton } from "./Badge";
import { Button } from "./Button";
@@ -99,7 +99,7 @@ const CreatableMultiSelect = forwardRef<
size={size ?? "sm"}
variant="secondary"
aria-label={hasSelections ? "Edit" : "Add"}
- icon={hasSelections ? <LuSettings2 /> : <LuPlusCircle />}
+ icon={hasSelections ? <LuSettings2 /> : <LuCirclePlus />}
ref={ref}
isDisabled={isReadOnly}
onClick={() => setOpen(true)}
@@ -312,7 +312,7 @@ function VirtualizedCommand({
<div className="flex justify-start items-center gap-1 px-2">
{isCreateOption ? (
<>
- <LuPlusCircle className="mr-1.5" />
+ <LuCirclePlus className="mr-1.5" />
<span>Create</span>
<span className="font-bold line-clamp-1">
{search.trim() === "" ? label : search}
diff --git a/packages/react/src/Editor/components/NodeSelector.tsx b/packages/react/src/Editor/components/NodeSelector.tsx
index d9986b8aaf..3d443849d4 100644
--- a/packages/react/src/Editor/components/NodeSelector.tsx
+++ b/packages/react/src/Editor/components/NodeSelector.tsx
@@ -3,12 +3,12 @@ import { EditorBubbleItem, useEditor } from "novel";
import type { IconType } from "react-icons";
import {
LuCheck,
- LuCheckSquare,
LuChevronDown,
LuHeading1,
LuHeading2,
LuHeading3,
LuListOrdered,
+ LuSquareCheck,
LuText,
} from "react-icons/lu";
@@ -57,7 +57,7 @@ const items: SelectorItem[] = [
},
{
name: "To-do List",
- icon: LuCheckSquare,
+ icon: LuSquareCheck,
command: (editor) =>
editor.chain().focus().clearNodes().toggleTaskList().run(),
isActive: (editor) => editor.isActive("taskItem"),
diff --git a/packages/react/src/Editor/slash.tsx b/packages/react/src/Editor/slash.tsx
index d7bb1254b8..356d3e4376 100644
--- a/packages/react/src/Editor/slash.tsx
+++ b/packages/react/src/Editor/slash.tsx
@@ -1,13 +1,13 @@
import type { EditorView } from "@tiptap/pm/view";
import { createSuggestionItems } from "novel/extensions";
import {
- LuCheckSquare,
LuHeading1,
LuHeading2,
LuHeading3,
LuImage,
LuList,
LuListOrdered,
+ LuSquareCheck,
LuText,
} from "react-icons/lu";
@@ -33,7 +33,7 @@ export const getSuggestionItems = (
title: "To-do List",
description: "Track tasks with a to-do list.",
searchTerms: ["todo", "task", "list", "check", "checkbox"],
- icon: <LuCheckSquare size={18} />,
+ icon: <LuSquareCheck size={18} />,
command: ({ editor, range }) => {
editor.chain().focus().deleteRange(range).toggleTaskList().run();
},
diff --git a/packages/react/src/Form/FormLabel.tsx b/packages/react/src/Form/FormLabel.tsx
index 833e0be7a8..58e9e338c5 100644
--- a/packages/react/src/Form/FormLabel.tsx
+++ b/packages/react/src/Form/FormLabel.tsx
@@ -2,7 +2,7 @@ import type { ComponentPropsWithoutRef, ElementRef } from "react";
import { forwardRef } from "react";
import { useFormControlContext } from "./FormControl";
-import { LuFunctionSquare } from "react-icons/lu";
+import { LuSquareFunction } from "react-icons/lu";
import { cn } from "../utils/cn";
export const FormLabel = forwardRef<
@@ -43,7 +43,7 @@ export const FormLabel = forwardRef<
<span className="text-muted-foreground text-xxs">Optional</span>
)}
{onConfigure && (
- <LuFunctionSquare
+ <LuSquareFunction
aria-label="Configure"
role="button"
onClick={onConfigure}
diff --git a/packages/react/src/RichText/Toolbar/CodeBlock.tsx b/packages/react/src/RichText/Toolbar/CodeBlock.tsx
index 1f18b049b4..ec381f0ee0 100644
--- a/packages/react/src/RichText/Toolbar/CodeBlock.tsx
+++ b/packages/react/src/RichText/Toolbar/CodeBlock.tsx
@@ -1,4 +1,4 @@
-import { LuCode2 } from "react-icons/lu";
+import { LuCodeXml } from "react-icons/lu";
import type { EditorComponent } from "../types";
import ToolbarButton from "./ToolbarButton";
@@ -8,7 +8,7 @@ const CodeBlock: EditorComponent = ({ editor }) => {
label="Codeblock"
onClick={() => editor.chain().focus().toggleCodeBlock().run()}
isActive={editor.isActive("codeBlock")}
- icon={<LuCode2 />}
+ icon={<LuCodeXml />}
disabled={!editor.isEditable}
/>
);