diff --git a/understand-anything-plugin/packages/dashboard/src/App.tsx b/understand-anything-plugin/packages/dashboard/src/App.tsx index 50df460..f64a293 100644 --- a/understand-anything-plugin/packages/dashboard/src/App.tsx +++ b/understand-anything-plugin/packages/dashboard/src/App.tsx @@ -1,4 +1,5 @@ import { useEffect, useState } from "react"; +import { ReactFlowProvider } from "@xyflow/react"; import { validateGraph } from "@understand-anything/core/schema"; import { useDashboardStore } from "./store"; import GraphView from "./components/GraphView"; @@ -68,13 +69,15 @@ function App() { }, [setDiffOverlay]); // Determine sidebar content - // Learn persona always shows LearnPanel; tour active overrides everything - const sidebarContent = tourActive || persona === "junior" ? ( - - ) : selectedNodeId ? ( - - ) : ( - + // Learn mode shows LearnPanel + NodeInfo when a node is selected + // Other modes show NodeInfo when selected, ProjectOverview otherwise + const isLearnMode = tourActive || persona === "junior"; + const sidebarContent = ( + <> + {isLearnMode && } + {selectedNodeId && } + {!selectedNodeId && !isLearnMode && } + ); return ( @@ -108,11 +111,13 @@ function App() {
{/* Graph area */}
- + + +
{/* Right sidebar */} -