Repository navigation
refactor(frontend): remove unused dataset dashboard code - #9463
Merged
aglinxinyuan merged 4 commits intoNov 17, 2026
Merged
aglinxinyuan merged 4 commits into
aglinxinyuan merged 4 commits into
Conversation
The dataset creation modal opens only in dataset mode, the dashboard always uses the private search scope, and the preview guard excludes the removed types.
Contributor
Automated Reviewer SuggestionsBased on the
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9463 +/- ##
============================================
- Coverage 91.79% 91.78% -0.02%
Complexity 5026 5026
============================================
Files 1283 1281 -2
Lines 56872 56771 -101
Branches 7440 7410 -30
============================================
- Hits 52208 52108 -100
+ Misses 2799 2797 -2
- Partials 1865 1866 +1
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
kunwp1
approved these changes
Nov 16, 2026
kunwp1
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the cleanup! I left two small comments. Separately, the creator only creates datasets now, so renaming it to UserDatasetCreatorComponent to match UserModelCreatorComponent could be a follow-up.
Both creators now leave showToggles at its default, so the creator form always renders the visibility and downloadability switches. isPreviewSupported only accepts types that have an entry in MIME_TYPE_SIZE_LIMITS_MB, so the DEFAULT_MAX_SIZE fallbacks in reloadFileContent cannot be reached. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The creator only creates datasets now, so rename UserDatasetVersionCreatorComponent to UserDatasetCreatorComponent to match UserModelCreatorComponent. Move it out of user-dataset-explorer/ to user-dataset/user-dataset-creator/, mirroring user-model/user-model-creator/, since only the dataset list and result export open it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What changes were proposed in this PR?
Remove unreachable code from dataset creation, dashboard search, and file previews, and rename the dataset creator to match the model creator. +245/−388 lines across fourteen files.
UserDatasetVersionCreatorComponentbecomesUserDatasetCreatorComponentand moves fromuser-dataset-explorer/touser-dataset/user-dataset-creator/, matchingUserModelCreatorComponentinuser-model/user-model-creator/. GitHub shows its.tsas a new file because the move and the version-mode removal together change most of it.The modal mode and its switch toggle have been unreachable since August 2025, the search scopes since January 2025, and the binary size limit since December 2024.
Any related issues, documentation, discussions?
Closes #9462.
How was this PR tested?
From
frontend/on Node 24509 tests passed across nine suites. The preview test now checks that the four affected suffixes still show the unsupported-preview state without a request to the backend. Both creation entry points, the model creator that shares the creator form, and the dataset version uploader are covered by the targeted run.
Was this PR authored or co-authored using generative AI tooling?
Generated-by: Codex (GPT-6) and Claude Code (Claude Opus 5.5)