Skip to content

chore(studio): remove 11 unused TSX components#481

Open
marcusds wants to merge 1 commit into
mainfrom
cleanup-unused-components/mschwab
Open

chore(studio): remove 11 unused TSX components#481
marcusds wants to merge 1 commit into
mainfrom
cleanup-unused-components/mschwab

Conversation

@marcusds

@marcusds marcusds commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Removes 11 unused TSX components from web/packages/studio to reduce code clutter and improve maintainability.

Files removed

  • web/packages/studio/src/api/evaluation/details/useEvaluationDownloadResultsById.tsx
  • web/packages/studio/src/components/common/Loader.tsx
  • web/packages/studio/src/components/dataViews/SafeSynthesizerJobsDataView/Empty.tsx
  • web/packages/studio/src/components/evaluation/AvatarColorText.tsx
  • web/packages/studio/src/components/evaluation/Configurations/ActionMenu.tsx
  • web/packages/studio/src/components/evaluation/Jobs/TestMetric/ResultsLog.tsx
  • web/packages/studio/src/constants/tools.tsx
  • web/packages/studio/src/routes/FilesetListRoute/components/FilterPanel.tsx
  • web/packages/studio/src/routes/FilesetListRoute/components/FilterTags.tsx
  • web/packages/studio/src/routes/evaluation/EvaluationResultsRoute/FilterPanel.tsx
  • web/packages/studio/src/routes/evaluation/EvaluationResultsRoute/FilterTags.tsx

Summary by CodeRabbit

  • Refactor
    • Simplified the Studio interface by removing several unused evaluation, fileset, and helper UI components.
    • Removed filter panels and filter tags from evaluation and fileset views, reducing on-screen filtering controls.
    • Removed some auxiliary UI elements such as loading, action menu, results log, and avatar label components.
  • Chores
    • Cleaned up unused download/result handling and tool-rendering support to reduce maintenance overhead.

@marcusds marcusds requested review from a team as code owners June 26, 2026 05:10
@github-actions github-actions Bot added the chore label Jun 26, 2026
@coderabbitai

coderabbitai Bot commented Jun 26, 2026

Copy link
Copy Markdown

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: 1bd9c346-bbeb-43b4-9bb4-9fd14feec8a2

📥 Commits

Reviewing files that changed from the base of the PR and between 4256617 and c87980b.

📒 Files selected for processing (11)
  • web/packages/studio/src/api/evaluation/details/useEvaluationDownloadResultsById.tsx
  • web/packages/studio/src/components/common/Loader.tsx
  • web/packages/studio/src/components/dataViews/SafeSynthesizerJobsDataView/Empty.tsx
  • web/packages/studio/src/components/evaluation/AvatarColorText.tsx
  • web/packages/studio/src/components/evaluation/Configurations/ActionMenu.tsx
  • web/packages/studio/src/components/evaluation/Jobs/TestMetric/ResultsLog.tsx
  • web/packages/studio/src/constants/tools.tsx
  • web/packages/studio/src/routes/FilesetListRoute/components/FilterPanel.tsx
  • web/packages/studio/src/routes/FilesetListRoute/components/FilterTags.tsx
  • web/packages/studio/src/routes/evaluation/EvaluationResultsRoute/FilterPanel.tsx
  • web/packages/studio/src/routes/evaluation/EvaluationResultsRoute/FilterTags.tsx
💤 Files with no reviewable changes (11)
  • web/packages/studio/src/components/dataViews/SafeSynthesizerJobsDataView/Empty.tsx
  • web/packages/studio/src/constants/tools.tsx
  • web/packages/studio/src/routes/evaluation/EvaluationResultsRoute/FilterTags.tsx
  • web/packages/studio/src/routes/evaluation/EvaluationResultsRoute/FilterPanel.tsx
  • web/packages/studio/src/components/evaluation/AvatarColorText.tsx
  • web/packages/studio/src/components/evaluation/Jobs/TestMetric/ResultsLog.tsx
  • web/packages/studio/src/components/common/Loader.tsx
  • web/packages/studio/src/api/evaluation/details/useEvaluationDownloadResultsById.tsx
  • web/packages/studio/src/components/evaluation/Configurations/ActionMenu.tsx
  • web/packages/studio/src/routes/FilesetListRoute/components/FilterTags.tsx
  • web/packages/studio/src/routes/FilesetListRoute/components/FilterPanel.tsx

📝 Walkthrough

Walkthrough

This PR removes several legacy Studio UI modules, including evaluation result download and filter components, fileset filter controls, and shared loader, avatar, action menu, and tool helper code.

Changes

Studio UI cleanup

