Skip to content

feat(studio): tables for agent eval list and details - #839

Merged
nv-odrulea merged 3 commits into
mainfrom
od/agent-eval-tables
Jul 23, 2026
Merged

feat(studio): tables for agent eval list and details#839
nv-odrulea merged 3 commits into
mainfrom
od/agent-eval-tables

Conversation

@nv-odrulea

@nv-odrulea nv-odrulea commented Jul 22, 2026

Copy link
Copy Markdown
Contributor
Screenshot 2026-07-22 at 9 43 39 AM Screenshot 2026-07-22 at 9 43 23 AM

Summary by CodeRabbit

  • New Features
    • Added an Agent Evaluations data view with filtering/sorting, live polling, score summaries, expandable task panels, and bulk/job deletion.
    • Enhanced the evaluation detail page with conditional Artifacts linking and improved Eval Config navigation.
    • Updated expandable table cells to support richer rendering options (e.g., optional footer and bolded content).
  • Bug Fixes
    • Standardized eval-config fileset name validation and messaging.
  • Tests
    • Added/expanded unit tests for evaluation helpers and task results panel interactions.

@nv-odrulea
nv-odrulea requested review from a team as code owners July 22, 2026 05:48
@github-actions github-actions Bot added the feat label Jul 22, 2026
@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 85b1c5b4-37c8-4b55-9e41-f6ac40b02be8

📥 Commits

Reviewing files that changed from the base of the PR and between 0190b2d and 3e9e37c.

📒 Files selected for processing (13)
  • web/packages/common/src/components/DataView/TableExpandableCell/index.tsx
  • web/packages/studio/src/api/evaluation/agent-evaluations.test.ts
  • web/packages/studio/src/api/evaluation/agent-evaluations.ts
  • web/packages/studio/src/components/ModelComparePrompts/ModelCompareTable.tsx
  • web/packages/studio/src/components/ModelComparePrompts/types.ts
  • web/packages/studio/src/components/dataViews/AgentEvaluationsDataView/index.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/AgentEvaluationDetailRoute.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/AgentEvaluationsListRoute.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/AgentEvalTaskResultsPanel.test.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/AgentEvalTaskResultsPanel.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/SubmitEvaluationModal.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/submitEvaluationSpec.test.ts
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/submitEvaluationSpec.ts
🚧 Files skipped from review as they are similar to previous changes (12)
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/SubmitEvaluationModal.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/AgentEvalTaskResultsPanel.test.tsx
  • web/packages/common/src/components/DataView/TableExpandableCell/index.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/AgentEvaluationsListRoute.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/AgentEvaluationDetailRoute.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/submitEvaluationSpec.ts
  • web/packages/studio/src/components/dataViews/AgentEvaluationsDataView/index.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/submitEvaluationSpec.test.ts
  • web/packages/studio/src/api/evaluation/agent-evaluations.test.ts
  • web/packages/studio/src/components/ModelComparePrompts/types.ts
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/AgentEvalTaskResultsPanel.tsx
  • web/packages/studio/src/api/evaluation/agent-evaluations.ts

📝 Walkthrough

Walkthrough

Evaluation submissions now store fileset metadata and generate valid job names. Agent evaluation APIs fetch configuration and scores, while list and detail routes use shared data views. Task results and model comparison cells now support expandable table content.

Changes

Agent evaluation workflow

