diff --git a/ui/src/components/nodes/Code.tsx b/ui/src/components/nodes/Code.tsx index a9db7e6f..986cbb0a 100644 --- a/ui/src/components/nodes/Code.tsx +++ b/ui/src/components/nodes/Code.tsx @@ -59,7 +59,7 @@ import { useApolloClient } from "@apollo/client"; import { NodeResizeControl, NodeResizer } from "reactflow"; import "@reactflow/node-resizer/dist/style.css"; -import { ResizeIcon } from "./utils"; +import { NewPodButtons, ResizeIcon } from "./utils"; export const ResultBlock = memo(function ResultBlock({ id }) { const store = useContext(RepoContext)!; @@ -536,6 +536,8 @@ export const CodeNode = memo(function ({ /> + + {/* The header of code pods. */} {devMode && ( @@ -549,7 +551,7 @@ export const CodeNode = memo(function ({ className="nodrag" > {id} at ({Math.round(xPos)}, {Math.round(yPos)}, w:{" "} - {pod.width}, h: {pod.height}) + {pod.width}, h: {pod.height}), parent: {pod.parent} )} (function ({ isConnectable={isConnectable} /> + {devMode && ( state.addNode); + return ( + <> + {/* Bottom 1 */} + + + {/* Bottom 2 */} + + {/* Left 1 */} + + + {/* Left 2 */} + + + {/* Right 1 */} + + + {/* Right 2 */} + + + ); +}