Layer / File(s) Summary
Evaluation results cleanup
web/packages/studio/src/api/evaluation/details/useEvaluationDownloadResultsById.tsx, web/packages/studio/src/components/evaluation/Jobs/TestMetric/ResultsLog.tsx, web/packages/studio/src/routes/evaluation/EvaluationResultsRoute/*
Deletes the evaluation result download hook, result log, and evaluation-results filter panel/tag components.
Fileset and empty-state cleanup
web/packages/studio/src/routes/FilesetListRoute/components/*, web/packages/studio/src/components/dataViews/SafeSynthesizerJobsDataView/Empty.tsx
Deletes the fileset list filter panel/tag components and the Safe Synthesizer jobs empty-state component.
Shared UI helper removals
web/packages/studio/src/components/common/Loader.tsx, web/packages/studio/src/components/evaluation/AvatarColorText.tsx, web/packages/studio/src/components/evaluation/Configurations/ActionMenu.tsx, web/packages/studio/src/constants/tools.tsx
Deletes the loader, avatar label row, action menu, and tool allowlist exports.

Possibly related PRs

Suggested labels

refactor

Suggested reviewers

  • steramae-nvidia
  • dmariali
  • nakolean
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: removing 11 unused TSX components in studio.
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 cleanup-unused-components/mschwab

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

@marcusds marcusds force-pushed the cleanup-unused-components/mschwab branch from cf915cd to 4256617 Compare June 26, 2026 05:14

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 4

🧹 Nitpick comments (2)
plugins/nemo-customizer/src/nemo_customizer/skills/nemo-customizer/references/eval_helpers.py (1)

25-25: 📐 Maintainability & Code Quality | 🔵 Trivial

Remove postponed annotations.
from __future__ import annotations makes every type hint string-backed at runtime and conflicts with the Python typing guideline to prefer concrete type hints.

🤖 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
`@plugins/nemo-customizer/src/nemo_customizer/skills/nemo-customizer/references/eval_helpers.py`
at line 25, Remove the postponed-annotations import from eval_helpers.py; the
module currently uses from __future__ import annotations, which makes all hints
string-based at runtime. Update the file so its type hints remain concrete, and
verify any affected annotations in eval_helpers or related helpers still work
without relying on postponed evaluation.

Source: Coding guidelines

plugins/nemo-customizer/src/nemo_customizer/skills/nemo-customizer/SKILL.md (1)

587-701: 📐 Maintainability & Code Quality | 🔵 Trivial | 🏗️ Heavy lift

Trim the eval walkthrough from SKILL.md.

This duplicates references/post-training-eval.md and makes the top-level skill harder to scan. Keep the skill as the execution entrypoint and leave the routing tables, examples, and report templates in the linked reference file.

Based on learnings, "SKILL.md files under .../skills/*/SKILL.md are agent skill execution definitions, not rendered documentation pages. Keep the top-level SKILL.md concise and move detailed reference material into separate linked files when useful."

🤖 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 `@plugins/nemo-customizer/src/nemo_customizer/skills/nemo-customizer/SKILL.md`
around lines 587 - 701, The SKILL.md content is too detailed and duplicates the
eval walkthrough already in references/post-training-eval.md; trim this file so
it stays an execution entrypoint. Keep only the high-level routing decision, the
two output-type branches, and brief pointers to the linked reference/doc
sections, while removing the full tables, examples, and report template text
from this skill. Preserve the existing symbols and structure around the “Using
the output (`completed` only)”, “Using the adapter”, and “Using the fine-tuned
model” sections, but replace the long walkthrough with concise guidance that
points to the reference file.

Source: Learnings

🤖 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
`@plugins/nemo-customizer/src/nemo_customizer/skills/nemo-customizer/references/eval_helpers.py`:
- Around line 637-649: The routing metadata in the adapter loop is being rebuilt
from a fresh provider lookup instead of using the already collected eval
results. Update the routing construction in the eval helper to source each entry
from the matching EvalSummary values, using gateway_url, gateway_path, and
model_name for each adapter_name rather than calling build_platform_model_target
again.
- Around line 301-304: The completed-job filtering in eval_helpers.py is using
substring checks on job model/dataset refs, which can match unrelated entries
like default/qwen and default/qwen2. Update the filtering logic around the
job_model/job_ds checks to normalize both refs first and then compare exact
values instead of using "in" on their string forms. Keep the change localized to
the job selection path that processes model_ref and dataset_ref so only exact
matches are returned.
- Around line 201-212: The provider resolver currently matches both the base
entity and adapter-backed served models, which can auto-select a base-only
provider for LoRA evals. Update the discovery logic in the resolver used by the
eval helpers to require an explicit provider when the request targets an
adapter, or otherwise restrict matching to providers that are known to serve the
requested adapter/LoRA-enabled deployments. Make sure the matching and fallback
behavior in the resolver path that scans payload data and returns the selected
provider does not treat base-only providers as valid for adapter requests.
- Around line 57-80: The CHAT row validator currently checks only message shape
and roles, but it still allows non-object rows and turns missing valid string
content. Update assert_chat_row and _assert_message_turn to reject rows that are
not dicts and to verify each turn has a string content field before accepting
it, especially for messages[0] and messages[-1], so invalid input is caught
before reference_content/templates use it.

---

Nitpick comments:
In
`@plugins/nemo-customizer/src/nemo_customizer/skills/nemo-customizer/references/eval_helpers.py`:
- Line 25: Remove the postponed-annotations import from eval_helpers.py; the
module currently uses from __future__ import annotations, which makes all hints
string-based at runtime. Update the file so its type hints remain concrete, and
verify any affected annotations in eval_helpers or related helpers still work
without relying on postponed evaluation.