Layer / File(s) Summary
Evaluation submission contract
web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/submitEvaluationSpec.ts, .../submitEvaluationSpec.test.ts, .../SubmitEvaluationModal.tsx
Submissions generate sanitized job names, store eval-config filesets under spec.benchmark, and use shared fileset validation.
Evaluation metadata and result retrieval
web/packages/studio/src/api/evaluation/agent-evaluations.ts, .../agent-evaluations.test.ts
API helpers extract eval-config names and fetch results for multiple jobs using a bounded name filter.
Evaluation jobs data view
web/packages/studio/src/components/dataViews/AgentEvaluationsDataView/index.tsx, web/packages/studio/src/routes/agents/AgentEvaluationsRoute/AgentEvaluationsListRoute.tsx
The new data view polls jobs and scores, renders filtering and sorting, and supports row and bulk deletion.
Evaluation detail metadata
web/packages/studio/src/routes/agents/AgentEvaluationsRoute/AgentEvaluationDetailRoute.tsx
The detail view links eval-config and bundle artifact filesets when available.
Shared expandable table cells
web/packages/common/src/components/DataView/TableExpandableCell/index.tsx, web/packages/studio/src/components/ModelComparePrompts/*
Expandable cells expose a shared state type and support optional footers and bold content.
Per-task results table
web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/AgentEvalTaskResultsPanel.tsx, .../AgentEvalTaskResultsPanel.test.tsx
Task results render as a table with formatted scores, expandable content, diagnostics, stable row IDs, and modal details.

Sequence Diagram(s)

sequenceDiagram
  participant AgentEvaluationsDataView
  participant EvaluatorJobsAPI
  participant EvaluationResultsAPI
  participant StudioDataView
  AgentEvaluationsDataView->>EvaluatorJobsAPI: list filtered and sorted jobs
  AgentEvaluationsDataView->>EvaluationResultsAPI: fetch results for job names
  EvaluationResultsAPI-->>AgentEvaluationsDataView: return results keyed by job name
  AgentEvaluationsDataView->>StudioDataView: render jobs and aggregated scores
Loading

Possibly related PRs

Suggested labels: refactor

Suggested reviewers: steramae-nvidia

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main change: adding table-based agent evaluation list and detail views in studio.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch od/agent-eval-tables

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (2)
web/packages/studio/src/api/evaluation/agent-evaluations.ts (1)

20-20: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Import ResultFilter as a type.

Line 20 is only used in a generic; change it to type ResultFilter. As per coding guidelines, use import type for type-only imports in TypeScript.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@web/packages/studio/src/api/evaluation/agent-evaluations.ts` at line 20,
Update the ResultFilter import in the agent evaluations module to use a
type-only import, since it is only referenced in a generic and has no runtime
usage. Preserve the existing import source and other imports.

Source: Coding guidelines

web/packages/studio/src/components/dataViews/AgentEvaluationsDataView/index.tsx (1)

51-51: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add explicit FC typing for consistency.

Every other exported component in this cohort (AgentEvaluationsListRoute, AgentEvalTaskResultsPanel, LongCell, TableExpandableCell) is typed with FC/FC<Props>; this component isn't. As per coding guidelines, "Use explicit return types for public APIs and complex functions in TypeScript."

♻️ Proposed fix
-import { ComponentProps, useMemo, useState } from 'react';
+import { ComponentProps, type FC, useMemo, useState } from 'react';
 ...
-export const AgentEvaluationsDataView = () => {
+export const AgentEvaluationsDataView: FC = () => {
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@web/packages/studio/src/components/dataViews/AgentEvaluationsDataView/index.tsx`
at line 51, Update the exported AgentEvaluationsDataView component declaration
to use the explicit React FC type, matching the typing convention used by the
other listed components while preserving its existing props and implementation.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@web/packages/studio/src/components/dataViews/AgentEvaluationsDataView/index.tsx`:
- Around line 71-83: Update handleDeleteJobs to use Promise.allSettled so every
deleteJobMutation.mutateAsync operation completes and each failed job is
retained with its job name and error details. Propagate an aggregate failure
containing all failed deletions to callers while preserving successful deletions
and the existing per-job error context.
- Around line 123-131: Keep the agent evaluation score lookup aligned with the
view’s maximum page size. In the pagination/query flow around the jobs list and
the resultsByName useQuery, ensure fetchAgentEvalResultsForJobs receives no more
than 100 job names, either by clamping the effective page size to 100 or
batching the score requests, so every displayed row can receive a score.

In
`@web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/submitEvaluationSpec.ts`:
- Line 80: Update the field documentation in
web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/submitEvaluationSpec.ts
at lines 80-80 and the corresponding test description in
web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/submitEvaluationSpec.test.ts
at lines 94-94 to reference the actual metadata key
spec.benchmark.eval_config_fileset instead of spec.benchmark.eval_config.

---

Nitpick comments:
In `@web/packages/studio/src/api/evaluation/agent-evaluations.ts`:
- Line 20: Update the ResultFilter import in the agent evaluations module to use
a type-only import, since it is only referenced in a generic and has no runtime
usage. Preserve the existing import source and other imports.

In
`@web/packages/studio/src/components/dataViews/AgentEvaluationsDataView/index.tsx`:
- Line 51: Update the exported AgentEvaluationsDataView component declaration to
use the explicit React FC type, matching the typing convention used by the other
listed components while preserving its existing props and implementation.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 31091078-c670-4c25-87de-4b48edd4a8fe

📥 Commits

Reviewing files that changed from the base of the PR and between 45d0925 and 4e489c1.

📒 Files selected for processing (13)
  • web/packages/common/src/components/DataView/TableExpandableCell/index.tsx
  • web/packages/studio/src/api/evaluation/agent-evaluations.test.ts
  • web/packages/studio/src/api/evaluation/agent-evaluations.ts
  • web/packages/studio/src/components/ModelComparePrompts/ModelCompareTable.tsx
  • web/packages/studio/src/components/ModelComparePrompts/types.ts
  • web/packages/studio/src/components/dataViews/AgentEvaluationsDataView/index.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/AgentEvaluationDetailRoute.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/AgentEvaluationsListRoute.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/AgentEvalTaskResultsPanel.test.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/AgentEvalTaskResultsPanel.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/SubmitEvaluationModal.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/submitEvaluationSpec.test.ts
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/components/submitEvaluationSpec.ts

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor
Suite Lines Covered Line Rate Branch Rate
Unit Tests 27113/34832 77.8% 62.1%
Integration Tests 15892/33443 47.5% 19.9%

Comment thread web/packages/studio/src/api/evaluation/agent-evaluations.ts Outdated
Comment thread web/packages/studio/src/components/dataViews/AgentEvaluationsDataView/index.tsx Outdated
Signed-off-by: Octavian Drulea <odrulea@nvidia.com>
Signed-off-by: Octavian Drulea <odrulea@nvidia.com>
Signed-off-by: Octavian Drulea <odrulea@nvidia.com>
@nv-odrulea
nv-odrulea force-pushed the od/agent-eval-tables branch from 0190b2d to 3e9e37c Compare July 22, 2026 20:00
@nv-odrulea
nv-odrulea added this pull request to the merge queue Jul 23, 2026
Merged via the queue into main with commit d206ae9 Jul 23, 2026
60 checks passed
@nv-odrulea
nv-odrulea deleted the od/agent-eval-tables branch July 23, 2026 17:28
AnuradhaKaruppiah pushed a commit to AnuradhaKaruppiah/nemo-platform that referenced this pull request Jul 24, 2026
* feat(studio): tables for agent eval list and details

Signed-off-by: Octavian Drulea <odrulea@nvidia.com>

* fix(studio): coderabbit comments

Signed-off-by: Octavian Drulea <odrulea@nvidia.com>

* fix(studio): coderabbit comments

Signed-off-by: Octavian Drulea <odrulea@nvidia.com>

---------

Signed-off-by: Octavian Drulea <odrulea@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants