refactor(studio): rename Studio frontend benchmark → project (3/4)#1244
Merged
Conversation
6 tasks
1d861fa to
4b8a07f
Compare
PR 3 of 4 in the benchmark → project rename. Updates the Studio web UI
to consume the renamed wire format introduced in PR 2.
Routes:
apps/studio/src/routes/benchmarks/$benchmarkId.tsx
→ projects/$projectId.tsx
apps/studio/src/routes/benchmarks/$benchmarkId_/runs/$runId.tsx
→ projects/$projectId_/runs/$runId.tsx
apps/studio/src/routes/benchmarks/$benchmarkId_/evals/$runId.$evalId.tsx
→ projects/$projectId_/evals/$runId.$evalId.tsx
routeTree.gen.ts regenerated via `bunx @tanstack/router-cli generate`.
Components:
BenchmarkCard.tsx → ProjectCard.tsx (prop `benchmark` → `project`)
Sidebar.tsx: BenchmarkRunDetailSidebar → ProjectRunDetailSidebar,
BenchmarkEvalSidebar → ProjectEvalSidebar
routes/index.tsx: BenchmarksDashboard → ProjectsDashboard,
SingleBenchmarkHome → SingleProjectHome
routes/projects/$projectId.tsx: BenchmarkHomePage → ProjectHomePage,
BenchmarkRunsTab/ExperimentsTab/AnalyticsTab →
ProjectRunsTab/ProjectExperimentsTab/ProjectAnalyticsTab
API hooks (apps/studio/src/lib/api.ts):
useBenchmarkList, useBenchmarkRunList, useBenchmarkRunDetail,
useAllBenchmarkRuns, addBenchmarkApi, removeBenchmarkApi,
benchmarkApiBase, benchmarkRunListOptions, benchmarkRunDetailOptions,
benchmarkRunSuitesOptions, benchmarkRunCategoriesOptions,
benchmarkCategorySuitesOptions, benchmarkEvalDetailOptions,
benchmarkEvalFilesOptions, benchmarkEvalFileContentOptions,
benchmarkExperimentsOptions, benchmarkCompareOptions,
benchmarkTargetsOptions, benchmarkConfigOptions, allBenchmarkRunsOptions
→ all renamed to `*Project*` equivalents.
All `/api/benchmarks/*` URL strings → `/api/projects/*`.
Cache query keys `['benchmarks', ...]` → `['projects', ...]`.
Types (apps/studio/src/lib/types.ts):
BenchmarkSummary → ProjectSummary
BenchmarkListResponse → ProjectListResponse
envelope field `benchmarks: ...` → `projects: ...`
BenchmarkEntry → ProjectEntry
Wire fields:
benchmark_id → project_id
benchmark_name → project_name
multi_benchmark_dashboard → multi_project_dashboard
UI strings:
"Benchmarks" / "All Benchmarks" → "Projects" / "All Projects"
"Add Benchmark" / "Benchmark path" placeholder → project-flavored
All `benchmarkId` prop and local var occurrences → `projectId`.
Out of scope (unchanged):
- `benchmark.json` per-run artifact and its writer (Agent Skills compat)
- Comments referencing the legacy artifact file
- examples/*-benchmark dirs (academic benchmark-suite semantics)
Stacks on refactor/rename-pr2-http.
UAT (multi-project dashboard, /tmp/uat-pr3-home with legacy benchmarks.yaml):
- `~/.agentv/benchmarks.yaml` → migrated to `projects.yaml` on first load
(one log line: "Migrated registry: benchmarks.yaml → projects.yaml")
- GET /api/projects returns `{ projects: [{ id: 'demo', project_id: ... }] }`
- Home dashboard renders <h1>Projects</h1>, [Add Project] button,
<ProjectCard> for the migrated `demo` entry
- Clicking the card navigates to /projects/demo and shows "← All Projects"
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2f530a0 to
56265a9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR 3 of 4 in the benchmark → project rename. Stacks on #1243 (PR 2). Updates the Studio web UI to match the new wire format.
Renames
Out of scope
Test plan
Projects
`, `Add Project` button, `` for the migrated entry.🤖 Generated with Claude Code