From 0d0952cf44c47c78ab5bc07d82ff13e1adbc87fe Mon Sep 17 00:00:00 2001 From: Gideon Pinto Date: Thu, 18 Apr 2024 09:00:04 -0400 Subject: [PATCH] fix: Render context menu components in the feed tree (#1160) --- src/components/FeedTree/Node.tsx | 18 +++++++++++++++++- src/components/NodeDetails/NodeDetails.tsx | 17 ----------------- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/src/components/FeedTree/Node.tsx b/src/components/FeedTree/Node.tsx index 56a2adf3d..36e48e456 100644 --- a/src/components/FeedTree/Node.tsx +++ b/src/components/FeedTree/Node.tsx @@ -3,7 +3,7 @@ import { useMutation } from "@tanstack/react-query"; import { notification } from "antd"; import { HierarchyPointNode } from "d3-hierarchy"; import { select } from "d3-selection"; -import { Fragment, useContext, useEffect, useRef, memo } from "react"; +import { Fragment, memo, useContext, useEffect, useRef } from "react"; import { useDispatch } from "react-redux"; import ChrisAPIClient from "../../api/chrisapiclient"; import { useTypedSelector } from "../../store/hooks"; @@ -13,7 +13,12 @@ import { getSelectedPlugin, } from "../../store/pluginInstance/actions"; import { getPluginInstanceStatusRequest } from "../../store/resources/actions"; +import AddNodeConnect from "../AddNode/AddNode"; +import { AddNodeProvider } from "../AddNode/context"; +import AddPipeline from "../AddPipeline/AddPipeline"; import { ThemeContext } from "../DarkTheme/useTheme"; +import DeleteNode from "../DeleteNode"; +import { PipelineProvider } from "../PipelinesCopy/context"; import { FeedTreeScaleType } from "./Controls"; import DropdownMenu from "./DropdownMenu"; import TreeNodeDatum, { Datum, Point } from "./data"; @@ -245,6 +250,17 @@ const Node = (props: NodeProps) => { return ( + <> + {/* Note this modals are fired from the dropdown menu in the tree*/} + + + + {/* Graph Node Container is missing */} + + + + + {contextHolder} {/* biome-ignore lint/a11y/useKeyWithClickEvents: */} { - <> - {/* Note this modals are fired from the dropdown menu in the tree*/} - - - - {/* Graph Node Container is missing */} - - - - - - { // Jennings: hastily adding an extra button here. // IMO the Node Details pane should be cleaned up.