diff --git a/frontend/src/components/tree-editor/TreeEditorLayout.tsx b/frontend/src/components/tree-editor/TreeEditorLayout.tsx index 7b87ef56..c622ff71 100644 --- a/frontend/src/components/tree-editor/TreeEditorLayout.tsx +++ b/frontend/src/components/tree-editor/TreeEditorLayout.tsx @@ -1,6 +1,7 @@ import { lazy, Suspense } from 'react' import { TreePreviewPanel } from '@/components/tree-preview/TreePreviewPanel' -import { TreeCanvas } from './TreeCanvas' +import { FlowCanvas } from './FlowCanvas' +import { NodeEditorPanel } from './NodeEditorPanel' import { MetadataSidePanel } from './MetadataSidePanel' import { useTreeEditorStore } from '@/store/treeEditorStore' import { cn } from '@/lib/utils' @@ -14,12 +15,18 @@ interface TreeEditorLayoutProps { isMobile?: boolean isMetadataOpen?: boolean onCloseMetadata?: () => void + editingNodeId: string | null + onNodeSelect: (nodeId: string | null) => void + onSelectAnswerType: (nodeId: string, type: 'decision' | 'action' | 'solution') => void } export function TreeEditorLayout({ isMobile = false, isMetadataOpen = false, onCloseMetadata = () => {}, + editingNodeId, + onNodeSelect, + onSelectAnswerType, }: TreeEditorLayoutProps) { const editorMode = useTreeEditorStore(s => s.editorMode) @@ -56,16 +63,31 @@ export function TreeEditorLayout({ > ) : ( <> - {/* Flow Mode: Full-width visual canvas */} + {/* Flow Mode: React Flow canvas + side panels */}