Repository navigation
chore(frontend): remove unused operator icons of unknown origin - #9269
Conversation
Part of apache#8984. These files have no recorded source and are never shown, but they ship in the source release: - 35 operator icons whose names match no registered operator type (LogicalOp.scala). Icons are only loaded as assets/operator_images/<operatorType>.png, and no code references these files; 10 of the names appear only in test fixtures, mocks or prose, never as an image path. Includes HdfsFileScan.png and the SklearnDummy*.png files (the SklearnDummyClassifier operators use SklearnDummyClassifier.png, added in apache#9261). - frontend/src/favicon.ico, the Angular CLI default favicon from the 2018 scaffold. index.html uses assets/logos/ and angular.json only copies src/assets, so it was never served. Git history keeps the files if any is needed again. Generated-by: Claude Code (claude-opus-5-5)
Automated Reviewer SuggestionsBased on the
|
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9269 +/- ##
============================================
+ Coverage 92.17% 92.93% +0.75%
Complexity 4987 4987
============================================
Files 1284 1288 +4
Lines 55605 63326 +7721
Branches 7120 8912 +1792
============================================
+ Hits 51255 58853 +7598
- Misses 2591 2641 +50
- Partials 1759 1832 +73
*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:
|
parshimers
left a comment
There was a problem hiding this comment.
Seems fine. Most of these operators were apparently removed in 3c5ce29 but the icons stayed. The others were removed individually but again the icons were left over.
|
Hi @CaroFernando, this needs to go into release/v1.2 for the 1.2.1 RC2 as well. It cherry-picks cleanly. Could you open a backport PR against release/v1.2? Thanks! |
…e SVG (apache#9302) ### What changes were proposed in this PR? Replaces `frontend/src/assets/card_background.jpg`, the default cover image for dashboard and Hub cards, with `card_background.svg`, an image drawn for the project. The JPEG has no recorded source (it was marked unknown in the apache#9017 audit), and TinEye matches it to a [Shutterstock vector](https://www.shutterstock.com/image-vector/abstract-vector-background-use-design-153172853), so it can't ship in a release. The new SVG is an abstract blue low-poly background (triangles shaded from light blue to navy, close in feel to the old cover). It carries the ASF license header, so no `LICENSE` or `LICENSE-binary` entry is needed, and at about 9 KB it replaces a 414 KB JPEG. The two places that use the image, `browse-section.component.ts` (Hub) and `card-item.component.ts` (dashboard), and the Hub spec now point at the `.svg`. Both show it through `<img>` with `object-fit: cover`; the SVG uses `preserveAspectRatio="xMidYMid slice"`, so it is cropped the same way the JPEG was. ### Any related issues, documentation, discussions? Part of apache#8984, as requested there on 2026-11-04 (replace before RC1). Follows apache#9220, apache#9261 and apache#9269. With this PR, no file the apache#9017 audit marked unknown is still on `main` unchanged. `card_background.jpg` is identical on `release/v1.3`, so this backports cleanly there. ### How was this PR tested? ``` cd frontend yarn format:ci yarn lint yarn test --watch=false ``` All pass: 248 test files, 7021 tests (1 skipped), including `browse-section.component.spec.ts` and `card-item.component.spec.ts`. Also opened the SVG in a browser to check rendering and cropping. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-opus-5-5) Claude Code was used to check the remaining images against the apache#9017 audit, draw the SVG, update the references and draft this description. --------- Co-authored-by: Meng Wang <[email protected]>
…ct-made SVG (apache#9559) ### What changes were proposed in this PR? Backport of apache#9302 to `release/v1.2` for the 1.2.1 RC2. Source: fd85b9d Replaces `frontend/src/assets/card_background.jpg`, a stock image with no recorded source (TinEye matches it to a Shutterstock vector), with the project-made `card_background.svg` from apache#9302. The SVG carries the ASF license header, so no `LICENSE` entry is needed. The cherry-pick conflicted because the code that uses the cover image is different on v1.2: - `card-item.component.ts` doesn't exist on v1.2. On v1.2 the dashboard cover comes from `defaultCover` in `dataset-card-item.component.ts`, so that now points at the `.svg`. It shows the image through `<img>` with `object-fit: cover`, like the main component, so the SVG's `preserveAspectRatio="xMidYMid slice"` crops it the same way. - `browse-section.component.ts` (Hub): only `defaultBackground` changes to the `.svg`. v1.2's surrounding fields are kept. - `browse-section.component.spec.ts`: the conflicting hunk only contains tests that exist on main. The v1.2 spec doesn't reference the image, so the file is unchanged. After this change, nothing on the branch references `card_background.jpg`. ### Any related issues, documentation, discussions? Backport of apache#9302. Part of apache#8984. Independent of the apache#9220 (apache#9512) and apache#9269 (apache#9513) backports, which are already merged. ### How was this PR tested? ``` cd frontend yarn format:ci yarn lint yarn test --watch=false --include src/app/hub/component/browse-section/browse-section.component.spec.ts --include src/app/dashboard/component/user/dataset-card-item/dataset-card-item.component.spec.ts ``` All pass: 2 test files, 14 tests. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 5.5) Co-authored-by: Meng Wang <[email protected]>
What changes were proposed in this PR?
Removes 36 image files of unknown origin that Texera never shows (option A on #8984). They have no recorded source, so they can't ship in the source release, and since nothing uses them, deleting them is simpler than replacing them.
LogicalOp.scala). Operator icons are only loaded asassets/operator_images/<operatorType>.png(joint-ui.service.ts), and no code references these files by path.frontend/src/favicon.ico: the Angular CLI default favicon from the 2018 scaffold.index.htmluses the favicons inassets/logos/, andangular.jsononly copiessrc/assets, so it was never served.The 35 operator icons
AdhocSink,DictionarySource,EmojiSentiment,FuzzyTokenMatcher,FuzzyTokenSource,HdfsFileScan,JoinDistance,LocalFileScan,NlpEntity,NlpSplit,RegexMatcher,RegexSource,RegexSplit,SVMClassifierTrainer,SVMRegressorTrainer,Sampler,SentimentAnalysis,SimilarityJoin,SklearnDummy,SklearnTrainingDummy,ToLowerCase,WordCloudV2,WordCount,WordCountIndexSource,run-iconAggregation,Comparison,FileSource,KeywordMatcher,KeywordSource,NlpSentiment,ScanSource,SimpleSink,TimeSeries,ViewResultsSklearnDummy*.pngmatched no operator type; theSklearnDummyClassifieroperators get their own icons in #9261.With this PR, #9220 and #9261, every remaining file in
frontend/src/assets/operator_images/is either listed inLICENSEor was made by the project (#5686, #8804, #8999, #9220, #9261). Git history keeps the deleted files if any is ever needed again.Any related issues, documentation, discussions?
Part of #8984 (option A, proposed there on 2026-10-30). Follows #9220 and #9261. Precedent for deleting unused assets: #8803, #9020.
All 36 files are identical on
release/v1.3, so this backports cleanly there.How was this PR tested?
File deletions only, no code change.
LogicalOp.scala) and searched the repository for every name and<name>.pngpath: no operator type and no image reference."assets/operator_images/" + operatorType + ".png", so a file with no matching operator type is never requested.favicon.ico: not referenced byindex.htmlorangular.json.StaticAssetCacheFilterSpecuses the/favicon.icoURL only as a string to test cache headers.operator_images/is inLICENSE, carries a "Created for Apache Texera" PNG notice, or was last written by one of the project-made PRs listed above.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (claude-opus-5-5)
Claude Code was used to check the files against the operator registry and code references and to draft this description.