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.

Improve UserSelect tree UI and approval labels

Sidwebworksdaee106024b6
diff --git a/apps/academy/app/entry.client.tsx b/apps/academy/app/entry.client.tsx
index 8277c1006f..0ce9ef36e8 100644
--- a/apps/academy/app/entry.client.tsx
+++ b/apps/academy/app/entry.client.tsx
@@ -1,10 +1,4 @@
-import {
- POSTHOG_API_HOST,
- POSTHOG_PROJECT_PUBLIC_KEY,
- VERCEL_URL
-} from "@carbon/auth";
-import posthog from "posthog-js";
-import { Fragment, startTransition, useEffect } from "react";
+import { Fragment, startTransition } from "react";
import { hydrateRoot } from "react-dom/client";
import { HydratedRouter } from "react-router/dom";
diff --git a/apps/academy/app/routes/_index.tsx b/apps/academy/app/routes/_index.tsx
index 3bb348abbc..c3a15f19cc 100644
--- a/apps/academy/app/routes/_index.tsx
+++ b/apps/academy/app/routes/_index.tsx
@@ -1,4 +1,4 @@
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { modules } from "~/config";
import { path } from "~/utils/path";
diff --git a/apps/erp/app/components/AnimatedSizeContainer.tsx b/apps/erp/app/components/AnimatedSizeContainer.tsx
index 76a574c6d2..85fb704ac9 100644
--- a/apps/erp/app/components/AnimatedSizeContainer.tsx
+++ b/apps/erp/app/components/AnimatedSizeContainer.tsx
@@ -1,12 +1,7 @@
import { cn } from "@carbon/react";
import { motion } from "framer-motion";
-import type {
- ComponentPropsWithoutRef,
- PropsWithChildren
-} from "react";
-import {
- forwardRef,
-} from "react";
+import type { ComponentPropsWithoutRef, PropsWithChildren } from "react";
+import { forwardRef } from "react";
import useMeasure from "react-use-measure";
type AnimatedSizeContainerProps = PropsWithChildren<{
diff --git a/apps/erp/app/components/Chat/AnimatedSizeContainer.tsx b/apps/erp/app/components/Chat/AnimatedSizeContainer.tsx
index 45bcbf3c28..f780cb7101 100644
--- a/apps/erp/app/components/Chat/AnimatedSizeContainer.tsx
+++ b/apps/erp/app/components/Chat/AnimatedSizeContainer.tsx
@@ -1,13 +1,7 @@
import { cn } from "@carbon/react";
import { motion } from "framer-motion";
-import type {
- ComponentPropsWithoutRef,
- PropsWithChildren,
-} from "react";
-import {
- forwardRef,
- useRef
-} from "react";
+import type { ComponentPropsWithoutRef, PropsWithChildren } from "react";
+import { forwardRef, useRef } from "react";
import { useResizeObserver } from "~/hooks/useResizeObserver";
type AnimatedSizeContainerProps = PropsWithChildren<{
diff --git a/apps/erp/app/components/Chat/ChatInput.tsx b/apps/erp/app/components/Chat/ChatInput.tsx
index 4da104d63a..4de6e9e395 100644
--- a/apps/erp/app/components/Chat/ChatInput.tsx
+++ b/apps/erp/app/components/Chat/ChatInput.tsx
@@ -8,9 +8,7 @@ import { cn } from "@carbon/react";
import { forwardRef, useRef } from "react";
import { CommandMenu } from "./CommandMenu";
import { useChatStore } from "./lib/store";
-import type {
- PromptInputMessage,
-} from "./PromptInput";
+import type { PromptInputMessage } from "./PromptInput";
import {
PromptInput,
PromptInputActionAddAttachments,
@@ -23,7 +21,7 @@ import {
PromptInputTools
} from "./PromptInput";
import type { RecordButtonRef } from "./RecordButton";
-import { RecordButton, } from "./RecordButton";
+import { RecordButton } from "./RecordButton";
import { SuggestedActionsButton } from "./SuggestedActions";
import { SuggestedPrompts } from "./SuggestedPrompts";
import { WebSearchButton } from "./WebSearch";
diff --git a/apps/erp/app/components/Chat/CommandMenu.tsx b/apps/erp/app/components/Chat/CommandMenu.tsx
index dcadedb1c6..fd44a09e2a 100644
--- a/apps/erp/app/components/Chat/CommandMenu.tsx
+++ b/apps/erp/app/components/Chat/CommandMenu.tsx
@@ -1,6 +1,6 @@
import { useChatActions, useChatId } from "@ai-sdk-tools/store";
import { cn } from "@carbon/react";
-import type { RefObject, } from "react";
+import type { RefObject } from "react";
import { useEffect, useRef } from "react";
import { LuArrowRight } from "react-icons/lu";
import { useOnClickOutside } from "~/hooks/useOnClickOutside";
diff --git a/apps/erp/app/components/Chat/Markdown/utils.ts b/apps/erp/app/components/Chat/Markdown/utils.ts
index 81cace28a1..953977bc43 100644
--- a/apps/erp/app/components/Chat/Markdown/utils.ts
+++ b/apps/erp/app/components/Chat/Markdown/utils.ts
@@ -1,11 +1,6 @@
import rehypeRaw from "rehype-raw";
-import type rehypeSanitize from "rehype-sanitize";
-import type {
- Options as RehypeSanitizeOptions
-} from "rehype-sanitize";
-import {
- defaultSchema,
-} from "rehype-sanitize";
+import type { Options as RehypeSanitizeOptions } from "rehype-sanitize";
+import rehypeSanitize, { defaultSchema } from "rehype-sanitize";
import remarkGfm from "remark-gfm";
import type { PluggableList, Plugin } from "unified";
import { SKIP, visit } from "unist-util-visit";
diff --git a/apps/erp/app/components/Chat/messages/Messages.tsx b/apps/erp/app/components/Chat/messages/Messages.tsx
index 184793acc8..4ec05f7739 100644
--- a/apps/erp/app/components/Chat/messages/Messages.tsx
+++ b/apps/erp/app/components/Chat/messages/Messages.tsx
@@ -9,12 +9,8 @@ import {
ConversationScrollButton
} from "../Conversation";
import { Markdown } from "../Markdown/Markdown";
-import type {
- SupportedToolName,
-} from "../ToolCallIndicator";
-import {
- ToolCallIndicator
-} from "../ToolCallIndicator";
+import type { SupportedToolName } from "../ToolCallIndicator";
+import { ToolCallIndicator } from "../ToolCallIndicator";
import { WebSearchSources } from "../WebSearch";
import { MessageActions } from "./MessageActions";
diff --git a/apps/erp/app/components/EmployeeAvatarGroup.tsx b/apps/erp/app/components/EmployeeAvatarGroup.tsx
index 486b389d0a..a1c0a58b2f 100644
--- a/apps/erp/app/components/EmployeeAvatarGroup.tsx
+++ b/apps/erp/app/components/EmployeeAvatarGroup.tsx
@@ -1,10 +1,8 @@
-import type {
- AvatarProps
-} from "@carbon/react";
+import type { AvatarProps } from "@carbon/react";
import {
AvatarGroup,
AvatarGroupList,
- AvatarOverflowIndicator,
+ AvatarOverflowIndicator
} from "@carbon/react";
import { usePeople } from "~/stores";
import Avatar from "./Avatar";
diff --git a/apps/erp/app/components/Form/ItemPostingGroup.tsx b/apps/erp/app/components/Form/ItemPostingGroup.tsx
index 3c06585454..3f095acc1c 100644
--- a/apps/erp/app/components/Form/ItemPostingGroup.tsx
+++ b/apps/erp/app/components/Form/ItemPostingGroup.tsx
@@ -3,7 +3,6 @@ import { CreatableCombobox } from "@carbon/form";
import { useDisclosure, useMount } from "@carbon/react";
import { useMemo, useRef, useState } from "react";
import { useFetcher } from "react-router";
-import { Enumerable } from "~/components/Enumerable";
import type { getItemPostingGroupsList } from "~/modules/items";
import ItemPostingGroupForm from "~/modules/items/ui/ItemPostingGroups/ItemPostingGroupForm";
import { path } from "~/utils/path";
diff --git a/apps/erp/app/components/ImportCSVModal/ImportCSVModal.tsx b/apps/erp/app/components/ImportCSVModal/ImportCSVModal.tsx
index dc70bbace6..72ea39b3cc 100644
--- a/apps/erp/app/components/ImportCSVModal/ImportCSVModal.tsx
+++ b/apps/erp/app/components/ImportCSVModal/ImportCSVModal.tsx
@@ -4,12 +4,8 @@ import { useEffect, useState } from "react";
import { flushSync } from "react-dom";
import { useFetcher } from "react-router";
import { z } from "zod";
-import type {
- fieldMappings,
-} from "~/modules/shared/imports.models";
-import {
- importSchemas
-} from "~/modules/shared/imports.models";
+import type { fieldMappings } from "~/modules/shared/imports.models";
+import { importSchemas } from "~/modules/shared/imports.models";
import type { action } from "~/routes/x+/shared+/import.$tableId";
import { path } from "~/utils/path";
import { AnimatedSizeContainer } from "../AnimatedSizeContainer";
diff --git a/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx b/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx
index 00901ac356..c729f4f38b 100644
--- a/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx
+++ b/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx
@@ -1,5 +1,5 @@
import { cn, useDisclosure, VStack } from "@carbon/react";
-import type { AnchorHTMLAttributes, } from "react";
+import type { AnchorHTMLAttributes } from "react";
import { forwardRef, memo } from "react";
import { Link, useMatches } from "react-router";
import { useModules, useOptimisticLocation } from "~/hooks";
diff --git a/apps/erp/app/components/Layout/Topbar/Feedback.tsx b/apps/erp/app/components/Layout/Topbar/Feedback.tsx
index 7e4cb3317b..f11dfe2ceb 100644
--- a/apps/erp/app/components/Layout/Topbar/Feedback.tsx
+++ b/apps/erp/app/components/Layout/Topbar/Feedback.tsx
@@ -21,7 +21,7 @@ import { SUPPORT_EMAIL } from "@carbon/utils";
import { nanoid } from "nanoid";
import type { ChangeEvent } from "react";
import { useEffect, useRef, useState } from "react";
-import { LuImage, LuLightbulb } from "react-icons/lu";
+import { LuImage } from "react-icons/lu";
import { useFetcher, useLocation } from "react-router";
import { feedbackValidator } from "~/modules/shared";
import type { action } from "~/routes/x+/feedback";
diff --git a/apps/erp/app/components/Selectors/UserSelect/components/TreeSelect.tsx b/apps/erp/app/components/Selectors/UserSelect/components/TreeSelect.tsx
index e959a82df8..770c88a911 100644
--- a/apps/erp/app/components/Selectors/UserSelect/components/TreeSelect.tsx
+++ b/apps/erp/app/components/Selectors/UserSelect/components/TreeSelect.tsx
@@ -1,8 +1,10 @@
-import { cn, HStack, Spinner } from "@carbon/react";
+import { cn, Spinner } from "@carbon/react";
import { FaChevronRight } from "react-icons/fa";
-import { RxCheck } from "react-icons/rx";
+import { LuCheck, LuUsers } from "react-icons/lu";
+import { Avatar } from "~/components";
import useUserSelectContext from "../provider";
import type { IndividualOrGroup, OptionGroup } from "../types";
+import { isGroup } from "../useUserSelect";
const UserTreeSelect = () => {
const {
@@ -21,26 +23,29 @@ const UserTreeSelect = () => {
aria-multiselectable={isMulti}
ref={listBoxRef}
onMouseOver={onMouseOver}
- className="overflow-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent max-h-[300px] my-1 flex flex-col"
+ className="overflow-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent max-h-[300px] my-1 flex flex-col gap-1"
>
{loading ? (
- <Spinner />
+ <div className="flex items-center justify-center py-4">
+ <Spinner />
+ </div>
) : groups.length > 0 ? (
groups.map((group) => <Group key={group.uid} group={group} />)
) : (
- <p className="text-center">No options found</p>
+ <p className="text-center text-sm text-muted-foreground py-4">
+ No options found
+ </p>
)}
</div>
);
};
-const MoreIcon = ({ isExpanded }: { isExpanded: boolean }) => (
+const ExpandIcon = ({ isExpanded }: { isExpanded: boolean }) => (
<FaChevronRight
- className="h-3 w-3"
- style={{
- transition: "transform .25s ease",
- transform: isExpanded ? "rotate(0.25turn)" : undefined
- }}
+ className={cn(
+ "h-3 w-3 text-muted-foreground transition-transform duration-200",
+ isExpanded && "rotate-90"
+ )}
/>
);
@@ -66,6 +71,7 @@ const Group = ({ group }: { group: OptionGroup }) => {
className="rounded-md outline-none"
aria-expanded={isExpanded}
>
+ {/* Group Header */}
<div
role="treeitem"
aria-selected={isExpanded ? "true" : "false"}
@@ -73,17 +79,20 @@ const Group = ({ group }: { group: OptionGroup }) => {
group.expanded ? onGroupCollapse(group.uid) : onGroupExpand(group.uid)
}
className={cn(
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 w-full",
- isFocused && "bg-accent text-accent-foreground"
+ "flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-2 text-xs font-semibold tracking-wide text-muted-foreground transition-colors hover:bg-muted/50",
+ isFocused && "bg-muted/50"
)}
>
- <HStack className="w-full justify-between items-center">
- <span className="line-clamp-1">{group.name}</span>
- <MoreIcon isExpanded={isExpanded} />
- </HStack>
+ <ExpandIcon isExpanded={isExpanded} />
+ <span className="flex-1 truncate">{group.name}</span>
+ <span className="text-[10px] font-normal tabular-nums">
+ {group.items.length}
+ </span>
</div>
+
+ {/* Group Items */}
{isExpanded && (
- <ul role="group" className="flex flex-col">
+ <ul role="group" className="flex flex-col gap-0.5 py-1 pl-2">
{group.items.map((item) => {
const isDisabled = item.id in []; // TODO
const isFocused = item.uid === focusedId;
@@ -127,13 +136,25 @@ const Option = ({
onClick?: () => void;
}) => {
const name = item.label;
+ const itemIsGroup = isGroup(item);
+ const memberCount =
+ itemIsGroup && "users" in item
+ ? (item.users?.length ?? 0) +
+ ("children" in item ? (item.children?.length ?? 0) : 0)
+ : 0;
+
+ // Get avatar info for individuals
+ const avatarUrl = "avatarUrl" in item ? item.avatarUrl : null;
+ const fullName = "fullName" in item ? item.fullName : null;
return (
<li
id={id}
className={cn(
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
- (isSelected || isFocused) && "bg-accent text-accent-foreground",
+ "relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors",
+ "hover:bg-accent/50",
+ isFocused && "bg-accent/50",
+ isSelected && "bg-accent",
isDisabled && "opacity-50 pointer-events-none"
)}
tabIndex={0}
@@ -142,15 +163,43 @@ const Option = ({
role="treeitem"
onClick={onClick}
>
- <HStack spacing={1} className="w-full items-center">
- <RxCheck
- className={cn(
- "block mr-[0.75rem] text-[0.8rem] w-4 h-4",
- isSelected ? "opacity-100" : "opacity-0"
- )}
- />
- <span className="line-clamp-1">{name}</span>
- </HStack>
+ {/* Selection indicator */}
+ <div
+ className={cn(
+ "flex h-4 w-4 shrink-0 items-center justify-center rounded border transition-colors",
+ isSelected
+ ? "border-primary bg-primary text-primary-foreground"
+ : "border-muted-foreground/30 bg-background"
+ )}
+ >
+ {isSelected && <LuCheck className="h-3 w-3" />}
+ </div>
+
+ {/* Avatar or Group Icon */}
+ {itemIsGroup ? (
+ <div className="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-muted">
+ <LuUsers className="h-3.5 w-3.5 text-muted-foreground" />
+ </div>
+ ) : (
+ <Avatar name={fullName ?? name} path={avatarUrl} size="sm" />
+ )}
+
+ {/* Content */}
+ <div className="flex min-w-0 flex-1 flex-col">
+ <span className="truncate font-medium">{name}</span>
+ {itemIsGroup && memberCount > 0 && (
+ <span className="text-xs text-muted-foreground">
+ {memberCount} {memberCount === 1 ? "member" : "members"}
+ </span>
+ )}
+ </div>
+
+ {/* Group indicator badge */}
+ {itemIsGroup && (
+ <span className="shrink-0 rounded bg-muted px-1.5 py-0.5 text-[10px] font-medium uppercase text-muted-foreground">
+ Group
+ </span>
+ )}
</li>
);
};
diff --git a/apps/erp/app/components/Table/components/TableHeader.tsx b/apps/erp/app/components/Table/components/TableHeader.tsx
index e58525f33f..0870e80d49 100644
--- a/apps/erp/app/components/Table/components/TableHeader.tsx
+++ b/apps/erp/app/components/Table/components/TableHeader.tsx
@@ -27,7 +27,7 @@ import type {
ColumnOrderState,
ColumnPinningState
} from "@tanstack/react-table";
-import type { ReactNode, } from "react";
+import type { ReactNode } from "react";
import { useEffect, useState } from "react";
import { BsThreeDotsVertical } from "react-icons/bs";
import {
diff --git a/apps/erp/app/hooks/useResizeObserver.tsx b/apps/erp/app/hooks/useResizeObserver.tsx
index 208e4564a2..66fa8924fc 100644
--- a/apps/erp/app/hooks/useResizeObserver.tsx
+++ b/apps/erp/app/hooks/useResizeObserver.tsx
@@ -1,4 +1,4 @@
-import type { RefObject, } from "react";
+import type { RefObject } from "react";
import { useEffect, useState } from "react";
export function useResizeObserver(
diff --git a/apps/erp/app/modules/inventory/inventory.service.ts b/apps/erp/app/modules/inventory/inventory.service.ts
index 5ffc3489df..c3cac528e6 100644
--- a/apps/erp/app/modules/inventory/inventory.service.ts
+++ b/apps/erp/app/modules/inventory/inventory.service.ts
@@ -1,5 +1,5 @@
import type { Database, Json } from "@carbon/database";
-import { fetchAllFromTable, } from "@carbon/database";
+import { fetchAllFromTable } from "@carbon/database";
import { getLocalTimeZone, today } from "@internationalized/date";
import type { SupabaseClient } from "@supabase/supabase-js";
import { nanoid } from "nanoid";
diff --git a/apps/erp/app/modules/inventory/ui/Kanbans/KanbansTable.tsx b/apps/erp/app/modules/inventory/ui/Kanbans/KanbansTable.tsx
index 92777229b4..bc2fe3fee4 100644
--- a/apps/erp/app/modules/inventory/ui/Kanbans/KanbansTable.tsx
+++ b/apps/erp/app/modules/inventory/ui/Kanbans/KanbansTable.tsx
@@ -582,7 +582,7 @@ const KanbansTable = memo(
</>
);
},
- [params, permissions]
+ [params, permissions, items.find]
);
const renderActions = useCallback((selectedRows: typeof data) => {
diff --git a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx
index 0bd3f616fb..d70f9f997d 100644
--- a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx
+++ b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx
@@ -69,12 +69,9 @@ import type {
BatchProperty,
ItemTracking,
Receipt,
- ReceiptLine,
-} from "~/modules/inventory";
-import {
- ShelfForm,
- splitValidator
+ ReceiptLine
} from "~/modules/inventory";
+import { ShelfForm, splitValidator } from "~/modules/inventory";
import { getDocumentType } from "~/modules/shared/shared.service";
import type { action as receiptLinesUpdateAction } from "~/routes/x+/receipt+/lines.update";
import { useItems } from "~/stores";
diff --git a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx
index 0737e32dc3..7e1224c6a2 100644
--- a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx
+++ b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx
@@ -92,7 +92,7 @@ const ReceiptPostModal = ({ onClose }: { onClose: () => void }) => {
return attributes["Receipt Line"] === line.id;
});
- const attributes = trackedEntity?.attributes as
+ const _attributes = trackedEntity?.attributes as
| TrackedEntityAttributes
| undefined;
if (!trackedEntity?.readableId) {
@@ -112,7 +112,7 @@ const ReceiptPostModal = ({ onClose }: { onClose: () => void }) => {
});
const quantityWithSerial = trackedEntities?.reduce((acc, tracking) => {
- const attributes = tracking.attributes as TrackedEntityAttributes;
+ const _attributes = tracking.attributes as TrackedEntityAttributes;
const serialNumber = tracking.readableId;
return acc + (serialNumber ? 1 : 0);
diff --git a/apps/erp/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsx b/apps/erp/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsx
index 57a03c475f..8f26d52d06 100644
--- a/apps/erp/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsx
+++ b/apps/erp/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsx
@@ -14,7 +14,7 @@ import { Hyperlink, New, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
import { useCustomColumns } from "~/hooks/useCustomColumns";
-import type { ShippingMethod, } from "~/modules/inventory";
+import type { ShippingMethod } from "~/modules/inventory";
import { shippingCarrierType } from "~/modules/inventory";
import { path } from "~/utils/path";
diff --git a/apps/erp/app/modules/inventory/ui/Traceability/TrackedEntitiesTable.tsx b/apps/erp/app/modules/inventory/ui/Traceability/TrackedEntitiesTable.tsx
index f05b94b489..b9648d8aeb 100644
--- a/apps/erp/app/modules/inventory/ui/Traceability/TrackedEntitiesTable.tsx
+++ b/apps/erp/app/modules/inventory/ui/Traceability/TrackedEntitiesTable.tsx
@@ -14,7 +14,7 @@ import { useNavigate } from "react-router";
import { Hyperlink, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions } from "~/hooks";
-import type { TrackedEntity, } from "~/modules/inventory";
+import type { TrackedEntity } from "~/modules/inventory";
import { trackedEntityStatus } from "~/modules/inventory";
import { getLinkToItemDetails } from "~/modules/items/ui/Item/ItemForm";
import type { Item } from "~/stores/items";
diff --git a/apps/erp/app/modules/invoicing/invoicing.service.ts b/apps/erp/app/modules/invoicing/invoicing.service.ts
index 837c9c755c..72cc543d4e 100644
--- a/apps/erp/app/modules/invoicing/invoicing.service.ts
+++ b/apps/erp/app/modules/invoicing/invoicing.service.ts
@@ -1,7 +1,7 @@
import type { Database, Json } from "@carbon/database";
import { getLocalTimeZone, now, today } from "@internationalized/date";
import type { SupabaseClient } from "@supabase/supabase-js";
-import { FunctionRegion, } from "@supabase/supabase-js";
+import { FunctionRegion } from "@supabase/supabase-js";
import type { z } from "zod";
import {
getSupplierPayment,
diff --git a/apps/erp/app/modules/people/ui/Person/PersonAbilities.tsx b/apps/erp/app/modules/people/ui/Person/PersonAbilities.tsx
index 4f47301b12..874c032c56 100644
--- a/apps/erp/app/modules/people/ui/Person/PersonAbilities.tsx
+++ b/apps/erp/app/modules/people/ui/Person/PersonAbilities.tsx
@@ -5,9 +5,7 @@ import type { IconType } from "react-icons";
import { BsBarChartFill, BsCheckLg } from "react-icons/bs";
import { FaThumbsUp } from "react-icons/fa";
import { Link } from "react-router";
-import type {
- EmployeeAbility,
-} from "~/modules/resources/types";
+import type { EmployeeAbility } from "~/modules/resources/types";
import {
AbilityEmployeeStatus,
getTrainingStatus
diff --git a/apps/erp/app/modules/production/ui/Schedule/Kanban/context/KanbanContext.tsx b/apps/erp/app/modules/production/ui/Schedule/Kanban/context/KanbanContext.tsx
index 6688258c17..bcc0c42645 100644
--- a/apps/erp/app/modules/production/ui/Schedule/Kanban/context/KanbanContext.tsx
+++ b/apps/erp/app/modules/production/ui/Schedule/Kanban/context/KanbanContext.tsx
@@ -1,4 +1,4 @@
-import type { ReactNode, } from "react";
+import type { ReactNode } from "react";
import { createContext, useContext } from "react";
import type { DisplaySettings } from "../types";
diff --git a/apps/erp/app/modules/production/ui/useProductionSubmodules.tsx b/apps/erp/app/modules/production/ui/useProductionSubmodules.tsx
index cbc669bc24..d49a49de89 100644
--- a/apps/erp/app/modules/production/ui/useProductionSubmodules.tsx
+++ b/apps/erp/app/modules/production/ui/useProductionSubmodules.tsx
@@ -1,13 +1,10 @@
import {
- LuCalendarClock,
LuChartLine,
- LuCircleAlert,
LuHardHat,
LuListChecks,
LuSquareChartGantt,
LuSquareKanban,
- LuTrash,
- LuWrench
+ LuTrash
} from "react-icons/lu";
import { usePermissions } from "~/hooks";
import { useSavedViews } from "~/hooks/useSavedViews";
diff --git a/apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQsTable.tsx b/apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQsTable.tsx
index 7af484b889..bfeb185fab 100644
--- a/apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQsTable.tsx
+++ b/apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQsTable.tsx
@@ -218,7 +218,7 @@ const PurchasingRFQsTable = memo(
];
return [...defaultColumns, ...customColumns];
- }, [people, customColumns]);
+ }, [people, customColumns, suppliers.find, suppliers.map]);
const renderContextMenu = useMemo(() => {
return (row: PurchasingRFQ) => (
diff --git a/apps/erp/app/modules/quality/ui/Issue/IssueContent.tsx b/apps/erp/app/modules/quality/ui/Issue/IssueContent.tsx
index 027ba1e64c..d5e2f03db5 100644
--- a/apps/erp/app/modules/quality/ui/Issue/IssueContent.tsx
+++ b/apps/erp/app/modules/quality/ui/Issue/IssueContent.tsx
@@ -1,7 +1,5 @@
import { useCarbon } from "@carbon/auth";
-import type {
- JSONContent,
-} from "@carbon/react";
+import type { JSONContent } from "@carbon/react";
import {
Card,
CardContent,
diff --git a/apps/erp/app/modules/quality/ui/RiskRegister/RiskRegisterForm.tsx b/apps/erp/app/modules/quality/ui/RiskRegister/RiskRegisterForm.tsx
index 23ae4df220..c5d814e5bd 100644
--- a/apps/erp/app/modules/quality/ui/RiskRegister/RiskRegisterForm.tsx
+++ b/apps/erp/app/modules/quality/ui/RiskRegister/RiskRegisterForm.tsx
@@ -107,7 +107,7 @@ const RiskRegisterForm = ({
} else if (fetcher.state === "idle" && fetcher.data?.success === false) {
toast.error(`Failed to save risk: ${fetcher.data?.error?.message}`);
}
- }, [fetcher.data?.success, fetcher.data?.error]);
+ }, [fetcher.data?.success, fetcher.data?.error, fetcher.state, onClose]);
const isEditing = !!initialValues.id;
const isDisabled = isEditing
diff --git a/apps/erp/app/modules/quality/ui/RiskRegister/RiskRegistersTable.tsx b/apps/erp/app/modules/quality/ui/RiskRegister/RiskRegistersTable.tsx
index 10f4bdf043..031f545273 100644
--- a/apps/erp/app/modules/quality/ui/RiskRegister/RiskRegistersTable.tsx
+++ b/apps/erp/app/modules/quality/ui/RiskRegister/RiskRegistersTable.tsx
@@ -215,7 +215,7 @@ const RiskRegistersTable = memo(({ data, count }: RiskRegistersTableProps) => {
}
];
return defaultColumns;
- }, [people, items]);
+ }, [people, items, workCenters.options.map]);
const renderContextMenu = useCallback<(row: Risk) => JSX.Element>(
(row) => (
diff --git a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchNotes.tsx b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchNotes.tsx
index 9d426c12cb..0c84c6981b 100644
--- a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchNotes.tsx
+++ b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchNotes.tsx
@@ -1,10 +1,7 @@
import { useCarbon } from "@carbon/auth";
-import type {
- JSONContent,
-} from "@carbon/react";
+import type { JSONContent } from "@carbon/react";
import {
Card,
- CardAction,
CardContent,
CardDescription,
CardHeader,
@@ -31,7 +28,7 @@ import { Editor } from "@carbon/react/Editor";
import { convertKbToString } from "@carbon/utils";
import type { FileObject } from "@supabase/storage-js";
import { nanoid } from "nanoid";
-import type { ChangeEvent, } from "react";
+import type { ChangeEvent } from "react";
import { Suspense, useCallback, useState } from "react";
import { LuEllipsisVertical, LuUpload } from "react-icons/lu";
import { Await, useRevalidator } from "react-router";
diff --git a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchesTable.tsx b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchesTable.tsx
index 92987b3371..99d01eb66d 100644
--- a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchesTable.tsx
+++ b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchesTable.tsx
@@ -326,7 +326,7 @@ const MaintenanceDispatchesTable = memo(
}
}
];
- }, [workCenters]);
+ }, [workCenters, failureModes.find, failureModes?.map, people.map]);
const renderContextMenu = useCallback(
(row: MaintenanceDispatch) => {
diff --git a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceSource.tsx b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceSource.tsx
index 966e23e436..3f52ea4403 100644
--- a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceSource.tsx
+++ b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceSource.tsx
@@ -1,10 +1,5 @@
import { Badge, cn } from "@carbon/react";
-import {
- LuCalendarClock,
- LuRefreshCcwDot,
- LuShieldX,
- LuTriangleAlert
-} from "react-icons/lu";
+import { LuCalendarClock, LuRefreshCcwDot, LuShieldX } from "react-icons/lu";
import type { maintenanceSource } from "../../resources.models";
type MaintenanceSourceProps = {
diff --git a/apps/erp/app/modules/sales/ui/Customers/CustomersTable.tsx b/apps/erp/app/modules/sales/ui/Customers/CustomersTable.tsx
index b572abf817..025af7622c 100644
--- a/apps/erp/app/modules/sales/ui/Customers/CustomersTable.tsx
+++ b/apps/erp/app/modules/sales/ui/Customers/CustomersTable.tsx
@@ -14,7 +14,6 @@ import {
LuCalendar,
LuEuro,
LuGlobe,
- LuGroup,
LuPencil,
LuPhone,
LuPrinter,
diff --git a/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleDetails.tsx b/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleDetails.tsx
index 5b6017cbce..a6588ebec2 100644
--- a/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleDetails.tsx
+++ b/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleDetails.tsx
@@ -57,7 +57,7 @@ const ApprovalRuleDetails = memo(
)}
{/* Approver Groups */}
- <FieldItem icon={LuUsers} label="Approvers">
+ <FieldItem icon={LuUsers} label="Who Can Approve">
{rule.approverGroupIds && rule.approverGroupIds.length > 0 ? (
<UserSelect
value={rule.approverGroupIds ?? []}
diff --git a/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleForm.tsx b/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleForm.tsx
index 16b3f6f937..bdcf776bc4 100644
--- a/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleForm.tsx
+++ b/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleForm.tsx
@@ -109,9 +109,10 @@ const ApprovalRuleForm = ({
<Users
name="approverGroupIds"
- label="Approvers"
+ label="Who Can Approve"
type="employee"
- placeholder="Select approver groups"
+ placeholder="Select groups or individuals"
+ helperText="All members of selected groups and selected individuals will be able to approve requests"
/>
<Employee
diff --git a/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldsTable.tsx b/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldsTable.tsx
index 85d60ea5dd..99b415fb40 100644
--- a/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldsTable.tsx
+++ b/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldsTable.tsx
@@ -8,7 +8,7 @@ import { Link, useNavigate } from "react-router";
import { Hyperlink, Table } from "~/components";
import { Enumerable } from "~/components/Enumerable";
import { usePermissions, useUrlParams } from "~/hooks";
-import type { CustomFieldsTableType, } from "~/modules/settings";
+import type { CustomFieldsTableType } from "~/modules/settings";
import { modulesType } from "~/modules/settings";
import { tablesWithTags } from "~/modules/shared";
import { path } from "~/utils/path";
diff --git a/apps/erp/app/routes/api+/ai+/chat+/agents/shared/agent.ts b/apps/erp/app/routes/api+/ai+/chat+/agents/shared/agent.ts
index d245252339..964605c274 100644
--- a/apps/erp/app/routes/api+/ai+/chat+/agents/shared/agent.ts
+++ b/apps/erp/app/routes/api+/ai+/chat+/agents/shared/agent.ts
@@ -1,6 +1,6 @@
import { openai } from "@ai-sdk/openai";
import type { AgentConfig } from "@ai-sdk-tools/agents";
-import { Agent, } from "@ai-sdk-tools/agents";
+import { Agent } from "@ai-sdk-tools/agents";
import { UpstashProvider } from "@ai-sdk-tools/memory/upstash";
import { UPSTASH_REDIS_REST_TOKEN, UPSTASH_REDIS_REST_URL } from "@carbon/auth";
import { Redis } from "@upstash/redis";
diff --git a/apps/erp/app/routes/api+/assign.ts b/apps/erp/app/routes/api+/assign.ts
index ab98bd46fc..2a99f1249d 100644
--- a/apps/erp/app/routes/api+/assign.ts
+++ b/apps/erp/app/routes/api+/assign.ts
@@ -3,7 +3,7 @@ import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { NotificationEvent } from "@carbon/notifications";
import { tasks } from "@trigger.dev/sdk";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { assign } from "~/modules/shared/shared.server";
diff --git a/apps/erp/app/routes/api+/integrations.linear.issue.create.ts b/apps/erp/app/routes/api+/integrations.linear.issue.create.ts
index c378dba3bd..3ddcd94fe8 100644
--- a/apps/erp/app/routes/api+/integrations.linear.issue.create.ts
+++ b/apps/erp/app/routes/api+/integrations.linear.issue.create.ts
@@ -6,7 +6,7 @@ import {
linkActionToLinearIssue
} from "@carbon/ee/linear";
import type { ActionFunction, LoaderFunction } from "react-router";
-import { data, } from "react-router";
+import { data } from "react-router";
import { getIssueAction } from "~/modules/quality/quality.service";
const linear = getLinearClient();
diff --git a/apps/erp/app/routes/api+/integrations.linear.issue.link.ts b/apps/erp/app/routes/api+/integrations.linear.issue.link.ts
index 9de5e19cb1..22c62fbd48 100644
--- a/apps/erp/app/routes/api+/integrations.linear.issue.link.ts
+++ b/apps/erp/app/routes/api+/integrations.linear.issue.link.ts
@@ -6,7 +6,7 @@ import {
unlinkActionFromLinearIssue
} from "@carbon/ee/linear";
import type { ActionFunction, LoaderFunction } from "react-router";
-import { data, } from "react-router";
+import { data } from "react-router";
import { getIssueAction } from "~/modules/quality/quality.service";
const linear = getLinearClient();
diff --git a/apps/erp/app/routes/api+/integrations.linear.issue.sync-notes.ts b/apps/erp/app/routes/api+/integrations.linear.issue.sync-notes.ts
index e1f5e66b41..fbc875697d 100644
--- a/apps/erp/app/routes/api+/integrations.linear.issue.sync-notes.ts
+++ b/apps/erp/app/routes/api+/integrations.linear.issue.sync-notes.ts
@@ -1,13 +1,11 @@
import { requirePermissions } from "@carbon/auth/auth.server";
-import type {
- TiptapDocument,
-} from "@carbon/ee/linear";
+import type { TiptapDocument } from "@carbon/ee/linear";
import {
getLinearClient,
getLinearIssueFromExternalId,
tiptapToMarkdown
} from "@carbon/ee/linear";
-import type { ActionFunction, } from "react-router";
+import type { ActionFunction } from "react-router";
import { data } from "react-router";
const linear = getLinearClient();
diff --git a/apps/erp/app/routes/api+/integrations.slack.interactive.ts b/apps/erp/app/routes/api+/integrations.slack.interactive.ts
index f59bc1ce25..c4b0f118d9 100644
--- a/apps/erp/app/routes/api+/integrations.slack.interactive.ts
+++ b/apps/erp/app/routes/api+/integrations.slack.interactive.ts
@@ -8,7 +8,7 @@ import {
} from "@carbon/ee/slack.server";
import type { SupabaseClient } from "@supabase/supabase-js";
import { FunctionRegion } from "@supabase/supabase-js";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { z } from "zod";
import {
diff --git a/apps/erp/app/routes/api+/integrations.slack.oauth.ts b/apps/erp/app/routes/api+/integrations.slack.oauth.ts
index 2f62489b08..5fb7d4b232 100644
--- a/apps/erp/app/routes/api+/integrations.slack.oauth.ts
+++ b/apps/erp/app/routes/api+/integrations.slack.oauth.ts
@@ -11,7 +11,7 @@ import {
getSlackInstaller,
slackOAuthTokenResponseSchema
} from "@carbon/ee/slack.server";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { data, redirect } from "react-router";
import { z } from "zod";
import { upsertCompanyIntegration } from "~/modules/settings/settings.server";
diff --git a/apps/erp/app/routes/api+/item.$type.ts b/apps/erp/app/routes/api+/item.$type.ts
index 29a1f71887..b37d170bfc 100644
--- a/apps/erp/app/routes/api+/item.$type.ts
+++ b/apps/erp/app/routes/api+/item.$type.ts
@@ -2,7 +2,7 @@ import { assertIsPost, error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { itemValidator, updateItem } from "~/modules/items";
diff --git a/apps/erp/app/routes/api+/items.$id.$locationId.forecast.ts b/apps/erp/app/routes/api+/items.$id.$locationId.forecast.ts
index 9d65a5bb40..2cb4296a82 100644
--- a/apps/erp/app/routes/api+/items.$id.$locationId.forecast.ts
+++ b/apps/erp/app/routes/api+/items.$id.$locationId.forecast.ts
@@ -3,7 +3,7 @@ import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { getLocalTimeZone, startOfWeek, today } from "@internationalized/date";
import type { LoaderFunctionArgs } from "react-router";
-import { data, } from "react-router";
+import { data } from "react-router";
import {
getItemDemand,
getItemQuantities,
diff --git a/apps/erp/app/routes/api+/kanban.$id.tsx b/apps/erp/app/routes/api+/kanban.$id.tsx
index 3966d5cb83..39e05fd5e1 100644
--- a/apps/erp/app/routes/api+/kanban.$id.tsx
+++ b/apps/erp/app/routes/api+/kanban.$id.tsx
@@ -4,10 +4,10 @@ import type { Database } from "@carbon/database";
import { Loading } from "@carbon/react";
import { getLocalTimeZone, today } from "@internationalized/date";
import type { SupabaseClient } from "@supabase/supabase-js";
-import { FunctionRegion, } from "@supabase/supabase-js";
+import { FunctionRegion } from "@supabase/supabase-js";
import { tasks } from "@trigger.dev/sdk";
import { Suspense } from "react";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { Await, useLoaderData } from "react-router";
import { Redirect } from "~/components/Redirect";
diff --git a/apps/erp/app/routes/api+/kanban.complete.$id.tsx b/apps/erp/app/routes/api+/kanban.complete.$id.tsx
index 42aae794ee..141afe867a 100644
--- a/apps/erp/app/routes/api+/kanban.complete.$id.tsx
+++ b/apps/erp/app/routes/api+/kanban.complete.$id.tsx
@@ -2,7 +2,7 @@ import { notFound } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import type { Database } from "@carbon/database";
import type { SupabaseClient } from "@supabase/supabase-js";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { data, redirect } from "react-router";
import { getKanban } from "~/modules/inventory";
import { getActiveJobOperationByJobId } from "~/modules/production";
diff --git a/apps/erp/app/routes/api+/kanban.link.$id.tsx b/apps/erp/app/routes/api+/kanban.link.$id.tsx
index 6e2fd260e5..2e905cf47f 100644
--- a/apps/erp/app/routes/api+/kanban.link.$id.tsx
+++ b/apps/erp/app/routes/api+/kanban.link.$id.tsx
@@ -1,6 +1,6 @@
import { notFound } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getKanban } from "~/modules/inventory";
import { getActiveJobOperationByJobId } from "~/modules/production";
diff --git a/apps/erp/app/routes/api+/kanban.start.$id.tsx b/apps/erp/app/routes/api+/kanban.start.$id.tsx
index 413871aafa..6ed6670085 100644
--- a/apps/erp/app/routes/api+/kanban.start.$id.tsx
+++ b/apps/erp/app/routes/api+/kanban.start.$id.tsx
@@ -4,7 +4,7 @@ import type { Database } from "@carbon/database";
import { Loading } from "@carbon/react";
import type { SupabaseClient } from "@supabase/supabase-js";
import { Suspense } from "react";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { Await, useLoaderData } from "react-router";
import { Redirect } from "~/components/Redirect";
import { getKanban } from "~/modules/inventory";
diff --git a/apps/erp/app/routes/api+/messaging.notify.ts b/apps/erp/app/routes/api+/messaging.notify.ts
index 714deae498..35dd6ddf95 100644
--- a/apps/erp/app/routes/api+/messaging.notify.ts
+++ b/apps/erp/app/routes/api+/messaging.notify.ts
@@ -4,7 +4,7 @@ import { flash } from "@carbon/auth/session.server";
import type { notifyTask } from "@carbon/jobs/trigger/notify";
import { NotificationEvent } from "@carbon/notifications";
import { tasks } from "@trigger.dev/sdk";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { z } from "zod";
diff --git a/apps/erp/app/routes/api+/quality.documents.seed.ts b/apps/erp/app/routes/api+/quality.documents.seed.ts
index 9ed6565d45..7480aace36 100644
--- a/apps/erp/app/routes/api+/quality.documents.seed.ts
+++ b/apps/erp/app/routes/api+/quality.documents.seed.ts
@@ -1,7 +1,7 @@
import { assertIsPost } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import template from "lodash.template";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { documents } from "./data/quality";
diff --git a/apps/erp/app/routes/file+/entity+/$id.labels[.]zpl.tsx b/apps/erp/app/routes/file+/entity+/$id.labels[.]zpl.tsx
index 051a6072d2..464726c068 100644
--- a/apps/erp/app/routes/file+/entity+/$id.labels[.]zpl.tsx
+++ b/apps/erp/app/routes/file+/entity+/$id.labels[.]zpl.tsx
@@ -1,7 +1,7 @@
import { requirePermissions } from "@carbon/auth/auth.server";
import { generateProductLabelZPL } from "@carbon/documents/zpl";
import { labelSizes } from "@carbon/utils";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { path } from "~/utils/path";
import { getEntityLabelData } from "./labels.server";
diff --git a/apps/erp/app/routes/file+/kanban+/$id.$action[.]png.tsx b/apps/erp/app/routes/file+/kanban+/$id.$action[.]png.tsx
index 8516eabb73..f4e5ae44d4 100644
--- a/apps/erp/app/routes/file+/kanban+/$id.$action[.]png.tsx
+++ b/apps/erp/app/routes/file+/kanban+/$id.$action[.]png.tsx
@@ -1,7 +1,7 @@
import { requirePermissions } from "@carbon/auth/auth.server";
import { generateQRCodeBuffer } from "@carbon/documents/qr";
import type { LoaderFunctionArgs } from "react-router";
-import { data, } from "react-router";
+import { data } from "react-router";
import { getKanban } from "~/modules/inventory/inventory.service";
import { path } from "~/utils/path";
diff --git a/apps/erp/app/routes/file+/operation+/$id.labels[.]zpl.tsx b/apps/erp/app/routes/file+/operation+/$id.labels[.]zpl.tsx
index 8e9d63f581..5d4b3d2337 100644
--- a/apps/erp/app/routes/file+/operation+/$id.labels[.]zpl.tsx
+++ b/apps/erp/app/routes/file+/operation+/$id.labels[.]zpl.tsx
@@ -1,7 +1,7 @@
import { requirePermissions } from "@carbon/auth/auth.server";
import { generateProductLabelZPL } from "@carbon/documents/zpl";
import { labelSizes } from "@carbon/utils";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getTrackedEntitiesByMakeMethodId } from "~/modules/inventory";
import { getCompanySettings } from "~/modules/settings";
diff --git a/apps/erp/app/routes/file+/receipt+/$id.labels[.]zpl.tsx b/apps/erp/app/routes/file+/receipt+/$id.labels[.]zpl.tsx
index 3329c9fee1..3215b950f6 100644
--- a/apps/erp/app/routes/file+/receipt+/$id.labels[.]zpl.tsx
+++ b/apps/erp/app/routes/file+/receipt+/$id.labels[.]zpl.tsx
@@ -2,7 +2,7 @@ import { requirePermissions } from "@carbon/auth/auth.server";
import { generateProductLabelZPL } from "@carbon/documents/zpl";
import type { TrackedEntityAttributes } from "@carbon/utils";
import { labelSizes } from "@carbon/utils";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getReceiptTracking } from "~/modules/inventory/inventory.service";
import { getCompanySettings } from "~/modules/settings/settings.service";
diff --git a/apps/erp/app/routes/file+/shipment+/$id.labels[.]zpl.tsx b/apps/erp/app/routes/file+/shipment+/$id.labels[.]zpl.tsx
index 50ddac557c..c455684a19 100644
--- a/apps/erp/app/routes/file+/shipment+/$id.labels[.]zpl.tsx
+++ b/apps/erp/app/routes/file+/shipment+/$id.labels[.]zpl.tsx
@@ -2,7 +2,7 @@ import { requirePermissions } from "@carbon/auth/auth.server";
import { generateProductLabelZPL } from "@carbon/documents/zpl";
import type { TrackedEntityAttributes } from "@carbon/utils";
import { labelSizes } from "@carbon/utils";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getShipmentTracking } from "~/modules/inventory/inventory.service";
import { getCompanySettings } from "~/modules/settings/settings.service";
diff --git a/apps/erp/app/routes/oauth+/token.tsx b/apps/erp/app/routes/oauth+/token.tsx
index 73eb6c7924..b102db1dde 100644
--- a/apps/erp/app/routes/oauth+/token.tsx
+++ b/apps/erp/app/routes/oauth+/token.tsx
@@ -1,6 +1,6 @@
import { getCarbonServiceRole } from "@carbon/auth";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { z } from "zod";
diff --git a/apps/erp/app/routes/onboarding+/_layout.tsx b/apps/erp/app/routes/onboarding+/_layout.tsx
index 9121245a68..2a5995b9a2 100644
--- a/apps/erp/app/routes/onboarding+/_layout.tsx
+++ b/apps/erp/app/routes/onboarding+/_layout.tsx
@@ -3,8 +3,10 @@ import { requirePermissions } from "@carbon/auth/auth.server";
import { VStack } from "@carbon/react";
import { getStripeCustomerByCompanyId } from "@carbon/stripe/stripe.server";
import { Edition } from "@carbon/utils";
-import type { ShouldRevalidateFunction } from "react-router";
-import type { LoaderFunctionArgs, } from "react-router";
+import type {
+ LoaderFunctionArgs,
+ ShouldRevalidateFunction
+} from "react-router";
import { Outlet, redirect } from "react-router";
import { getLocationsList } from "~/modules/resources";
import { getCompany } from "~/modules/settings";
diff --git a/apps/erp/app/routes/onboarding+/company.tsx b/apps/erp/app/routes/onboarding+/company.tsx
index 7280b5f023..707b153dcb 100644
--- a/apps/erp/app/routes/onboarding+/company.tsx
+++ b/apps/erp/app/routes/onboarding+/company.tsx
@@ -20,14 +20,8 @@ import {
import { Edition } from "@carbon/utils";
import { getLocalTimeZone } from "@internationalized/date";
import { tasks } from "@trigger.dev/sdk";
-import type {
- ActionFunctionArgs,
-} from "react-router";
-import {
- Link,
- redirect,
- useLoaderData
-} from "react-router";
+import type { ActionFunctionArgs } from "react-router";
+import { Link, redirect, useLoaderData } from "react-router";
import {
AddressAutocomplete,
Currency,
diff --git a/apps/erp/app/routes/onboarding+/plan.tsx b/apps/erp/app/routes/onboarding+/plan.tsx
index 693b108367..5909f4a078 100644
--- a/apps/erp/app/routes/onboarding+/plan.tsx
+++ b/apps/erp/app/routes/onboarding+/plan.tsx
@@ -17,15 +17,8 @@ import { Edition } from "@carbon/utils";
import { useLocale } from "@react-aria/i18n";
import { useMemo } from "react";
import { LuGraduationCap, LuMoveLeft, LuPhoneCall } from "react-icons/lu";
-import type {
- ActionFunctionArgs,
-} from "react-router";
-import {
- Form,
- redirect,
- useFetcher,
- useLoaderData
-} from "react-router";
+import type { ActionFunctionArgs } from "react-router";
+import { Form, redirect, useFetcher, useLoaderData } from "react-router";
import { getCompany, getPlans } from "~/modules/settings";
import { path } from "~/utils/path";
diff --git a/apps/erp/app/routes/onboarding+/theme.tsx b/apps/erp/app/routes/onboarding+/theme.tsx
index 6e4f907091..61e7c1452b 100644
--- a/apps/erp/app/routes/onboarding+/theme.tsx
+++ b/apps/erp/app/routes/onboarding+/theme.tsx
@@ -14,7 +14,7 @@ import {
VStack
} from "@carbon/react";
import { useMode } from "@carbon/remix";
-import type { Theme, } from "@carbon/utils";
+import type { Theme } from "@carbon/utils";
import { themes } from "@carbon/utils";
import { useEffect, useRef, useState } from "react";
import { BiMoon, BiSun } from "react-icons/bi";
@@ -29,7 +29,7 @@ import {
useSubmit
} from "react-router";
import { useOnboarding } from "~/hooks";
-import type { Theme as ThemeValue, } from "~/modules/settings";
+import type { Theme as ThemeValue } from "~/modules/settings";
import { themeValidator } from "~/modules/settings";
import type { action as modeAction } from "~/root";
import { getTheme, setTheme } from "~/services/theme.server";
diff --git a/apps/erp/app/routes/onboarding+/user.tsx b/apps/erp/app/routes/onboarding+/user.tsx
index c56667de0c..c9847d174e 100644
--- a/apps/erp/app/routes/onboarding+/user.tsx
+++ b/apps/erp/app/routes/onboarding+/user.tsx
@@ -12,14 +12,8 @@ import {
HStack,
VStack
} from "@carbon/react";
-import type {
- ActionFunctionArgs,
-} from "react-router";
-import {
- Link,
- redirect,
- useLoaderData
-} from "react-router";
+import type { ActionFunctionArgs } from "react-router";
+import { Link, redirect, useLoaderData } from "react-router";
import type { z } from "zod";
import { Hidden, Input, Submit } from "~/components/Form";
import { useOnboarding } from "~/hooks";
diff --git a/apps/erp/app/routes/x+/_index.tsx b/apps/erp/app/routes/x+/_index.tsx
index 75990797bf..e01d49afd6 100644
--- a/apps/erp/app/routes/x+/_index.tsx
+++ b/apps/erp/app/routes/x+/_index.tsx
@@ -2,7 +2,7 @@ import { Provider as ChatProvider } from "@ai-sdk-tools/store";
import { cn } from "@carbon/react";
import { getLocalTimeZone } from "@internationalized/date";
import { useLocale } from "@react-aria/i18n";
-import type { ComponentProps, } from "react";
+import type { ComponentProps } from "react";
import { useMemo } from "react";
import { Link } from "react-router";
import { ChatInterface } from "~/components/Chat";
diff --git a/apps/erp/app/routes/x+/customer+/$customerId.risks.tsx b/apps/erp/app/routes/x+/customer+/$customerId.risks.tsx
index 85ae57afe2..55808ca037 100644
--- a/apps/erp/app/routes/x+/customer+/$customerId.risks.tsx
+++ b/apps/erp/app/routes/x+/customer+/$customerId.risks.tsx
@@ -1,5 +1,5 @@
import { requirePermissions } from "@carbon/auth/auth.server";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { data, useParams } from "react-router";
import CustomerRiskRegister from "~/modules/sales/ui/Customer/CustomerRiskRegister";
diff --git a/apps/erp/app/routes/x+/documents+/favorite.tsx b/apps/erp/app/routes/x+/documents+/favorite.tsx
index c8b3aff673..e6bd1dbf41 100644
--- a/apps/erp/app/routes/x+/documents+/favorite.tsx
+++ b/apps/erp/app/routes/x+/documents+/favorite.tsx
@@ -2,7 +2,7 @@ import { error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { updateDocumentFavorite } from "~/modules/documents";
import { favoriteSchema } from "~/types/validators";
diff --git a/apps/erp/app/routes/x+/issue+/$id.association.delete.$type.$associationId.tsx b/apps/erp/app/routes/x+/issue+/$id.association.delete.$type.$associationId.tsx
index ff0690058b..0de5bd5370 100644
--- a/apps/erp/app/routes/x+/issue+/$id.association.delete.$type.$associationId.tsx
+++ b/apps/erp/app/routes/x+/issue+/$id.association.delete.$type.$associationId.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import {
deleteIssueAssociation,
diff --git a/apps/erp/app/routes/x+/issue+/$id.details.tsx b/apps/erp/app/routes/x+/issue+/$id.details.tsx
index d6ca040484..958820ee9f 100644
--- a/apps/erp/app/routes/x+/issue+/$id.details.tsx
+++ b/apps/erp/app/routes/x+/issue+/$id.details.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error, success } from "@carbon/auth";
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 type { JSONContent } from "@carbon/react";
import { Spinner, VStack } from "@carbon/react";
import { Suspense } from "react";
import type { ActionFunctionArgs, LoaderFunctionArgs } from "react-router";
diff --git a/apps/erp/app/routes/x+/issue+/$id.review.tsx b/apps/erp/app/routes/x+/issue+/$id.review.tsx
index 2b37f6f555..8b83d7104c 100644
--- a/apps/erp/app/routes/x+/issue+/$id.review.tsx
+++ b/apps/erp/app/routes/x+/issue+/$id.review.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import {
insertIssueReviewer,
diff --git a/apps/erp/app/routes/x+/issue+/action-tasks.order.tsx b/apps/erp/app/routes/x+/issue+/action-tasks.order.tsx
index dc2ec7d5eb..8103102d01 100644
--- a/apps/erp/app/routes/x+/issue+/action-tasks.order.tsx
+++ b/apps/erp/app/routes/x+/issue+/action-tasks.order.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
export async function action({ request }: ActionFunctionArgs) {
diff --git a/apps/erp/app/routes/x+/issue+/action.$id.due-date.tsx b/apps/erp/app/routes/x+/issue+/action.$id.due-date.tsx
index ce0ce9792d..f3fa8953a8 100644
--- a/apps/erp/app/routes/x+/issue+/action.$id.due-date.tsx
+++ b/apps/erp/app/routes/x+/issue+/action.$id.due-date.tsx
@@ -1,6 +1,6 @@
import { requirePermissions } from "@carbon/auth/auth.server";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { z } from "zod";
import { zfd } from "zod-form-data";
diff --git a/apps/erp/app/routes/x+/issue+/action.$id.processes.tsx b/apps/erp/app/routes/x+/issue+/action.$id.processes.tsx
index e13b243b9b..8cd675b8c8 100644
--- a/apps/erp/app/routes/x+/issue+/action.$id.processes.tsx
+++ b/apps/erp/app/routes/x+/issue+/action.$id.processes.tsx
@@ -1,5 +1,5 @@
import { requirePermissions } from "@carbon/auth/auth.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { z } from "zod";
import { updateIssueActionProcesses } from "~/modules/quality/quality.service";
diff --git a/apps/erp/app/routes/x+/issue+/task.$id.status.tsx b/apps/erp/app/routes/x+/issue+/task.$id.status.tsx
index d5175c9045..b305c6d0b4 100644
--- a/apps/erp/app/routes/x+/issue+/task.$id.status.tsx
+++ b/apps/erp/app/routes/x+/issue+/task.$id.status.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { notifyTaskStatusChanged } from "@carbon/ee/notifications";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import type { IssueInvestigationTask } from "~/modules/quality";
import { updateIssueTaskStatus } from "~/modules/quality";
diff --git a/apps/erp/app/routes/x+/issue+/task.supplier.tsx b/apps/erp/app/routes/x+/issue+/task.supplier.tsx
index 0db152ed5d..dde3478abd 100644
--- a/apps/erp/app/routes/x+/issue+/task.supplier.tsx
+++ b/apps/erp/app/routes/x+/issue+/task.supplier.tsx
@@ -1,7 +1,7 @@
import { error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
export async function action({ request, params }: ActionFunctionArgs) {
diff --git a/apps/erp/app/routes/x+/items+/delete.$itemId.tsx b/apps/erp/app/routes/x+/items+/delete.$itemId.tsx
index f33e562783..03b6daf357 100644
--- a/apps/erp/app/routes/x+/items+/delete.$itemId.tsx
+++ b/apps/erp/app/routes/x+/items+/delete.$itemId.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { deleteItem } from "~/modules/items";
import { path, requestReferrer } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/items+/methods+/get.tsx b/apps/erp/app/routes/x+/items+/methods+/get.tsx
index d157bb51f2..bd4213e0a5 100644
--- a/apps/erp/app/routes/x+/items+/methods+/get.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/get.tsx
@@ -1,7 +1,7 @@
import { getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { copyItem, getMethodValidator } from "~/modules/items";
import { path, requestReferrer } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/items+/methods+/material.$id.tsx b/apps/erp/app/routes/x+/items+/methods+/material.$id.tsx
index f12a9ee50f..8351aedf34 100644
--- a/apps/erp/app/routes/x+/items+/methods+/material.$id.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/material.$id.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { methodMaterialValidator, upsertMethodMaterial } from "~/modules/items";
import { setCustomFields } from "~/utils/form";
diff --git a/apps/erp/app/routes/x+/items+/methods+/material.delete.$id.tsx b/apps/erp/app/routes/x+/items+/methods+/material.delete.$id.tsx
index b2e33685a6..33e26c7921 100644
--- a/apps/erp/app/routes/x+/items+/methods+/material.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/material.delete.$id.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { deleteMethodMaterial } from "~/modules/items";
diff --git a/apps/erp/app/routes/x+/items+/methods+/material.new.tsx b/apps/erp/app/routes/x+/items+/methods+/material.new.tsx
index 562893db63..095922b218 100644
--- a/apps/erp/app/routes/x+/items+/methods+/material.new.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/material.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { methodMaterialValidator, upsertMethodMaterial } from "~/modules/items";
import { setCustomFields } from "~/utils/form";
diff --git a/apps/erp/app/routes/x+/items+/methods+/material.order.tsx b/apps/erp/app/routes/x+/items+/methods+/material.order.tsx
index ebc9ee49f9..5f890a4a38 100644
--- a/apps/erp/app/routes/x+/items+/methods+/material.order.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/material.order.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { updateMaterialOrder } from "~/modules/items";
diff --git a/apps/erp/app/routes/x+/items+/methods+/operation.$id.tsx b/apps/erp/app/routes/x+/items+/methods+/operation.$id.tsx
index eff688820b..c037d06933 100644
--- a/apps/erp/app/routes/x+/items+/methods+/operation.$id.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/operation.$id.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import {
methodOperationValidator,
diff --git a/apps/erp/app/routes/x+/items+/methods+/operation.$operationId.step.order.tsx b/apps/erp/app/routes/x+/items+/methods+/operation.$operationId.step.order.tsx
index 8d72042540..4bafa57f95 100644
--- a/apps/erp/app/routes/x+/items+/methods+/operation.$operationId.step.order.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/operation.$operationId.step.order.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { updateMethodOperationStepOrder } from "~/modules/production";
diff --git a/apps/erp/app/routes/x+/items+/methods+/operation.new.tsx b/apps/erp/app/routes/x+/items+/methods+/operation.new.tsx
index 595df633a6..0ce1a6e570 100644
--- a/apps/erp/app/routes/x+/items+/methods+/operation.new.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/operation.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import {
methodOperationValidator,
diff --git a/apps/erp/app/routes/x+/items+/methods+/operation.order.tsx b/apps/erp/app/routes/x+/items+/methods+/operation.order.tsx
index 6fea25cff6..469a480abf 100644
--- a/apps/erp/app/routes/x+/items+/methods+/operation.order.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/operation.order.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { updateOperationOrder } from "~/modules/items";
diff --git a/apps/erp/app/routes/x+/items+/methods+/operation.parameter.$id.tsx b/apps/erp/app/routes/x+/items+/methods+/operation.parameter.$id.tsx
index 709ea429a6..55b8708689 100644
--- a/apps/erp/app/routes/x+/items+/methods+/operation.parameter.$id.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/operation.parameter.$id.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertMethodOperationParameter } from "~/modules/items";
import { operationParameterValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/items+/methods+/operation.parameter.delete.$id.tsx b/apps/erp/app/routes/x+/items+/methods+/operation.parameter.delete.$id.tsx
index d3a24d30bc..0cf26d967d 100644
--- a/apps/erp/app/routes/x+/items+/methods+/operation.parameter.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/operation.parameter.delete.$id.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { deleteMethodOperationParameter } from "~/modules/items";
diff --git a/apps/erp/app/routes/x+/items+/methods+/operation.parameter.new.tsx b/apps/erp/app/routes/x+/items+/methods+/operation.parameter.new.tsx
index f2344fde45..92ec2e1053 100644
--- a/apps/erp/app/routes/x+/items+/methods+/operation.parameter.new.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/operation.parameter.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertMethodOperationParameter } from "~/modules/items";
import { operationParameterValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/items+/methods+/operation.step.$id.tsx b/apps/erp/app/routes/x+/items+/methods+/operation.step.$id.tsx
index f3fdacbd9e..3f3a2c8848 100644
--- a/apps/erp/app/routes/x+/items+/methods+/operation.step.$id.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/operation.step.$id.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertMethodOperationStep } from "~/modules/items";
import { operationStepValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/items+/methods+/operation.step.delete.$id.tsx b/apps/erp/app/routes/x+/items+/methods+/operation.step.delete.$id.tsx
index 80515a0e5c..64b10deb5f 100644
--- a/apps/erp/app/routes/x+/items+/methods+/operation.step.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/operation.step.delete.$id.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { deleteMethodOperationStep } from "~/modules/items";
diff --git a/apps/erp/app/routes/x+/items+/methods+/operation.step.new.tsx b/apps/erp/app/routes/x+/items+/methods+/operation.step.new.tsx
index 95cf4257ec..6f1ae16985 100644
--- a/apps/erp/app/routes/x+/items+/methods+/operation.step.new.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/operation.step.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertMethodOperationStep } from "~/modules/items";
import { operationStepValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/items+/methods+/operation.tool.$id.tsx b/apps/erp/app/routes/x+/items+/methods+/operation.tool.$id.tsx
index 7ae97ec85a..19bdddd8a3 100644
--- a/apps/erp/app/routes/x+/items+/methods+/operation.tool.$id.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/operation.tool.$id.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertMethodOperationTool } from "~/modules/items";
import { operationToolValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/items+/methods+/operation.tool.delete.$id.tsx b/apps/erp/app/routes/x+/items+/methods+/operation.tool.delete.$id.tsx
index a7d526cf00..2b5fa40d68 100644
--- a/apps/erp/app/routes/x+/items+/methods+/operation.tool.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/operation.tool.delete.$id.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { deleteMethodOperationTool } from "~/modules/items";
diff --git a/apps/erp/app/routes/x+/items+/methods+/operation.tool.new.tsx b/apps/erp/app/routes/x+/items+/methods+/operation.tool.new.tsx
index b68afb3818..b7242af840 100644
--- a/apps/erp/app/routes/x+/items+/methods+/operation.tool.new.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/operation.tool.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertMethodOperationTool } from "~/modules/items";
import { operationToolValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/items+/methods+/save.tsx b/apps/erp/app/routes/x+/items+/methods+/save.tsx
index 4a63e58458..2910c500e3 100644
--- a/apps/erp/app/routes/x+/items+/methods+/save.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/save.tsx
@@ -1,7 +1,7 @@
import { getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { copyItem, getMethodValidator } from "~/modules/items";
import { path, requestReferrer } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/items+/methods+/version.new.tsx b/apps/erp/app/routes/x+/items+/methods+/version.new.tsx
index ad822374fd..4acebc750d 100644
--- a/apps/erp/app/routes/x+/items+/methods+/version.new.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/version.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error, getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data, redirect } from "react-router";
import {
copyMakeMethod,
diff --git a/apps/erp/app/routes/x+/items+/methods+/versions.activate.$id.tsx b/apps/erp/app/routes/x+/items+/methods+/versions.activate.$id.tsx
index 4f0a68b6d2..1581011c70 100644
--- a/apps/erp/app/routes/x+/items+/methods+/versions.activate.$id.tsx
+++ b/apps/erp/app/routes/x+/items+/methods+/versions.activate.$id.tsx
@@ -1,6 +1,6 @@
import { assertIsPost, getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { activateMethodVersion } from "~/modules/items/items.service";
import { requestReferrer } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/job+/$jobId.configure.tsx b/apps/erp/app/routes/x+/job+/$jobId.configure.tsx
index 671971eacc..fcb9667850 100644
--- a/apps/erp/app/routes/x+/job+/$jobId.configure.tsx
+++ b/apps/erp/app/routes/x+/job+/$jobId.configure.tsx
@@ -3,7 +3,7 @@ import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import type { recalculateTask } from "@carbon/jobs/trigger/recalculate";
import { tasks } from "@trigger.dev/sdk";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { upsertJobMethod } from "~/modules/production";
import { path, requestReferrer } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/job+/$jobId.recalculate.tsx b/apps/erp/app/routes/x+/job+/$jobId.recalculate.tsx
index f3cbf5e7a1..b8a68d3a49 100644
--- a/apps/erp/app/routes/x+/job+/$jobId.recalculate.tsx
+++ b/apps/erp/app/routes/x+/job+/$jobId.recalculate.tsx
@@ -1,7 +1,7 @@
import { error, getCarbonServiceRole, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { recalculateJobRequirements } from "~/modules/production";
import { path, requestReferrer } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/job+/bulk.new.tsx b/apps/erp/app/routes/x+/job+/bulk.new.tsx
index 694784cd3d..763860983a 100644
--- a/apps/erp/app/routes/x+/job+/bulk.new.tsx
+++ b/apps/erp/app/routes/x+/job+/bulk.new.tsx
@@ -13,7 +13,7 @@ import {
toCalendarDateTime
} from "@internationalized/date";
import { tasks } from "@trigger.dev/sdk";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getDefaultShelfForJob } from "~/modules/inventory";
import { getItemReplenishment } from "~/modules/items";
diff --git a/apps/erp/app/routes/x+/job+/methods+/$jobId.material.$id.tsx b/apps/erp/app/routes/x+/job+/methods+/$jobId.material.$id.tsx
index 4286d52821..8fb7414611 100644
--- a/apps/erp/app/routes/x+/job+/methods+/$jobId.material.$id.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/$jobId.material.$id.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import {
jobMaterialValidator,
diff --git a/apps/erp/app/routes/x+/job+/methods+/$jobId.material.delete.$id.tsx b/apps/erp/app/routes/x+/job+/methods+/$jobId.material.delete.$id.tsx
index 11d8bd9a52..e8693cd2e8 100644
--- a/apps/erp/app/routes/x+/job+/methods+/$jobId.material.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/$jobId.material.delete.$id.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error, getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import {
deleteJobMaterial,
diff --git a/apps/erp/app/routes/x+/job+/methods+/$jobId.material.new.tsx b/apps/erp/app/routes/x+/job+/methods+/$jobId.material.new.tsx
index c6bee26263..974540ff93 100644
--- a/apps/erp/app/routes/x+/job+/methods+/$jobId.material.new.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/$jobId.material.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error, getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import {
jobMaterialValidator,
diff --git a/apps/erp/app/routes/x+/job+/methods+/$jobId.operation.$id.tsx b/apps/erp/app/routes/x+/job+/methods+/$jobId.operation.$id.tsx
index f1f704588a..4f5fde7658 100644
--- a/apps/erp/app/routes/x+/job+/methods+/$jobId.operation.$id.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/$jobId.operation.$id.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import {
jobOperationValidator,
diff --git a/apps/erp/app/routes/x+/job+/methods+/$jobId.operation.new.tsx b/apps/erp/app/routes/x+/job+/methods+/$jobId.operation.new.tsx
index 421d6dac50..dc94bf64ef 100644
--- a/apps/erp/app/routes/x+/job+/methods+/$jobId.operation.new.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/$jobId.operation.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error, getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import {
jobOperationValidator,
diff --git a/apps/erp/app/routes/x+/job+/methods+/$jobId.operation.order.tsx b/apps/erp/app/routes/x+/job+/methods+/$jobId.operation.order.tsx
index 729fa477d6..9c1cbd2060 100644
--- a/apps/erp/app/routes/x+/job+/methods+/$jobId.operation.order.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/$jobId.operation.order.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error, getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import {
recalculateJobOperationDependencies,
diff --git a/apps/erp/app/routes/x+/job+/methods+/event.delete.$id.tsx b/apps/erp/app/routes/x+/job+/methods+/event.delete.$id.tsx
index f563e2c182..42423a7516 100644
--- a/apps/erp/app/routes/x+/job+/methods+/event.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/event.delete.$id.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { deleteProductionEvent } from "~/modules/production";
import { path, requestReferrer } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/job+/methods+/get.tsx b/apps/erp/app/routes/x+/job+/methods+/get.tsx
index 6aa3ff994d..5818697d8c 100644
--- a/apps/erp/app/routes/x+/job+/methods+/get.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/get.tsx
@@ -1,7 +1,7 @@
import { getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data, redirect } from "react-router";
import {
getJobMethodValidator,
diff --git a/apps/erp/app/routes/x+/job+/methods+/material.order.tsx b/apps/erp/app/routes/x+/job+/methods+/material.order.tsx
index 7cc3f5bd2d..c2d56222dd 100644
--- a/apps/erp/app/routes/x+/job+/methods+/material.order.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/material.order.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { updateJobMaterialOrder } from "~/modules/production";
diff --git a/apps/erp/app/routes/x+/job+/methods+/operation.$operationId.step.order.tsx b/apps/erp/app/routes/x+/job+/methods+/operation.$operationId.step.order.tsx
index cd0fd9da3a..b59916121d 100644
--- a/apps/erp/app/routes/x+/job+/methods+/operation.$operationId.step.order.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/operation.$operationId.step.order.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { updateJobOperationStepOrder } from "~/modules/production";
diff --git a/apps/erp/app/routes/x+/job+/methods+/operation.parameter.$id.tsx b/apps/erp/app/routes/x+/job+/methods+/operation.parameter.$id.tsx
index 442f71ddf7..143585b0a8 100644
--- a/apps/erp/app/routes/x+/job+/methods+/operation.parameter.$id.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/operation.parameter.$id.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertJobOperationParameter } from "~/modules/production";
import { operationParameterValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/job+/methods+/operation.parameter.delete.$id.tsx b/apps/erp/app/routes/x+/job+/methods+/operation.parameter.delete.$id.tsx
index 4947a4b2f9..8ab855f71c 100644
--- a/apps/erp/app/routes/x+/job+/methods+/operation.parameter.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/operation.parameter.delete.$id.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { deleteJobOperationParameter } from "~/modules/production";
diff --git a/apps/erp/app/routes/x+/job+/methods+/operation.parameter.new.tsx b/apps/erp/app/routes/x+/job+/methods+/operation.parameter.new.tsx
index fb341d5fab..de60952d33 100644
--- a/apps/erp/app/routes/x+/job+/methods+/operation.parameter.new.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/operation.parameter.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertJobOperationParameter } from "~/modules/production";
import { operationParameterValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/job+/methods+/operation.procedure.sync.tsx b/apps/erp/app/routes/x+/job+/methods+/operation.procedure.sync.tsx
index 8a6c61881f..d9a3af0d15 100644
--- a/apps/erp/app/routes/x+/job+/methods+/operation.procedure.sync.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/operation.procedure.sync.tsx
@@ -3,7 +3,7 @@ import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
import { FunctionRegion } from "@supabase/supabase-js";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { procedureSyncValidator } from "~/modules/production";
diff --git a/apps/erp/app/routes/x+/job+/methods+/operation.status.tsx b/apps/erp/app/routes/x+/job+/methods+/operation.status.tsx
index a6835e5222..9428cce2ea 100644
--- a/apps/erp/app/routes/x+/job+/methods+/operation.status.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/operation.status.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import type { JobOperation } from "~/modules/production";
import { updateJobOperationStatus } from "~/modules/production";
diff --git a/apps/erp/app/routes/x+/job+/methods+/operation.step.$id.tsx b/apps/erp/app/routes/x+/job+/methods+/operation.step.$id.tsx
index f8ade5848d..c05ce7e5ab 100644
--- a/apps/erp/app/routes/x+/job+/methods+/operation.step.$id.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/operation.step.$id.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertJobOperationStep } from "~/modules/production";
import { operationStepValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/job+/methods+/operation.step.delete.$id.tsx b/apps/erp/app/routes/x+/job+/methods+/operation.step.delete.$id.tsx
index fd422f84af..31a6d3c7d5 100644
--- a/apps/erp/app/routes/x+/job+/methods+/operation.step.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/operation.step.delete.$id.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { deleteJobOperationStep } from "~/modules/production";
diff --git a/apps/erp/app/routes/x+/job+/methods+/operation.step.new.tsx b/apps/erp/app/routes/x+/job+/methods+/operation.step.new.tsx
index 15fe0a1f2e..a5851df7d0 100644
--- a/apps/erp/app/routes/x+/job+/methods+/operation.step.new.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/operation.step.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertJobOperationStep } from "~/modules/production";
import { operationStepValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/job+/methods+/operation.tool.$id.tsx b/apps/erp/app/routes/x+/job+/methods+/operation.tool.$id.tsx
index 5dcc7f3669..4ded8f5403 100644
--- a/apps/erp/app/routes/x+/job+/methods+/operation.tool.$id.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/operation.tool.$id.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertJobOperationTool } from "~/modules/production";
import { operationToolValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/job+/methods+/operation.tool.delete.$id.tsx b/apps/erp/app/routes/x+/job+/methods+/operation.tool.delete.$id.tsx
index f5fd9f9327..5771ff5e8d 100644
--- a/apps/erp/app/routes/x+/job+/methods+/operation.tool.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/operation.tool.delete.$id.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { deleteJobOperationTool } from "~/modules/production";
diff --git a/apps/erp/app/routes/x+/job+/methods+/operation.tool.new.tsx b/apps/erp/app/routes/x+/job+/methods+/operation.tool.new.tsx
index 9ff5069c53..5ed975713a 100644
--- a/apps/erp/app/routes/x+/job+/methods+/operation.tool.new.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/operation.tool.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertJobOperationTool } from "~/modules/production";
import { operationToolValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/job+/methods+/quantity.delete.$id.tsx b/apps/erp/app/routes/x+/job+/methods+/quantity.delete.$id.tsx
index 8b8f1afb7d..74c685a174 100644
--- a/apps/erp/app/routes/x+/job+/methods+/quantity.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/quantity.delete.$id.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { deleteProductionQuantity } from "~/modules/production";
import { path, requestReferrer } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/job+/methods+/save.tsx b/apps/erp/app/routes/x+/job+/methods+/save.tsx
index 242a5588ea..d0a592069e 100644
--- a/apps/erp/app/routes/x+/job+/methods+/save.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/save.tsx
@@ -1,7 +1,7 @@
import { getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data, redirect } from "react-router";
import {
getJobMethodValidator,
diff --git a/apps/erp/app/routes/x+/maintenance+/$dispatchId.events.tsx b/apps/erp/app/routes/x+/maintenance+/$dispatchId.events.tsx
index c7201729e6..b6fd1ba999 100644
--- a/apps/erp/app/routes/x+/maintenance+/$dispatchId.events.tsx
+++ b/apps/erp/app/routes/x+/maintenance+/$dispatchId.events.tsx
@@ -7,7 +7,6 @@ import {
Card,
CardContent,
CardHeader,
- CardTitle,
HStack,
VStack
} from "@carbon/react";
diff --git a/apps/erp/app/routes/x+/maintenance+/$dispatchId.tsx b/apps/erp/app/routes/x+/maintenance+/$dispatchId.tsx
index 44ce1512ba..b68af67650 100644
--- a/apps/erp/app/routes/x+/maintenance+/$dispatchId.tsx
+++ b/apps/erp/app/routes/x+/maintenance+/$dispatchId.tsx
@@ -1,7 +1,7 @@
import { error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { JSONContent, } from "@carbon/react";
+import type { JSONContent } from "@carbon/react";
import { VStack } from "@carbon/react";
import type { LoaderFunctionArgs } from "react-router";
import { Outlet, redirect, useLoaderData, useParams } from "react-router";
diff --git a/apps/erp/app/routes/x+/person+/_layout.tsx b/apps/erp/app/routes/x+/person+/_layout.tsx
index 330cf33537..58d2a31b54 100644
--- a/apps/erp/app/routes/x+/person+/_layout.tsx
+++ b/apps/erp/app/routes/x+/person+/_layout.tsx
@@ -1,12 +1,7 @@
import { requirePermissions } from "@carbon/auth/auth.server";
import { VStack } from "@carbon/react";
-import type {
- LoaderFunctionArgs,
- MetaFunction,
-} from "react-router";
-import {
- Outlet
-} from "react-router";
+import type { LoaderFunctionArgs, MetaFunction } from "react-router";
+import { Outlet } from "react-router";
export const meta: MetaFunction = () => {
return [{ title: "Carbon | People" }];
diff --git a/apps/erp/app/routes/x+/procedure+/$id.parameters.new.tsx b/apps/erp/app/routes/x+/procedure+/$id.parameters.new.tsx
index 51e10d774b..4089fd137e 100644
--- a/apps/erp/app/routes/x+/procedure+/$id.parameters.new.tsx
+++ b/apps/erp/app/routes/x+/procedure+/$id.parameters.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { procedureParameterValidator } from "~/modules/production/production.models";
import { upsertProcedureParameter } from "~/modules/production/production.service";
diff --git a/apps/erp/app/routes/x+/procedure+/$id.steps.new.tsx b/apps/erp/app/routes/x+/procedure+/$id.steps.new.tsx
index dfaaceac61..96259c6a23 100644
--- a/apps/erp/app/routes/x+/procedure+/$id.steps.new.tsx
+++ b/apps/erp/app/routes/x+/procedure+/$id.steps.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { procedureStepValidator } from "~/modules/production/production.models";
import { upsertProcedureStep } from "~/modules/production/production.service";
diff --git a/apps/erp/app/routes/x+/production+/_index.tsx b/apps/erp/app/routes/x+/production+/_index.tsx
index fdf97a637f..3772142e28 100644
--- a/apps/erp/app/routes/x+/production+/_index.tsx
+++ b/apps/erp/app/routes/x+/production+/_index.tsx
@@ -28,9 +28,7 @@ import {
TooltipTrigger,
useRealtimeChannel
} from "@carbon/react";
-import type {
- ChartConfig,
-} from "@carbon/react/Chart";
+import type { ChartConfig } from "@carbon/react/Chart";
import {
ChartContainer,
ChartLegend,
diff --git a/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.exchange-rate.tsx b/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.exchange-rate.tsx
index 209e2ac8d7..383ec1992d 100644
--- a/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.exchange-rate.tsx
+++ b/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.exchange-rate.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getCurrencyByCode } from "~/modules/accounting";
import { updatePurchaseInvoiceExchangeRate } from "~/modules/invoicing";
diff --git a/apps/erp/app/routes/x+/purchase-order+/$orderId.exchange-rate.tsx b/apps/erp/app/routes/x+/purchase-order+/$orderId.exchange-rate.tsx
index bae6a75226..774e75b98e 100644
--- a/apps/erp/app/routes/x+/purchase-order+/$orderId.exchange-rate.tsx
+++ b/apps/erp/app/routes/x+/purchase-order+/$orderId.exchange-rate.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getCurrencyByCode } from "~/modules/accounting";
import { updatePurchaseOrderExchangeRate } from "~/modules/purchasing";
diff --git a/apps/erp/app/routes/x+/purchasing+/orders.favorite.tsx b/apps/erp/app/routes/x+/purchasing+/orders.favorite.tsx
index 7939baefaa..0e54835e94 100644
--- a/apps/erp/app/routes/x+/purchasing+/orders.favorite.tsx
+++ b/apps/erp/app/routes/x+/purchasing+/orders.favorite.tsx
@@ -2,7 +2,7 @@ import { error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { updatePurchaseOrderFavorite } from "~/modules/purchasing";
import { favoriteSchema } from "~/types/validators";
diff --git a/apps/erp/app/routes/x+/purchasing+/planning.update.tsx b/apps/erp/app/routes/x+/purchasing+/planning.update.tsx
index 7919df5c18..7cf584c969 100644
--- a/apps/erp/app/routes/x+/purchasing+/planning.update.tsx
+++ b/apps/erp/app/routes/x+/purchasing+/planning.update.tsx
@@ -1,5 +1,5 @@
import { requirePermissions } from "@carbon/auth/auth.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { z } from "zod";
import { getCurrencyByCode } from "~/modules/accounting/accounting.service";
diff --git a/apps/erp/app/routes/x+/purchasing+/quotes.favorite.tsx b/apps/erp/app/routes/x+/purchasing+/quotes.favorite.tsx
index 16d7eb0aa1..24fd4a8d5c 100644
--- a/apps/erp/app/routes/x+/purchasing+/quotes.favorite.tsx
+++ b/apps/erp/app/routes/x+/purchasing+/quotes.favorite.tsx
@@ -2,7 +2,7 @@ import { error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { updateSupplierQuoteFavorite } from "~/modules/purchasing";
import { favoriteSchema } from "~/types/validators";
diff --git a/apps/erp/app/routes/x+/quality+/risks.$id.tsx b/apps/erp/app/routes/x+/quality+/risks.$id.tsx
index f707d56925..b66e1d45ab 100644
--- a/apps/erp/app/routes/x+/quality+/risks.$id.tsx
+++ b/apps/erp/app/routes/x+/quality+/risks.$id.tsx
@@ -4,15 +4,8 @@ import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
import { NotificationEvent } from "@carbon/notifications";
import { tasks } from "@trigger.dev/sdk";
-import type {
- ActionFunctionArgs,
- LoaderFunctionArgs,
-} from "react-router";
-import {
- data,
- useLoaderData,
- useNavigate
-} from "react-router";
+import type { ActionFunctionArgs, LoaderFunctionArgs } from "react-router";
+import { data, useLoaderData, useNavigate } from "react-router";
import invariant from "tiny-invariant";
import { riskRegisterValidator } from "~/modules/quality/quality.models";
import { getRisk, upsertRisk } from "~/modules/quality/quality.service";
diff --git a/apps/erp/app/routes/x+/quality+/risks.delete.$id.tsx b/apps/erp/app/routes/x+/quality+/risks.delete.$id.tsx
index 83a5e1447b..3439f0adea 100644
--- a/apps/erp/app/routes/x+/quality+/risks.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/quality+/risks.delete.$id.tsx
@@ -1,6 +1,6 @@
import { assertIsPost } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import invariant from "tiny-invariant";
import { deleteRisk } from "~/modules/quality/quality.service";
diff --git a/apps/erp/app/routes/x+/quality+/risks.new.tsx b/apps/erp/app/routes/x+/quality+/risks.new.tsx
index 6746f6f608..a59f57382b 100644
--- a/apps/erp/app/routes/x+/quality+/risks.new.tsx
+++ b/apps/erp/app/routes/x+/quality+/risks.new.tsx
@@ -5,12 +5,11 @@ import { validationError, validator } from "@carbon/form";
import { NotificationEvent } from "@carbon/notifications";
import { useDisclosure } from "@carbon/react";
import { tasks } from "@trigger.dev/sdk";
-import type { ActionFunctionArgs, } from "react-router";
-import { data, useNavigate } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
+import { data } from "react-router";
import { riskRegisterValidator } from "~/modules/quality/quality.models";
import { upsertRisk } from "~/modules/quality/quality.service";
import RiskRegisterForm from "~/modules/quality/ui/RiskRegister/RiskRegisterForm";
-import { path } from "~/utils/path";
export const action = async ({ request }: ActionFunctionArgs) => {
const { client, userId, companyId } = await requirePermissions(request, {
diff --git a/apps/erp/app/routes/x+/quality+/risks.tsx b/apps/erp/app/routes/x+/quality+/risks.tsx
index 9d3091711a..032dda0706 100644
--- a/apps/erp/app/routes/x+/quality+/risks.tsx
+++ b/apps/erp/app/routes/x+/quality+/risks.tsx
@@ -2,15 +2,8 @@ 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 type {
- LoaderFunctionArgs,
-} from "react-router";
-import {
- data,
- Outlet,
- redirect,
- useLoaderData
-} from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
+import { data, Outlet, redirect, useLoaderData } from "react-router";
import { getRisks } from "~/modules/quality/quality.service";
import type { Risk } from "~/modules/quality/types";
import RiskRegistersTable from "~/modules/quality/ui/RiskRegister/RiskRegistersTable";
diff --git a/apps/erp/app/routes/x+/quality-document+/$id.steps.new.tsx b/apps/erp/app/routes/x+/quality-document+/$id.steps.new.tsx
index 13978564ce..f5bbc5ebbc 100644
--- a/apps/erp/app/routes/x+/quality-document+/$id.steps.new.tsx
+++ b/apps/erp/app/routes/x+/quality-document+/$id.steps.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { qualityDocumentStepValidator } from "~/modules/quality/quality.models";
import { upsertQualityDocumentStep } from "~/modules/quality/quality.service";
diff --git a/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.configure.tsx b/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.configure.tsx
index 6664442a87..24be58fcca 100644
--- a/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.configure.tsx
+++ b/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.configure.tsx
@@ -1,7 +1,7 @@
import { error, getCarbonServiceRole, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { upsertQuoteLineMethod } from "~/modules/sales/sales.service";
import { path, requestReferrer } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.cost.delete.tsx b/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.cost.delete.tsx
index c18004919f..75a5aca815 100644
--- a/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.cost.delete.tsx
+++ b/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.cost.delete.tsx
@@ -1,6 +1,6 @@
import { assertIsPost } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import {
quoteLineAdditionalChargesValidator,
diff --git a/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.cost.new.tsx b/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.cost.new.tsx
index 61d7e4231d..d0d95c3064 100644
--- a/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.cost.new.tsx
+++ b/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.cost.new.tsx
@@ -1,7 +1,7 @@
import { assertIsPost } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { nanoid } from "nanoid";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import {
quoteLineAdditionalChargesValidator,
diff --git a/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.recalculate-price.tsx b/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.recalculate-price.tsx
index c7f446cee7..dfbc32d29d 100644
--- a/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.recalculate-price.tsx
+++ b/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.recalculate-price.tsx
@@ -1,6 +1,6 @@
import { assertIsPost } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { z } from "zod";
import { upsertQuoteLinePrices } from "~/modules/sales";
diff --git a/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.update-precision.tsx b/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.update-precision.tsx
index 0f0e27b5b0..d46141abdf 100644
--- a/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.update-precision.tsx
+++ b/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.update-precision.tsx
@@ -1,6 +1,6 @@
import { assertIsPost } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import {
updateQuoteLinePrecision,
diff --git a/apps/erp/app/routes/x+/quote+/$quoteId.convert.tsx b/apps/erp/app/routes/x+/quote+/$quoteId.convert.tsx
index d749a6dc67..39f72b84b5 100644
--- a/apps/erp/app/routes/x+/quote+/$quoteId.convert.tsx
+++ b/apps/erp/app/routes/x+/quote+/$quoteId.convert.tsx
@@ -6,7 +6,7 @@ import {
} from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { convertQuoteToOrder, selectedLinesValidator } from "~/modules/sales";
import { path } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/quote+/$quoteId.exchange-rate.tsx b/apps/erp/app/routes/x+/quote+/$quoteId.exchange-rate.tsx
index ccd2382fe3..2fc1e114ce 100644
--- a/apps/erp/app/routes/x+/quote+/$quoteId.exchange-rate.tsx
+++ b/apps/erp/app/routes/x+/quote+/$quoteId.exchange-rate.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getCurrencyByCode } from "~/modules/accounting";
import { updateQuoteExchangeRate } from "~/modules/sales";
diff --git a/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.material.$id.tsx b/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.material.$id.tsx
index 93268de216..1f6c800379 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.material.$id.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.material.$id.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error, getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { quoteMaterialValidator, upsertQuoteMaterial } from "~/modules/sales";
import { setCustomFields } from "~/utils/form";
diff --git a/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.material.delete.$id.tsx b/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.material.delete.$id.tsx
index c9113f2347..a78d9c1a9e 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.material.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.material.delete.$id.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { deleteQuoteMaterial } from "~/modules/sales";
diff --git a/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.material.new.tsx b/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.material.new.tsx
index 638cf8f1c3..7ef9a5a53e 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.material.new.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.material.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error, getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import {
quoteMaterialValidator,
diff --git a/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.operation.$id.tsx b/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.operation.$id.tsx
index 2ef70758b4..0a768dc7c3 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.operation.$id.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.operation.$id.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { quoteOperationValidator, upsertQuoteOperation } from "~/modules/sales";
import { setCustomFields } from "~/utils/form";
diff --git a/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.operation.new.tsx b/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.operation.new.tsx
index 8ff8baa6bd..bdea27006e 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.operation.new.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/$quoteId.$lineId.operation.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { quoteOperationValidator, upsertQuoteOperation } from "~/modules/sales";
import { setCustomFields } from "~/utils/form";
diff --git a/apps/erp/app/routes/x+/quote+/methods+/get.tsx b/apps/erp/app/routes/x+/quote+/methods+/get.tsx
index 1c6ed147e1..d3c7992c5f 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/get.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/get.tsx
@@ -1,7 +1,7 @@
import { getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data, redirect } from "react-router";
import {
copyQuoteLine,
diff --git a/apps/erp/app/routes/x+/quote+/methods+/material.order.tsx b/apps/erp/app/routes/x+/quote+/methods+/material.order.tsx
index c743217da3..5ca3f93d7f 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/material.order.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/material.order.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { updateQuoteMaterialOrder } from "~/modules/sales";
diff --git a/apps/erp/app/routes/x+/quote+/methods+/operation.$operationId.step.order.tsx b/apps/erp/app/routes/x+/quote+/methods+/operation.$operationId.step.order.tsx
index 6c80c778f2..f9da4bb8da 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/operation.$operationId.step.order.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/operation.$operationId.step.order.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { updateQuoteOperationStepOrder } from "~/modules/production";
diff --git a/apps/erp/app/routes/x+/quote+/methods+/operation.order.tsx b/apps/erp/app/routes/x+/quote+/methods+/operation.order.tsx
index 851f747898..bf7d6ba787 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/operation.order.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/operation.order.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { updateQuoteOperationOrder } from "~/modules/sales";
diff --git a/apps/erp/app/routes/x+/quote+/methods+/operation.parameter.$id.tsx b/apps/erp/app/routes/x+/quote+/methods+/operation.parameter.$id.tsx
index 616c19ea7a..87514cc69c 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/operation.parameter.$id.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/operation.parameter.$id.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertQuoteOperationParameter } from "~/modules/sales";
import { operationParameterValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/quote+/methods+/operation.parameter.delete.$id.tsx b/apps/erp/app/routes/x+/quote+/methods+/operation.parameter.delete.$id.tsx
index 60ea1348e3..690b782492 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/operation.parameter.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/operation.parameter.delete.$id.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { deleteQuoteOperationParameter } from "~/modules/sales";
diff --git a/apps/erp/app/routes/x+/quote+/methods+/operation.parameter.new.tsx b/apps/erp/app/routes/x+/quote+/methods+/operation.parameter.new.tsx
index dc4b959116..c69d52dd93 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/operation.parameter.new.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/operation.parameter.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertQuoteOperationParameter } from "~/modules/sales";
import { operationParameterValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/quote+/methods+/operation.step.$id.tsx b/apps/erp/app/routes/x+/quote+/methods+/operation.step.$id.tsx
index ad3ab7135e..0e7ed832c1 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/operation.step.$id.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/operation.step.$id.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertQuoteOperationStep } from "~/modules/sales";
import { operationStepValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/quote+/methods+/operation.step.delete.$id.tsx b/apps/erp/app/routes/x+/quote+/methods+/operation.step.delete.$id.tsx
index 79c745afce..0d8a09af24 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/operation.step.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/operation.step.delete.$id.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { deleteQuoteOperationStep } from "~/modules/sales";
diff --git a/apps/erp/app/routes/x+/quote+/methods+/operation.step.new.tsx b/apps/erp/app/routes/x+/quote+/methods+/operation.step.new.tsx
index 7cfa1daa1f..0df034e7d4 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/operation.step.new.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/operation.step.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertQuoteOperationStep } from "~/modules/sales";
import { operationStepValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/quote+/methods+/operation.tool.$id.tsx b/apps/erp/app/routes/x+/quote+/methods+/operation.tool.$id.tsx
index f571f63aa9..9133785df5 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/operation.tool.$id.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/operation.tool.$id.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertQuoteOperationTool } from "~/modules/sales";
import { operationToolValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/quote+/methods+/operation.tool.delete.$id.tsx b/apps/erp/app/routes/x+/quote+/methods+/operation.tool.delete.$id.tsx
index 784ba71074..0a422e1d42 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/operation.tool.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/operation.tool.delete.$id.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { deleteQuoteOperationTool } from "~/modules/sales";
diff --git a/apps/erp/app/routes/x+/quote+/methods+/operation.tool.new.tsx b/apps/erp/app/routes/x+/quote+/methods+/operation.tool.new.tsx
index c3892af75b..5afc37c401 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/operation.tool.new.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/operation.tool.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { upsertQuoteOperationTool } from "~/modules/sales";
import { operationToolValidator } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/quote+/methods+/save.tsx b/apps/erp/app/routes/x+/quote+/methods+/save.tsx
index c5e83d3e7b..e5adb6ba43 100644
--- a/apps/erp/app/routes/x+/quote+/methods+/save.tsx
+++ b/apps/erp/app/routes/x+/quote+/methods+/save.tsx
@@ -1,7 +1,7 @@
import { getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data, redirect } from "react-router";
import {
getMethodValidator,
diff --git a/apps/erp/app/routes/x+/receipt+/lines.tracking.tsx b/apps/erp/app/routes/x+/receipt+/lines.tracking.tsx
index c230d5c73f..c38fd7b370 100644
--- a/apps/erp/app/routes/x+/receipt+/lines.tracking.tsx
+++ b/apps/erp/app/routes/x+/receipt+/lines.tracking.tsx
@@ -1,7 +1,7 @@
import { getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import type { TrackedEntityAttributes } from "@carbon/utils";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
export async function action({ request, context }: ActionFunctionArgs) {
diff --git a/apps/erp/app/routes/x+/receipt+/new.tsx b/apps/erp/app/routes/x+/receipt+/new.tsx
index 64da97089b..16153660d0 100644
--- a/apps/erp/app/routes/x+/receipt+/new.tsx
+++ b/apps/erp/app/routes/x+/receipt+/new.tsx
@@ -2,7 +2,7 @@ import { error, getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { FunctionRegion } from "@supabase/supabase-js";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
import type { ReceiptSourceDocument } from "~/modules/inventory";
import { getUserDefaults } from "~/modules/users/users.server";
diff --git a/apps/erp/app/routes/x+/resources+/_index.tsx b/apps/erp/app/routes/x+/resources+/_index.tsx
index aadf7a5fd9..4ad3201aa3 100644
--- a/apps/erp/app/routes/x+/resources+/_index.tsx
+++ b/apps/erp/app/routes/x+/resources+/_index.tsx
@@ -28,9 +28,7 @@ import {
Thead,
Tr
} from "@carbon/react";
-import type {
- ChartConfig,
-} from "@carbon/react/Chart";
+import type { ChartConfig } from "@carbon/react/Chart";
import {
ChartContainer,
ChartTooltip,
@@ -51,25 +49,14 @@ import {
LuTriangleAlert,
LuWrench
} from "react-icons/lu";
-import type {
- LoaderFunctionArgs,
-} from "react-router";
-import {
- Await,
- Link,
- useFetcher,
- useLoaderData
-} from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
+import { Await, Link, useFetcher, useLoaderData } from "react-router";
import { Bar, BarChart, CartesianGrid, XAxis, YAxis } from "recharts";
import { Empty, Hyperlink } from "~/components";
import { useWorkCenters } from "~/components/Form/WorkCenters";
import { useCurrencyFormatter } from "~/hooks/useCurrencyFormatter";
-import type {
- maintenanceSource
-} from "~/modules/resources/resources.models";
-import {
- MaintenanceKPIs,
-} from "~/modules/resources/resources.models";
+import type { maintenanceSource } from "~/modules/resources/resources.models";
+import { MaintenanceKPIs } from "~/modules/resources/resources.models";
import MaintenanceSource from "~/modules/resources/ui/Maintenance/MaintenanceSource";
import MaintenanceStatus from "~/modules/resources/ui/Maintenance/MaintenanceStatus";
import { chartIntervals } from "~/modules/shared/shared.models";
diff --git a/apps/erp/app/routes/x+/resources+/scheduled-maintenance.tsx b/apps/erp/app/routes/x+/resources+/scheduled-maintenance.tsx
index 686395d300..ee6aa75f20 100644
--- a/apps/erp/app/routes/x+/resources+/scheduled-maintenance.tsx
+++ b/apps/erp/app/routes/x+/resources+/scheduled-maintenance.tsx
@@ -5,12 +5,10 @@ import { VStack } from "@carbon/react";
import type { LoaderFunctionArgs } from "react-router";
import { data, Outlet, useLoaderData } from "react-router";
-import type {
- MaintenanceSchedule
-} from "~/modules/resources";
+import type { MaintenanceSchedule } from "~/modules/resources";
import {
getLocationsList,
- getMaintenanceSchedulesByLocation,
+ getMaintenanceSchedulesByLocation
} from "~/modules/resources";
import MaintenanceSchedulesTable from "~/modules/resources/ui/MaintenanceSchedule/MaintenanceSchedulesTable";
import type { Handle } from "~/utils/handle";
diff --git a/apps/erp/app/routes/x+/sales+/_index.tsx b/apps/erp/app/routes/x+/sales+/_index.tsx
index 6a8025dfe6..8b6773d4f9 100644
--- a/apps/erp/app/routes/x+/sales+/_index.tsx
+++ b/apps/erp/app/routes/x+/sales+/_index.tsx
@@ -29,9 +29,7 @@ import {
Thead,
Tr
} from "@carbon/react";
-import type {
- ChartConfig,
-} from "@carbon/react/Chart";
+import type { ChartConfig } from "@carbon/react/Chart";
import {
ChartContainer,
ChartTooltip,
@@ -54,15 +52,8 @@ import {
RiProgress4Line,
RiProgress8Line
} from "react-icons/ri";
-import type {
- LoaderFunctionArgs,
-} from "react-router";
-import {
- Await,
- Link,
- useFetcher,
- useLoaderData
-} from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
+import { Await, Link, useFetcher, useLoaderData } from "react-router";
import { Bar, BarChart, CartesianGrid, XAxis, YAxis } from "recharts";
import { CustomerAvatar, Empty, Hyperlink } from "~/components";
import { useCurrencyFormatter } from "~/hooks/useCurrencyFormatter";
diff --git a/apps/erp/app/routes/x+/sales+/quotes.favorite.tsx b/apps/erp/app/routes/x+/sales+/quotes.favorite.tsx
index 2923af923e..de933d55c6 100644
--- a/apps/erp/app/routes/x+/sales+/quotes.favorite.tsx
+++ b/apps/erp/app/routes/x+/sales+/quotes.favorite.tsx
@@ -2,7 +2,7 @@ import { error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { updateQuoteFavorite } from "~/modules/sales";
import { favoriteSchema } from "~/types/validators";
diff --git a/apps/erp/app/routes/x+/sales+/rfqs.favorite.tsx b/apps/erp/app/routes/x+/sales+/rfqs.favorite.tsx
index 5d08a0df9c..19ff9ca5c6 100644
--- a/apps/erp/app/routes/x+/sales+/rfqs.favorite.tsx
+++ b/apps/erp/app/routes/x+/sales+/rfqs.favorite.tsx
@@ -2,7 +2,7 @@ import { error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { updateSalesRFQFavorite } from "~/modules/sales";
import { favoriteSchema } from "~/types/validators";
diff --git a/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.exchange-rate.tsx b/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.exchange-rate.tsx
index 7116253c9f..d3030af103 100644
--- a/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.exchange-rate.tsx
+++ b/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.exchange-rate.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getCurrencyByCode } from "~/modules/accounting";
import { updateSalesInvoiceExchangeRate } from "~/modules/invoicing";
diff --git a/apps/erp/app/routes/x+/sales-order+/$orderId.exchange-rate.tsx b/apps/erp/app/routes/x+/sales-order+/$orderId.exchange-rate.tsx
index dd4d6da9b6..295edb9bca 100644
--- a/apps/erp/app/routes/x+/sales-order+/$orderId.exchange-rate.tsx
+++ b/apps/erp/app/routes/x+/sales-order+/$orderId.exchange-rate.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getCurrencyByCode } from "~/modules/accounting";
import { updateSalesOrderExchangeRate } from "~/modules/sales";
diff --git a/apps/erp/app/routes/x+/sales-order+/orders.favorite.tsx b/apps/erp/app/routes/x+/sales-order+/orders.favorite.tsx
index 7da4b63cb4..c18b26775f 100644
--- a/apps/erp/app/routes/x+/sales-order+/orders.favorite.tsx
+++ b/apps/erp/app/routes/x+/sales-order+/orders.favorite.tsx
@@ -2,7 +2,7 @@ import { error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { updateSalesOrderFavorite } from "~/modules/sales";
import { favoriteSchema } from "~/types/validators";
diff --git a/apps/erp/app/routes/x+/sales-rfq+/$rfqId.$lineId.delete.tsx b/apps/erp/app/routes/x+/sales-rfq+/$rfqId.$lineId.delete.tsx
index dad5590574..352c4f2ea4 100644
--- a/apps/erp/app/routes/x+/sales-rfq+/$rfqId.$lineId.delete.tsx
+++ b/apps/erp/app/routes/x+/sales-rfq+/$rfqId.$lineId.delete.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { deleteSalesRFQLine } from "~/modules/sales";
import { path } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/sales-rfq+/$rfqId.convert.tsx b/apps/erp/app/routes/x+/sales-rfq+/$rfqId.convert.tsx
index f4414b661e..690f48e2be 100644
--- a/apps/erp/app/routes/x+/sales-rfq+/$rfqId.convert.tsx
+++ b/apps/erp/app/routes/x+/sales-rfq+/$rfqId.convert.tsx
@@ -6,7 +6,7 @@ import {
} from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { convertSalesRfqToQuote } from "~/modules/sales";
import { path } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/sales-rfq+/$rfqId.drag.tsx b/apps/erp/app/routes/x+/sales-rfq+/$rfqId.drag.tsx
index e85466a32c..2b215ba709 100644
--- a/apps/erp/app/routes/x+/sales-rfq+/$rfqId.drag.tsx
+++ b/apps/erp/app/routes/x+/sales-rfq+/$rfqId.drag.tsx
@@ -4,7 +4,7 @@ import { flash } from "@carbon/auth/session.server";
import type { modelThumbnailTask } from "@carbon/jobs/trigger/model-thumbnail";
import { tasks } from "@trigger.dev/sdk";
import { nanoid } from "nanoid";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { salesRfqDragValidator, upsertSalesRFQLine } from "~/modules/sales";
import { setCustomFields } from "~/utils/form";
diff --git a/apps/erp/app/routes/x+/sales-rfq+/$rfqId.new.tsx b/apps/erp/app/routes/x+/sales-rfq+/$rfqId.new.tsx
index e8db01c0cd..5626769106 100644
--- a/apps/erp/app/routes/x+/sales-rfq+/$rfqId.new.tsx
+++ b/apps/erp/app/routes/x+/sales-rfq+/$rfqId.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { salesRfqLineValidator, upsertSalesRFQLine } from "~/modules/sales";
import { setCustomFields } from "~/utils/form";
diff --git a/apps/erp/app/routes/x+/sales-rfq+/$rfqId.tsx b/apps/erp/app/routes/x+/sales-rfq+/$rfqId.tsx
index 1b43f02418..1e8febddfc 100644
--- a/apps/erp/app/routes/x+/sales-rfq+/$rfqId.tsx
+++ b/apps/erp/app/routes/x+/sales-rfq+/$rfqId.tsx
@@ -1,7 +1,7 @@
import { error, getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { JSONContent, } from "@carbon/react";
+import type { JSONContent } from "@carbon/react";
import { VStack } from "@carbon/react";
import { supportedModelTypes } from "@carbon/utils";
import type { DragEndEvent } from "@dnd-kit/core";
diff --git a/apps/erp/app/routes/x+/schedule+/dates.tsx b/apps/erp/app/routes/x+/schedule+/dates.tsx
index 5302a85e56..e0e29ff795 100644
--- a/apps/erp/app/routes/x+/schedule+/dates.tsx
+++ b/apps/erp/app/routes/x+/schedule+/dates.tsx
@@ -33,9 +33,7 @@ import {
} from "@internationalized/date";
import { useCallback, useEffect, useMemo, useState } from "react";
import { LuChevronLeft, LuChevronRight, LuSettings2 } from "react-icons/lu";
-import type {
- LoaderFunctionArgs,
-} from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import {
redirect,
useLoaderData,
diff --git a/apps/erp/app/routes/x+/scheduling+/gantt.tsx b/apps/erp/app/routes/x+/scheduling+/gantt.tsx
index dd624bc190..f69c2ba234 100644
--- a/apps/erp/app/routes/x+/scheduling+/gantt.tsx
+++ b/apps/erp/app/routes/x+/scheduling+/gantt.tsx
@@ -7,8 +7,7 @@ import {
ResizablePanelGroup,
useDebounce
} from "@carbon/react";
-import type { LoaderFunctionArgs } from "react-router";
-import type { Location, } from "react-router";
+import type { LoaderFunctionArgs, Location } from "react-router";
import { useLoaderData } from "react-router";
import type { GanttEvent } from "~/components/Gantt";
import { Gantt } from "~/components/Gantt";
diff --git a/apps/erp/app/routes/x+/settings+/api-keys.tsx b/apps/erp/app/routes/x+/settings+/api-keys.tsx
index 13e25bf862..3e883762ac 100644
--- a/apps/erp/app/routes/x+/settings+/api-keys.tsx
+++ b/apps/erp/app/routes/x+/settings+/api-keys.tsx
@@ -1,14 +1,8 @@
import { error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type {
- LoaderFunctionArgs,
-} from "react-router";
-import {
- Outlet,
- redirect,
- useLoaderData
-} from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
+import { Outlet, redirect, useLoaderData } from "react-router";
import { ApiKeysTable, getApiKeys } from "~/modules/settings";
import type { Handle } from "~/utils/handle";
import { path } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/settings+/company.switch.$companyId.tsx b/apps/erp/app/routes/x+/settings+/company.switch.$companyId.tsx
index c42a9afd63..da918583d3 100644
--- a/apps/erp/app/routes/x+/settings+/company.switch.$companyId.tsx
+++ b/apps/erp/app/routes/x+/settings+/company.switch.$companyId.tsx
@@ -6,7 +6,7 @@ import {
flash,
updateCompanySession
} from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getCompanies } from "~/modules/settings";
import { path, requestReferrer } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/settings+/integrations.tsx b/apps/erp/app/routes/x+/settings+/integrations.tsx
index 153d6799cf..71d82563aa 100644
--- a/apps/erp/app/routes/x+/settings+/integrations.tsx
+++ b/apps/erp/app/routes/x+/settings+/integrations.tsx
@@ -2,14 +2,8 @@ import { error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { integrations as availableIntegrations } from "@carbon/ee";
-import type {
- LoaderFunctionArgs,
-} from "react-router";
-import {
- Outlet,
- redirect,
- useLoaderData
-} from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
+import { Outlet, redirect, useLoaderData } from "react-router";
import { IntegrationsList } from "~/modules/settings";
import { getIntegrationsWithHealth } from "~/modules/settings/settings.server";
import { path } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/settings+/logos.tsx b/apps/erp/app/routes/x+/settings+/logos.tsx
index 50e686b7ce..dbbeb55d1e 100644
--- a/apps/erp/app/routes/x+/settings+/logos.tsx
+++ b/apps/erp/app/routes/x+/settings+/logos.tsx
@@ -10,7 +10,7 @@ import {
VStack
} from "@carbon/react";
import { LuMoon, LuSun } from "react-icons/lu";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { useRouteData } from "~/hooks";
import type { Company } from "~/modules/settings";
diff --git a/apps/erp/app/routes/x+/settings+/tags.new.tsx b/apps/erp/app/routes/x+/settings+/tags.new.tsx
index b4204faffc..5642aee6ed 100644
--- a/apps/erp/app/routes/x+/settings+/tags.new.tsx
+++ b/apps/erp/app/routes/x+/settings+/tags.new.tsx
@@ -1,5 +1,5 @@
import { requirePermissions } from "@carbon/auth/auth.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { insertTag } from "~/modules/shared";
diff --git a/apps/erp/app/routes/x+/settings+/webhooks.tsx b/apps/erp/app/routes/x+/settings+/webhooks.tsx
index ba0a1a6d06..085d899a38 100644
--- a/apps/erp/app/routes/x+/settings+/webhooks.tsx
+++ b/apps/erp/app/routes/x+/settings+/webhooks.tsx
@@ -1,14 +1,8 @@
import { error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type {
- LoaderFunctionArgs,
-} from "react-router";
-import {
- Outlet,
- redirect,
- useLoaderData
-} from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
+import { Outlet, redirect, useLoaderData } from "react-router";
import { getConfig, getWebhooks } from "~/modules/settings";
import { WebhooksTable } from "~/modules/settings/ui/Webhooks";
import type { Handle } from "~/utils/handle";
diff --git a/apps/erp/app/routes/x+/shared+/view.order.tsx b/apps/erp/app/routes/x+/shared+/view.order.tsx
index d8a16d020b..3e680024a7 100644
--- a/apps/erp/app/routes/x+/shared+/view.order.tsx
+++ b/apps/erp/app/routes/x+/shared+/view.order.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { updateSavedViewOrder } from "~/modules/shared/shared.service";
diff --git a/apps/erp/app/routes/x+/shared+/views.delete.$id.tsx b/apps/erp/app/routes/x+/shared+/views.delete.$id.tsx
index 400c725c34..a46f3b50c4 100644
--- a/apps/erp/app/routes/x+/shared+/views.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/shared+/views.delete.$id.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data, redirect } from "react-router";
import { deleteSavedView } from "~/modules/shared";
import { path } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/shipment+/lines.tracking.tsx b/apps/erp/app/routes/x+/shipment+/lines.tracking.tsx
index 053f22f1f3..7d2ae7e94a 100644
--- a/apps/erp/app/routes/x+/shipment+/lines.tracking.tsx
+++ b/apps/erp/app/routes/x+/shipment+/lines.tracking.tsx
@@ -1,7 +1,7 @@
import { error, getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
export async function action({ request }: ActionFunctionArgs) {
diff --git a/apps/erp/app/routes/x+/shipment+/new.tsx b/apps/erp/app/routes/x+/shipment+/new.tsx
index 0e500a045c..d45f5a5da3 100644
--- a/apps/erp/app/routes/x+/shipment+/new.tsx
+++ b/apps/erp/app/routes/x+/shipment+/new.tsx
@@ -2,7 +2,7 @@ import { error, getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { FunctionRegion } from "@supabase/supabase-js";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
import type { ShipmentSourceDocument } from "~/modules/inventory";
import { getUserDefaults } from "~/modules/users/users.server";
diff --git a/apps/erp/app/routes/x+/supplier+/$supplierId.processes.delete.$id.tsx b/apps/erp/app/routes/x+/supplier+/$supplierId.processes.delete.$id.tsx
index 9d3ca39670..4aba279742 100644
--- a/apps/erp/app/routes/x+/supplier+/$supplierId.processes.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/supplier+/$supplierId.processes.delete.$id.tsx
@@ -8,12 +8,10 @@ import type {
import { redirect, useNavigate, useParams } from "react-router";
import { ConfirmDelete } from "~/components/Modals";
import { useRouteData } from "~/hooks";
-import type {
- SupplierProcess
-} from "~/modules/purchasing";
+import type { SupplierProcess } from "~/modules/purchasing";
import {
deleteSupplierProcess,
- getSupplierProcessById,
+ getSupplierProcessById
} from "~/modules/purchasing";
import { path } from "~/utils/path";
import { supplierProcessesQuery } from "~/utils/react-query";
diff --git a/apps/erp/app/routes/x+/supplier+/$supplierId.risks.tsx b/apps/erp/app/routes/x+/supplier+/$supplierId.risks.tsx
index 5b111ad774..b11c0369ef 100644
--- a/apps/erp/app/routes/x+/supplier+/$supplierId.risks.tsx
+++ b/apps/erp/app/routes/x+/supplier+/$supplierId.risks.tsx
@@ -1,5 +1,5 @@
import { requirePermissions } from "@carbon/auth/auth.server";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { data, useParams } from "react-router";
import SupplierRiskRegister from "~/modules/purchasing/ui/Supplier/SupplierRiskRegister";
diff --git a/apps/erp/app/routes/x+/supplier-quote+/$id.convert.tsx b/apps/erp/app/routes/x+/supplier-quote+/$id.convert.tsx
index fc0463b24c..ba84f8e350 100644
--- a/apps/erp/app/routes/x+/supplier-quote+/$id.convert.tsx
+++ b/apps/erp/app/routes/x+/supplier-quote+/$id.convert.tsx
@@ -6,7 +6,7 @@ import {
} from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import {
convertSupplierQuoteToOrder,
diff --git a/apps/erp/app/routes/x+/supplier-quote+/$id.exchange-rate.tsx b/apps/erp/app/routes/x+/supplier-quote+/$id.exchange-rate.tsx
index a3465854b6..bd2980274c 100644
--- a/apps/erp/app/routes/x+/supplier-quote+/$id.exchange-rate.tsx
+++ b/apps/erp/app/routes/x+/supplier-quote+/$id.exchange-rate.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getCurrencyByCode } from "~/modules/accounting";
import { updateSupplierQuoteExchangeRate } from "~/modules/purchasing";
diff --git a/apps/erp/app/routes/x+/supplier-quote+/$id.finalize.tsx b/apps/erp/app/routes/x+/supplier-quote+/$id.finalize.tsx
index f5093976ee..6aab0ad59d 100644
--- a/apps/erp/app/routes/x+/supplier-quote+/$id.finalize.tsx
+++ b/apps/erp/app/routes/x+/supplier-quote+/$id.finalize.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import {
finalizeSupplierQuote,
diff --git a/apps/erp/app/routes/x+/training+/$id.questions.$questionId.tsx b/apps/erp/app/routes/x+/training+/$id.questions.$questionId.tsx
index 7c82d0a1e1..0c56a93ca9 100644
--- a/apps/erp/app/routes/x+/training+/$id.questions.$questionId.tsx
+++ b/apps/erp/app/routes/x+/training+/$id.questions.$questionId.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error, notFound } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import {
trainingQuestionValidator,
diff --git a/apps/erp/app/routes/x+/training+/$id.questions.new.tsx b/apps/erp/app/routes/x+/training+/$id.questions.new.tsx
index b1645d8d31..a76f6dafb8 100644
--- a/apps/erp/app/routes/x+/training+/$id.questions.new.tsx
+++ b/apps/erp/app/routes/x+/training+/$id.questions.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import {
trainingQuestionValidator,
diff --git a/apps/erp/app/routes/x+/users+/revoke-invite.tsx b/apps/erp/app/routes/x+/users+/revoke-invite.tsx
index c07dd85169..54a64fff10 100644
--- a/apps/erp/app/routes/x+/users+/revoke-invite.tsx
+++ b/apps/erp/app/routes/x+/users+/revoke-invite.tsx
@@ -12,7 +12,7 @@ import type { userAdminTask } from "@carbon/jobs/trigger/user-admin";
import { updateSubscriptionQuantityForCompany } from "@carbon/stripe/stripe.server";
import { Edition } from "@carbon/utils";
import { tasks } from "@trigger.dev/sdk";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { revokeInviteValidator } from "~/modules/users";
diff --git a/apps/erp/app/routes/x+/warehouse-transfer+/$transferId.receive.tsx b/apps/erp/app/routes/x+/warehouse-transfer+/$transferId.receive.tsx
index 8e21a266e1..04d10fa3d8 100644
--- a/apps/erp/app/routes/x+/warehouse-transfer+/$transferId.receive.tsx
+++ b/apps/erp/app/routes/x+/warehouse-transfer+/$transferId.receive.tsx
@@ -1,4 +1,4 @@
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { path } from "~/utils/path";
diff --git a/apps/erp/app/routes/x+/warehouse-transfer+/$transferId.ship.tsx b/apps/erp/app/routes/x+/warehouse-transfer+/$transferId.ship.tsx
index 287f2454b3..0bda50dfba 100644
--- a/apps/erp/app/routes/x+/warehouse-transfer+/$transferId.ship.tsx
+++ b/apps/erp/app/routes/x+/warehouse-transfer+/$transferId.ship.tsx
@@ -1,4 +1,4 @@
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { path } from "~/utils/path";
diff --git a/apps/mes/app/components/AppSidebar.tsx b/apps/mes/app/components/AppSidebar.tsx
index b23d03d8ee..886cc82d9c 100644
--- a/apps/mes/app/components/AppSidebar.tsx
+++ b/apps/mes/app/components/AppSidebar.tsx
@@ -1,7 +1,7 @@
"use client";
import type { Company } from "@carbon/auth";
-import { CONTROLLED_ENVIRONMENT, } from "@carbon/auth";
+import { CONTROLLED_ENVIRONMENT } from "@carbon/auth";
import {
Avatar,
cn,
@@ -33,7 +33,7 @@ import {
useSidebar
} from "@carbon/react";
import { ItarDisclosure, useMode } from "@carbon/remix";
-import type { ComponentProps, } from "react";
+import type { ComponentProps } from "react";
import { useRef } from "react";
import { BsFillHexagonFill } from "react-icons/bs";
import {
diff --git a/apps/mes/app/components/JobOperation/components/MaintenanceDispatch.tsx b/apps/mes/app/components/JobOperation/components/MaintenanceDispatch.tsx
index 9bfa1671c6..bf058d4cec 100644
--- a/apps/mes/app/components/JobOperation/components/MaintenanceDispatch.tsx
+++ b/apps/mes/app/components/JobOperation/components/MaintenanceDispatch.tsx
@@ -123,7 +123,7 @@ export function MaintenanceDispatch({
toast.success("Maintenance dispatch created");
onClose();
}
- }, [fetcher.state, fetcher.data]);
+ }, [fetcher.state, fetcher.data, onClose]);
const onUploadImage = async (file: File) => {
const fileType = file.name.split(".").pop();
diff --git a/apps/mes/app/components/JobOperation/components/Step.tsx b/apps/mes/app/components/JobOperation/components/Step.tsx
index 5cb26fccd1..4b715009a2 100644
--- a/apps/mes/app/components/JobOperation/components/Step.tsx
+++ b/apps/mes/app/components/JobOperation/components/Step.tsx
@@ -10,9 +10,7 @@ import {
Submit,
ValidatedForm
} from "@carbon/form";
-import type {
- JSONContent,
-} from "@carbon/react";
+import type { JSONContent } from "@carbon/react";
import {
Button,
Checkbox,
diff --git a/apps/mes/app/entry.client.tsx b/apps/mes/app/entry.client.tsx
index 482046a795..04e04cce88 100644
--- a/apps/mes/app/entry.client.tsx
+++ b/apps/mes/app/entry.client.tsx
@@ -1,6 +1,4 @@
-import { POSTHOG_API_HOST, POSTHOG_PROJECT_PUBLIC_KEY } from "@carbon/auth";
-import posthog from "posthog-js";
-import { Fragment, startTransition, useEffect } from "react";
+import { Fragment, startTransition } from "react";
import { hydrateRoot } from "react-dom/client";
import { HydratedRouter } from "react-router/dom";
diff --git a/apps/mes/app/routes/_index.tsx b/apps/mes/app/routes/_index.tsx
index 28ac58b332..224e2bc84e 100644
--- a/apps/mes/app/routes/_index.tsx
+++ b/apps/mes/app/routes/_index.tsx
@@ -1,5 +1,5 @@
import { requireAuthSession } from "@carbon/auth/session.server";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { path } from "~/utils/path";
diff --git a/apps/mes/app/routes/file+/entity+/$id.labels[.]pdf.tsx b/apps/mes/app/routes/file+/entity+/$id.labels[.]pdf.tsx
index 8dcf9121fa..fb26bb4247 100644
--- a/apps/mes/app/routes/file+/entity+/$id.labels[.]pdf.tsx
+++ b/apps/mes/app/routes/file+/entity+/$id.labels[.]pdf.tsx
@@ -2,7 +2,7 @@ import { requirePermissions } from "@carbon/auth/auth.server";
import { ProductLabelPDF } from "@carbon/documents/pdf";
import { labelSizes } from "@carbon/utils";
import { renderToStream } from "@react-pdf/renderer";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getCompanySettings } from "~/services/inventory.service";
import { getTrackedEntity } from "~/services/operations.service";
diff --git a/apps/mes/app/routes/file+/entity+/$id.labels[.]zpl.tsx b/apps/mes/app/routes/file+/entity+/$id.labels[.]zpl.tsx
index 739d407eb4..018d2354a4 100644
--- a/apps/mes/app/routes/file+/entity+/$id.labels[.]zpl.tsx
+++ b/apps/mes/app/routes/file+/entity+/$id.labels[.]zpl.tsx
@@ -1,7 +1,7 @@
import { requirePermissions } from "@carbon/auth/auth.server";
import { generateProductLabelZPL } from "@carbon/documents/zpl";
import { labelSizes } from "@carbon/utils";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getCompanySettings } from "~/services/inventory.service";
import { getTrackedEntity } from "~/services/operations.service";
diff --git a/apps/mes/app/routes/file+/operation+/$id.labels[.]pdf.tsx b/apps/mes/app/routes/file+/operation+/$id.labels[.]pdf.tsx
index b5ead102df..a1beafbec1 100644
--- a/apps/mes/app/routes/file+/operation+/$id.labels[.]pdf.tsx
+++ b/apps/mes/app/routes/file+/operation+/$id.labels[.]pdf.tsx
@@ -2,7 +2,7 @@ import { requirePermissions } from "@carbon/auth/auth.server";
import { ProductLabelPDF } from "@carbon/documents/pdf";
import { labelSizes } from "@carbon/utils";
import { renderToStream } from "@react-pdf/renderer";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getCompanySettings } from "~/services/inventory.service";
import { getTrackedEntitiesByOperationId } from "~/services/operations.service";
diff --git a/apps/mes/app/routes/file+/operation+/$id.labels[.]zpl.tsx b/apps/mes/app/routes/file+/operation+/$id.labels[.]zpl.tsx
index 1c2b4a5ca8..1271c2f674 100644
--- a/apps/mes/app/routes/file+/operation+/$id.labels[.]zpl.tsx
+++ b/apps/mes/app/routes/file+/operation+/$id.labels[.]zpl.tsx
@@ -1,7 +1,7 @@
import { requirePermissions } from "@carbon/auth/auth.server";
import { generateProductLabelZPL } from "@carbon/documents/zpl";
import { labelSizes } from "@carbon/utils";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getCompanySettings } from "~/services/inventory.service";
import { getTrackedEntitiesByMakeMethodId } from "~/services/operations.service";
diff --git a/apps/mes/app/routes/x+/company.switch.$companyId.tsx b/apps/mes/app/routes/x+/company.switch.$companyId.tsx
index 09f90587ac..95a3fa408a 100644
--- a/apps/mes/app/routes/x+/company.switch.$companyId.tsx
+++ b/apps/mes/app/routes/x+/company.switch.$companyId.tsx
@@ -6,7 +6,7 @@ import {
flash,
updateCompanySession
} from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getLocation, setLocation } from "~/services/location.server";
import { path, requestReferrer } from "~/utils/path";
diff --git a/apps/mes/app/routes/x+/dispatch.$dispatchId.item.tsx b/apps/mes/app/routes/x+/dispatch.$dispatchId.item.tsx
index 8264c6e88c..cae7fb2c86 100644
--- a/apps/mes/app/routes/x+/dispatch.$dispatchId.item.tsx
+++ b/apps/mes/app/routes/x+/dispatch.$dispatchId.item.tsx
@@ -7,7 +7,7 @@ import {
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { FunctionRegion } from "@supabase/supabase-js";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { addMaintenanceDispatchItem } from "~/services/maintenance.service";
diff --git a/apps/mes/app/routes/x+/dispatch.new.tsx b/apps/mes/app/routes/x+/dispatch.new.tsx
index e92e78d5c2..c9d51ea402 100644
--- a/apps/mes/app/routes/x+/dispatch.new.tsx
+++ b/apps/mes/app/routes/x+/dispatch.new.tsx
@@ -11,7 +11,7 @@ import type { notifyTask } from "@carbon/jobs/trigger/notify";
import { NotificationEvent } from "@carbon/notifications";
import { getLocalTimeZone, now } from "@internationalized/date";
import { tasks } from "@trigger.dev/sdk";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data, redirect } from "react-router";
import { maintenanceDispatchValidator } from "~/services/models";
import { endProductionEventsByWorkCenter } from "~/services/operations.service";
diff --git a/apps/mes/app/routes/x+/entity+/$id.convert.tsx b/apps/mes/app/routes/x+/entity+/$id.convert.tsx
index 511f04a350..98a6ba15be 100644
--- a/apps/mes/app/routes/x+/entity+/$id.convert.tsx
+++ b/apps/mes/app/routes/x+/entity+/$id.convert.tsx
@@ -1,7 +1,7 @@
import { assertIsPost, getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { FunctionRegion } from "@supabase/supabase-js";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { convertEntityValidator } from "~/services/models";
diff --git a/apps/mes/app/routes/x+/entity+/$materialId.$trackedEntityId.scrap.tsx b/apps/mes/app/routes/x+/entity+/$materialId.$trackedEntityId.scrap.tsx
index 0fe3af9611..65aecd443d 100644
--- a/apps/mes/app/routes/x+/entity+/$materialId.$trackedEntityId.scrap.tsx
+++ b/apps/mes/app/routes/x+/entity+/$materialId.$trackedEntityId.scrap.tsx
@@ -1,7 +1,7 @@
import { getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { FunctionRegion } from "@supabase/supabase-js";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { getTrackedEntity } from "~/services/operations.service";
diff --git a/apps/mes/app/routes/x+/event.tsx b/apps/mes/app/routes/x+/event.tsx
index daa0cc583c..a28785b2f8 100644
--- a/apps/mes/app/routes/x+/event.tsx
+++ b/apps/mes/app/routes/x+/event.tsx
@@ -3,7 +3,7 @@ import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
import { getLocalTimeZone, now } from "@internationalized/date";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { productionEventValidator } from "~/services/models";
import {
diff --git a/apps/mes/app/routes/x+/maintenance-event.tsx b/apps/mes/app/routes/x+/maintenance-event.tsx
index 36f9e1a4fa..ab7ad4f13b 100644
--- a/apps/mes/app/routes/x+/maintenance-event.tsx
+++ b/apps/mes/app/routes/x+/maintenance-event.tsx
@@ -7,7 +7,7 @@ import {
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { getLocalTimeZone, now } from "@internationalized/date";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data, redirect } from "react-router";
import {
endMaintenanceEvent,
diff --git a/apps/mes/app/routes/x+/scrap.tsx b/apps/mes/app/routes/x+/scrap.tsx
index e626966ba6..e677c2871c 100644
--- a/apps/mes/app/routes/x+/scrap.tsx
+++ b/apps/mes/app/routes/x+/scrap.tsx
@@ -8,7 +8,7 @@ import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
import { FunctionRegion } from "@supabase/supabase-js";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { data } from "react-router";
import { scrapQuantityValidator } from "~/services/models";
import { insertScrapQuantity } from "~/services/operations.service";
diff --git a/apps/mes/app/routes/x+/start.$operationId.tsx b/apps/mes/app/routes/x+/start.$operationId.tsx
index 0c0a8ebc5b..5882846cc3 100644
--- a/apps/mes/app/routes/x+/start.$operationId.tsx
+++ b/apps/mes/app/routes/x+/start.$operationId.tsx
@@ -2,7 +2,7 @@ import { error, getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { getLocalTimeZone, now } from "@internationalized/date";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { getWorkCenterWithBlockingStatus } from "~/services/maintenance.service";
import {
diff --git a/apps/starter/app/routes/_index.tsx b/apps/starter/app/routes/_index.tsx
index 05a953fa1d..970657d10c 100644
--- a/apps/starter/app/routes/_index.tsx
+++ b/apps/starter/app/routes/_index.tsx
@@ -1,5 +1,5 @@
import { requireAuthSession } from "@carbon/auth/session.server";
-import type { LoaderFunctionArgs, } from "react-router";
+import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { path } from "~/utils/path";
diff --git a/apps/starter/app/routes/x+/_index.tsx b/apps/starter/app/routes/x+/_index.tsx
index 41be04abc8..95b5788a4f 100644
--- a/apps/starter/app/routes/x+/_index.tsx
+++ b/apps/starter/app/routes/x+/_index.tsx
@@ -1,7 +1,7 @@
import { cn, Heading } from "@carbon/react";
import { getLocalTimeZone } from "@internationalized/date";
import { useLocale } from "@react-aria/i18n";
-import type { ComponentProps, } from "react";
+import type { ComponentProps } from "react";
import { useMemo } from "react";
import { useUser } from "~/hooks";
diff --git a/apps/starter/app/routes/x+/company.switch.$companyId.tsx b/apps/starter/app/routes/x+/company.switch.$companyId.tsx
index 8f804c1649..cabd0dad8d 100644
--- a/apps/starter/app/routes/x+/company.switch.$companyId.tsx
+++ b/apps/starter/app/routes/x+/company.switch.$companyId.tsx
@@ -6,7 +6,7 @@ import {
flash,
updateCompanySession
} from "@carbon/auth/session.server";
-import type { ActionFunctionArgs, } from "react-router";
+import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { path, requestReferrer } from "~/utils/path";
diff --git a/examples/quote-configurator/vite.config.ts b/examples/quote-configurator/vite.config.ts
index ec667330dd..7bb1b1d269 100644
--- a/examples/quote-configurator/vite.config.ts
+++ b/examples/quote-configurator/vite.config.ts
@@ -1,6 +1,6 @@
import { reactRouter } from "@react-router/dev/vite";
import type { PluginOption } from "vite";
-import { defineConfig, } from "vite";
+import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
diff --git a/examples/upload-3d-model/vite.config.ts b/examples/upload-3d-model/vite.config.ts
index 35cc2147ee..175e2b3353 100644
--- a/examples/upload-3d-model/vite.config.ts
+++ b/examples/upload-3d-model/vite.config.ts
@@ -1,6 +1,6 @@
import { reactRouter } from "@react-router/dev/vite";
import type { PluginOption } from "vite";
-import { defineConfig, } from "vite";
+import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
diff --git a/packages/ee/src/accounting/providers/xero/entities/bill.ts b/packages/ee/src/accounting/providers/xero/entities/bill.ts
index 421917ea2b..ce3e8b3f01 100644
--- a/packages/ee/src/accounting/providers/xero/entities/bill.ts
+++ b/packages/ee/src/accounting/providers/xero/entities/bill.ts
@@ -191,7 +191,10 @@ export class BillSyncer extends BaseEntitySyncer<
const supplierExternalIds = new Map<string, string | null>();
if (supplierIds.length > 0) {
- const mappingService = createMappingService(this.database, this.companyId);
+ const mappingService = createMappingService(
+ this.database,
+ this.companyId
+ );
for (const supplierId of supplierIds) {
const externalId = await mappingService.getExternalId(
"supplier",
diff --git a/packages/ee/src/accounting/providers/xero/entities/purchase-order.ts b/packages/ee/src/accounting/providers/xero/entities/purchase-order.ts
index 34164b8daa..5f29099df1 100644
--- a/packages/ee/src/accounting/providers/xero/entities/purchase-order.ts
+++ b/packages/ee/src/accounting/providers/xero/entities/purchase-order.ts
@@ -166,7 +166,10 @@ export class PurchaseOrderSyncer extends BaseEntitySyncer<
const supplierIds = orderRows.map((o) => o.supplierId);
const supplierExternalIds = new Map<string, string | null>();
if (supplierIds.length > 0) {
- const mappingService = createMappingService(this.database, this.companyId);
+ const mappingService = createMappingService(
+ this.database,
+ this.companyId
+ );
for (const supplierId of supplierIds) {
const externalId = await mappingService.getExternalId(
"supplier",
diff --git a/packages/ee/src/notifications/services/linear.ts b/packages/ee/src/notifications/services/linear.ts
index c34030e516..14eb812624 100644
--- a/packages/ee/src/notifications/services/linear.ts
+++ b/packages/ee/src/notifications/services/linear.ts
@@ -1,9 +1,7 @@
import { getUser } from "@carbon/auth";
import type { Database } from "@carbon/database";
import type { SupabaseClient } from "@supabase/supabase-js";
-import type {
- TiptapDocument,
-} from "../../linear/lib";
+import type { TiptapDocument } from "../../linear/lib";
import {
getLinearClient,
getLinearIssueFromExternalId,
diff --git a/packages/form/src/ValidatedForm.tsx b/packages/form/src/ValidatedForm.tsx
index 6b755e8943..555a284cc6 100644
--- a/packages/form/src/ValidatedForm.tsx
+++ b/packages/form/src/ValidatedForm.tsx
@@ -1,13 +1,7 @@
import { useIsomorphicLayoutEffect } from "@carbon/react";
-import type { ComponentProps, FormEvent, RefObject } from "react";
import type React from "react";
-import {
- useCallback,
- useEffect,
- useMemo,
- useRef,
- useState
-} from "react";
+import type { ComponentProps, FormEvent, RefObject } from "react";
+import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import type {
FetcherWithComponents,
FormEncType,
diff --git a/packages/form/src/state/formStateHooks.ts b/packages/form/src/state/formStateHooks.ts
index e3310703c7..e9ec0fa6ca 100644
--- a/packages/form/src/state/formStateHooks.ts
+++ b/packages/form/src/state/formStateHooks.ts
@@ -1,5 +1,4 @@
import { useMemo } from "react";
-import {} from "../internal/getInputProps";
import {
useClearError,
useDefaultValuesForForm,
diff --git a/packages/react/src/ActionBar.tsx b/packages/react/src/ActionBar.tsx
index 4beedf63ed..e4e7c7ae55 100644
--- a/packages/react/src/ActionBar.tsx
+++ b/packages/react/src/ActionBar.tsx
@@ -8,7 +8,7 @@ import {
useState
} from "react";
import type { ButtonProps } from "./Button";
-import { Button, } from "./Button";
+import { Button } from "./Button";
import { cn } from "./utils/cn";
type Position = { x: number; y: number };
diff --git a/packages/react/src/Alert.tsx b/packages/react/src/Alert.tsx
index c87bd34448..09b0695e35 100644
--- a/packages/react/src/Alert.tsx
+++ b/packages/react/src/Alert.tsx
@@ -1,5 +1,5 @@
import type { VariantProps } from "class-variance-authority";
-import { cva, } from "class-variance-authority";
+import { cva } from "class-variance-authority";
import type { HTMLAttributes } from "react";
import { forwardRef } from "react";
diff --git a/packages/react/src/Drawer.tsx b/packages/react/src/Drawer.tsx
index e648ce2dc0..edfd67dd2d 100644
--- a/packages/react/src/Drawer.tsx
+++ b/packages/react/src/Drawer.tsx
@@ -2,7 +2,7 @@
import * as DialogPrimitive from "@radix-ui/react-dialog";
import type { VariantProps } from "class-variance-authority";
-import { cva, } from "class-variance-authority";
+import { cva } from "class-variance-authority";
import type {
ComponentPropsWithoutRef,
ElementRef,
diff --git a/packages/react/src/Label.tsx b/packages/react/src/Label.tsx
index 73b3b88f4d..3497294d00 100644
--- a/packages/react/src/Label.tsx
+++ b/packages/react/src/Label.tsx
@@ -1,6 +1,6 @@
import * as LabelPrimitive from "@radix-ui/react-label";
import type { VariantProps } from "class-variance-authority";
-import { cva, } from "class-variance-authority";
+import { cva } from "class-variance-authority";
import type { ComponentPropsWithoutRef, ElementRef } from "react";
import { forwardRef } from "react";
diff --git a/packages/react/src/Number.tsx b/packages/react/src/Number.tsx
index 3228e97c47..851d6e6727 100644
--- a/packages/react/src/Number.tsx
+++ b/packages/react/src/Number.tsx
@@ -1,7 +1,7 @@
import { forwardRef } from "react";
import * as ReactAria from "react-aria-components";
import type { InputProps } from "./Input";
-import { Input, } from "./Input";
+import { Input } from "./Input";
import { cn } from "./utils/cn";
export type NumberFieldProps = ReactAria.NumberFieldProps;
diff --git a/packages/react/src/TextShimmer.tsx b/packages/react/src/TextShimmer.tsx
index 5a08bb43cb..0aed98bc69 100644
--- a/packages/react/src/TextShimmer.tsx
+++ b/packages/react/src/TextShimmer.tsx
@@ -1,6 +1,6 @@
"use client";
import { motion } from "framer-motion";
-import type { JSX, } from "react";
+import type { JSX } from "react";
import { memo, useMemo } from "react";
import { cn } from "./utils/cn";
diff --git a/packages/react/src/Toggle.tsx b/packages/react/src/Toggle.tsx
index 6f9e68f0a8..9cd417dcbc 100644
--- a/packages/react/src/Toggle.tsx
+++ b/packages/react/src/Toggle.tsx
@@ -2,7 +2,7 @@
import * as TogglePrimitive from "@radix-ui/react-toggle";
import type { VariantProps } from "class-variance-authority";
-import { cva, } from "class-variance-authority";
+import { cva } from "class-variance-authority";
import type { ComponentPropsWithoutRef, ElementRef } from "react";
import { forwardRef } from "react";
diff --git a/packages/react/src/utils/cn.ts b/packages/react/src/utils/cn.ts
index dd05c910bf..fe2c2b220c 100644
--- a/packages/react/src/utils/cn.ts
+++ b/packages/react/src/utils/cn.ts
@@ -1,4 +1,4 @@
-import type { ClassValue, } from "clsx";
+import type { ClassValue } from "clsx";
import { clsx } from "clsx";
import { extendTailwindMerge } from "tailwind-merge";
diff --git a/packages/tiptap/src/extensions/ai-highlight.ts b/packages/tiptap/src/extensions/ai-highlight.ts
index a09b326fa7..bcdfdf1e18 100644
--- a/packages/tiptap/src/extensions/ai-highlight.ts
+++ b/packages/tiptap/src/extensions/ai-highlight.ts
@@ -1,6 +1,4 @@
-import type {
- Editor,
-} from "@tiptap/core";
+import type { Editor } from "@tiptap/core";
import {
Mark,
markInputRule,
diff --git a/packages/tiptap/src/extensions/mention.tsx b/packages/tiptap/src/extensions/mention.tsx
index 4a7be728d3..f29613bc7b 100644
--- a/packages/tiptap/src/extensions/mention.tsx
+++ b/packages/tiptap/src/extensions/mention.tsx
@@ -8,7 +8,7 @@ import type {
import type { RefObject } from "react";
import tippy, { type Instance, type Props } from "tippy.js";
import type { MentionListRef } from "../components/mention-list";
-import { MentionList, } from "../components/mention-list";
+import { MentionList } from "../components/mention-list";
export interface MentionSuggestion {
id: string;
diff --git a/packages/tiptap/src/plugins/upload-images.tsx b/packages/tiptap/src/plugins/upload-images.tsx
index 985e77ac18..6accbac4a6 100644
--- a/packages/tiptap/src/plugins/upload-images.tsx
+++ b/packages/tiptap/src/plugins/upload-images.tsx
@@ -1,7 +1,7 @@
-import type { EditorState, } from "@tiptap/pm/state";
+import type { EditorState } from "@tiptap/pm/state";
import { Plugin, PluginKey } from "@tiptap/pm/state";
import type { EditorView } from "@tiptap/pm/view";
-import { Decoration, DecorationSet, } from "@tiptap/pm/view";
+import { Decoration, DecorationSet } from "@tiptap/pm/view";
const uploadKey = new PluginKey("upload-image");
diff --git a/packages/tiptap/src/utils/index.ts b/packages/tiptap/src/utils/index.ts
index 4c1c55b39c..22249cac0b 100644
--- a/packages/tiptap/src/utils/index.ts
+++ b/packages/tiptap/src/utils/index.ts
@@ -1,5 +1,5 @@
import type { Node } from "@tiptap/pm/model";
-import { Fragment, } from "@tiptap/pm/model";
+import { Fragment } from "@tiptap/pm/model";
import type { EditorInstance } from "../components";
export function isValidUrl(url: string) {