feat: Add WorkflowDebugPanel component to display per-node debug information
- Created WorkflowDebugPanel.jsx: Collapsible panel showing debug info for each workflow node - Shows prompt sent to AI - Shows raw AI response - Shows parsed results - Shows normalized signals - Color-coded status (executed/failed/skipped) - Expandable/collapsible per node - Updated Analysis.jsx: - Added WorkflowDebugPanel import - Store node_states in newResult for debugging - Display WorkflowDebugPanel below InsightCard (both locations) This makes it easy to debug workflow issues by seeing exactly what happened at each node.
This commit is contained in:
1 parent
12d4d7c63b
commit
a515a5d563
2 files changed
+367
-1
No files matched your search
@@ -10,6 +10,7 @@ import {
|
||||
import { useAuth } from '../context/AuthContext'
|
||||
import Markdown from '../utils/Markdown'
|
||||
import UsageBadge from '../components/UsageBadge'
|
||||
import WorkflowDebugPanel from '../components/WorkflowDebugPanel'
|
||||
import dayjs from 'dayjs'
|
||||
import 'dayjs/locale/de'
|
||||
dayjs.locale('de')
|
||||
@@ -442,7 +443,14 @@ export default function Analysis() {
|
||||
}
|
||||
}
|
||||
|
||||
setNewResult({ scope: slug, content, metadata })
|
||||
setNewResult({
|
||||
scope: slug,
|
||||
content,
|
||||
metadata,
|
||||
node_states: result.node_states, // For workflow debug panel
|
||||
result_type: result.type,
|
||||
aggregated_result: result.aggregated_result
|
||||
})
|
||||
await loadAll()
|
||||
setTab('run')
|
||||
} catch(e) {
|
||||
@@ -534,6 +542,9 @@ export default function Analysis() {
|
||||
defaultOpen={true}
|
||||
prompts={prompts}
|
||||
/>
|
||||
{newResult.node_states && (
|
||||
<WorkflowDebugPanel nodeStates={newResult.node_states} />
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -591,6 +602,9 @@ export default function Analysis() {
|
||||
defaultOpen={true}
|
||||
prompts={prompts}
|
||||
/>
|
||||
{newResult.node_states && (
|
||||
<WorkflowDebugPanel nodeStates={newResult.node_states} />
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
{activeCategoryKey && (() => {
|
||||
|
||||
Reference in new issue
Block a user