Skip to content

Commit 42232aa

Browse files
Implement trace inspector (GH-1)
2 parents 35d44e3 + 145530d commit 42232aa

File tree

23 files changed

+1351
-22
lines changed

23 files changed

+1351
-22
lines changed

langgraphics-web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"dependencies": {
1212
"@dagrejs/dagre": "^1.1.4",
1313
"@xyflow/react": "^12.10.0",
14+
"antd": "^6.3.0",
1415
"react": "^19.2.0",
1516
"react-dom": "^19.2.0"
1617
},
Lines changed: 9 additions & 0 deletions
Loading
Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 6 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 11 additions & 0 deletions
Loading
Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading

langgraphics-web/src/components/GraphCanvas.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {useState} from "react";
1+
import {type ReactNode, useState} from "react";
22
import {Background, type ColorMode, type Edge, type Node, type NodeTypes, ReactFlow} from "@xyflow/react";
33
import {Controls} from "./Controls";
44
import {CustomNode} from "./CustomNode";
@@ -11,9 +11,10 @@ interface GraphCanvasProps {
1111
nodes: Node<NodeData>[];
1212
edges: Edge<EdgeData>[];
1313
activeNodeId: string | null;
14+
inspect: ReactNode;
1415
}
1516

16-
export function GraphCanvas({nodes, edges, activeNodeId}: GraphCanvasProps) {
17+
export function GraphCanvas({nodes, edges, activeNodeId, inspect}: GraphCanvasProps) {
1718
const [colorMode, setColorMode] = useState<ColorMode>("system");
1819
const {isManual, goAuto, goManual} = useFocus({nodes, edges, activeNodeId});
1920

@@ -36,6 +37,7 @@ export function GraphCanvas({nodes, edges, activeNodeId}: GraphCanvasProps) {
3637
setColorMode={setColorMode}
3738
/>
3839
<Background/>
40+
{inspect}
3941
</ReactFlow>
4042
);
4143
}

0 commit comments

Comments
 (0)