In `@plugins/nemo-customizer/src/nemo_customizer/skills/nemo-customizer/SKILL.md`:
- Around line 587-701: The SKILL.md content is too detailed and duplicates the
eval walkthrough already in references/post-training-eval.md; trim this file so
it stays an execution entrypoint. Keep only the high-level routing decision, the
two output-type branches, and brief pointers to the linked reference/doc
sections, while removing the full tables, examples, and report template text
from this skill. Preserve the existing symbols and structure around the “Using
the output (`completed` only)”, “Using the adapter”, and “Using the fine-tuned
model” sections, but replace the long walkthrough with concise guidance that
points to the reference file.
🪄 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: 7f581f48-ed8b-44b2-aca2-7c7fe808a131

📥 Commits

Reviewing files that changed from the base of the PR and between cf915cd and 4256617.

📒 Files selected for processing (20)
  • plugins/nemo-customizer/src/nemo_customizer/skills/nemo-customizer/SKILL.md
  • plugins/nemo-customizer/src/nemo_customizer/skills/nemo-customizer/references/dataset-formats.md
  • plugins/nemo-customizer/src/nemo_customizer/skills/nemo-customizer/references/eval_helpers.py
  • plugins/nemo-customizer/src/nemo_customizer/skills/nemo-customizer/references/hyperparameters.md
  • plugins/nemo-customizer/src/nemo_customizer/skills/nemo-customizer/references/integrations-setup.md
  • plugins/nemo-customizer/src/nemo_customizer/skills/nemo-customizer/references/post-training-eval.md
  • plugins/nemo-customizer/src/nemo_customizer/skills/nemo-customizer/references/troubleshooting.md
  • plugins/nemo-customizer/src/nemo_customizer/skills/nemo-customizer/scripts/poll_customization_job.sh
  • plugins/nemo-customizer/tests/test_eval_helpers.py
  • web/packages/studio/src/api/evaluation/details/useEvaluationDownloadResultsById.tsx
  • web/packages/studio/src/components/common/Loader.tsx
  • web/packages/studio/src/components/dataViews/SafeSynthesizerJobsDataView/Empty.tsx
  • web/packages/studio/src/components/evaluation/AvatarColorText.tsx
  • web/packages/studio/src/components/evaluation/Configurations/ActionMenu.tsx
  • web/packages/studio/src/components/evaluation/Jobs/TestMetric/ResultsLog.tsx
  • web/packages/studio/src/constants/tools.tsx
  • web/packages/studio/src/routes/FilesetListRoute/components/FilterPanel.tsx
  • web/packages/studio/src/routes/FilesetListRoute/components/FilterTags.tsx
  • web/packages/studio/src/routes/evaluation/EvaluationResultsRoute/FilterPanel.tsx
  • web/packages/studio/src/routes/evaluation/EvaluationResultsRoute/FilterTags.tsx
💤 Files with no reviewable changes (11)
  • web/packages/studio/src/components/evaluation/AvatarColorText.tsx
  • web/packages/studio/src/components/evaluation/Configurations/ActionMenu.tsx
  • web/packages/studio/src/components/common/Loader.tsx
  • web/packages/studio/src/components/dataViews/SafeSynthesizerJobsDataView/Empty.tsx
  • web/packages/studio/src/api/evaluation/details/useEvaluationDownloadResultsById.tsx
  • web/packages/studio/src/components/evaluation/Jobs/TestMetric/ResultsLog.tsx
  • web/packages/studio/src/routes/evaluation/EvaluationResultsRoute/FilterPanel.tsx
  • web/packages/studio/src/constants/tools.tsx
  • web/packages/studio/src/routes/evaluation/EvaluationResultsRoute/FilterTags.tsx
  • web/packages/studio/src/routes/FilesetListRoute/components/FilterPanel.tsx
  • web/packages/studio/src/routes/FilesetListRoute/components/FilterTags.tsx
✅ Files skipped from review due to trivial changes (1)
  • plugins/nemo-customizer/src/nemo_customizer/skills/nemo-customizer/scripts/poll_customization_job.sh

@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor
Suite Lines Covered Line Rate Branch Rate
Unit Tests 21322/27924 76.4% 61.4%
Integration Tests 12350/26693 46.3% 19.7%

@marcusds marcusds force-pushed the cleanup-unused-components/mschwab branch from 4256617 to c87980b Compare June 26, 2026 05:33
@NVIDIA-NeMo NVIDIA-NeMo deleted a comment from coderabbitai Bot Jun 26, 2026
@NVIDIA-NeMo NVIDIA-NeMo deleted a comment from coderabbitai Bot Jun 26, 2026
@NVIDIA-NeMo NVIDIA-NeMo deleted a comment from coderabbitai Bot Jun 26, 2026
@NVIDIA-NeMo NVIDIA-NeMo deleted a comment from coderabbitai Bot Jun 26, 2026
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.

1 participant