diff --git a/frontend/src/components/workflow/panels/WorkflowResultViewer.jsx b/frontend/src/components/workflow/panels/WorkflowResultViewer.jsx index 6a596a5..2ea613a 100644 --- a/frontend/src/components/workflow/panels/WorkflowResultViewer.jsx +++ b/frontend/src/components/workflow/panels/WorkflowResultViewer.jsx @@ -192,13 +192,18 @@ export function WorkflowResultViewer({ result, onClose }) { Node States (Debug)
- {typeof node.output === 'string'
- ? node.output
- : JSON.stringify(node.output, null, 2)}
+ {/* Error (show first if present) */}
+ {node.error && (
+
+
+ Error:
+
+
+ {node.error}
)}
- {node.error && (
-
- Error: {node.error}
+
+ {/* Debug Prompt (vollstΓ€ndiger Prompt) */}
+ {node.debug_prompt && (
+
+
+ Prompt:
+
+
+ {node.debug_prompt}
+
)}
+
+ {/* Debug Raw Response (rohe KI-Antwort) */}
+ {node.debug_raw_response && (
+
+
+ Rohe Antwort:
+
+
+ {node.debug_raw_response}
+
+
+ )}
+
+ {/* Analysis Core (geparste Ergebnisse) */}
+ {node.analysis_core && (
+
+
+ Geparste Ergebnisse:
+
+
+ {node.analysis_core}
+
+
+ )}
+
+ {/* Normalized Signals */}
+ {node.normalized_signals && node.normalized_signals.length > 0 && (
+
+
+ Signale ({node.normalized_signals.length}):
+
+
+ {node.normalized_signals.map((sig, i) => (
+
+ {sig.question_type}:{' '}
+
+ "{sig.raw_value}" β "{sig.normalized_value}"
+ {' '}
+
+ {sig.status}
+
+
+ ))}
+
+
+ )}
+
+ {/* Output (fallback) */}
+ {node.output && !node.analysis_core && (
+
+ Output:
+
+ {typeof node.output === 'string' ? node.output : JSON.stringify(node.output, null, 2)}
+
+
+ )}
+
+ {/* Metadata */}
{node.metadata && (
Metadata:
-
+
{JSON.stringify(node.metadata, null, 2)}
@@ -283,7 +334,7 @@ export function WorkflowResultViewer({ result, onClose }) {
)}