Skip to content

chore(frontend): refresh UDF operator icons - #5686

Merged
Yicong-Huang merged 1 commit into
apache:mainfrom
Yicong-Huang:chore/refresh-udf-operator-icons
Jun 13, 2026
Merged

Yicong-Huang merged 1 commit into
apache:mainfrom
Yicong-Huang:chore/refresh-udf-operator-icons

Conversation

@Yicong-Huang

@Yicong-Huang Yicong-Huang commented Jun 13, 2026 •

Copy link
Copy Markdown
Contributor

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:

Before and after comparison of the eight UDF operator 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)

@github-actions github-actions Bot added the frontend Changes related to the frontend GUI label Jun 13, 2026
@codecov-commenter

codecov-commenter commented Jun 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.76%. Comparing base (aceca29) to head (c09dc73).
⚠️ Report is 1 commits behind head on main.

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           
Flag Coverage Δ *Carryforward flag
access-control-service 71.42% <ø> (ø) Carriedforward from aceca29
agent-service 34.36% <ø> (ø) Carriedforward from aceca29
amber 52.69% <ø> (ø) Carriedforward from aceca29
computing-unit-managing-service 1.65% <ø> (ø) Carriedforward from aceca29
config-service 56.71% <ø> (ø) Carriedforward from aceca29
file-service 57.06% <ø> (ø) Carriedforward from aceca29
frontend 47.89% <ø> (ø)
pyamber 90.72% <ø> (ø) Carriedforward from aceca29
python 90.74% <ø> (ø) Carriedforward from aceca29
workflow-compiling-service 58.69% <ø> (ø) Carriedforward from aceca29

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Yicong-Huang
Yicong-Huang marked this pull request as draft June 13, 2026 20:57
@Yicong-Huang
Yicong-Huang force-pushed the chore/refresh-udf-operator-icons branch from 13e7dc6 to b87a810 Compare June 13, 2026 21:10
@Yicong-Huang
Yicong-Huang marked this pull request as ready for review June 13, 2026 21:14

@aglinxinyuan aglinxinyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have py with two color schemes? Can we just pick one? Either use one color or use two colors.

@Yicong-Huang
Yicong-Huang force-pushed the chore/refresh-udf-operator-icons branch from b87a810 to c09dc73 Compare June 13, 2026 21:48
@Yicong-Huang

Copy link
Copy Markdown
Contributor Author

Why do we have py with two color schemes? Can we just pick one? Either use one color or use two colors.

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.

@aglinxinyuan aglinxinyuan left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Can we change the lambda and reducer icon to grey? It's optional.

@Yicong-Huang

Copy link
Copy Markdown
Contributor Author

LGTM! Can we change the lambda and reducer text to grey?

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.

@Yicong-Huang
Yicong-Huang added this pull request to the merge queue Jun 13, 2026
Merged via the queue into apache:main with commit a044287 Jun 13, 2026
21 checks passed
@Yicong-Huang
Yicong-Huang deleted the chore/refresh-udf-operator-icons branch June 13, 2026 22:15
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
### 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:

![Before and after comparison of the eight UDF operator
icons](https://raw.githubusercontent.com/Yicong-Huang/texera/media/udf-icons-preview/udf-icons-preview/_before_after.png)

### 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]>
CaroFernando added a commit to CaroFernando/texera that referenced this pull request Oct 23, 2026
…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.
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Oct 27, 2026
…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)
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Nov 3, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refresh outdated UDF operator icons and remove leftover "New" overlay

3 participants