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.

DAGs (#787)

Brad Barbina7474a26a9e8
diff --git a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
index ebe59a55ff..0463065bd8 100644
--- a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
+++ b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
@@ -281,7 +281,7 @@ const BoMExplorer = ({
parentClassName="h-full"
renderNode={({ node, state }) => {
return (
- <HoverCard openDelay={500}>
+ <HoverCard openDelay={500} closeDelay={0}>
<HoverCardTrigger asChild>
<div
key={node.id}
@@ -376,7 +376,10 @@ const BoMExplorer = ({
</div>
</div>
</HoverCardTrigger>
- <HoverCardContent side="right">
+ <HoverCardContent
+ side="right"
+ className="pointer-events-none"
+ >
<NodePreview node={node} />
</HoverCardContent>
</HoverCard>
diff --git a/apps/erp/app/modules/production/production.service.ts b/apps/erp/app/modules/production/production.service.ts
index 3cc25126bb..10b23c2dd0 100644
--- a/apps/erp/app/modules/production/production.service.ts
+++ b/apps/erp/app/modules/production/production.service.ts
@@ -1079,6 +1079,16 @@ export async function getJobOperations(
return query;
}
+export async function getJobOperationDependencies(
+ client: SupabaseClient<Database>,
+ jobId: string
+) {
+ return client
+ .from("jobOperationDependency")
+ .select("operationId, dependsOnId")
+ .eq("jobId", jobId);
+}
+
export async function getJobOperationsAssignedToEmployee(
client: SupabaseClient<Database>,
employeeId: string,
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx
index f712a288f2..e5c8d5ccec 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx
@@ -244,7 +244,7 @@ const JobBoMExplorer = ({ method }: JobBoMExplorerProps) => {
getNodeProps={getNodeProps}
getTreeProps={getTreeProps}
renderNode={({ node, state }) => (
- <HoverCard openDelay={500}>
+ <HoverCard openDelay={500} closeDelay={0}>
<HoverCardTrigger asChild>
<div
key={node.id}
@@ -328,7 +328,10 @@ const JobBoMExplorer = ({ method }: JobBoMExplorerProps) => {
</div>
</div>
</HoverCardTrigger>
- <HoverCardContent side="right">
+ <HoverCardContent
+ side="right"
+ className="pointer-events-none"
+ >
<NodePreview node={node} />
</HoverCardContent>
</HoverCard>
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobDag.tsx b/apps/erp/app/modules/production/ui/Jobs/JobDag.tsx
new file mode 100644
index 0000000000..a434e63dcc
--- /dev/null
+++ b/apps/erp/app/modules/production/ui/Jobs/JobDag.tsx
@@ -0,0 +1,276 @@
+import {
+ cn,
+ HStack,
+ Popover,
+ PopoverContent,
+ PopoverTrigger,
+ VStack
+} from "@carbon/react";
+import Dagre from "@dagrejs/dagre";
+import {
+ Background,
+ type Edge,
+ type EdgeTypes,
+ MiniMap,
+ type Node,
+ type NodeTypes,
+ Position,
+ ReactFlow,
+ ReactFlowProvider,
+ useEdgesState,
+ useNodesState,
+ useReactFlow
+} from "@xyflow/react";
+import "@xyflow/react/dist/style.css";
+import { useCallback, useEffect, useMemo, useState } from "react";
+import { LuArrowDown, LuArrowRight, LuInfo, LuMaximize } from "react-icons/lu";
+import type { JobOperation } from "../../types";
+import { JobOperationEdge } from "./JobOperationEdge";
+import { JobOperationNode } from "./JobOperationNode";
+
+type LayoutDirection = "LR" | "TB";
+
+const NODE_WIDTH = 200;
+const NODE_HEIGHT = 90;
+
+const nodeTypes: NodeTypes = {
+ jobOperation: JobOperationNode as any
+};
+
+const edgeTypes: EdgeTypes = {
+ jobOperationEdge: JobOperationEdge as any
+};
+
+const proOptions = { hideAttribution: true };
+
+type Dependency = {
+ operationId: string;
+ dependsOnId: string;
+};
+
+type Props = {
+ operations: JobOperation[];
+ dependencies: Dependency[];
+};
+
+function computeLayout(
+ operations: JobOperation[],
+ dependencies: Dependency[],
+ direction: LayoutDirection
+): { nodes: Node[]; edges: Edge[] } {
+ const g = new Dagre.graphlib.Graph();
+ g.setGraph({
+ rankdir: direction,
+ nodesep: 80,
+ ranksep: 120,
+ edgesep: 30,
+ marginx: 40,
+ marginy: 40
+ });
+ g.setDefaultEdgeLabel(() => ({}));
+
+ const opsById = new Map(operations.map((op) => [op.id, op]));
+
+ for (const op of operations) {
+ g.setNode(op.id, { width: NODE_WIDTH, height: NODE_HEIGHT });
+ }
+
+ for (const dep of dependencies) {
+ g.setEdge(dep.dependsOnId, dep.operationId);
+ }
+
+ Dagre.layout(g);
+
+ const isHorizontal = direction === "LR";
+
+ const nodes: Node[] = operations.map((op) => {
+ const pos = g.node(op.id);
+ return {
+ id: op.id,
+ type: "jobOperation",
+ position: {
+ x: pos.x - NODE_WIDTH / 2,
+ y: pos.y - NODE_HEIGHT / 2
+ },
+ data: {
+ description: op.description ?? "Untitled",
+ itemId: (op as any).jobMakeMethod?.item?.readableIdWithRevision ?? null,
+ status: op.status ?? "Todo",
+ quantityComplete: Number(op.quantityComplete ?? 0),
+ targetQuantity: Number(op.targetQuantity ?? 0),
+ quantityScrapped: Number(op.quantityScrapped ?? 0),
+ direction
+ },
+ sourcePosition: isHorizontal ? Position.Right : Position.Bottom,
+ targetPosition: isHorizontal ? Position.Left : Position.Top
+ };
+ });
+
+ const edges: Edge[] = dependencies.map((dep) => {
+ const upstream = opsById.get(dep.dependsOnId);
+ return {
+ id: `${dep.dependsOnId}-${dep.operationId}`,
+ source: dep.dependsOnId,
+ target: dep.operationId,
+ type: "jobOperationEdge",
+ data: {
+ quantity: Number(upstream?.quantityComplete ?? 0)
+ }
+ };
+ });
+
+ return { nodes, edges };
+}
+
+function JobDagInner({ operations, dependencies }: Props) {
+ const [direction, setDirection] = useState<LayoutDirection>("LR");
+ const { fitView } = useReactFlow();
+
+ const { nodes: layoutNodes, edges: layoutEdges } = useMemo(
+ () => computeLayout(operations, dependencies, direction),
+ [operations, dependencies, direction]
+ );
+
+ const [nodes, setNodes, onNodesChange] = useNodesState(layoutNodes);
+ const [edges, setEdges, onEdgesChange] = useEdgesState(layoutEdges);
+
+ useEffect(() => {
+ setNodes(layoutNodes);
+ setEdges(layoutEdges);
+ setTimeout(() => fitView({ padding: 0.1 }), 50);
+ }, [layoutNodes, layoutEdges, setNodes, setEdges, fitView]);
+
+ const toggleDirection = useCallback(() => {
+ setDirection((d) => (d === "LR" ? "TB" : "LR"));
+ }, []);
+
+ const handleFitView = useCallback(() => {
+ fitView({ padding: 0.1 });
+ }, [fitView]);
+
+ return (
+ <div className="flex flex-col h-full w-full">
+ <HStack
+ className="border-b border-border px-3 py-1.5 bg-card"
+ spacing={2}
+ >
+ <button
+ type="button"
+ onClick={toggleDirection}
+ className={cn(
+ "h-7 px-2 rounded-md text-xs font-medium flex items-center gap-1.5",
+ "border border-border bg-background hover:bg-accent/60 transition-colors"
+ )}
+ >
+ {direction === "LR" ? (
+ <LuArrowRight className="w-3.5 h-3.5" />
+ ) : (
+ <LuArrowDown className="w-3.5 h-3.5" />
+ )}
+ {direction === "LR" ? "Left to Right" : "Top to Bottom"}
+ </button>
+ <button
+ type="button"
+ onClick={handleFitView}
+ className={cn(
+ "h-7 px-2 rounded-md text-xs font-medium flex items-center gap-1.5",
+ "border border-border bg-background hover:bg-accent/60 transition-colors"
+ )}
+ >
+ <LuMaximize className="w-3.5 h-3.5" />
+ Fit
+ </button>
+ </HStack>
+
+ <div className="relative flex-1">
+ <ReactFlow
+ nodes={nodes}
+ edges={edges}
+ onNodesChange={onNodesChange}
+ onEdgesChange={onEdgesChange}
+ nodeTypes={nodeTypes}
+ edgeTypes={edgeTypes}
+ proOptions={proOptions}
+ fitView
+ fitViewOptions={{ padding: 0.1 }}
+ nodesDraggable={false}
+ nodesConnectable={false}
+ edgesFocusable={false}
+ minZoom={0.1}
+ maxZoom={2}
+ >
+ <Background gap={20} size={1} />
+ <MiniMap
+ nodeStrokeWidth={3}
+ pannable
+ zoomable
+ className="!bg-card !border-border"
+ />
+ </ReactFlow>
+ <DagLegend />
+ </div>
+ </div>
+ );
+}
+
+export function JobDag(props: Props) {
+ return (
+ <ReactFlowProvider>
+ <JobDagInner {...props} />
+ </ReactFlowProvider>
+ );
+}
+
+function DagLegend() {
+ const entries = [
+ { label: "Done", className: "border-green-500 bg-green-500" },
+ { label: "In Progress", className: "border-blue-500 bg-blue-500" },
+ { label: "Ready", className: "border-teal-500 bg-teal-500" },
+ { label: "Waiting", className: "border-gray-400 bg-gray-400" },
+ { label: "Todo", className: "border-gray-300 bg-gray-300" },
+ { label: "Paused", className: "border-amber-500 bg-amber-500" },
+ { label: "Canceled", className: "border-red-500 bg-red-500" }
+ ];
+
+ return (
+ <div className="absolute bottom-3 left-3 z-20">
+ <Popover>
+ <PopoverTrigger asChild>
+ <button
+ type="button"
+ aria-label="Show legend"
+ className={cn(
+ "h-8 w-8 rounded-md flex items-center justify-center transition-colors",
+ "border border-border bg-card/90 backdrop-blur shadow-sm",
+ "text-muted-foreground hover:text-foreground hover:bg-accent/60",
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
+ )}
+ >
+ <LuInfo className="w-4 h-4" />
+ </button>
+ </PopoverTrigger>
+ <PopoverContent
+ side="top"
+ align="start"
+ className="w-auto p-3 border-border"
+ >
+ <span className="block text-[10px] uppercase tracking-wider text-muted-foreground font-semibold mb-2">
+ Operation Status
+ </span>
+ <VStack spacing={2}>
+ {entries.map((entry) => (
+ <HStack key={entry.label} spacing={3} className="items-center">
+ <div
+ className={cn("w-4 h-4 rounded border-2", entry.className)}
+ />
+ <span className="text-[13px] text-foreground">
+ {entry.label}
+ </span>
+ </HStack>
+ ))}
+ </VStack>
+ </PopoverContent>
+ </Popover>
+ </div>
+ );
+}
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobHeader.tsx b/apps/erp/app/modules/production/ui/Jobs/JobHeader.tsx
index ccd3150cde..fb8d1cd736 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobHeader.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobHeader.tsx
@@ -60,7 +60,8 @@ import {
LuSquareSigma,
LuTable,
LuTrash,
- LuTriangleAlert
+ LuTriangleAlert,
+ LuWorkflow
} from "react-icons/lu";
import { RiProgress8Line } from "react-icons/ri";
import type { FetcherWithComponents } from "react-router";
@@ -94,6 +95,8 @@ const JobHeader = () => {
return t`Materials`;
case "operations":
return t`Operations`;
+ case "dag":
+ return "Workflow";
case "step-records":
return t`Step Records`;
case "events":
@@ -138,6 +141,7 @@ const JobHeader = () => {
return "events";
if (location.pathname.includes(path.to.jobProductionQuantities(jobId)))
return "quantities";
+ if (location.pathname.includes(path.to.jobDag(jobId))) return "dag";
return "details";
};
@@ -283,7 +287,11 @@ const JobHeader = () => {
{getExplorerLabel("details")}
</DropdownMenuRadioItem>
<DropdownMenuSeparator />
- {["materials", "operations"].map((i) => (
+ {[
+ "materials",
+ "operations",
+ ...(status !== "Draft" && status !== "Planned" ? ["dag"] : [])
+ ].map((i) => (
<DropdownMenuRadioItem value={i} key={i}>
<DropdownMenuIcon icon={getExplorerMenuIcon(i)} />
{getExplorerLabel(i)}
@@ -459,6 +467,8 @@ function getExplorerMenuIcon(type: string) {
return <LuPackage />;
case "operations":
return <LuSettings />;
+ case "dag":
+ return <LuWorkflow />;
case "step-records":
return <LuClipboardList />;
case "events":
@@ -476,6 +486,8 @@ const getExplorePath = (jobId: string, type: string) => {
return path.to.jobMaterials(jobId);
case "operations":
return path.to.jobOperations(jobId);
+ case "dag":
+ return path.to.jobDag(jobId);
case "step-records":
return path.to.jobOperationStepRecords(jobId);
case "events":
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobOperationEdge.tsx b/apps/erp/app/modules/production/ui/Jobs/JobOperationEdge.tsx
new file mode 100644
index 0000000000..26cbf6a2c0
--- /dev/null
+++ b/apps/erp/app/modules/production/ui/Jobs/JobOperationEdge.tsx
@@ -0,0 +1,72 @@
+import {
+ BaseEdge,
+ EdgeLabelRenderer,
+ type EdgeProps,
+ getSimpleBezierPath
+} from "@xyflow/react";
+import { memo } from "react";
+
+type JobOperationEdgeData = {
+ quantity: number;
+};
+
+function JobOperationEdgeImpl({
+ id,
+ sourceX,
+ sourceY,
+ targetX,
+ targetY,
+ sourcePosition,
+ targetPosition,
+ data
+}: EdgeProps) {
+ const d = data as unknown as JobOperationEdgeData | undefined;
+ const [edgePath, labelX, labelY] = getSimpleBezierPath({
+ sourceX,
+ sourceY,
+ sourcePosition,
+ targetX,
+ targetY,
+ targetPosition
+ });
+
+ const dimmed = d?.quantity === 0;
+
+ return (
+ <>
+ <BaseEdge
+ id={id}
+ path={edgePath}
+ style={{
+ stroke: "hsl(0 0% 55%)",
+ strokeWidth: 1.2,
+ opacity: 0.5,
+ fill: "none"
+ }}
+ />
+ {d?.quantity != null && (
+ <EdgeLabelRenderer>
+ <div
+ style={{
+ position: "absolute",
+ transform: `translate(-50%, -50%) translate(${labelX}px, ${labelY}px)`,
+ pointerEvents: "none",
+ minWidth: 22,
+ textAlign: "center",
+ zIndex: 1000
+ }}
+ className={`text-[11px] font-medium tabular-nums leading-none px-2 py-1 rounded-full border-2 ${
+ dimmed
+ ? "bg-background text-muted-foreground/60 border-border/40"
+ : "bg-background text-foreground border-border"
+ }`}
+ >
+ {d.quantity}
+ </div>
+ </EdgeLabelRenderer>
+ )}
+ </>
+ );
+}
+
+export const JobOperationEdge = memo(JobOperationEdgeImpl);
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobOperationNode.tsx b/apps/erp/app/modules/production/ui/Jobs/JobOperationNode.tsx
new file mode 100644
index 0000000000..69031c03b6
--- /dev/null
+++ b/apps/erp/app/modules/production/ui/Jobs/JobOperationNode.tsx
@@ -0,0 +1,73 @@
+import { BarProgress, cn } from "@carbon/react";
+import { Handle, type NodeProps, Position } from "@xyflow/react";
+import { memo } from "react";
+
+type JobOperationNodeData = {
+ description: string;
+ itemId: string | null;
+ status: string;
+ quantityComplete: number;
+ targetQuantity: number;
+ quantityScrapped: number;
+ direction: "LR" | "TB";
+};
+
+const STATUS_COLORS: Record<string, { border: string; bar: string }> = {
+ Done: { border: "border-green-500", bar: "bg-green-500" },
+ "In Progress": { border: "border-blue-500", bar: "bg-blue-500" },
+ Ready: { border: "border-teal-500", bar: "bg-teal-500" },
+ Waiting: { border: "border-gray-400", bar: "bg-gray-400" },
+ Todo: { border: "border-gray-300", bar: "bg-gray-300" },
+ Paused: { border: "border-amber-500", bar: "bg-amber-500" },
+ Canceled: { border: "border-red-500", bar: "bg-red-500" }
+};
+
+function JobOperationNodeImpl({ data }: NodeProps) {
+ const d = data as unknown as JobOperationNodeData;
+ const colors = STATUS_COLORS[d.status] ?? STATUS_COLORS.Todo;
+ const isHorizontal = d.direction === "LR";
+
+ return (
+ <>
+ <Handle
+ type="target"
+ position={isHorizontal ? Position.Left : Position.Top}
+ className="invisible"
+ />
+ <div
+ className={cn(
+ "w-[200px] rounded-lg border-2 bg-card px-3 py-2 shadow-sm",
+ colors.border
+ )}
+ >
+ {d.itemId && (
+ <div className="truncate text-[11px] text-muted-foreground leading-tight">
+ {d.itemId}
+ </div>
+ )}
+ <div className="truncate text-sm font-medium leading-tight">
+ {d.description}
+ </div>
+ <BarProgress
+ progress={d.quantityComplete}
+ max={d.targetQuantity || 1}
+ value={`${d.quantityComplete}/${d.targetQuantity}`}
+ activeClassName={colors.bar}
+ className="mt-1"
+ />
+ {d.quantityScrapped > 0 && (
+ <div className="mt-0.5 text-right text-[11px] text-red-500">
+ {d.quantityScrapped} scrapped
+ </div>
+ )}
+ </div>
+ <Handle
+ type="source"
+ position={isHorizontal ? Position.Right : Position.Bottom}
+ className="invisible"
+ />
+ </>
+ );
+}
+
+export const JobOperationNode = memo(JobOperationNodeImpl);
diff --git a/apps/erp/app/modules/production/ui/Jobs/index.ts b/apps/erp/app/modules/production/ui/Jobs/index.ts
index cf64685d92..26b23b910a 100644
--- a/apps/erp/app/modules/production/ui/Jobs/index.ts
+++ b/apps/erp/app/modules/production/ui/Jobs/index.ts
@@ -20,6 +20,8 @@ import ProductionEventsTable from "./ProductionEventsTable";
import ProductionQuantitiesTable from "./ProductionQuantitiesTable";
import ProductionQuantityForm from "./ProductionQuantityForm";
+export { JobDag } from "./JobDag";
+
export {
getDeadlineIcon,
JobBillOfMaterial,
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx
index 190d037c62..476f50bcf2 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx
@@ -183,7 +183,7 @@ const QuoteBoMExplorer = ({
getNodeProps={getNodeProps}
getTreeProps={getTreeProps}
renderNode={({ node, state }) => (
- <HoverCard openDelay={500}>
+ <HoverCard openDelay={500} closeDelay={0}>
<HoverCardTrigger asChild>
<div
key={node.id}
@@ -264,7 +264,7 @@ const QuoteBoMExplorer = ({
</div>
</div>
</HoverCardTrigger>
- <HoverCardContent side="right">
+ <HoverCardContent side="right" className="pointer-events-none">
<NodePreview node={node} />
</HoverCardContent>
</HoverCard>
diff --git a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json
index 53795cf470..676271884e 100644
--- a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json
+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json
@@ -1,5 +1,5 @@
{
- "generated": "2026-05-16T02:11:25.747Z",
+ "generated": "2026-05-18T03:08:48.451Z",
"totalTools": 1075,
"modules": 15,
"tools": [
diff --git a/apps/erp/app/routes/x+/job+/$jobId.dag.tsx b/apps/erp/app/routes/x+/job+/$jobId.dag.tsx
new file mode 100644
index 0000000000..0271b1e845
--- /dev/null
+++ b/apps/erp/app/routes/x+/job+/$jobId.dag.tsx
@@ -0,0 +1,67 @@
+import { error } from "@carbon/auth";
+import { requirePermissions } from "@carbon/auth/auth.server";
+import { flash } from "@carbon/auth/session.server";
+import { useMount, VStack } from "@carbon/react";
+import type { LoaderFunctionArgs } from "react-router";
+import { redirect, useLoaderData } from "react-router";
+import { usePanels } from "~/components/Layout";
+import {
+ getJob,
+ getJobOperationDependencies,
+ getJobOperations
+} from "~/modules/production";
+import { JobDag } from "~/modules/production/ui/Jobs";
+import { path } from "~/utils/path";
+
+export async function loader({ request, params }: LoaderFunctionArgs) {
+ const { client } = await requirePermissions(request, {
+ view: "production",
+ role: "employee"
+ });
+
+ const { jobId } = params;
+ if (!jobId) throw new Error("Could not find jobId");
+
+ const job = await getJob(client, jobId);
+ if (job.error) {
+ throw redirect(
+ path.to.jobs,
+ await flash(request, error(job.error, "Failed to fetch job"))
+ );
+ }
+
+ const [operations, dependencies] = await Promise.all([
+ getJobOperations(client, jobId),
+ getJobOperationDependencies(client, jobId)
+ ]);
+
+ if (operations.error) {
+ throw redirect(
+ path.to.jobs,
+ await flash(
+ request,
+ error(operations.error, "Failed to fetch job operations")
+ )
+ );
+ }
+
+ return {
+ operations: operations.data ?? [],
+ dependencies: dependencies.data ?? []
+ };
+}
+
+export default function JobDagRoute() {
+ const { operations, dependencies } = useLoaderData<typeof loader>();
+ const { setIsExplorerCollapsed } = usePanels();
+
+ useMount(() => {
+ setIsExplorerCollapsed(true);
+ });
+
+ return (
+ <VStack spacing={0} className="h-[calc(100dvh-99px)]">
+ <JobDag operations={operations} dependencies={dependencies} />
+ </VStack>
+ );
+}
diff --git a/apps/erp/app/utils/path.ts b/apps/erp/app/utils/path.ts
index 19a8d9de26..312ecc3cb6 100644
--- a/apps/erp/app/utils/path.ts
+++ b/apps/erp/app/utils/path.ts
@@ -912,6 +912,7 @@ export const path = {
jobBatchNumber: (id: string) => generatePath(`${x}/job/${id}/batch`),
jobComplete: (id: string) => generatePath(`${x}/job/${id}/complete`),
jobConfigure: (id: string) => generatePath(`${x}/job/${id}/configure`),
+ jobDag: (id: string) => generatePath(`${x}/job/${id}/dag`),
jobDetails: (id: string) => generatePath(`${x}/job/${id}/details`),
jobInspectionSteps: (id: string) =>
generatePath(`${x}/job/${id}/steps?filter=type:eq:Inspection`),
diff --git a/apps/mes/app/components/AppSidebar.tsx b/apps/mes/app/components/AppSidebar.tsx
index d1693bc3c7..3579bd46c4 100644
--- a/apps/mes/app/components/AppSidebar.tsx
+++ b/apps/mes/app/components/AppSidebar.tsx
@@ -44,6 +44,7 @@ import {
LuBuilding,
LuCalendarDays,
LuChevronDown,
+ LuCirclePlay,
LuClipboardList,
LuHistory,
LuLogOut,
@@ -208,6 +209,11 @@ export function OperationsNav({
icon: LuHistory,
to: path.to.recent
},
+ {
+ title: t`Jobs`,
+ icon: LuCirclePlay,
+ to: path.to.jobs
+ },
{
title: t`Maintenance`,
icon: LuWrench,
diff --git a/apps/mes/app/components/JobDag/JobDag.tsx b/apps/mes/app/components/JobDag/JobDag.tsx
new file mode 100644
index 0000000000..565a6c781c
--- /dev/null
+++ b/apps/mes/app/components/JobDag/JobDag.tsx
@@ -0,0 +1,288 @@
+import {
+ cn,
+ HStack,
+ Popover,
+ PopoverContent,
+ PopoverTrigger,
+ VStack
+} from "@carbon/react";
+import Dagre from "@dagrejs/dagre";
+import {
+ Background,
+ type Edge,
+ type EdgeTypes,
+ MiniMap,
+ type Node,
+ type NodeTypes,
+ Position,
+ ReactFlow,
+ ReactFlowProvider,
+ useEdgesState,
+ useNodesState,
+ useReactFlow
+} from "@xyflow/react";
+import "@xyflow/react/dist/style.css";
+import { useCallback, useEffect, useMemo, useState } from "react";
+import { LuArrowDown, LuArrowRight, LuInfo, LuMaximize } from "react-icons/lu";
+import { JobOperationEdge } from "./JobOperationEdge";
+import { JobOperationNode } from "./JobOperationNode";
+
+type LayoutDirection = "LR" | "TB";
+
+const NODE_WIDTH = 200;
+const NODE_HEIGHT = 90;
+
+const nodeTypes: NodeTypes = {
+ jobOperation: JobOperationNode as any
+};
+
+const edgeTypes: EdgeTypes = {
+ jobOperationEdge: JobOperationEdge as any
+};
+
+const proOptions = { hideAttribution: true };
+
+type Dependency = {
+ operationId: string;
+ dependsOnId: string;
+};
+
+type Operation = {
+ id: string;
+ description: string | null;
+ status: string | null;
+ quantityComplete: number | null;
+ targetQuantity: number | null;
+ quantityScrapped: number | null;
+ jobMakeMethod: {
+ item: { readableIdWithRevision: string | null } | null;
+ } | null;
+};
+
+type Props = {
+ operations: Operation[];
+ dependencies: Dependency[];
+};
+
+function computeLayout(
+ operations: Operation[],
+ dependencies: Dependency[],
+ direction: LayoutDirection
+): { nodes: Node[]; edges: Edge[] } {
+ const g = new Dagre.graphlib.Graph();
+ g.setGraph({
+ rankdir: direction,
+ nodesep: 80,
+ ranksep: 120,
+ edgesep: 30,
+ marginx: 40,
+ marginy: 40
+ });
+ g.setDefaultEdgeLabel(() => ({}));
+
+ const opsById = new Map(operations.map((op) => [op.id, op]));
+
+ for (const op of operations) {
+ g.setNode(op.id, { width: NODE_WIDTH, height: NODE_HEIGHT });
+ }
+
+ for (const dep of dependencies) {
+ g.setEdge(dep.dependsOnId, dep.operationId);
+ }
+
+ Dagre.layout(g);
+
+ const isHorizontal = direction === "LR";
+
+ const nodes: Node[] = operations.map((op) => {
+ const pos = g.node(op.id);
+ return {
+ id: op.id,
+ type: "jobOperation",
+ position: {
+ x: pos.x - NODE_WIDTH / 2,
+ y: pos.y - NODE_HEIGHT / 2
+ },
+ data: {
+ id: op.id,
+ description: op.description ?? "Untitled",
+ itemId: op.jobMakeMethod?.item?.readableIdWithRevision ?? null,
+ status: op.status ?? "Todo",
+ quantityComplete: Number(op.quantityComplete ?? 0),
+ targetQuantity: Number(op.targetQuantity ?? 0),
+ quantityScrapped: Number(op.quantityScrapped ?? 0),
+ direction
+ },
+ sourcePosition: isHorizontal ? Position.Right : Position.Bottom,
+ targetPosition: isHorizontal ? Position.Left : Position.Top
+ };
+ });
+
+ const edges: Edge[] = dependencies.map((dep) => {
+ const upstream = opsById.get(dep.dependsOnId);
+ return {
+ id: `${dep.dependsOnId}-${dep.operationId}`,
+ source: dep.dependsOnId,
+ target: dep.operationId,
+ type: "jobOperationEdge",
+ data: {
+ quantity: Number(upstream?.quantityComplete ?? 0)
+ }
+ };
+ });
+
+ return { nodes, edges };
+}
+
+function JobDagInner({ operations, dependencies }: Props) {
+ const [direction, setDirection] = useState<LayoutDirection>("LR");
+ const { fitView } = useReactFlow();
+
+ const { nodes: layoutNodes, edges: layoutEdges } = useMemo(
+ () => computeLayout(operations, dependencies, direction),
+ [operations, dependencies, direction]
+ );
+
+ const [nodes, setNodes, onNodesChange] = useNodesState(layoutNodes);
+ const [edges, setEdges, onEdgesChange] = useEdgesState(layoutEdges);
+
+ useEffect(() => {
+ setNodes(layoutNodes);
+ setEdges(layoutEdges);
+ setTimeout(() => fitView({ padding: 0.1 }), 50);
+ }, [layoutNodes, layoutEdges, setNodes, setEdges, fitView]);
+
+ const toggleDirection = useCallback(() => {
+ setDirection((d) => (d === "LR" ? "TB" : "LR"));
+ }, []);
+
+ const handleFitView = useCallback(() => {
+ fitView({ padding: 0.1 });
+ }, [fitView]);
+
+ return (
+ <div className="flex flex-col h-full w-full">
+ <HStack
+ className="border-b border-border px-3 py-1.5 bg-card"
+ spacing={2}
+ >
+ <button
+ type="button"
+ onClick={toggleDirection}
+ className={cn(
+ "h-7 px-2 rounded-md text-xs font-medium flex items-center gap-1.5",
+ "border border-border bg-background hover:bg-accent/60 transition-colors"
+ )}
+ >
+ {direction === "LR" ? (
+ <LuArrowRight className="w-3.5 h-3.5" />
+ ) : (
+ <LuArrowDown className="w-3.5 h-3.5" />
+ )}
+ {direction === "LR" ? "Left to Right" : "Top to Bottom"}
+ </button>
+ <button
+ type="button"
+ onClick={handleFitView}
+ className={cn(
+ "h-7 px-2 rounded-md text-xs font-medium flex items-center gap-1.5",
+ "border border-border bg-background hover:bg-accent/60 transition-colors"
+ )}
+ >
+ <LuMaximize className="w-3.5 h-3.5" />
+ Fit
+ </button>
+ </HStack>
+
+ <div className="relative flex-1">
+ <ReactFlow
+ nodes={nodes}
+ edges={edges}
+ onNodesChange={onNodesChange}
+ onEdgesChange={onEdgesChange}
+ nodeTypes={nodeTypes}
+ edgeTypes={edgeTypes}
+ proOptions={proOptions}
+ fitView
+ fitViewOptions={{ padding: 0.1 }}
+ nodesDraggable={false}
+ nodesConnectable={false}
+ edgesFocusable={false}
+ minZoom={0.1}
+ maxZoom={2}
+ >
+ <Background gap={20} size={1} />
+ <MiniMap
+ nodeStrokeWidth={3}
+ pannable
+ zoomable
+ className="!bg-card !border-border"
+ />
+ </ReactFlow>
+ <DagLegend />
+ </div>
+ </div>
+ );
+}
+
+export function JobDag(props: Props) {
+ return (
+ <ReactFlowProvider>
+ <JobDagInner {...props} />
+ </ReactFlowProvider>
+ );
+}
+
+function DagLegend() {
+ const entries = [
+ { label: "Done", className: "border-green-500 bg-green-500" },
+ { label: "In Progress", className: "border-blue-500 bg-blue-500" },
+ { label: "Ready", className: "border-teal-500 bg-teal-500" },
+ { label: "Waiting", className: "border-gray-400 bg-gray-400" },
+ { label: "Todo", className: "border-gray-300 bg-gray-300" },
+ { label: "Paused", className: "border-amber-500 bg-amber-500" },
+ { label: "Canceled", className: "border-red-500 bg-red-500" }
+ ];
+
+ return (
+ <div className="absolute bottom-3 left-3 z-20">
+ <Popover>
+ <PopoverTrigger asChild>
+ <button
+ type="button"
+ aria-label="Show legend"
+ className={cn(
+ "h-8 w-8 rounded-md flex items-center justify-center transition-colors",
+ "border border-border bg-card/90 backdrop-blur shadow-sm",
+ "text-muted-foreground hover:text-foreground hover:bg-accent/60",
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
+ )}
+ >
+ <LuInfo className="w-4 h-4" />
+ </button>
+ </PopoverTrigger>
+ <PopoverContent
+ side="top"
+ align="start"
+ className="w-auto p-3 border-border"
+ >
+ <span className="block text-[10px] uppercase tracking-wider text-muted-foreground font-semibold mb-2">
+ Operation Status
+ </span>
+ <VStack spacing={2}>
+ {entries.map((entry) => (
+ <HStack key={entry.label} spacing={3} className="items-center">
+ <div
+ className={cn("w-4 h-4 rounded border-2", entry.className)}
+ />
+ <span className="text-[13px] text-foreground">
+ {entry.label}
+ </span>
+ </HStack>
+ ))}
+ </VStack>
+ </PopoverContent>
+ </Popover>
+ </div>
+ );
+}
diff --git a/apps/mes/app/components/JobDag/JobOperationEdge.tsx b/apps/mes/app/components/JobDag/JobOperationEdge.tsx
new file mode 100644
index 0000000000..26cbf6a2c0
--- /dev/null
+++ b/apps/mes/app/components/JobDag/JobOperationEdge.tsx
@@ -0,0 +1,72 @@
+import {
+ BaseEdge,
+ EdgeLabelRenderer,
+ type EdgeProps,
+ getSimpleBezierPath
+} from "@xyflow/react";
+import { memo } from "react";
+
+type JobOperationEdgeData = {
+ quantity: number;
+};
+
+function JobOperationEdgeImpl({
+ id,
+ sourceX,
+ sourceY,
+ targetX,
+ targetY,
+ sourcePosition,
+ targetPosition,
+ data
+}: EdgeProps) {
+ const d = data as unknown as JobOperationEdgeData | undefined;
+ const [edgePath, labelX, labelY] = getSimpleBezierPath({
+ sourceX,
+ sourceY,
+ sourcePosition,
+ targetX,
+ targetY,
+ targetPosition
+ });
+
+ const dimmed = d?.quantity === 0;
+
+ return (
+ <>
+ <BaseEdge
+ id={id}
+ path={edgePath}
+ style={{
+ stroke: "hsl(0 0% 55%)",
+ strokeWidth: 1.2,
+ opacity: 0.5,
+ fill: "none"
+ }}
+ />
+ {d?.quantity != null && (
+ <EdgeLabelRenderer>
+ <div
+ style={{
+ position: "absolute",
+ transform: `translate(-50%, -50%) translate(${labelX}px, ${labelY}px)`,
+ pointerEvents: "none",
+ minWidth: 22,
+ textAlign: "center",
+ zIndex: 1000
+ }}
+ className={`text-[11px] font-medium tabular-nums leading-none px-2 py-1 rounded-full border-2 ${
+ dimmed
+ ? "bg-background text-muted-foreground/60 border-border/40"
+ : "bg-background text-foreground border-border"
+ }`}
+ >
+ {d.quantity}
+ </div>
+ </EdgeLabelRenderer>
+ )}
+ </>
+ );
+}
+
+export const JobOperationEdge = memo(JobOperationEdgeImpl);
diff --git a/apps/mes/app/components/JobDag/JobOperationNode.tsx b/apps/mes/app/components/JobDag/JobOperationNode.tsx
new file mode 100644
index 0000000000..80009255a4
--- /dev/null
+++ b/apps/mes/app/components/JobDag/JobOperationNode.tsx
@@ -0,0 +1,83 @@
+import { BarProgress, cn } from "@carbon/react";
+import { Handle, type NodeProps, Position } from "@xyflow/react";
+import { memo } from "react";
+import { useNavigate } from "react-router";
+import { path } from "~/utils/path";
+
+type JobOperationNodeData = {
+ id: string;
+ description: string;
+ itemId: string | null;
+ status: string;
+ quantityComplete: number;
+ targetQuantity: number;
+ quantityScrapped: number;
+ direction: "LR" | "TB";
+};
+
+const STATUS_COLORS: Record<string, { border: string; bar: string }> = {
+ Done: { border: "border-green-500", bar: "bg-green-500" },
+ "In Progress": { border: "border-blue-500", bar: "bg-blue-500" },
+ Ready: { border: "border-teal-500", bar: "bg-teal-500" },
+ Waiting: { border: "border-gray-400", bar: "bg-gray-400" },
+ Todo: { border: "border-gray-300", bar: "bg-gray-300" },
+ Paused: { border: "border-amber-500", bar: "bg-amber-500" },
+ Canceled: { border: "border-red-500", bar: "bg-red-500" }
+};
+
+function JobOperationNodeImpl({ data }: NodeProps) {
+ const d = data as unknown as JobOperationNodeData;
+ const colors = STATUS_COLORS[d.status] ?? STATUS_COLORS.Todo;
+ const isHorizontal = d.direction === "LR";
+ const navigate = useNavigate();
+
+ return (
+ <>
+ <Handle
+ type="target"
+ position={isHorizontal ? Position.Left : Position.Top}
+ className="invisible"
+ />
+ <div
+ role="button"
+ tabIndex={0}
+ onClick={() => navigate(path.to.operation(d.id))}
+ onKeyDown={(e) => {
+ if (e.key === "Enter") navigate(path.to.operation(d.id));
+ }}
+ className={cn(
+ "w-[200px] rounded-lg border-2 bg-card px-3 py-2 shadow-sm cursor-pointer hover:bg-accent/50 transition-colors",
+ colors.border
+ )}
+ >
+ {d.itemId && (
+ <div className="truncate text-[11px] text-muted-foreground leading-tight">
+ {d.itemId}
+ </div>
+ )}
+ <div className="truncate text-sm font-medium leading-tight">
+ {d.description}
+ </div>
+ <BarProgress
+ progress={d.quantityComplete}
+ max={d.targetQuantity || 1}
+ value={`${d.quantityComplete}/${d.targetQuantity}`}
+ activeClassName={colors.bar}
+ className="mt-1"
+ />
+ {d.quantityScrapped > 0 && (
+ <div className="mt-0.5 text-right text-[11px] text-red-500">
+ {d.quantityScrapped} scrapped
+ </div>
+ )}
+ </div>
+ <Handle
+ type="source"
+ position={isHorizontal ? Position.Right : Position.Bottom}
+ className="invisible"
+ />
+ </>
+ );
+}
+
+export const JobOperationNode = memo(JobOperationNodeImpl);
diff --git a/apps/mes/app/components/JobDag/index.ts b/apps/mes/app/components/JobDag/index.ts
new file mode 100644
index 0000000000..7b5ce931bb
--- /dev/null
+++ b/apps/mes/app/components/JobDag/index.ts
@@ -0,0 +1 @@
+export { JobDag } from "./JobDag";
diff --git a/apps/mes/app/routes/x+/job.$jobId.tsx b/apps/mes/app/routes/x+/job.$jobId.tsx
new file mode 100644
index 0000000000..197f9271b4
--- /dev/null
+++ b/apps/mes/app/routes/x+/job.$jobId.tsx
@@ -0,0 +1,58 @@
+import { requirePermissions } from "@carbon/auth/auth.server";
+import { getCarbonServiceRole } from "@carbon/auth/client.server";
+import { Heading, SidebarTrigger } from "@carbon/react";
+import { LuArrowLeft } from "react-icons/lu";
+import type { LoaderFunctionArgs } from "react-router";
+import { Link, useLoaderData } from "react-router";
+import { JobDag } from "~/components/JobDag";
+import {
+ getJobOperationDependencies,
+ getJobOperations
+} from "~/services/operations.service";
+import { path } from "~/utils/path";
+
+export async function loader({ request, params }: LoaderFunctionArgs) {
+ await requirePermissions(request, {});
+ const serviceRole = getCarbonServiceRole();
+
+ const { jobId } = params;
+ if (!jobId) throw new Error("Could not find jobId");
+
+ const [job, operations, dependencies] = await Promise.all([
+ serviceRole.from("jobs").select("jobId").eq("id", jobId).single(),
+ getJobOperations(serviceRole, jobId),
+ getJobOperationDependencies(serviceRole, jobId)
+ ]);
+
+ return {
+ readableId: job.data?.jobId ?? jobId,
+ operations: operations.data ?? [],
+ dependencies: dependencies.data ?? []
+ };
+}
+
+export default function JobDagRoute() {
+ const { readableId, operations, dependencies } =
+ useLoaderData<typeof loader>();
+
+ return (
+ <div className="flex flex-col flex-1">
+ <header className="sticky top-0 z-10 flex h-[var(--header-height)] shrink-0 items-center gap-2 transition-[width,height] ease-linear group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-12 border-b bg-background">
+ <div className="flex items-center gap-2 px-2">
+ <SidebarTrigger />
+ <Link
+ to={path.to.jobs}
+ className="flex items-center gap-1 text-muted-foreground hover:text-foreground transition-colors"
+ >
+ <LuArrowLeft className="w-4 h-4" />
+ </Link>
+ <Heading size="h4">{readableId}</Heading>
+ </div>
+ </header>
+
+ <main className="flex-1 overflow-hidden">
+ <JobDag operations={operations} dependencies={dependencies} />
+ </main>
+ </div>
+ );
+}
diff --git a/apps/mes/app/routes/x+/jobs.tsx b/apps/mes/app/routes/x+/jobs.tsx
new file mode 100644
index 0000000000..d8d5596951
--- /dev/null
+++ b/apps/mes/app/routes/x+/jobs.tsx
@@ -0,0 +1,248 @@
+import { requirePermissions } from "@carbon/auth/auth.server";
+import { getCarbonServiceRole } from "@carbon/auth/client.server";
+import {
+ Button,
+ Heading,
+ Input,
+ SidebarTrigger,
+ Status,
+ Table,
+ Tbody,
+ Td,
+ Th,
+ Thead,
+ Tr,
+ VStack
+} from "@carbon/react";
+import { Trans, useLingui } from "@lingui/react/macro";
+import { useMemo, useState } from "react";
+import { LuSearch, LuTriangleAlert } from "react-icons/lu";
+import type { LoaderFunctionArgs } from "react-router";
+import { Link, useLoaderData } from "react-router";
+import EmployeeAvatar from "~/components/EmployeeAvatar";
+import { userContext } from "~/context";
+import {
+ getOpenJobs,
+ getTrackedEntitiesByJobMakeMethodIds
+} from "~/services/operations.service";
+import { path } from "~/utils/path";
+
+export async function loader({ context, request }: LoaderFunctionArgs) {
+ const { companyId } = await requirePermissions(request, {});
+ const serviceRole = getCarbonServiceRole();
+ const locationId = context.get(userContext)?.locationId;
+
+ const jobs = await getOpenJobs(serviceRole, { companyId, locationId });
+
+ if (jobs.error) {
+ console.error("getOpenJobs error:", jobs.error);
+ }
+
+ const jobMakeMethodIds = (jobs.data ?? []).reduce<string[]>((acc, job) => {
+ if (job.jobMakeMethodId) acc.push(job.jobMakeMethodId);
+ return acc;
+ }, []);
+
+ const trackedEntities = await getTrackedEntitiesByJobMakeMethodIds(
+ serviceRole,
+ jobMakeMethodIds,
+ companyId
+ );
+
+ return {
+ jobs: jobs.data ?? [],
+ trackedEntities
+ };
+}
+
+type Job = {
+ id: string;
+ jobId: string;
+ status: string;
+ itemReadableIdWithRevision: string | null;
+ name: string | null;
+ quantity: number | null;
+ quantityComplete: number | null;
+ dueDate: string | null;
+ deadlineType: string | null;
+ assignee: string | null;
+ jobMakeMethodId: string | null;
+};
+
+const STATUS_COLORS: Record<
+ string,
+ "gray" | "yellow" | "blue" | "orange" | "green" | "red"
+> = {
+ Draft: "gray",
+ Planned: "yellow",
+ Ready: "blue",
+ "In Progress": "blue",
+ Paused: "orange",
+ Completed: "green",
+ Closed: "gray",
+ Cancelled: "red"
+};
+
+function JobStatus({ status }: { status: string | null }) {
+ if (!status) return null;
+ const color = STATUS_COLORS[status] ?? "gray";
+ return (
+ <Status color={color}>{status === "Ready" ? "Released" : status}</Status>
+ );
+}
+
+function formatDate(value: string | null) {
+ if (!value) return "—";
+ const date = new Date(value + "T00:00:00");
+ return date.toLocaleDateString(undefined, {
+ month: "short",
+ day: "numeric",
+ year: "numeric"
+ });
+}
+
+export default function JobsRoute() {
+ const { t } = useLingui();
+ const { jobs, trackedEntities } = useLoaderData<typeof loader>();
+ const [searchTerm, setSearchTerm] = useState("");
+
+ const filteredJobs = useMemo(() => {
+ if (!searchTerm) return jobs as Job[];
+ const term = searchTerm.toLowerCase();
+ return (jobs as Job[]).filter(
+ (job) =>
+ job.jobId?.toLowerCase().includes(term) ||
+ job.itemReadableIdWithRevision?.toLowerCase().includes(term) ||
+ job.name?.toLowerCase().includes(term)
+ );
+ }, [jobs, searchTerm]);
+
+ return (
+ <div className="flex flex-col flex-1">
+ <header className="sticky top-0 z-10 flex h-[var(--header-height)] shrink-0 items-center gap-2 transition-[width,height] ease-linear group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-12 border-b bg-background">
+ <div className="flex items-center gap-2 px-2">
+ <SidebarTrigger />
+ <Heading size="h4">
+ <Trans>Open Jobs</Trans>
+ </Heading>
+ </div>
+ </header>
+
+ <main className="flex-1 overflow-y-auto scrollbar-thin scrollbar-thumb-accent scrollbar-track-transparent">
+ <div className="p-4">
+ <div className="relative mb-4">
+ <LuSearch className="absolute left-2 top-2.5 h-4 w-4 text-muted-foreground" />
+ <Input
+ value={searchTerm}
+ onChange={(e) => setSearchTerm(e.target.value)}
+ placeholder={t`Search by job or item ID`}
+ className="pl-8"
+ />
+ </div>
+
+ {filteredJobs.length > 0 ? (
+ <Table>
+ <Thead>
+ <Tr>
+ <Th>
+ <Trans>Job</Trans>
+ </Th>
+ <Th>
+ <Trans>Item</Trans>
+ </Th>
+ <Th>
+ <Trans>Quantity</Trans>
+ </Th>
+ <Th>
+ <Trans>Tracking</Trans>
+ </Th>
+ <Th>
+ <Trans>Assignee</Trans>
+ </Th>
+ <Th>
+ <Trans>Due Date</Trans>
+ </Th>
+ <Th>
+ <Trans>Deadline</Trans>
+ </Th>
+ <Th>
+ <Trans>Status</Trans>
+ </Th>
+ </Tr>
+ </Thead>
+ <Tbody>
+ {filteredJobs.map((job) => {
+ const trackingId = job.jobMakeMethodId
+ ? trackedEntities[job.jobMakeMethodId]
+ : null;
+
+ return (
+ <Tr key={job.id}>
+ <Td>
+ <Link
+ to={path.to.jobDag(job.id)}
+ className="font-medium text-foreground hover:underline"
+ >
+ {job.jobId}
+ </Link>
+ </Td>
+ <Td>
+ <VStack spacing={0}>
+ <span>{job.itemReadableIdWithRevision ?? "—"}</span>
+ {job.name && (
+ <span className="text-xs text-muted-foreground">
+ {job.name}
+ </span>
+ )}
+ </VStack>
+ </Td>
+ <Td className="text-muted-foreground">
+ {job.quantity ?? "—"}
+ </Td>
+ <Td className="text-muted-foreground">
+ {trackingId ?? "—"}
+ </Td>
+ <Td>
+ <EmployeeAvatar employeeId={job.assignee} />
+ </Td>
+ <Td className="text-muted-foreground">
+ {formatDate(job.dueDate)}
+ </Td>
+ <Td className="text-muted-foreground">
+ {job.deadlineType ?? "—"}
+ </Td>
+ <Td>
+ <JobStatus status={job.status} />
+ </Td>
+ </Tr>
+ );
+ })}
+ </Tbody>
+ </Table>
+ ) : searchTerm ? (
+ <div className="flex flex-col items-center justify-center gap-4 py-16">
+ <div className="flex justify-center items-center h-12 w-12 rounded-full bg-foreground text-background">
+ <LuTriangleAlert className="h-6 w-6" />
+ </div>
+ <span className="text-xs font-mono font-light text-foreground uppercase">
+ <Trans>No results</Trans>
+ </span>
+ <Button onClick={() => setSearchTerm("")}>
+ <Trans>Clear Search</Trans>
+ </Button>
+ </div>
+ ) : (
+ <div className="flex flex-col items-center justify-center gap-4 py-16">
+ <div className="flex justify-center items-center h-12 w-12 rounded-full bg-foreground text-background">
+ <LuTriangleAlert className="h-6 w-6" />
+ </div>
+ <span className="text-xs font-mono font-light text-foreground uppercase">
+ <Trans>No open jobs</Trans>
+ </span>
+ </div>
+ )}
+ </div>
+ </main>
+ </div>
+ );
+}
diff --git a/apps/mes/app/services/operations.service.ts b/apps/mes/app/services/operations.service.ts
index ded70b895f..c0dd53952d 100644
--- a/apps/mes/app/services/operations.service.ts
+++ b/apps/mes/app/services/operations.service.ts
@@ -20,6 +20,68 @@ import type {
} from "./models";
import type { BaseOperationWithDetails, Job, StorageItem } from "./types";
+export async function getOpenJobs(
+ client: SupabaseClient<Database>,
+ args: { companyId: string; locationId: string }
+) {
+ return client
+ .from("jobs")
+ .select(
+ "id, jobId, status, itemReadableIdWithRevision, name, quantity, quantityComplete, dueDate, deadlineType, assignee, jobMakeMethodId"
+ )
+ .eq("companyId", args.companyId)
+ .eq("locationId", args.locationId)
+ .in("status", ["Ready", "In Progress", "Paused"])
+ .order("jobId", { ascending: true });
+}
+
+export async function getTrackedEntitiesByJobMakeMethodIds(
+ client: SupabaseClient<Database>,
+ jobMakeMethodIds: string[],
+ companyId: string
+) {
+ if (jobMakeMethodIds.length === 0) return {};
+ const result = await client
+ .from("trackedEntity")
+ .select("readableId, attributes")
+ .in("attributes->>Job Make Method", jobMakeMethodIds)
+ .eq("companyId", companyId);
+
+ if (!result.data) return {};
+
+ return result.data.reduce<Record<string, string>>((acc, curr) => {
+ if (
+ curr.attributes !== null &&
+ typeof curr.attributes === "object" &&
+ "Job Make Method" in curr.attributes &&
+ curr.readableId
+ ) {
+ acc[curr.attributes["Job Make Method"] as string] = curr.readableId;
+ }
+ return acc;
+ }, {});
+}
+
+export async function getJobOperations(
+ client: SupabaseClient<Database>,
+ jobId: string
+) {
+ return client
+ .from("jobOperation")
+ .select("*, jobMakeMethod(parentMaterialId, item(readableIdWithRevision))")
+ .eq("jobId", jobId);
+}
+
+export async function getJobOperationDependencies(
+ client: SupabaseClient<Database>,
+ jobId: string
+) {
+ return client
+ .from("jobOperationDependency")
+ .select("operationId, dependsOnId")
+ .eq("jobId", jobId);
+}
+
export async function deleteAttributeRecord(
client: SupabaseClient<Database>,
args: { id: string; companyId: string; userId: string }
diff --git a/apps/mes/app/utils/path.ts b/apps/mes/app/utils/path.ts
index 3163af191b..f9d0056df6 100644
--- a/apps/mes/app/utils/path.ts
+++ b/apps/mes/app/utils/path.ts
@@ -108,6 +108,8 @@ export const path = {
kanbanComplete: (id: string) => `${ERP_URL}/api/kanban/complete/${id}`,
inspectionSteps: `${x}/steps/inspection`,
inventoryAdjustment: `${x}/adjustment`,
+ jobDag: (id: string) => generatePath(`${x}/job/${id}`),
+ jobs: `${x}/jobs`,
issue: `${x}/issue`,
issueTrackedEntity: `${x}/issue-tracked-entity`,
location: `${x}/location`,
diff --git a/apps/mes/package.json b/apps/mes/package.json
index 96996c90ae..438e71b741 100644
--- a/apps/mes/package.json
+++ b/apps/mes/package.json
@@ -14,6 +14,8 @@
"@carbon/react": "workspace:*",
"@carbon/stripe": "workspace:*",
"@carbon/utils": "workspace:*",
+ "@dagrejs/dagre": "^1.1.4",
+ "@xyflow/react": "12.10.2",
"@dnd-kit/core": "catalog:",
"@dnd-kit/sortable": "catalog:",
"@dnd-kit/utilities": "catalog:",
diff --git a/packages/dev/package.json b/packages/dev/package.json
index dd61a5b086..8f5d99bbc1 100644
--- a/packages/dev/package.json
+++ b/packages/dev/package.json
@@ -7,7 +7,7 @@
"crbn": "./bin/crbn"
},
"exports": {
- "./vite": "./vite.ts"
+ "./vite": "./vite.js"
},
"scripts": {
"clean": "rimraf node_modules .turbo",
diff --git a/packages/dev/vite.ts b/packages/dev/vite.js
similarity index 93%
rename from packages/dev/vite.ts
rename to packages/dev/vite.js
index 2d3bbef386..b3a13ac815 100644
--- a/packages/dev/vite.ts
+++ b/packages/dev/vite.js
@@ -14,7 +14,7 @@ import { loadEnv } from "vite";
* `"development"` during startup, which previously left stale shell values
* (e.g. `SUPABASE_URL=127.0.0.1:54321`) in place.
*/
-export function applyDotenvToProcessEnv(mode: string, appDir: string) {
+export function applyDotenvToProcessEnv(mode, appDir) {
const repoRoot = path.resolve(appDir, "../..");
const fromFiles = {
...loadEnv(mode, appDir, ""),
diff --git a/packages/locale/locales/de/mes.po b/packages/locale/locales/de/mes.po
index 4957039810..02d9221501 100644
--- a/packages/locale/locales/de/mes.po
+++ b/packages/locale/locales/de/mes.po
@@ -402,6 +402,9 @@ msgstr "Auftragsdetails"
msgid "Job Traveler"
msgstr "Auftragsbegleitkarte"
+msgid "Jobs"
+msgstr ""
+
msgid "Kit"
msgstr "Bausatz"
@@ -532,6 +535,9 @@ msgstr "Keine Instandhaltung für heute geplant"
msgid "No materials"
msgstr "Keine Materialien"
+msgid "No open jobs"
+msgstr ""
+
msgid "No operators"
msgstr "Keine Bediener"
@@ -590,6 +596,9 @@ msgstr "Hoppla. Diese Seite sollten Sie nicht sehen. Sie wird künftig eine Star
msgid "Open"
msgstr "Offen"
+msgid "Open Jobs"
+msgstr ""
+
msgid "Operations"
msgstr "Arbeitsgänge"
@@ -708,6 +717,9 @@ msgstr "Ausschuss"
msgid "Search"
msgstr "Suchen"
+msgid "Search by job or item ID"
+msgstr ""
+
msgid "Search operators..."
msgstr "Bediener suchen..."
@@ -878,6 +890,9 @@ msgstr "Gesamtzeit: {0}"
msgid "Total: {0}"
msgstr "Gesamt: {0}"
+msgid "Tracking"
+msgstr ""
+
msgid "Tracking Labels"
msgstr "Verfolgungsetiketten"
diff --git a/packages/locale/locales/en/mes.po b/packages/locale/locales/en/mes.po
index 3f35063e1f..ff1b0a7b2e 100644
--- a/packages/locale/locales/en/mes.po
+++ b/packages/locale/locales/en/mes.po
@@ -402,6 +402,9 @@ msgstr "Job Details"
msgid "Job Traveler"
msgstr "Job Traveler"
+msgid "Jobs"
+msgstr "Jobs"
+
msgid "Kit"
msgstr "Kit"
@@ -532,6 +535,9 @@ msgstr "No maintenance scheduled for today"
msgid "No materials"
msgstr "No materials"
+msgid "No open jobs"
+msgstr "No open jobs"
+
msgid "No operators"
msgstr "No operators"
@@ -590,6 +596,9 @@ msgstr "Oops. You shouldn't see this page. Eventually it will be a landing page.
msgid "Open"
msgstr "Open"
+msgid "Open Jobs"
+msgstr "Open Jobs"
+
msgid "Operations"
msgstr "Operations"
@@ -708,6 +717,9 @@ msgstr "Scrapped"
msgid "Search"
msgstr "Search"
+msgid "Search by job or item ID"
+msgstr "Search by job or item ID"
+
msgid "Search operators..."
msgstr "Search operators..."
@@ -878,6 +890,9 @@ msgstr "Total time: {0}"
msgid "Total: {0}"
msgstr "Total: {0}"
+msgid "Tracking"
+msgstr "Tracking"
+
msgid "Tracking Labels"
msgstr "Tracking Labels"
diff --git a/packages/locale/locales/es/mes.po b/packages/locale/locales/es/mes.po
index 758cc0163c..8262ca5bc8 100644
--- a/packages/locale/locales/es/mes.po
+++ b/packages/locale/locales/es/mes.po
@@ -402,6 +402,9 @@ msgstr "Detalles del trabajo"
msgid "Job Traveler"
msgstr "Viajero de trabajo"
+msgid "Jobs"
+msgstr ""
+
msgid "Kit"
msgstr "Kit"
@@ -532,6 +535,9 @@ msgstr "No hay mantenimiento programado para hoy"
msgid "No materials"
msgstr "Sin materiales"
+msgid "No open jobs"
+msgstr ""
+
msgid "No operators"
msgstr "Sin operadores"
@@ -590,6 +596,9 @@ msgstr "Ups. No debería ver esta página. Eventualmente será una página de in
msgid "Open"
msgstr "Abierto"
+msgid "Open Jobs"
+msgstr ""
+
msgid "Operations"
msgstr "Operaciones"
@@ -708,6 +717,9 @@ msgstr "Descartado"
msgid "Search"
msgstr "Buscar"
+msgid "Search by job or item ID"
+msgstr ""
+
msgid "Search operators..."
msgstr "Buscar operadores..."
@@ -878,6 +890,9 @@ msgstr "Tiempo total: {0}"
msgid "Total: {0}"
msgstr "Total: {0}"
+msgid "Tracking"
+msgstr ""
+
msgid "Tracking Labels"
msgstr "Etiquetas de seguimiento"
diff --git a/packages/locale/locales/fr/mes.po b/packages/locale/locales/fr/mes.po
index 16105e315f..2933130cf6 100644
--- a/packages/locale/locales/fr/mes.po
+++ b/packages/locale/locales/fr/mes.po
@@ -402,6 +402,9 @@ msgstr "Détails de l'ordre de fabrication"
msgid "Job Traveler"
msgstr "Fiche suiveuse"
+msgid "Jobs"
+msgstr ""
+
msgid "Kit"
msgstr "Kit"
@@ -532,6 +535,9 @@ msgstr "Aucune maintenance planifiée pour aujourd'hui"
msgid "No materials"
msgstr "Aucun matériau"
+msgid "No open jobs"
+msgstr ""
+
msgid "No operators"
msgstr "Aucun opérateur"
@@ -590,6 +596,9 @@ msgstr "Oups. Vous ne devriez pas voir cette page. Elle deviendra éventuellemen
msgid "Open"
msgstr "Ouvert"
+msgid "Open Jobs"
+msgstr ""
+
msgid "Operations"
msgstr "Opérations"
@@ -708,6 +717,9 @@ msgstr "Rebuté"
msgid "Search"
msgstr "Rechercher"
+msgid "Search by job or item ID"
+msgstr ""
+
msgid "Search operators..."
msgstr "Rechercher des opérateurs..."
@@ -878,6 +890,9 @@ msgstr "Temps total : {0}"
msgid "Total: {0}"
msgstr "Total : {0}"
+msgid "Tracking"
+msgstr ""
+
msgid "Tracking Labels"
msgstr "Étiquettes de suivi"
diff --git a/packages/locale/locales/hi/mes.po b/packages/locale/locales/hi/mes.po
index 796e26a9ac..25e3a9946a 100644
--- a/packages/locale/locales/hi/mes.po
+++ b/packages/locale/locales/hi/mes.po
@@ -402,6 +402,9 @@ msgstr "नौकरी विवरण"
msgid "Job Traveler"
msgstr "जॉब ट्रैवलर"
+msgid "Jobs"
+msgstr ""
+
msgid "Kit"
msgstr "किट"
@@ -532,6 +535,9 @@ msgstr "आज के लिए कोई रखरखाव निर्धा
msgid "No materials"
msgstr "कोई सामग्री नहीं"
+msgid "No open jobs"
+msgstr ""
+
msgid "No operators"
msgstr "कोई ऑपरेटर नहीं"
@@ -590,6 +596,9 @@ msgstr "अरे। आपको यह पृष्ठ नहीं देख
msgid "Open"
msgstr "खुला"
+msgid "Open Jobs"
+msgstr ""
+
msgid "Operations"
msgstr "संचालन"
@@ -708,6 +717,9 @@ msgstr "स्क्रैप किया गया"
msgid "Search"
msgstr "खोजें"
+msgid "Search by job or item ID"
+msgstr ""
+
msgid "Search operators..."
msgstr "ऑपरेटर खोजें..."
@@ -878,6 +890,9 @@ msgstr "कुल समय: {0}"
msgid "Total: {0}"
msgstr "कुल: {0}"
+msgid "Tracking"
+msgstr ""
+
msgid "Tracking Labels"
msgstr "ट्रैकिंग लेबल"
diff --git a/packages/locale/locales/it/mes.po b/packages/locale/locales/it/mes.po
index 5ce1bff0d3..e039b049df 100644
--- a/packages/locale/locales/it/mes.po
+++ b/packages/locale/locales/it/mes.po
@@ -402,6 +402,9 @@ msgstr "Dettagli Commessa"
msgid "Job Traveler"
msgstr "Foglio di Lavorazione"
+msgid "Jobs"
+msgstr ""
+
msgid "Kit"
msgstr "Kit"
@@ -532,6 +535,9 @@ msgstr "Nessuna manutenzione programmata per oggi"
msgid "No materials"
msgstr "Nessun materiale"
+msgid "No open jobs"
+msgstr ""
+
msgid "No operators"
msgstr "Nessun operatore"
@@ -590,6 +596,9 @@ msgstr "Ops. Non dovresti vedere questa pagina. In futuro sarà una pagina di de
msgid "Open"
msgstr "Aperto"
+msgid "Open Jobs"
+msgstr ""
+
msgid "Operations"
msgstr "Operazioni"
@@ -708,6 +717,9 @@ msgstr "Scartato"
msgid "Search"
msgstr "Cerca"
+msgid "Search by job or item ID"
+msgstr ""
+
msgid "Search operators..."
msgstr "Cerca operatori..."
@@ -878,6 +890,9 @@ msgstr "Tempo totale: {0}"
msgid "Total: {0}"
msgstr "Totale: {0}"
+msgid "Tracking"
+msgstr ""
+
msgid "Tracking Labels"
msgstr "Etichette di Tracciabilità"
diff --git a/packages/locale/locales/ja/mes.po b/packages/locale/locales/ja/mes.po
index 3f590663e9..ad5c44e988 100644
--- a/packages/locale/locales/ja/mes.po
+++ b/packages/locale/locales/ja/mes.po
@@ -402,6 +402,9 @@ msgstr "ジョブ詳細"
msgid "Job Traveler"
msgstr "ジョブトラベラー"
+msgid "Jobs"
+msgstr ""
+
msgid "Kit"
msgstr "キット"
@@ -532,6 +535,9 @@ msgstr "本日のメンテナンス予定はありません"
msgid "No materials"
msgstr "材料なし"
+msgid "No open jobs"
+msgstr ""
+
msgid "No operators"
msgstr "オペレーターなし"
@@ -590,6 +596,9 @@ msgstr "このページは表示されないはずです。最終的にはラン
msgid "Open"
msgstr "未対応"
+msgid "Open Jobs"
+msgstr ""
+
msgid "Operations"
msgstr "工程"
@@ -708,6 +717,9 @@ msgstr "スクラップ済み"
msgid "Search"
msgstr "検索"
+msgid "Search by job or item ID"
+msgstr ""
+
msgid "Search operators..."
msgstr "オペレーターを検索..."
@@ -878,6 +890,9 @@ msgstr "合計時間: {0}"
msgid "Total: {0}"
msgstr "合計: {0}"
+msgid "Tracking"
+msgstr ""
+
msgid "Tracking Labels"
msgstr "追跡ラベル"
diff --git a/packages/locale/locales/pl/mes.po b/packages/locale/locales/pl/mes.po
index 32d03a2f8a..ae35df73a1 100644
--- a/packages/locale/locales/pl/mes.po
+++ b/packages/locale/locales/pl/mes.po
@@ -402,6 +402,9 @@ msgstr "Szczegóły zlecenia"
msgid "Job Traveler"
msgstr "Karta obiegowa zlecenia"
+msgid "Jobs"
+msgstr ""
+
msgid "Kit"
msgstr "Zestaw"
@@ -532,6 +535,9 @@ msgstr "Brak zaplanowanego utrzymania ruchu na dziś"
msgid "No materials"
msgstr "Brak materiałów"
+msgid "No open jobs"
+msgstr ""
+
msgid "No operators"
msgstr "Brak operatorów"
@@ -590,6 +596,9 @@ msgstr "Ups. Nie powinieneś widzieć tej strony. Docelowo będzie to strona gł
msgid "Open"
msgstr "Otwarte"
+msgid "Open Jobs"
+msgstr ""
+
msgid "Operations"
msgstr "Operacje"
@@ -708,6 +717,9 @@ msgstr "Odrzucone"
msgid "Search"
msgstr "Szukaj"
+msgid "Search by job or item ID"
+msgstr ""
+
msgid "Search operators..."
msgstr "Szukaj operatorów..."
@@ -878,6 +890,9 @@ msgstr "Czas całkowity: {0}"
msgid "Total: {0}"
msgstr "Razem: {0}"
+msgid "Tracking"
+msgstr ""
+
msgid "Tracking Labels"
msgstr "Etykiety śledzenia"
diff --git a/packages/locale/locales/pt/mes.po b/packages/locale/locales/pt/mes.po
index 3a62a92e38..03bfa5311d 100644
--- a/packages/locale/locales/pt/mes.po
+++ b/packages/locale/locales/pt/mes.po
@@ -402,6 +402,9 @@ msgstr "Detalhes da Ordem"
msgid "Job Traveler"
msgstr "Folha de Processo"
+msgid "Jobs"
+msgstr ""
+
msgid "Kit"
msgstr "Kit"
@@ -532,6 +535,9 @@ msgstr "Nenhuma manutenção programada para hoje"
msgid "No materials"
msgstr "Nenhum material"
+msgid "No open jobs"
+msgstr ""
+
msgid "No operators"
msgstr "Nenhum operador"
@@ -590,6 +596,9 @@ msgstr "Ops. Você não deveria ver esta página. Eventualmente será uma págin
msgid "Open"
msgstr "Aberto"
+msgid "Open Jobs"
+msgstr ""
+
msgid "Operations"
msgstr "Operações"
@@ -708,6 +717,9 @@ msgstr "Refugado"
msgid "Search"
msgstr "Pesquisar"
+msgid "Search by job or item ID"
+msgstr ""
+
msgid "Search operators..."
msgstr "Pesquisar operadores..."
@@ -878,6 +890,9 @@ msgstr "Tempo total: {0}"
msgid "Total: {0}"
msgstr "Total: {0}"
+msgid "Tracking"
+msgstr ""
+
msgid "Tracking Labels"
msgstr "Etiquetas de Rastreamento"
diff --git a/packages/locale/locales/ru/mes.po b/packages/locale/locales/ru/mes.po
index d4e27857ab..34d7bb51d0 100644
--- a/packages/locale/locales/ru/mes.po
+++ b/packages/locale/locales/ru/mes.po
@@ -402,6 +402,9 @@ msgstr "Детали задания"
msgid "Job Traveler"
msgstr "Маршрутный лист"
+msgid "Jobs"
+msgstr ""
+
msgid "Kit"
msgstr "Комплект"
@@ -532,6 +535,9 @@ msgstr "На сегодня обслуживание не запланирова
msgid "No materials"
msgstr "Нет материалов"
+msgid "No open jobs"
+msgstr ""
+
msgid "No operators"
msgstr "Нет операторов"
@@ -590,6 +596,9 @@ msgstr "Ой. Вы не должны видеть эту страницу. Со
msgid "Open"
msgstr "Открытые"
+msgid "Open Jobs"
+msgstr ""
+
msgid "Operations"
msgstr "Операции"
@@ -708,6 +717,9 @@ msgstr "Списано в брак"
msgid "Search"
msgstr "Поиск"
+msgid "Search by job or item ID"
+msgstr ""
+
msgid "Search operators..."
msgstr "Поиск операторов..."
@@ -878,6 +890,9 @@ msgstr "Общее время: {0}"
msgid "Total: {0}"
msgstr "Итого: {0}"
+msgid "Tracking"
+msgstr ""
+
msgid "Tracking Labels"
msgstr "Этикетки отслеживания"
diff --git a/packages/locale/locales/zh/mes.po b/packages/locale/locales/zh/mes.po
index c93eff9e79..169274a1ad 100644
--- a/packages/locale/locales/zh/mes.po
+++ b/packages/locale/locales/zh/mes.po
@@ -402,6 +402,9 @@ msgstr "工单详情"
msgid "Job Traveler"
msgstr "工单流转卡"
+msgid "Jobs"
+msgstr ""
+
msgid "Kit"
msgstr "套件"
@@ -532,6 +535,9 @@ msgstr "今天没有计划的维护"
msgid "No materials"
msgstr "无物料"
+msgid "No open jobs"
+msgstr ""
+
msgid "No operators"
msgstr "无操作员"
@@ -590,6 +596,9 @@ msgstr "抱歉,您不应该看到此页面。此页面最终将成为首页。
msgid "Open"
msgstr "打开"
+msgid "Open Jobs"
+msgstr ""
+
msgid "Operations"
msgstr "工序"
@@ -708,6 +717,9 @@ msgstr "已报废"
msgid "Search"
msgstr "搜索"
+msgid "Search by job or item ID"
+msgstr ""
+
msgid "Search operators..."
msgstr "搜索操作员..."
@@ -878,6 +890,9 @@ msgstr "总时间:{0}"
msgid "Total: {0}"
msgstr "合计:{0}"
+msgid "Tracking"
+msgstr ""
+
msgid "Tracking Labels"
msgstr "追踪标签"
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 8bf9f55d54..ed746ae2b4 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -633,7 +633,7 @@ importers:
'@novu/framework':
specifier: 2.10.0
'@novu/headless':
specifier: 2.7.0-alpha.0
version: 2.7.0-alpha.0
@@ -741,7 +741,7 @@ importers:
inngest:
specifier: ^3.52.7
intl-parse-accept-language:
specifier: 'catalog:'
version: 1.0.0
@@ -1019,6 +1019,9 @@ importers:
'@carbon/utils':
specifier: workspace:*
version: link:../../packages/utils
+ '@dagrejs/dagre':
+ specifier: ^1.1.4
+ version: 1.1.8
'@dnd-kit/core':
specifier: 'catalog:'
@@ -1124,6 +1127,9 @@ importers:
'@vercel/react-router':
specifier: 'catalog:'
+ '@xyflow/react':
+ specifier: 12.10.2
class-variance-authority:
specifier: 'catalog:'
version: 0.7.1
@@ -14229,7 +14235,7 @@ snapshots:
dependencies:
'@novu/shared': 2.6.6
dependencies:
ajv: 8.18.0
ajv-formats: 2.1.1([email protected])
@@ -14242,7 +14248,7 @@ snapshots:
pluralize: 8.0.0
sanitize-html: 2.17.3
optionalDependencies:
- express: 4.22.1
+ express: 5.2.1
zod: 3.25.76
zod-to-json-schema: 3.25.2([email protected])
transitivePeerDependencies:
@@ -20746,43 +20752,6 @@ snapshots:
- dependencies:
- '@bufbuild/protobuf': 2.11.0
- '@inngest/ai': 0.1.7
- '@jpwilliams/waitgroup': 2.1.1
- '@opentelemetry/api': 1.9.0
- '@opentelemetry/auto-instrumentations-node': 0.72.0(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))
- '@opentelemetry/context-async-hooks': 2.6.1(@opentelemetry/[email protected])
- '@opentelemetry/exporter-trace-otlp-http': 0.214.0(@opentelemetry/[email protected])
- '@opentelemetry/instrumentation': 0.214.0(@opentelemetry/[email protected])
- '@opentelemetry/resources': 2.6.1(@opentelemetry/[email protected])
- '@opentelemetry/sdk-trace-base': 2.6.1(@opentelemetry/[email protected])
- '@standard-schema/spec': 1.1.0
- '@traceloop/instrumentation-anthropic': 0.20.0
- '@types/debug': 4.1.13
- '@types/ms': 2.1.0
- canonicalize: 1.0.8
- chalk: 4.1.2
- cross-fetch: 4.1.0
- debug: 4.4.3([email protected])
- hash.js: 1.1.7
- json-stringify-safe: 5.0.1
- ms: 2.1.3
- serialize-error-cjs: 0.1.4
- strip-ansi: 5.2.0
- temporal-polyfill: 0.2.5
- ulid: 2.4.0
- zod: 3.25.76
- optionalDependencies:
- express: 4.22.1
- hono: 4.12.14
- typescript: 5.8.3
- transitivePeerDependencies:
- - '@opentelemetry/core'
- - encoding
- - supports-color
-
dependencies:
'@bufbuild/protobuf': 2.11.0