From 12283981b963ca3ac0b3d8e4d9604da2667346b9 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Fri, 10 Feb 2023 16:28:48 -0300 Subject: [PATCH] Merge branches of multiple nodes and sidebars --- space_flow/public/index.html | 4 ++-- .../src/CustomNodes/AgentNode/index.tsx | 17 +++++++++++++++++ .../src/CustomNodes/ChainNode/index.tsx | 17 +++++++++++++++++ .../src/CustomNodes/ModelNode/index.tsx | 2 +- .../src/CustomNodes/PromptNode/index.tsx | 2 +- .../src/CustomNodes/ValidatorNode/index.tsx | 17 +++++++++++++++++ .../extraSidebarComponent/index.tsx | 17 ++++++++++++++++- space_flow/src/pages/FlowPage/index.tsx | 19 ++++++++++++++----- 8 files changed, 85 insertions(+), 10 deletions(-) create mode 100644 space_flow/src/CustomNodes/AgentNode/index.tsx create mode 100644 space_flow/src/CustomNodes/ChainNode/index.tsx create mode 100644 space_flow/src/CustomNodes/ValidatorNode/index.tsx diff --git a/space_flow/public/index.html b/space_flow/public/index.html index 7b11caa99..52741e97f 100644 --- a/space_flow/public/index.html +++ b/space_flow/public/index.html @@ -6,9 +6,9 @@ Document - + -
+
\ No newline at end of file diff --git a/space_flow/src/CustomNodes/AgentNode/index.tsx b/space_flow/src/CustomNodes/AgentNode/index.tsx new file mode 100644 index 000000000..8baa59f06 --- /dev/null +++ b/space_flow/src/CustomNodes/AgentNode/index.tsx @@ -0,0 +1,17 @@ +import { Handle, Position } from "reactflow"; + +export default function AgentNode({ data }) { + console.log(data) + return ( +
+ + +
+ Agent data +
+ +
+ ); +} diff --git a/space_flow/src/CustomNodes/ChainNode/index.tsx b/space_flow/src/CustomNodes/ChainNode/index.tsx new file mode 100644 index 000000000..5887d611c --- /dev/null +++ b/space_flow/src/CustomNodes/ChainNode/index.tsx @@ -0,0 +1,17 @@ +import { Handle, Position } from "reactflow"; + +export default function ChainNode({ data }) { + console.log(data) + return ( +
+ + +
+ Chain data +
+ +
+ ); +} diff --git a/space_flow/src/CustomNodes/ModelNode/index.tsx b/space_flow/src/CustomNodes/ModelNode/index.tsx index 7c66a6ccc..29f30dafe 100644 --- a/space_flow/src/CustomNodes/ModelNode/index.tsx +++ b/space_flow/src/CustomNodes/ModelNode/index.tsx @@ -3,7 +3,7 @@ import { Handle, Position } from "reactflow"; export default function ModelNode({ data }) { console.log(data) return ( -
+