Pulastya B commited on
Commit
f762f73
·
1 Parent(s): 6333b7e

Fix: Merge reports into plots array so they display in frontend UI

Browse files
Files changed (1) hide show
  1. src/orchestrator.py +10 -0
src/orchestrator.py CHANGED
@@ -1400,6 +1400,16 @@ You are a DOER. Complete workflows based on user intent."""
1400
  summary_lines.append(f"- {report['name']}")
1401
  summary_lines.append("")
1402
 
 
 
 
 
 
 
 
 
 
 
1403
  return {
1404
  "text": "\n".join(summary_lines),
1405
  "metrics": metrics,
 
1400
  summary_lines.append(f"- {report['name']}")
1401
  summary_lines.append("")
1402
 
1403
+ # 🔥 MERGE REPORTS INTO PLOTS ARRAY FOR FRONTEND DISPLAY
1404
+ # Frontend expects everything viewable in result.plots array
1405
+ for report in artifacts["reports"]:
1406
+ plots.append({
1407
+ "title": report["name"],
1408
+ "url": report["url"],
1409
+ "type": "html" # Reports are typically HTML
1410
+ })
1411
+ print(f"[DEBUG] Added report to plots array: title='{report['name']}', url='{report['url']}'")
1412
+
1413
  return {
1414
  "text": "\n".join(summary_lines),
1415
  "metrics": metrics,