Repository navigation
fix(licensing): replace the stock card cover image with a project-made SVG - #9302
Conversation
…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
Backport auto-label reportThis
|
Automated Reviewer SuggestionsBased on the
|
Codecov Report✅ All modified and coverable lines are covered by tests. 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
*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:
|
|
@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.
|
Backport PR opened: draft #9310 (#9310) to |
…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?
Replaces
frontend/src/assets/card_background.jpg, the default cover image for dashboard and Hub cards, withcard_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
LICENSEorLICENSE-binaryentry 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) andcard-item.component.ts(dashboard), and the Hub spec now point at the.svg. Both show it through<img>withobject-fit: cover; the SVG usespreserveAspectRatio="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
mainunchanged.card_background.jpgis identical onrelease/v1.3, so this backports cleanly there.How was this PR tested?
All pass: 248 test files, 7021 tests (1 skipped), including
browse-section.component.spec.tsandcard-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.