Skip to content

fix(licensing): replace the stock card cover image with a project-made SVG - #9302

Merged
mengw15 merged 3 commits into
apache:mainfrom
CaroFernando:feat/card-background
Nov 4, 2026
Merged

mengw15 merged 3 commits into
apache:mainfrom
CaroFernando:feat/card-background

Conversation

@CaroFernando

@CaroFernando CaroFernando commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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 #9017 audit), and TinEye matches it to a Shutterstock vector, 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 #8984, as requested there on 2026-11-04 (replace before RC1). Follows #9220, #9261 and #9269. With this PR, no file the #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 #9017 audit, draw the SVG, update the references and draft this description.

…e SVG

card_background.jpg, the default cover for dashboard and Hub cards, matches
a Shutterstock vector and has no recorded licence, so it cannot ship in a
release. Replace it with an SVG drawn for the project and point the two
components and the spec at the new file.

Part of apache#8984
@github-actions github-actions Bot added feature frontend Changes related to the frontend GUI labels Nov 4, 2026
@Yicong-Huang Yicong-Huang added release/v1.3 back porting to release/v1.3 release/v1.2 back porting to release/v1.2 labels Nov 4, 2026
@github-actions
github-actions Bot requested review from mengw15 and xuang7 November 4, 2026 06:12
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Backport auto-label report

This fix: PR was checked against each actively-supported release branch. A release/* label nominates a backport target; the branch's release manager approving this PR is what sends the fix there. The required Backport Approvals check stays red until every label below is approved, so each manager either approves or removes their own label — which is why the labels left on a merged PR are exactly the branches it reached.

Release branch Analysis
✅ release/v1.3 Already labeled — this fix is queued to backport here. @mengw15 decides: approving sends the fix here, removing this label declines it. The merge waits on one or the other.
✅ release/v1.2 Already labeled — this fix is queued to backport here. @xuang7 decides: approving sends the fix here, removing this label declines it. The merge waits on one or the other.

Auto-label run.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @tanishqgandhi1908, @yangzhang75
    You can notify them by mentioning @tanishqgandhi1908, @yangzhang75 in a comment.

@codecov-commenter

codecov-commenter commented Nov 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.15%. Comparing base (11ab0ce) to head (43597f3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9302      +/-   ##
============================================
- Coverage     92.16%   92.15%   -0.01%     
  Complexity     4968     4968              
============================================
  Files          1267     1268       +1     
  Lines         55507    55495      -12     
  Branches       7126     7136      +10     
============================================
- Hits          51157    51143      -14     
- Misses         2584     2585       +1     
- Partials       1766     1767       +1     
Flag Coverage Δ *Carryforward flag
access-control-service 77.44% <ø> (ø) Carriedforward from 858eeec
agent-service 99.52% <ø> (-0.01%) ⬇️ Carriedforward from 858eeec
amber 86.83% <ø> (+0.02%) ⬆️ Carriedforward from 858eeec
computing-unit-managing-service 64.02% <ø> (ø) Carriedforward from 858eeec
config-service 87.61% <ø> (ø) Carriedforward from 858eeec
file-service 82.29% <ø> (ø) Carriedforward from 858eeec
frontend 96.48% <100.00%> (ø)
notebook-migration-service 83.77% <ø> (ø) Carriedforward from 858eeec
pyamber 98.47% <ø> (-0.07%) ⬇️ Carriedforward from 858eeec
workflow-compiling-service 77.95% <ø> (ø) Carriedforward from 858eeec

*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.

@mengw15

mengw15 commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

@CaroFernando Thanks for the quick fix. The workflow graph reads more like a diagram than a background, so could the cover keep the same feel as the old one? It doesn't have to be anything specific, as long as it stays blue, since that's Texera's color.

Review feedback: the workflow graph read like a diagram rather than a
background. Replace it with blue low-poly triangles shaded from light blue
to navy, closer in feel to the old cover.
@CaroFernando

Copy link
Copy Markdown
Contributor Author

@mengw15 Updated in ec51bf7: the cover is now an abstract blue low-poly background instead of the workflow graph. Same filename and ASF header, still project-made.

@mengw15 mengw15 removed the release/v1.2 back porting to release/v1.2 label Nov 4, 2026

@mengw15 mengw15 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

@mengw15
mengw15 enabled auto-merge November 4, 2026 20:13
@mengw15
mengw15 added this pull request to the merge queue Nov 4, 2026
Merged via the queue into apache:main with commit fd85b9d Nov 4, 2026
24 checks passed
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Backport PR opened: draft #9310 (#9310) to release/v1.3, assigned to @CaroFernando — needs manual work because the cherry-pick conflicts.

xuang7 pushed a commit to xuang7/texera that referenced this pull request Nov 20, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature frontend Changes related to the frontend GUI release/v1.3 back porting to release/v1.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants