CaroFernando opened a new pull request, #9220: URL: https://github.com/apache/texera/pull/9220
### What changes were proposed in this PR? The machine learning operator icons (sklearn models, the Hugging Face spam detection operator and the scorer) had no recorded source, and are most likely copied from the web (#8984). This PR replaces all 58 of them with icons whose source and licence are proven. Since each `Sklearn*` icon is shared with its `SklearnTraining*` twin, that is 31 distinct images. Following the approach agreed on #8984 (icons from sets with a compatible licence first, project-made where nothing fits, no AI-generated images), the replacements come from: | Source | Licence | Used for | |---|---|---| | [IBM Carbon Design System](https://github.com/carbon-design-system/carbon) icons, `@carbon/icons` 11.91.0 | Apache-2.0 | 8 icons, plus the base of 3 derived ones | | [Google Material Symbols](https://github.com/google/material-design-icons), `@material-symbols/svg-400` 0.48.2 | Apache-2.0 | 4 icons, plus the cycle arrows of the 2 cross-validated ones | | [Tabler Icons](https://github.com/tabler/tabler-icons), `@tabler/icons` 3.50.0 | MIT | 4 icons | | [Lucide](https://github.com/lucide-icons/lucide), `lucide-static` 1.64.0 | ISC | 6 icons, plus the base of 1 derived one | | Project-made | (this project) | 5 icons: a bell curve, linear and kernel SVM boundaries, and the typographic "P(A)" and "PA" (text set in [Aileron](https://dotcolon.net/fonts/aileron), CC0 1.0, as in #8999) | All four licences are ASF Category A. Material Design Icons (`@mdi/svg`) was considered but not used: its LICENSE says some icons are "redistributed under their respective licenses" and it records no per-icon licence, so a single icon's licence can't be proven. Some icons are modified: every icon is rendered from SVG to a 256×256 PNG, a fitted line (and a slope triangle) is drawn on Carbon's scatter chart for linear regression and gradient boosting, and the cross-validated variants place the base icon inside Material Symbols' cycle arrows. All four licences allow modification. To meet Apache-2.0 §4(b), each PNG carries a notice of its source, licence, copyright and changes in its PNG text metadata (`exiftool -Comment <file>`), and the LICENSE entries list the changes. None of the sources ships a NOTICE file. `LICENSE` and `frontend/LICENSE-binary` list every third-party file with its source, copyright and licence (an ISC section is added to `LICENSE` for Lucide; Material Symbols extends its existing entry). File names are unchanged, so the `assets/operator_images/<operatorType>.png` lookup still finds them. The PNGs are 256×256: the workflow canvas draws icons at 35×35 px and zooms to at most 1.3×, so they appear at no more than ~137 physical pixels even on 3× screens. Together they are 442 KB, down from 4.4 MB for the icons they replace. <img width="1340" height="1820" alt="image" src="https://github.com/user-attachments/assets/88908ce1-f86a-462b-b941-36dfa910f28f" /> <details> <summary>Every replaced icon, with its pinned source</summary> | Operator icon(s) | Source | Icon | Licence | |---|---|---|---| | `KNNClassifierTrainer` / `KNNRegressorTrainer` | IBM Carbon | [`edge-cluster`](https://cdn.jsdelivr.net/npm/@carbon/[email protected]/svg/32/edge-cluster.svg) | Apache-2.0 | | `SVCTrainer` / `SVRTrainer` | IBM Carbon | [`chart--scatter`](https://cdn.jsdelivr.net/npm/@carbon/[email protected]/svg/32/chart--scatter.svg) | Apache-2.0 | | `HuggingFaceSpamSMSDetection` | Lucide | [`message-square-warning`](https://cdn.jsdelivr.net/npm/[email protected]/icons/message-square-warning.svg) | ISC | | `Scorer` | Lucide | [`gauge`](https://cdn.jsdelivr.net/npm/[email protected]/icons/gauge.svg) | ISC | | `SklearnAdaptiveBoosting` / `SklearnTrainingAdaptiveBoosting` | Tabler | [`arrows-join-2`](https://cdn.jsdelivr.net/npm/@tabler/[email protected]/icons/outline/arrows-join-2.svg) | MIT | | `SklearnBagging` / `SklearnTrainingBagging` | Lucide | [`layers`](https://cdn.jsdelivr.net/npm/[email protected]/icons/layers.svg) | ISC | | `SklearnBernoulliNaiveBayes` / `SklearnTrainingBernoulliNaiveBayes` | Tabler | [`chart-grid-dots`](https://cdn.jsdelivr.net/npm/@tabler/[email protected]/icons/outline/chart-grid-dots.svg) | MIT | | `SklearnComplementNaiveBayes` / `SklearnTrainingComplementNaiveBayes` | IBM Carbon | [`chart--venn-diagram`](https://cdn.jsdelivr.net/npm/@carbon/[email protected]/svg/32/chart--venn-diagram.svg) | Apache-2.0 | | `SklearnDecisionTree` / `SklearnTrainingDecisionTree` | IBM Carbon | [`decision-tree`](https://cdn.jsdelivr.net/npm/@carbon/[email protected]/svg/32/decision-tree.svg) | Apache-2.0 | | `SklearnExtraTree` / `SklearnTrainingExtraTree` | Tabler | [`binary-tree`](https://cdn.jsdelivr.net/npm/@tabler/[email protected]/icons/outline/binary-tree.svg) | MIT | | `SklearnExtraTrees` / `SklearnTrainingExtraTrees` | Material Symbols | [`forest`](https://cdn.jsdelivr.net/npm/@material-symbols/[email protected]/outlined/forest.svg) | Apache-2.0 | | `SklearnGaussianNaiveBayes` / `SklearnTrainingGaussianNaiveBayes` | Project-made | bell curve + mean | — | | `SklearnGradientBoosting` / `SklearnTrainingGradientBoosting` | IBM Carbon + project | [`chart--scatter`](https://cdn.jsdelivr.net/npm/@carbon/[email protected]/svg/32/chart--scatter.svg) + drawn fitted line and slope triangle | Apache-2.0 | | `SklearnKNN` / `SklearnTrainingKNN` | IBM Carbon | [`share`](https://cdn.jsdelivr.net/npm/@carbon/[email protected]/svg/32/share.svg) | Apache-2.0 | | `SklearnLinearRegression` / `SklearnTrainingLinearRegression` | IBM Carbon + project | [`chart--scatter`](https://cdn.jsdelivr.net/npm/@carbon/[email protected]/svg/32/chart--scatter.svg) + drawn fitted line | Apache-2.0 | | `SklearnLinearSVM` / `SklearnTrainingLinearSVM` | Project-made | linear boundary | — | | `SklearnLogisticRegression` / `SklearnTrainingLogisticRegression` | IBM Carbon | [`chart--logistic-regression`](https://cdn.jsdelivr.net/npm/@carbon/[email protected]/svg/32/chart--logistic-regression.svg) | Apache-2.0 | | `SklearnLogisticRegressionCV` / `SklearnTrainingLogisticRegressionCV` | IBM Carbon + Material Symbols | [`chart--logistic-regression`](https://cdn.jsdelivr.net/npm/@carbon/[email protected]/svg/32/chart--logistic-regression.svg) inside [`autorenew`](https://cdn.jsdelivr.net/npm/@material-symbols/[email protected]/outlined/autorenew.svg) | Apache-2.0 | | `SklearnMultiLayerPerceptron` / `SklearnTrainingMultiLayerPerceptron` | Tabler | [`topology-full`](https://cdn.jsdelivr.net/npm/@tabler/[email protected]/icons/outline/topology-full.svg) | MIT | | `SklearnMultinomialNaiveBayes` / `SklearnTrainingMultinomialNaiveBayes` | Project-made | typographic 'P(A)' in Aileron (CC0 1.0) | — | | `SklearnNearestCentroid` / `SklearnTrainingNearestCentroid` | Lucide | [`circle-dot-dashed`](https://cdn.jsdelivr.net/npm/[email protected]/icons/circle-dot-dashed.svg) | ISC | | `SklearnPassiveAggressive` / `SklearnTrainingPassiveAggressive` | Project-made | typographic 'PA' in Aileron (CC0 1.0) | — | | `SklearnPerceptron` / `SklearnTrainingPerceptron` | IBM Carbon | [`flow--merge`](https://cdn.jsdelivr.net/npm/@carbon/[email protected]/svg/32/flow--merge.svg) | Apache-2.0 | | `SklearnPrediction` | Material Symbols | [`batch_prediction`](https://cdn.jsdelivr.net/npm/@material-symbols/[email protected]/outlined/batch_prediction.svg) | Apache-2.0 | | `SklearnProbabilityCalibration` / `SklearnTrainingProbabilityCalibration` | Material Symbols | [`tune`](https://cdn.jsdelivr.net/npm/@material-symbols/[email protected]/outlined/tune.svg) | Apache-2.0 | | `SklearnRandomForest` / `SklearnTrainingRandomForest` | Material Symbols | [`forest`](https://cdn.jsdelivr.net/npm/@material-symbols/[email protected]/outlined/forest.svg) | Apache-2.0 | | `SklearnRidge` / `SklearnTrainingRidge` | Lucide | [`mountain-snow`](https://cdn.jsdelivr.net/npm/[email protected]/icons/mountain-snow.svg) | ISC | | `SklearnRidgeCV` / `SklearnTrainingRidgeCV` | Lucide + Material Symbols | [`mountain-snow`](https://cdn.jsdelivr.net/npm/[email protected]/icons/mountain-snow.svg) inside [`autorenew`](https://cdn.jsdelivr.net/npm/@material-symbols/[email protected]/outlined/autorenew.svg) | Apache-2.0 + ISC | | `SklearnSDG` / `SklearnTrainingSDG` | IBM Carbon | [`math-curve`](https://cdn.jsdelivr.net/npm/@carbon/[email protected]/svg/32/math-curve.svg) | Apache-2.0 | | `SklearnSVM` / `SklearnTrainingSVM` | Project-made | curved boundary + margin | — | | `SklearnTesting` | Lucide | [`test-tubes`](https://cdn.jsdelivr.net/npm/[email protected]/icons/test-tubes.svg) | ISC | </details> ### Any related issues, documentation, discussions? Part of #8984, the first of several batches grouped by operator category. Related: #8800, #8999. The same 58 files are on `release/v1.3` and `release/v1.2` (identical blobs), so this should be backported to both. ### How was this PR tested? Asset and LICENSE change only, no code change. - Previewed every icon at the 35 px size the workflow canvas draws them at (see the before/after image). - Checked that every third-party file is listed in both `LICENSE` and `frontend/LICENSE-binary`, and that the project-made ones are not. - Checked that each PNG carries its change notice: `exiftool -s -Comment frontend/src/assets/operator_images/Sklearn*.png`. - License header check, as in `check-header.yml`: `license-eye -c .licenserc.yaml header check` reports 0 invalid files. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-opus-5-5) No image-generation model was used. Claude Code was used to search the icon sets, render the SVGs to PNG, draw the project-made icons from simple shapes and text, and write the LICENSE entries; every icon was chosen by the author. -- 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]
