Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

feat: add ui for selecting make method versions

Brad Barbin27d0d33fff60
diff --git a/apps/erp/app/components/Icons.tsx b/apps/erp/app/components/Icons.tsx
index 59168fe773..da9b84d6a2 100644
--- a/apps/erp/app/components/Icons.tsx
+++ b/apps/erp/app/components/Icons.tsx
@@ -106,7 +106,7 @@ export const MethodIcon = ({
};
type MethodBadgeProps = {
- type: "Buy" | "Make" | "Pick";
+ type: "Buy" | "Make" | "Pick" | "Make Inactive";
text: string;
to: string;
className?: string;
@@ -118,7 +118,10 @@ export function MethodBadge({ type, text, to, className }: MethodBadgeProps) {
return (
<HStack className="group" spacing={1}>
<Badge style={style} className={className}>
- <MethodIcon type={type} className="w-3 h-3 mr-1 " />
+ <MethodIcon
+ type={type === "Make Inactive" ? "Make" : type}
+ className="w-3 h-3 mr-1 "
+ />
{text}
</Badge>
<Link
@@ -132,11 +135,16 @@ export function MethodBadge({ type, text, to, className }: MethodBadgeProps) {
);
}
-function getReplenishmentBadgeColor(type: MethodType, mode: "light" | "dark") {
+function getReplenishmentBadgeColor(
+ type: MethodType | "Make Inactive",
+ mode: "light" | "dark"
+) {
return type === "Buy"
? getColor("blue", mode)
: type === "Make"
? getColor("green", mode)
+ : type === "Make Inactive"
+ ? getColor("gray", mode)
: getColor("orange", mode);
}
diff --git a/apps/erp/app/components/Layout/Navigation/GroupedContentSidebar.tsx b/apps/erp/app/components/Layout/Navigation/GroupedContentSidebar.tsx
index 4877b00632..ed117acf32 100644
--- a/apps/erp/app/components/Layout/Navigation/GroupedContentSidebar.tsx
+++ b/apps/erp/app/components/Layout/Navigation/GroupedContentSidebar.tsx
@@ -10,6 +10,7 @@ import {
useDebounce,
VStack,
} from "@carbon/react";
+
import { Link, useSubmit } from "@remix-run/react";
import { Reorder } from "framer-motion";
import { useEffect, useState } from "react";
diff --git a/apps/erp/app/modules/items/types.ts b/apps/erp/app/modules/items/types.ts
index dc9021b14c..f16e42d8e4 100644
--- a/apps/erp/app/modules/items/types.ts
+++ b/apps/erp/app/modules/items/types.ts
@@ -12,7 +12,7 @@ import type {
getItemPostingGroupsList,
getItemQuantities,
getItemShelfQuantities,
- getMakeMethod,
+ getMakeMethods,
getMaterial,
getMaterialForms,
getMaterialSubstances,
@@ -99,8 +99,8 @@ export type ItemReplenishmentSystem =
Database["public"]["Enums"]["itemReplenishmentSystem"];
export type MakeMethod = NonNullable<
- Awaited<ReturnType<typeof getMakeMethod>>["data"]
->;
+ Awaited<ReturnType<typeof getMakeMethods>>["data"]
+>[number];
export type Material = NonNullable<
Awaited<ReturnType<typeof getMaterials>>["data"]
diff --git a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
index c4f56adcc3..40fb7e01fa 100644
--- a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
+++ b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
@@ -37,6 +37,7 @@ import { getLinkToItemDetails } from "./ItemForm";
type BoMExplorerProps = {
itemType: MethodItemType;
makeMethodId: string;
+ makeMethodVersion: string;
methods: FlatTreeItem<Method>[];
selectedId?: string;
};
@@ -44,6 +45,7 @@ type BoMExplorerProps = {
const BoMExplorer = ({
itemType,
makeMethodId,
+ makeMethodVersion,
methods,
selectedId,
}: BoMExplorerProps) => {
@@ -232,7 +234,7 @@ const BoMExplorer = ({
<div className="flex items-center gap-1">
{node.data.isRoot ? (
<Badge variant="outline" className="text-xs">
- Method
+ V{makeMethodVersion}
</Badge>
) : (
<NodeData node={node} />
diff --git a/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx b/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx
index a3fd61932e..7ee4a63af9 100644
--- a/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx
+++ b/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx
@@ -8,7 +8,6 @@ import {
DropdownMenuContent,
DropdownMenuIcon,
DropdownMenuItem,
- DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuTrigger,
HStack,
@@ -22,39 +21,47 @@ import {
ModalHeader,
ModalTitle,
VStack,
+ cn,
toast,
useDisclosure,
} from "@carbon/react";
-import { Link, useFetcher } from "@remix-run/react";
+import { Link, useFetcher, useParams } from "@remix-run/react";
import { useEffect, useState } from "react";
import {
+ LuCheck,
LuChevronDown,
LuCirclePlus,
LuGitBranch,
LuGitFork,
LuGitMerge,
- LuGitPullRequestArrow,
LuTriangleAlert,
} from "react-icons/lu";
+import { RxCodesandboxLogo } from "react-icons/rx";
import { Hidden, Item } from "~/components/Form";
import { usePermissions } from "~/hooks";
import type { MethodItemType } from "~/modules/shared";
import { path } from "~/utils/path";
import { getMethodValidator } from "../../items.models";
+import type { MakeMethod } from "../../types";
+import { getPathToMakeMethod } from "../Methods/utils";
import { getLinkToItemDetails } from "./ItemForm";
+import MakeMethodVersionStatus from "./MakeMethodVersionStatus";
type MakeMethodToolsProps = {
itemId: string;
type: MethodItemType;
- revisions: {
- id: string;
- name: string;
- }[];
+ makeMethods: MakeMethod[];
};
-const MakeMethodTools = ({ itemId, revisions, type }: MakeMethodToolsProps) => {
+const MakeMethodTools = ({
+ itemId,
+ makeMethods,
+ type,
+}: MakeMethodToolsProps) => {
const permissions = usePermissions();
const fetcher = useFetcher<{ error: string | null }>();
+ const params = useParams();
+ const { methodId, makeMethodId } = params;
const isGetMethodLoading =
fetcher.state !== "idle" && fetcher.formAction === path.to.makeMethodGet;
@@ -74,6 +81,9 @@ const MakeMethodTools = ({ itemId, revisions, type }: MakeMethodToolsProps) => {
const newVersionDisclosure = useDisclosure();
const itemLink = type && itemId ? getLinkToItemDetails(type, itemId) : null;
+ const activeVersion =
+ makeMethods.find((m) => m.id === methodId) ?? makeMethods[0];
+
return (
<>
<Menubar>
@@ -112,10 +122,10 @@ const MakeMethodTools = ({ itemId, revisions, type }: MakeMethodToolsProps) => {
<DropdownMenuTrigger asChild>
<Button
variant="ghost"
- leftIcon={<LuGitPullRequestArrow />}
+ leftIcon={<RxCodesandboxLogo />}
rightIcon={<LuChevronDown />}
>
- Versions
+ Version {activeVersion.version}
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
@@ -125,19 +135,34 @@ const MakeMethodTools = ({ itemId, revisions, type }: MakeMethodToolsProps) => {
New Version
</DropdownMenuItem>
)}
- {revisions && revisions.length > 0 && (
+ {makeMethods && makeMethods.length > 0 && (
<>
- <DropdownMenuLabel>Version History</DropdownMenuLabel>
<DropdownMenuSeparator />
- {revisions.map((revision) => (
- <Link
- key={revision.id}
- to={path.to.procedure(revision.id)}
- className="relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
- >
- {revision.name}
- </Link>
- ))}
+ {makeMethods.map((makeMethod) => {
+ const isCurrent =
+ (makeMethod.id === methodId &&
+ makeMethodId === undefined) ||
+ makeMethod.id === makeMethodId;
+ return (
+ <Link
+ key={makeMethod.id}
+ to={getPathToMakeMethod(type, itemId, makeMethod.id)}
+ className="relative flex gap-4 justify-between cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
+ >
+ <div className="flex items-center gap-2">
+ <LuCheck className={cn(!isCurrent && "opacity-0")} />
+ <span>Version {makeMethod.version}</span>
+ </div>
+ <MakeMethodVersionStatus
+ status={makeMethod.status}
+ isActive={
+ makeMethod.status === "Active" ||
+ makeMethods.length === 1
+ }
+ />
+ </Link>
+ );
+ })}
</>
)}
</DropdownMenuContent>
diff --git a/apps/erp/app/modules/items/ui/Item/MakeMethodVersionStatus.tsx b/apps/erp/app/modules/items/ui/Item/MakeMethodVersionStatus.tsx
new file mode 100644
index 0000000000..4a15f45382
--- /dev/null
+++ b/apps/erp/app/modules/items/ui/Item/MakeMethodVersionStatus.tsx
@@ -0,0 +1,25 @@
+import type { Database } from "@carbon/database";
+import { Status } from "@carbon/react";
+
+type MakeMethodVersionStatusProps = {
+ status?: Database["public"]["Enums"]["makeMethodStatus"];
+ isActive: boolean;
+};
+
+const MakeMethodVersionStatus = ({
+ status,
+ isActive,
+}: MakeMethodVersionStatusProps) => {
+ switch (status) {
+ case "Draft":
+ return <Status color="gray">{status}</Status>;
+ case "Active":
+ return <Status color="green">{status}</Status>;
+ case "Archived":
+ return <Status color="orange">{status}</Status>;
+ default:
+ return null;
+ }
+};
+
+export default MakeMethodVersionStatus;
diff --git a/apps/erp/app/modules/items/ui/Methods/utils.ts b/apps/erp/app/modules/items/ui/Methods/utils.ts
index 1d1266df9c..ad6869f786 100644
--- a/apps/erp/app/modules/items/ui/Methods/utils.ts
+++ b/apps/erp/app/modules/items/ui/Methods/utils.ts
@@ -1,7 +1,8 @@
+import type { MethodItemType } from "~/modules/shared";
import { path } from "~/utils/path";
export function getPathToMakeMethod(
- type: string,
+ type: MethodItemType,
id: string,
methodId: string
) {
diff --git a/apps/erp/app/modules/items/ui/Parts/PartProperties.tsx b/apps/erp/app/modules/items/ui/Parts/PartProperties.tsx
index 176041856f..e28dc2ecd5 100644
--- a/apps/erp/app/modules/items/ui/Parts/PartProperties.tsx
+++ b/apps/erp/app/modules/items/ui/Parts/PartProperties.tsx
@@ -380,14 +380,19 @@ const PartProperties = () => {
<Suspense fallback={null}>
<Await resolve={routeData?.makeMethods}>
{(makeMethods) =>
- makeMethods.data?.map((method) => (
- <MethodBadge
- key={method.id}
- type="Make"
- text={`Version ${method.version}`}
- to={path.to.partMakeMethod(itemId, method.id)}
- />
- ))
+ makeMethods.data?.map((method) => {
+ const isActive =
+ method.status === "Active" ||
+ makeMethods.data?.length === 1;
+ return (
+ <MethodBadge
+ key={method.id}
+ type={isActive ? "Make" : "Make Inactive"}
+ text={`Version ${method.version}`}
+ to={path.to.partMakeMethod(itemId, method.id)}
+ />
+ );
+ })
}
</Await>
</Suspense>
diff --git a/apps/erp/app/modules/items/ui/Tools/ToolProperties.tsx b/apps/erp/app/modules/items/ui/Tools/ToolProperties.tsx
index d398a00999..2c06d2506e 100644
--- a/apps/erp/app/modules/items/ui/Tools/ToolProperties.tsx
+++ b/apps/erp/app/modules/items/ui/Tools/ToolProperties.tsx
@@ -347,14 +347,19 @@ const ToolProperties = () => {
<Suspense fallback={null}>
<Await resolve={routeData?.makeMethods}>
{(makeMethods) =>
- makeMethods.data?.map((method) => (
- <MethodBadge
- key={method.id}
- type="Make"
- text={`Revision ${method.revision}`}
- to={path.to.partMakeMethod(itemId, method.id)}
- />
- ))
+ makeMethods.data?.map((method) => {
+ const isActive =
+ method.status === "Active" ||
+ makeMethods.data?.length === 1;
+ return (
+ <MethodBadge
+ key={method.id}
+ type={isActive ? "Make" : "Make Inactive"}
+ text={`Version ${method.version}`}
+ to={path.to.partMakeMethod(itemId, method.id)}
+ />
+ );
+ })
}
</Await>
</Suspense>
diff --git a/apps/erp/app/routes/x+/part+/$itemId.manufacturing.$methodId.$makeMethodId.tsx b/apps/erp/app/routes/x+/part+/$itemId.manufacturing.$methodId.$makeMethodId.tsx
index da3fc0642d..24b9cd33f7 100644
--- a/apps/erp/app/routes/x+/part+/$itemId.manufacturing.$methodId.$makeMethodId.tsx
+++ b/apps/erp/app/routes/x+/part+/$itemId.manufacturing.$methodId.$makeMethodId.tsx
@@ -1,5 +1,5 @@
import type { JSONContent } from "@carbon/react";
-import { VStack } from "@carbon/react";
+import { Menubar, VStack } from "@carbon/react";
import {
Await,
defer,
@@ -25,6 +25,7 @@ import type {
} from "~/modules/items";
import {
getMakeMethodById,
+ getMakeMethods,
getMethodMaterialsByMakeMethod,
getMethodOperationsByMakeMethodId,
} from "~/modules/items";
@@ -112,6 +113,7 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
workCenterId: operation.workCenterId ?? undefined,
workInstruction: operation.workInstruction as JSONContent | null,
})) ?? [],
+ makeMethods: getMakeMethods(client, makeMethod.data.itemId, companyId),
model: getModelByItemId(client, makeMethod.data.itemId),
tags: tags.data ?? [],
});
@@ -120,7 +122,8 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
export default function MethodMaterialMakePage() {
const loaderData = useLoaderData<typeof loader>();
const permissions = usePermissions();
- const { makeMethod, methodMaterials, methodOperations, tags } = loaderData;
+ const { makeMethod, makeMethods, methodMaterials, methodOperations, tags } =
+ loaderData;
const { itemId, makeMethodId } = useParams();
if (!itemId) throw new Error("Could not find itemId");
@@ -139,7 +142,17 @@ export default function MethodMaterialMakePage() {
return (
<VStack spacing={2} className="p-2">
- <MakeMethodTools itemId={makeMethod.itemId} type="Part" />
+ <Suspense fallback={<Menubar />}>
+ <Await resolve={makeMethods}>
+ {(makeMethods) => (
+ <MakeMethodTools
+ itemId={makeMethod.itemId}
+ makeMethods={makeMethods.data ?? []}
+ type="Part"
+ />
+ )}
+ </Await>
+ </Suspense>
<BillOfProcess
key={`bop:${itemId}`}
diff --git a/apps/erp/app/routes/x+/part+/$itemId.manufacturing.$methodId.method.tsx b/apps/erp/app/routes/x+/part+/$itemId.manufacturing.$methodId.method.tsx
index 681c2459b6..95d131c7b5 100644
--- a/apps/erp/app/routes/x+/part+/$itemId.manufacturing.$methodId.method.tsx
+++ b/apps/erp/app/routes/x+/part+/$itemId.manufacturing.$methodId.method.tsx
@@ -2,11 +2,12 @@ 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 { VStack } from "@carbon/react";
-import { useLoaderData, useParams } from "@remix-run/react";
+import { Menubar, VStack } from "@carbon/react";
+import { Await, useLoaderData, useParams } from "@remix-run/react";
import type { PostgrestResponse } from "@supabase/supabase-js";
import type { ActionFunctionArgs, LoaderFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
+import { Suspense } from "react";
import type { z } from "zod";
import CadModel from "~/components/CadModel";
import { usePermissions, useRouteData } from "~/hooks";
@@ -36,8 +37,6 @@ import { getTagsList } from "~/modules/shared";
import { getCustomFields, setCustomFields } from "~/utils/form";
import { path } from "~/utils/path";
-// loader
-
export async function loader({ request, params }: LoaderFunctionArgs) {
const { client, companyId } = await requirePermissions(request, {
view: "parts",
@@ -132,7 +131,17 @@ export default function MakeMethodRoute() {
return (
<VStack spacing={2} className="p-2">
- <MakeMethodTools itemId={itemId} type="Part" revisions={[]} />
+ <Suspense fallback={<Menubar />}>
+ <Await resolve={itemRouteData?.makeMethods}>
+ {(makeMethods) => (
+ <MakeMethodTools
+ itemId={manufacturingRouteData?.makeMethod.itemId}
+ makeMethods={makeMethods?.data ?? []}
+ type="Part"
+ />
+ )}
+ </Await>
+ </Suspense>
<PartManufacturingForm
key={itemId}
// @ts-ignore
diff --git a/apps/erp/app/routes/x+/part+/$itemId.manufacturing.$methodId.tsx b/apps/erp/app/routes/x+/part+/$itemId.manufacturing.$methodId.tsx
index e546d7adf0..04fb4d30a5 100644
--- a/apps/erp/app/routes/x+/part+/$itemId.manufacturing.$methodId.tsx
+++ b/apps/erp/app/routes/x+/part+/$itemId.manufacturing.$methodId.tsx
@@ -158,6 +158,7 @@ export default function PartManufacturing() {
<BoMExplorer
itemType="Part"
makeMethodId={makeMethod.id}
+ makeMethodVersion={makeMethod.version.toString()}
// @ts-ignore
methods={methods}
/>
diff --git a/apps/erp/app/routes/x+/tool+/$itemId.manufacturing.$methodId.$makeMethodId.tsx b/apps/erp/app/routes/x+/tool+/$itemId.manufacturing.$methodId.$makeMethodId.tsx
index 5831a7f06c..23f918d1d6 100644
--- a/apps/erp/app/routes/x+/tool+/$itemId.manufacturing.$methodId.$makeMethodId.tsx
+++ b/apps/erp/app/routes/x+/tool+/$itemId.manufacturing.$methodId.$makeMethodId.tsx
@@ -1,5 +1,5 @@
import type { JSONContent } from "@carbon/react";
-import { VStack } from "@carbon/react";
+import { Menubar, VStack } from "@carbon/react";
import {
Await,
defer,
@@ -17,6 +17,7 @@ import { CadModel } from "~/components";
import { usePermissions } from "~/hooks/usePermissions";
import {
getMakeMethodById,
+ getMakeMethods,
getMethodMaterialsByMakeMethod,
getMethodOperationsByMakeMethodId,
} from "~/modules/items";
@@ -105,6 +106,7 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
workInstruction: operation.workInstruction as JSONContent | null,
})) ?? [],
model: getModelByItemId(client, makeMethod.data.itemId),
+ makeMethods: getMakeMethods(client, makeMethod.data.itemId, companyId),
tags: tags.data ?? [],
});
}
@@ -112,7 +114,8 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
export default function MethodMaterialMakePage() {
const loaderData = useLoaderData<typeof loader>();
const permissions = usePermissions();
- const { makeMethod, methodMaterials, methodOperations, tags } = loaderData;
+ const { makeMethod, makeMethods, methodMaterials, methodOperations, tags } =
+ loaderData;
const { itemId, makeMethodId } = useParams();
if (!itemId) throw new Error("Could not find itemId");
@@ -120,7 +123,17 @@ export default function MethodMaterialMakePage() {
return (
<VStack spacing={2} className="p-2">
- <MakeMethodTools itemId={makeMethod.itemId} type="Tool" />
+ <Suspense fallback={<Menubar />}>
+ <Await resolve={makeMethods}>
+ {(makeMethods) => (
+ <MakeMethodTools
+ itemId={makeMethod.itemId}
+ makeMethods={makeMethods.data ?? []}
+ type="Tool"
+ />
+ )}
+ </Await>
+ </Suspense>
<BillOfProcess
key={`bop:${itemId}`}
diff --git a/apps/erp/app/routes/x+/tool+/$itemId.manufacturing.$methodId.method.tsx b/apps/erp/app/routes/x+/tool+/$itemId.manufacturing.$methodId.method.tsx
index 1ad2ded5c5..3f5950cf9f 100644
--- a/apps/erp/app/routes/x+/tool+/$itemId.manufacturing.$methodId.method.tsx
+++ b/apps/erp/app/routes/x+/tool+/$itemId.manufacturing.$methodId.method.tsx
@@ -1,9 +1,10 @@
import { requirePermissions } from "@carbon/auth/auth.server";
-import { VStack } from "@carbon/react";
-import { useLoaderData, useParams } from "@remix-run/react";
+import { Menubar, VStack } from "@carbon/react";
+import { Await, useLoaderData, useParams } from "@remix-run/react";
import type { PostgrestResponse } from "@supabase/supabase-js";
import type { LoaderFunctionArgs } from "@vercel/remix";
import { json } from "@vercel/remix";
+import { Suspense } from "react";
import CadModel from "~/components/CadModel";
import { usePermissions, useRouteData } from "~/hooks";
import type {
@@ -56,20 +57,23 @@ export default function MakeMethodRoute() {
return (
<VStack spacing={2} className="p-2">
- <MakeMethodTools itemId={itemId} type="Tool" revisions={[]} />
+ <Suspense fallback={<Menubar />}>
+ <Await resolve={itemRouteData?.makeMethods}>
+ {(makeMethods) => (
+ <MakeMethodTools
+ itemId={manufacturingRouteData?.makeMethod.itemId}
+ makeMethods={makeMethods?.data ?? []}
+ type="Tool"
+ />
+ )}
+ </Await>
+ </Suspense>
<BillOfProcess
key={`bop:${itemId}`}
makeMethodId={makeMethodId}
// @ts-ignore
operations={manufacturingRouteData?.methodOperations ?? []}
- // configurable={
- // manufacturingRouteData?.toolManufacturing.requiresConfiguration
- // }
- // configurationRules={manufacturingRouteData?.configurationRules}
- // parameters={
- // manufacturingRouteData?.configurationParametersAndGroups.parameters
- // }
tags={tags}
/>
<BillOfMaterial
@@ -79,13 +83,6 @@ export default function MakeMethodRoute() {
materials={manufacturingRouteData?.methodMaterials ?? []}
// @ts-ignore
operations={manufacturingRouteData?.methodOperations}
- // configurable={
- // manufacturingRouteData?.toolManufacturing.requiresConfiguration
- // }
- // configurationRules={manufacturingRouteData?.configurationRules}
- // parameters={
- // manufacturingRouteData?.configurationParametersAndGroups.parameters
- // }
/>
<CadModel
diff --git a/apps/erp/app/routes/x+/tool+/$itemId.manufacturing.$methodId.tsx b/apps/erp/app/routes/x+/tool+/$itemId.manufacturing.$methodId.tsx
index c18eddb32d..eadc025b66 100644
--- a/apps/erp/app/routes/x+/tool+/$itemId.manufacturing.$methodId.tsx
+++ b/apps/erp/app/routes/x+/tool+/$itemId.manufacturing.$methodId.tsx
@@ -147,6 +147,7 @@ export default function ToolManufacturing() {
<BoMExplorer
itemType="Tool"
makeMethodId={makeMethod.id}
+ makeMethodVersion={makeMethod.version.toString()}
// @ts-ignore
methods={methods}
/>