CaroFernando opened a new pull request, #9559:
URL: https://github.com/apache/texera/pull/9559

   ### What changes were proposed in this PR?
   
   Backport of #9302 to `release/v1.2` for the 1.2.1 RC2.
   
   Source: fd85b9de7a43a5ba7e9fde125a9f6a26947541a2
   
   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 #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 #9302. Part of #8984. Independent of the #9220 (#9512) and #9269 
(#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)
   


-- 
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]

Reply via email to