vn6295337 Claude Opus 4.5 commited on
Commit
b717808
·
1 Parent(s): 486ac42

Fix: Display metrics table for cached analysis results

Browse files

When using cached analysis, also fetch workflow status to get metrics
for the Quantitative/Qualitative data tables (MCPDataPanel).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. frontend/src/App.tsx +6 -1
frontend/src/App.tsx CHANGED
@@ -287,8 +287,13 @@ const Index = () => {
287
  setTimeout(async () => {
288
  setCompletedSteps(['input', 'cache', 'output'])
289
  setCurrentStep('completed')
290
- const result = await getWorkflowResult(pendingCacheWorkflowId)
 
 
 
 
291
  setAnalysisResult(result)
 
292
  setIsLoading(false)
293
  setShowResults(true)
294
  setMainTab("results")
 
287
  setTimeout(async () => {
288
  setCompletedSteps(['input', 'cache', 'output'])
289
  setCurrentStep('completed')
290
+ // Fetch both result and status (for metrics)
291
+ const [result, status] = await Promise.all([
292
+ getWorkflowResult(pendingCacheWorkflowId),
293
+ getWorkflowStatus(pendingCacheWorkflowId)
294
+ ])
295
  setAnalysisResult(result)
296
+ setMetrics(status.metrics || [])
297
  setIsLoading(false)
298
  setShowResults(true)
299
  setMainTab("results")