aglinxinyuan opened a new pull request, #9644:
URL: https://github.com/apache/texera/pull/9644

   ### What changes were proposed in this PR?
   
   Remove orphaned detail-page SCSS selectors, unread callback and lifecycle 
parameters, and a duplicate module import across the Angular frontend 
(**+13/-29 lines**). There is no observable UI or runtime behavior change.
   
   - **Detail-page SCSS selectors:** Remove unused `.file-title`, `.file-size`, 
and `.versions-tab-content` rules from `DatasetDetailComponent` SCSS and 
`.versions-tab-content` from `ModelDetailComponent` SCSS. Both components use 
Angular's default `ViewEncapsulation.Emulated`, and zero matching elements 
remain in either component template after `#8942` extracted the tab into 
`VersionsFilesBrowserComponent`.
   - **Unread subscriber callback parameters:** Drop six unread `(res: 
Response)` and `(err: unknown)` parameters in `DatasetDetailComponent` 
(`onPublicStatusChange`, `onDownloadableStatusChange`, and 
`onPreviouslyUploadedFileDeleted`) that were never read in their callback 
bodies.
   - **Unread lifecycle parameter and import:** Drop the unread `changes: 
SimpleChanges` parameter and orphaned `SimpleChanges` import in 
`BrowseSectionComponent.ngOnChanges`, along with two placeholder `{} as any` 
arguments in `browse-section.component.spec.ts`.
   - **Duplicate module import:** Merge the duplicate `import` from 
`ui-udf-parameters-parser.service` in `UiUdfParametersComponent` into the 
existing import block from the same module.
   
   | Event | PR / Commit |
   | --- | --- |
   | Introduced by | Detail SCSS: #2927 (2024-10-14), #4928 (2026-05-04), #7043 
(2026-07-30), #8072 (2026-08-28); callback params: #2515 (2024-03-27), #3296 
(2025-03-10), #3663 (2025-08-16); `BrowseSectionComponent` `SimpleChanges`: 
#3363 (2025-04-10); duplicate import: #6897 (2026-09-21, duplicating #7551 from 
2026-08-13) |
   | Usage removed by | Detail SCSS: #8942 (2026-10-10, `refactor(frontend): 
extract shared VersionsFilesBrowser component`); unread parameters and 
duplicate import: never used since introduction |
   
   As of 2026-11-23, the orphaned detail-page styles have been dead for about 6 
weeks, the duplicate import for 2 months, and the unread parameters for 15 to 
32 months.
   
   ### Any related issues, documentation, discussions?
   
   Closes #9643.
   
   ### How was this PR tested?
   
   Ran in `frontend/` on `49e00f878b` (Node 24, `node 
.yarn/releases/yarn-4.14.1.cjs install --immutable --inline-builds`):
   
   ```bash
   node .yarn/releases/yarn-4.14.1.cjs format:ci
   node .yarn/releases/yarn-4.14.1.cjs exec tsc -p src/tsconfig.app.json 
--noEmit
   node .yarn/releases/yarn-4.14.1.cjs exec tsc -p src/tsconfig.spec.json 
--noEmit
   node .yarn/releases/yarn-4.14.1.cjs build
   node .yarn/releases/yarn-4.14.1.cjs test
   ```
   
   - `format:ci` (`prettier-eslint --list-different` and `eslint ./src`): 
passed.
   - `tsc --noEmit` (`src/tsconfig.app.json` and `src/tsconfig.spec.json`): 
passed.
   - `build` (production Angular AOT build): passed.
   - `test` (Vitest, JUnit XML): `255` suites passed (`7,385` passed, `0` 
failed, `0` errors, `1` pre-existing skipped in untouched 
`operator-property-edit-frame.component.spec.ts`), including 
`dataset-detail.component.spec.ts` (`142/142`), 
`model-detail.component.spec.ts` (`78/78`), 
`ui-udf-parameters.component.spec.ts` (`47/47`), and 
`browse-section.component.spec.ts` (`25/25`).
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Antigravity (Gemini 4 Neon)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to