Skip to content

feat(studio): add CardSelect; update DataView toolbar and entityName tests - #1058

Merged
nv-odrulea merged 4 commits into
mainfrom
od/studio-common-updates
Aug 4, 2026
Merged

feat(studio): add CardSelect; update DataView toolbar and entityName tests#1058
nv-odrulea merged 4 commits into
mainfrom
od/studio-common-updates

Conversation

@nv-odrulea

@nv-odrulea nv-odrulea commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • update RadioCard with boolean showIndicator, if false, hides radio control. Also adds border color to indicate selected card.
  • StudioDataViewToolbar: adds row action support
  • entityName.test.ts: removes assertions against secretsCreateSecretBodyNameMax/RegExp — the secrets SDK schema dropped those named exports after regeneration

RadioCard, with/without indicator

Screenshot 2026-08-04 at 10 59 32 AM Screenshot 2026-08-04 at 10 59 18 AM Screenshot 2026-08-02 at 11 18 23 AM

DataView bulk header, before/after this fix

Before

Screenshot 2026-07-30 at 10 29 59 AM

After

Screenshot 2026-07-30 at 10 30 24 AM

Summary by CodeRabbit

  • New Features

    • Added an option to hide selection indicators on radio cards while preserving keyboard and form functionality.
    • Added a Storybook example demonstrating horizontal radio cards without visible indicators.
  • Bug Fixes

    • Bulk-action controls now remain available when rows are selected, even without search or filtering options.
  • Tests

    • Expanded coverage for radio-card interactions, selection states, data-view behavior, and entity validation.

@nv-odrulea
nv-odrulea requested review from a team as code owners August 4, 2026 03:00
@github-actions github-actions Bot added the feat label Aug 4, 2026
@coderabbitai

coderabbitai Bot commented Aug 4, 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: 9e21bdf6-42d9-40bf-93e9-7596e8b249a5

📥 Commits

Reviewing files that changed from the base of the PR and between 123f10e and b6d624e.

📒 Files selected for processing (1)
  • web/packages/common/src/components/RadioCard/index.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • web/packages/common/src/components/RadioCard/index.tsx

📝 Walkthrough

Walkthrough

Changes

RadioCard indicator control

Layer / File(s) Summary
Hidden RadioCard indicator behavior
web/packages/common/src/components/RadioCard/index.tsx, web/packages/common/src/components/RadioCard/index.test.tsx, web/packages/common/src/components/RadioCard/RadioCard.stories.tsx
Adds optional showIndicator, preserves hidden radio inputs, updates layout and state styling, and adds tests and a Storybook example.

DataView toolbar visibility

Layer / File(s) Summary
Selected-row bulk action visibility
web/packages/common/src/components/DataView/StudioDataViewToolbar.tsx, web/packages/common/src/components/DataView/StudioDataView.test.tsx
Keeps the toolbar rendered when selected-row bulk actions are configured and updates the table mock with selected-row data.

Schema agreement tests

Layer / File(s) Summary
Schema agreement test coverage
web/packages/common/src/utils/entityName.test.ts
Removes secret schema coverage and keeps entity, fileset, and model provider checks with direct fileset length validation.

Possibly related PRs

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 clearly identifies the CardSelect addition and the DataView toolbar and entityName test updates.
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/studio-common-updates

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.

🧹 Nitpick comments (1)
web/packages/common/src/components/DataView/StudioDataView.test.tsx (1)

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

Cover selected-row toolbar behavior.

The context mock always returns flatRows: [], while BulkActions independently supplies all root rows. The current tests therefore bypass the production selection path. Mock one selected row through getSelectedRowModel() and assert that renderBulkActions receives it.

