Skip to content

feat: Model benchmarks chart on public site + admin dashboard - #244

Merged
tmimmanuel merged 2 commits into
mainfrom
dev
Jul 23, 2026
Merged

feat: Model benchmarks chart on public site + admin dashboard#244
tmimmanuel merged 2 commits into
mainfrom
dev

Conversation

@tmimmanuel

Copy link
Copy Markdown
Collaborator

Summary

  • New public GET /api/provider-benchmarks endpoint (no auth) exposing completed, non-deleted, standalone provider-route evaluation results.
  • New "Model benchmarks" section on the public leaderboard page: a grouped bar chart (score by model, faceted by benchmark), hand-rolled SVG, no new dependency.
  • Uses the dataviz skill's validated dark-mode categorical palette (8 fixed slots), checked with the palette validator against this site's actual dark surface (#060b14).
  • Companion PR in mini-router.github.io adds the same chart (plus an admin-only cost-vs-score chart) to the admin dashboard, sourced from the existing /api/admin/evaluations data, so both surfaces show the same picture.

Test plan

  • pytest passes (19 passed, 18 skipped)
  • web: npm run build and npm run lint pass
  • Verified live against the running backend + a local dev server + Playwright screenshot: chart renders with correct data, matches the admin dashboard's numbers exactly

tmimmanuel and others added 2 commits July 23, 2026 06:57
New GET /api/provider-benchmarks (no auth), returning completed,
non-deleted, standalone provider-route evaluation rows (route,
benchmark, score, repeat, cost_usd, duration_seconds). Backs the new
"Model benchmarks" chart on the public site and mirrors the data
already shown in the admin dashboard's provider-tests table.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Grouped bar chart (score by model, faceted by benchmark), fed by the
new /api/provider-benchmarks endpoint. Hand-rolled SVG, no charting
dependency added. Uses the dataviz skill's validated dark-mode
categorical palette (8 slots, fixed route->color order), verified
against this site's dark surface (#060b14) with the palette validator.
Mirrors the same chart shipped to the admin dashboard (companion PR in
mini-router.github.io) so both surfaces show the same picture.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions github-actions Bot added eval Evaluation changes validator Validator backend changes web Frontend changes labels Jul 23, 2026
@tmimmanuel
tmimmanuel merged commit 6a1e0f4 into main Jul 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

eval Evaluation changes validator Validator backend changes web Frontend changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant