Skip to content

chore(studio): route cleanup, getNavItems - #1254

Open
nakolean wants to merge 1 commit into
mainfrom
nkolean/route-cleanup
Open

chore(studio): route cleanup, getNavItems#1254
nakolean wants to merge 1 commit into
mainfrom
nkolean/route-cleanup

Conversation

@nakolean

@nakolean nakolean commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Related Issue

Changes

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with documentation updates
  • Documentation only
  • Contributor tooling or automation
  • CI, build, or test infrastructure

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification:
  • Documentation updated for user-visible behavior
  • Documentation not applicable — justification:

Verification

  • Pull request title follows the repository's Conventional Commit format
  • Every commit includes an appropriate Signed-off-by: trailer
  • uv run pre-commit run -a passes, or any blocked checks are identified below
  • Targeted tests pass, or tests are marked not applicable above
  • No secrets, API keys, or credentials are included

Targeted validation:

Summary by CodeRabbit

  • New Features
    • Improved workspace navigation with consistent links and icons across available features.
    • Added navigation entries for dashboards, deployments, jobs, settings, experiments, evaluations, data tools, virtual models, and other supported capabilities.
    • Navigation items now appear automatically based on enabled features and installed plugins.
  • Refactor
    • Centralized navigation behavior to provide a more consistent experience across workspaces.

Signed-off-by: Nicholas Kolean <nakolean@gmail.com>
@nakolean
nakolean requested review from a team as code owners August 12, 2026 15:38
@github-actions github-actions Bot added the chore label Aug 12, 2026
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Side-navigation construction moves from WorkspaceSideNav into feature-gated factories in route-group modules. The route-group barrel exports these factories, and WorkspaceSideNav consumes them for feature, governance, and system entries.

Changes

Side-navigation centralization

Layer / File(s) Summary
Feature side-navigation factories
web/packages/studio/src/routes/groups/{anonymizer,customization,dashboard,dataDesigner,evaluation,experiment,intake,modelCompare,optimizer}Routes.tsx
Added workspace-aware factories that return navigation items only when their feature flags are enabled.
Platform and system factories
web/packages/studio/src/routes/groups/{deployment,fileset,guardrails,job,safeSynthesizer,settings,virtualModels}Routes.tsx
Added shared factories for deployment, governance, data, jobs, settings, and virtual-model navigation entries.
Route-group exports
web/packages/studio/src/routes/groups/index.ts
Re-exported the side-navigation factories with the existing route collections.
WorkspaceSideNav integration
web/packages/studio/src/routes/WorkspaceLayout/WorkspaceSideNav.tsx
Replaced inline route construction and feature-flag checks with shared factories. Agent visibility remains conditional on plugin installation and manifest resolution.

Possibly related PRs

Suggested labels: refactor

Suggested reviewers: steramae-nvidia, rrhyne, walston

🚥 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 summarizes the Studio route cleanup and getNavItems changes.
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 nkolean/route-cleanup

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/studio/src/routes/groups/anonymizerRoutes.tsx (1)

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

Add focused tests for side navigation feature flags.

No direct tests cover the eight get*SideNavItems factories. Cover enabled and disabled states, including dashboard/Copilot combinations.

🤖 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/routes/groups/anonymizerRoutes.tsx` around lines 53 -
63, Add focused tests for all eight get*SideNavItems factories, covering enabled
and disabled feature-flag states and the dashboard/Copilot combinations. Update
tests for web/packages/studio/src/routes/groups/anonymizerRoutes.tsx:53-63,
customizationRoutes.tsx:60-70, dashboardRoutes.tsx:48-58,
dataDesignerRoutes.tsx:77-87, safeSynthesizerRoutes.tsx:65-75,
jobRoutes.tsx:37-47, settingsRoutes.tsx:27-37, and
virtualModelsRoutes.tsx:27-37; verify each factory returns the expected
navigation item when enabled and an empty result when disabled, including the
dashboard/Copilot-specific behavior.

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.

Nitpick comments:
In `@web/packages/studio/src/routes/groups/anonymizerRoutes.tsx`:
- Around line 53-63: Add focused tests for all eight get*SideNavItems factories,
covering enabled and disabled feature-flag states and the dashboard/Copilot
combinations. Update tests for
web/packages/studio/src/routes/groups/anonymizerRoutes.tsx:53-63,
customizationRoutes.tsx:60-70, dashboardRoutes.tsx:48-58,
dataDesignerRoutes.tsx:77-87, safeSynthesizerRoutes.tsx:65-75,
jobRoutes.tsx:37-47, settingsRoutes.tsx:27-37, and
virtualModelsRoutes.tsx:27-37; verify each factory returns the expected
navigation item when enabled and an empty result when disabled, including the
dashboard/Copilot-specific behavior.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 14550d62-2663-4a44-9b3d-2ca6959559fb

📥 Commits

Reviewing files that changed from the base of the PR and between a8bd92b and 2e9253e.

📒 Files selected for processing (18)
  • web/packages/studio/src/routes/WorkspaceLayout/WorkspaceSideNav.tsx
  • web/packages/studio/src/routes/groups/anonymizerRoutes.tsx
  • web/packages/studio/src/routes/groups/customizationRoutes.tsx
  • web/packages/studio/src/routes/groups/dashboardRoutes.tsx
  • web/packages/studio/src/routes/groups/dataDesignerRoutes.tsx
  • web/packages/studio/src/routes/groups/deploymentRoutes.tsx
  • web/packages/studio/src/routes/groups/evaluationRoutes.tsx
  • web/packages/studio/src/routes/groups/experimentRoutes.tsx
  • web/packages/studio/src/routes/groups/filesetRoutes.tsx
  • web/packages/studio/src/routes/groups/guardrailsRoutes.tsx
  • web/packages/studio/src/routes/groups/index.ts
  • web/packages/studio/src/routes/groups/intakeRoutes.tsx
  • web/packages/studio/src/routes/groups/jobRoutes.tsx
  • web/packages/studio/src/routes/groups/modelCompareRoutes.tsx
  • web/packages/studio/src/routes/groups/optimizerRoutes.tsx
  • web/packages/studio/src/routes/groups/safeSynthesizerRoutes.tsx
  • web/packages/studio/src/routes/groups/settingsRoutes.tsx
  • web/packages/studio/src/routes/groups/virtualModelsRoutes.tsx

@github-actions

Copy link
Copy Markdown
Contributor
Suite Lines Covered Line Rate Branch Rate
Unit Tests 32015/40717 78.6% 63.4%
Integration Tests 18573/38643 48.1% 20.8%

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