🤖 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/common/src/components/DataView/StudioDataView.test.tsx` around
lines 83 - 85, Update the useInnerDataViewContext mock and related tests around
renderBulkActions to return one selected row from getSelectedRowModel(). Add an
assertion that renderBulkActions receives that selected row, ensuring the test
exercises the production selected-row toolbar path instead of the fallback
root-row behavior.
🤖 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.

Nitpick comments:
In `@web/packages/common/src/components/DataView/StudioDataView.test.tsx`:
- Around line 83-85: Update the useInnerDataViewContext mock and related tests
around renderBulkActions to return one selected row from getSelectedRowModel().
Add an assertion that renderBulkActions receives that selected row, ensuring the
test exercises the production selected-row toolbar path instead of the fallback
root-row behavior.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 10275622-0e29-4537-bc41-0173acf3120e

📥 Commits

Reviewing files that changed from the base of the PR and between 79ca283 and 10e25f5.

📒 Files selected for processing (4)
  • web/packages/common/src/components/CardSelect/index.tsx
  • web/packages/common/src/components/DataView/StudioDataView.test.tsx
  • web/packages/common/src/components/DataView/StudioDataViewToolbar.tsx
  • web/packages/common/src/utils/entityName.test.ts

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor
Suite Lines Covered Line Rate Branch Rate
Unit Tests 30388/38416 79.1% 63.8%
Integration Tests 17994/37085 48.5% 21.0%

Comment thread web/packages/common/src/components/CardSelect/index.tsx Outdated
nv-odrulea and others added 2 commits August 4, 2026 11:05
…ests

- CardSelect: new common component for card-style option selection used
  by the eval config picker in SubmitEvaluationModal
- StudioDataViewToolbar: adds support for row actions
- entityName.test.ts: removes stale secrets SDK assertions after the
  secrets schema dropped named regex/max exports

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.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/studio-common-updates branch from 10e25f5 to 0aa0870 Compare August 4, 2026 18:06

@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: 2

🤖 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/common/src/components/RadioCard/index.test.tsx`:
- Line 8: Update the RadioCard import in index.test.tsx to use the project’s
absolute `@nemo/common` alias targeting the RadioCard component instead of the
relative "." path; leave the test behavior unchanged.

In `@web/packages/common/src/components/RadioCard/index.tsx`:
- Around line 101-105: Update the state selectors in the RadioCard class list to
scope both :checked and :disabled matching to the `.nv-radio-group-input`
element, preventing nested controls in the label or description from affecting
card styling. Preserve the existing checked prop styling and disabled visual
behavior.
🪄 Autofix

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: f6119f5a-5e5d-4f80-8515-253f4b9602af

📥 Commits

Reviewing files that changed from the base of the PR and between 10e25f5 and 0aa0870.

📒 Files selected for processing (6)
  • web/packages/common/src/components/DataView/StudioDataView.test.tsx
  • web/packages/common/src/components/DataView/StudioDataViewToolbar.tsx
  • web/packages/common/src/components/RadioCard/RadioCard.stories.tsx
  • web/packages/common/src/components/RadioCard/index.test.tsx
  • web/packages/common/src/components/RadioCard/index.tsx
  • web/packages/common/src/utils/entityName.test.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • web/packages/common/src/components/DataView/StudioDataView.test.tsx
  • web/packages/common/src/components/DataView/StudioDataViewToolbar.tsx
  • web/packages/common/src/utils/entityName.test.ts

Comment thread web/packages/common/src/components/RadioCard/index.test.tsx Outdated
Comment thread web/packages/common/src/components/RadioCard/index.tsx Outdated
Signed-off-by: Octavian Drulea <odrulea@nvidia.com>
…t interfere

Signed-off-by: Octavian Drulea <odrulea@nvidia.com>
@nv-odrulea
nv-odrulea enabled auto-merge August 4, 2026 18:25
@nv-odrulea
nv-odrulea added this pull request to the merge queue Aug 4, 2026
Merged via the queue into main with commit 5dbd41b Aug 4, 2026
52 checks passed
@nv-odrulea
nv-odrulea deleted the od/studio-common-updates branch August 4, 2026 18:55
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.

3 participants