Repository navigation
refactor(frontend): remove unused styles, import, and params - #9644
Open
aglinxinyuan wants to merge 2 commits into
Open
aglinxinyuan wants to merge 2 commits into
aglinxinyuan wants to merge 2 commits into
Conversation
Remove orphaned detail-page SCSS selectors moved to VersionsFilesBrowserComponent in apache#8942, drop unread RxJS callback and ngOnChanges parameters along with the unused SimpleChanges import, and merge the duplicate ui-udf-parameters-parser.service import. Closes apache#9643
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 #9644 +/- ##
============================================
- Coverage 91.67% 91.67% -0.01%
Complexity 5135 5135
============================================
Files 1304 1304
Lines 58088 58087 -1
Branches 7582 7582
============================================
- Hits 53254 53253 -1
Misses 2922 2922
Partials 1912 1912
*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:
|
Remove residual unmatched selectors in dataset-detail and model-detail stylesheets, remove unused and inert SCSS rules across dashboard, uploader, workflow execution history, breakpoint popup, AI-fix frame, and global styles, and delete the empty hub.component.scss stylesheet. Closes apache#9643
This branch has not been deployed
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 unused and inert SCSS rules, an empty component stylesheet, unread callback and lifecycle parameters, and a duplicate module import across the Angular frontend (+13/-132 lines). There is no observable UI or runtime behavior change.
.file-title,.file-size,.versions-tab-content,nz-layout,html, body,.grayed-out,.disabled-click, and.ant-collapse-content-boxrules fromDatasetDetailComponentSCSS, and unmatched.versions-tab-contentandnz-layoutrules fromModelDetailComponentSCSS. Both components use Angular's defaultViewEncapsulation.Emulated,#8942moved the version browser markup and styles toVersionsFilesBrowserComponent, and zero matching elements remain in either component template.#googleButton,.hidden(dashboard and hub templates use HTMLhidden/[hidden]/aria-hiddenattributes rather than a CSS class), unused Sass variable$dashboard-navigation-height,.uploaded-files-list, empty.file-uploader-banner {},.dataset-menu-bar,.condition-input-popup.fade-out, and.ai-fix-field(zero template or TypeScript references infrontend/src). Remove emulated.ant-table-thead > tr > thand.ant-tablerules inWorkflowExecutionHistoryComponentSCSS (defaultViewEncapsulation.Emulatedscopes them to host attributes that cannot matchnz-tableinternal DOM without::ng-deep), remove obsolete.ant-collapse-content-boxoverrides in globalstyles.scss(ng-zorro-antd21 emits.ant-collapse-bodywith zero.ant-collapse-content-boxoccurrences), and delete the empty license-onlyhub.component.scssalong with itsstyleUrlsentry inHubComponent.(res: Response)and(err: unknown)parameters inDatasetDetailComponent(onPublicStatusChange,onDownloadableStatusChange, andonPreviouslyUploadedFileDeleted) that were never read in their callback bodies.changes: SimpleChangesparameter and orphanedSimpleChangesimport inBrowseSectionComponent.ngOnChanges, along with two placeholder{} as anyarguments inbrowse-section.component.spec.ts.importfromui-udf-parameters-parser.serviceinUiUdfParametersComponentinto the existing import block from the same module.hub.component.scss: #1634 (2022-10-04), #2413 (2024-02-26), #2435 (2024-03-17), #2502 (2024-03-27), #2571 (2024-04-05), #2737 (2024-07-15), #2776 (2024-08-19), #2878 (2024-09-27), #2953 (2024-10-25), #3415 (2025-05-03), #4484 (2026-05-01), #8637 (2026-10-28); unread parameters and duplicate import: #2515 (2024-03-27), #3296 (2025-03-10), #3363 (2025-04-10), #3663 (2025-08-16), #6897 (2026-09-21, duplicating #7551 from 2026-08-13)refactor(frontend): extract shared VersionsFilesBrowser component);.ant-collapse-content-box: #5895 (2026-06-22,chore: upgrade ng-zorro-antd to 21.3.1); remaining selectors, emptyhub.component.scss, unread parameters, and duplicate import: unused or inert since introduction or prior UI refactorsAs of 2026-11-23, the
.ai-fix-fieldrule has been unused for about 4 weeks, the orphaned detail-page version styles for 6 weeks, the duplicate import for 2 months, the obsolete.ant-collapse-content-boxrules for 5 months, and the remaining rules and unread parameters for 15 to 49 months.Any related issues, documentation, discussions?
Closes #9643.
How was this PR tested?
Ran in
frontend/onff6361f2ea(Node 24,node .yarn/releases/yarn-4.14.1.cjs install --immutable --inline-builds):format:ci(prettier-eslint --list-differentandeslint ./src): passed.tsc --noEmit(src/tsconfig.app.jsonandsrc/tsconfig.spec.json): passed.build(production Angular AOT build): passed.test(Vitest, JUnit XML):255suites passed (7,385passed,0failed,0errors,1pre-existing skipped in untouchedoperator-property-edit-frame.component.spec.ts).Was this PR authored or co-authored using generative AI tooling?
Generated-by: Antigravity (Gemini 4 Neon)