diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index 86eaf299d..168069f55 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -49,7 +49,6 @@ export default function GenericNode({ const [validationStatus, setValidationStatus] = useState(null); // State for outline color const [isValid, setIsValid] = useState(false); - const { save } = useContext(TabsContext); const { reactFlowInstance } = useContext(typesContext); const [params, setParams] = useState([]); @@ -57,7 +56,7 @@ export default function GenericNode({ if (reactFlowInstance) { setParams(Object.values(reactFlowInstance.toObject())); } - }, [save]); + }, []); const validateNode = useCallback( debounce(async () => { diff --git a/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx index 600a54f12..ca52da5f4 100644 --- a/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx @@ -308,10 +308,10 @@ export default function Page({ flow }: { flow: FlowType }) { const { setDisableCopyPaste } = useContext(TabsContext); return ( -
+
{/* Main area */} -
+
{/* Primary column */}
diff --git a/src/frontend/src/pages/FlowPage/components/extraSidebarComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/extraSidebarComponent/index.tsx index 835c51529..6339d9a32 100644 --- a/src/frontend/src/pages/FlowPage/components/extraSidebarComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/extraSidebarComponent/index.tsx @@ -1,4 +1,4 @@ -import { Bars2Icon } from "@heroicons/react/24/outline"; +import { Bars2Icon, PencilSquareIcon, Square2StackIcon, TrashIcon } from "@heroicons/react/24/outline"; import DisclosureComponent from "../DisclosureComponent"; import { classNames, @@ -11,6 +11,7 @@ import { typesContext } from "../../../../contexts/typesContext"; import { APIClassType, APIObjectType } from "../../../../types/api"; import { MagnifyingGlassIcon } from "@heroicons/react/24/outline"; import ShadTooltip from "../../../../components/ShadTooltipComponent"; +import { Code, Code2, FileDown, FileUp, Import, Save } from "lucide-react"; export default function ExtraSidebar() { const { data } = useContext(typesContext); @@ -49,7 +50,7 @@ export default function ExtraSidebar() { } return ( -
+
+
+ + + -
+ + + + + + + + + + +
+ + +
{Object.keys(dataFilter) .sort() .map((d: keyof APIObjectType, i) => diff --git a/src/frontend/src/pages/FlowPage/index.tsx b/src/frontend/src/pages/FlowPage/index.tsx index 961a27164..e4775fbb7 100644 --- a/src/frontend/src/pages/FlowPage/index.tsx +++ b/src/frontend/src/pages/FlowPage/index.tsx @@ -10,7 +10,10 @@ export default function FlowPage(){ setTabId(id); }, [id]) return ( - flows.length > 0 && tabId !== "" && flows.findIndex(flow => flow.id === tabId) !== -1 && +
+ {flows.length > 0 && tabId !== "" && flows.findIndex(flow => flow.id === tabId) !== -1 && flow.id === tabId)} /> + } +
) } \ No newline at end of file