Spaces:
Sleeping
Sleeping
Fix: Display metrics table for cached analysis results
Browse filesWhen 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>
- 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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")
|