import React, { useState } from 'react' import { ChevronDown, ChevronUp } from 'lucide-react' /** * WorkflowDebugPanel - Zeigt Debug-Informationen für jeden Node eines Workflows * * @param {Object} props * @param {Array} props.nodeStates - Array von NodeExecutionState Objekten */ export default function WorkflowDebugPanel({ nodeStates }) { const [expandedNodes, setExpandedNodes] = useState(new Set()) const [showAll, setShowAll] = useState(false) if (!nodeStates || nodeStates.length === 0) { return null } // Filter nodes that have debug information const debugNodes = nodeStates.filter(ns => ns.debug_prompt || ns.debug_raw_response || ns.debug_node_type ) if (debugNodes.length === 0) { return (
Keine Debug-Informationen verfügbar. Führe den Workflow mit debug=true aus.
{node.error}
{node.debug_prompt}
{node.debug_raw_response}
{node.analysis_core}