Commit 5c5bb87
feat(studio): comparison analytics charts for skills/workflow benchmarking (#1104)
* feat(studio): add analytics charts with baseline comparison
Rename Compare tab to Analytics. Add recharts for visualization.
Implement ?baseline=<target> query param on /api/compare endpoint
to compute delta and normalized gain (g) per cell. Add collapsible
analytics section below the aggregated matrix with:
- Normalized gain bar chart (horizontal, color-coded by effect)
- Tag × target pass rate heatmap
- Negative delta regression table
- Score distribution histogram
- Trend-over-time line chart
Closes #1102
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(studio): address code review findings for analytics charts
- Fix serve.ts: build cells with delta/normalized_gain fields upfront
instead of mutating via type bypass
- Fix query key collision: use distinct keys for compare vs baseline queries
- Add `enabled: !!baseline` guard to prevent unnecessary API calls
- Remove dead CostVsImprovement component and unused recharts imports
- Fix misleading GainRow.testId → experiment naming
- Rename "Compare runs" heading to "Analyze runs"
- Fix biome formatting issues
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor(studio): rename CompareTab to AnalyticsTab and update docs
- Rename CompareTab.tsx → AnalyticsTab.tsx with updated exports
- Update imports in index.tsx and $benchmarkId.tsx route files
- Update studio.mdx docs: rename Compare section to Analytics
- Add analytics charts documentation with baseline selector, normalized
gain chart, tag heatmap, negative delta table, score distribution,
and trend-over-time chart descriptions
- Add three new screenshots: aggregated matrix, charts with baseline
selector, and score trend over time
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7766f39 commit 5c5bb87
13 files changed
Lines changed: 750 additions & 36 deletions
File tree
- apps
- cli/src/commands/results
- studio
- src
- components
- lib
- routes
- projects
- web/src
- assets/screenshots
- content/docs/docs/tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
698 | 715 | | |
699 | 716 | | |
700 | 717 | | |
| |||
706 | 723 | | |
707 | 724 | | |
708 | 725 | | |
709 | | - | |
| 726 | + | |
| 727 | + | |
710 | 728 | | |
711 | 729 | | |
712 | 730 | | |
713 | 731 | | |
714 | 732 | | |
715 | | - | |
| 733 | + | |
716 | 734 | | |
717 | 735 | | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
718 | 748 | | |
719 | 749 | | |
720 | 750 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
0 commit comments