Repository navigation
chore(frontend): refresh UDF operator icons - #5686
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5686 +/- ##
=========================================
Coverage 52.76% 52.76%
Complexity 2545 2545
=========================================
Files 1090 1090
Lines 42150 42150
Branches 4529 4529
=========================================
Hits 22242 22242
Misses 18583 18583
Partials 1325 1325
*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:
|
13e7dc6 to
b87a810
Compare
aglinxinyuan
left a comment
There was a problem hiding this comment.
Why do we have py with two color schemes? Can we just pick one? Either use one color or use two colors.
b87a810 to
c09dc73
Compare
hmm, the greyed out "py" was to be used as subscription. I updated them to two colors schema. Does it look better? I am on the edge. |
Let's keep the symbols colored, as they are the main part of the icon. we can have lambda in other languages in the future. |
### What changes were proposed in this PR? Replaces the eight UDF operator icons under `frontend/src/assets/operator_images/` with a clean, consistent typographic set. The previous icons were mismatched — the three Python UDF icons carried a leftover red "New" overlay, and the Lambda/Reducer/Java/R icons varied in size and visual style (logo art, plain text, stock marks). Each new icon is a 1024×1024 transparent PNG with a large, tightly-cropped hero glyph and, where needed, a small descriptor stacked beneath it: `Py` (Python UDF), `Py` + `src` (Python UDF source), `Py` + `2-in` (dual-input Python UDF), `λ` + `py` (Python lambda), `Σ` + `py` (Python table reducer), `Java` (Java UDF), `R` (R UDF), `R` + `src` (R UDF source). Every Python wordmark — both the hero `Py` and the `py` descriptor — uses the same Python blue/gold two-color scheme; the `src`/`2-in` qualifiers are gray. Java uses its orange/blue, R its blue. Filenames are unchanged, so they continue to map to the `assets/operator_images/<operatorType>.png` lookup in `joint-ui.service.ts`. Before / after comparison of all eight icons:  ### Any related issues, documentation, discussions? Closes apache#5685 ### How was this PR tested? This is a static asset swap with no code changes, so no automated tests were added. Verified manually by running the Angular frontend (`ng serve`) against a local backend and confirming all eight icons render correctly in the operator panel and on the workflow canvas. Each PNG is a 1024×1024 transparent square and the eight filenames exactly match the existing files, so the operator-type icon lookup is unaffected. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Opus 4.8 (Cowork) Co-authored-by: Yicong Huang <[email protected]>
…ENANCE.yaml Binary files cannot carry a license header, so nothing recorded where the 236 images and media files in the repository came from. Add a manifest at the repository root with one entry per file: its origin (project-made, third-party or unknown), and for third-party files the source and licence. Entries were filled from git history (the commit that wrote each file's current content), embedded metadata, the PRs that added the files, and a visual review: - project-made: Texera logos, UI screenshots and tutorial recordings, the UDF icons redrawn in apache#5686, and the sample media / comment icon that their PRs describe as original - third-party: files already listed in LICENSE, plus the Apache Arrow, AsterixDB and Hadoop logos, the Angular CLI favicon, a Noun Project icon (TypeCasting.png), and a Freepik icon (DumbbellPlot.png) and an Adobe Stock icon (SankeyDiagram.png) that must be replaced - unknown: everything else, with the evidence found so far Part of apache#8984.
…c icons (apache#8999) ### What changes were proposed in this PR? Per apache#8982, thirteen operator icons under `frontend/src/assets/operator_images/` were other organisations' logos (Twitter, Reddit, PostgreSQL, MySQL, Hugging Face, the Python logo), a photo of an iris, or stock-looking artwork, with no recorded source or licence. None of them has a licence that lets an Apache source release redistribute it, so this replaces them with project-made icons. The new icons follow the UDF icons from apache#5686: a large hero word with an optional gray descriptor on a 1024×1024 transparent canvas, so they match `Py`, `R` and `Java` on the canvas. They were drawn with Pillow, and the text uses Aileron Regular (CC0), the font bundled with Pillow, so no `LICENSE` entry is needed. File names are unchanged, so the `assets/operator_images/<operatorType>.png` lookup still finds them. `JavaUDF.png` on `main` is already the project-made icon from apache#5686, so it isn't touched. On `release/v1.2` it is still the Java logo, because apache#5686 wasn't backported, and that branch has no `HuggingFace.png`, so the v1.2 backport needs both adjusted. ### Any related issues, documentation, discussions? Part of apache#8982; its Jupyter item is apache#8997 and apache#8998. Part of apache#8800. ### How was this PR tested? Asset swap only, with no code change. Previewed the icons at the 35 px size the workflow canvas draws them at, and checked that the commit applies cleanly to `release/v1.3`. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-opus-5-5)
…he#9269) ### What changes were proposed in this PR? Removes 36 image files of unknown origin that Texera never shows (option A on apache#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. - **35 operator icons** whose names match no registered operator type (`LogicalOp.scala`). Operator icons are only loaded as `assets/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.html` uses the favicons in `assets/logos/`, and `angular.json` only copies `src/assets`, so it was never served. <details> <summary>The 35 operator icons</summary> - **Name not referenced anywhere (25):** `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-icon` - **Name only in test fixtures, mocks or prose, never as an image path (10):** `Aggregation`, `Comparison`, `FileSource`, `KeywordMatcher`, `KeywordSource`, `NlpSentiment`, `ScanSource`, `SimpleSink`, `TimeSeries`, `ViewResults` `SklearnDummy*.png` matched no operator type; the `SklearnDummyClassifier` operators get their own icons in apache#9261. </details> With this PR, apache#9220 and apache#9261, every remaining file in `frontend/src/assets/operator_images/` is either listed in `LICENSE` or was made by the project (apache#5686, apache#8804, apache#8999, apache#9220, apache#9261). Git history keeps the deleted files if any is ever needed again. ### Any related issues, documentation, discussions? Part of apache#8984 (option A, proposed there on 2026-10-30). Follows apache#9220 and apache#9261. Precedent for deleting unused assets: apache#8803, apache#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. - Checked each name against the operator registry (`LogicalOp.scala`) and searched the repository for every name and `<name>.png` path: no operator type and no image reference. - The frontend loads operator icons only through `"assets/operator_images/" + operatorType + ".png"`, so a file with no matching operator type is never requested. - `favicon.ico`: not referenced by `index.html` or `angular.json`. `StaticAssetCacheFilterSpec` uses the `/favicon.ico` URL only as a string to test cache headers. - Coverage check after the change: each file left in `operator_images/` is in `LICENSE`, 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.
What changes were proposed in this PR?
Replaces the eight UDF operator icons under
frontend/src/assets/operator_images/with a clean, consistent typographic set. The previous icons were mismatched — the three Python UDF icons carried a leftover red "New" overlay, and the Lambda/Reducer/Java/R icons varied in size and visual style (logo art, plain text, stock marks).Each new icon is a 1024×1024 transparent PNG with a large, tightly-cropped hero glyph and, where needed, a small descriptor stacked beneath it:
Py(Python UDF),Py+src(Python UDF source),Py+2-in(dual-input Python UDF),λ+py(Python lambda),Σ+py(Python table reducer),Java(Java UDF),R(R UDF),R+src(R UDF source). Every Python wordmark — both the heroPyand thepydescriptor — uses the same Python blue/gold two-color scheme; thesrc/2-inqualifiers are gray. Java uses its orange/blue, R its blue. Filenames are unchanged, so they continue to map to theassets/operator_images/<operatorType>.pnglookup injoint-ui.service.ts.Before / after comparison of all eight icons:
Any related issues, documentation, discussions?
Closes #5685
How was this PR tested?
This is a static asset swap with no code changes, so no automated tests were added. Verified manually by running the Angular frontend (
ng serve) against a local backend and confirming all eight icons render correctly in the operator panel and on the workflow canvas. Each PNG is a 1024×1024 transparent square and the eight filenames exactly match the existing files, so the operator-type icon lookup is unaffected.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 4.8 (Cowork)