You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "tanishqgandhi1908 (via GitHub)" <gi...@apache.org> on 2026/09/03 18:31:27 UTC

[PR] fix(frontend): render workflow covers on the hub landing page [texera]

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

   ### What changes were proposed in this PR?
   
   Workflow covers never rendered on the Hub landing page: every card under **Top Loved Workflows** and **Top Cloned Workflows** showed the grey placeholder, even for a workflow whose owner had set a cover, while the same workflow showed it correctly in Your Work → Workflows.
   
   Covers reach the frontend two different ways. A **workflow** cover is a downscaled **data URL** that arrives inline on the list payload and lands on `DashboardEntry.coverImageUrl`. A **dataset** or **model** cover is a committed file, so what arrives is a *path* and the card has to fetch a presigned URL from `/{id}/cover-url`.
   
   `browse-section` only ever handled the second kind — it asks the descriptor for a `coverUrl` and bails when there is none, which is always the case for a workflow, since `WorkflowResourceDescriptor` deliberately declares none. So nothing was ever cached for a workflow and `getCoverImage` fell through to the default.
   
   `getCoverImage` now reads a workflow's cover straight off the entry, mirroring the branch `card-item.component.ts:197-202` already had.
   
   
   Also included, since it is one line in the same area and needs no separate issue: `frontend/proxy.config.json` declared `"/api/model/**"` **twice** (both pointing at `:9092`, so the last silently won). The duplicate is removed, leaving the entry beside `/api/dataset`, so the file reads `dataset`, `model`, `access/dataset`, `access/model`.
   
   **Before** — both workflows are public; the left one has a cover, the right one does not:
   
   <img width="1440" height="900" alt="issue5-1-hub-landing-before" src="https://github.com/user-attachments/assets/120c2cf3-2ee9-49e0-97df-a77e3746275c" />
   
   **After** — the left card renders its cover, the right one still shows the placeholder:
   
   <img width="1440" height="900" alt="issue5-1-hub-landing-after" src="https://github.com/user-attachments/assets/9c0294a0-f081-4428-a230-80281a40cb7a" />
   
   ### Any related issues, documentation, discussions?
   
   Closes #8382.
   
   ### How was this PR tested?
   
   `browse-section.component.spec.ts`, 25 passed:
   
   - `renders a workflow's cover from the entry, since no cover is ever fetched for one` — a workflow
     with a cover resolves to it, one without still gets the default.
   - `keeps a file-backed kind on the placeholder rather than rendering its stored cover path` — a
     dataset whose presigned fetch answers with an empty URL stays on the placeholder instead of
     rendering `v1/images/preview.png`.
   - `skips an entity whose descriptor resolves no cover, rather than calling undefined` was already
     there and asserted `getCoverImage(workflow) === defaultBackground` — it pinned the bug, so it now
     asserts the cover comes off the entry, with the unregistered-kind row still falling back.
   
   `landing-page.component.spec.ts` also run, 17 passed.
   
   ```
   cd frontend
   npx ng test --include src/app/hub/component/browse-section/browse-section.component.spec.ts
   npx ng test --include src/app/hub/component/landing-page/landing-page.component.spec.ts
   ```
   
   Checked by hand against a local stack: a public workflow with a cover set from the dashboard now
   shows it in both hub sections, and a public workflow without one is unchanged.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(frontend): render workflow covers on the hub landing page [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #8383:
URL: https://github.com/apache/texera/pull/8383#issuecomment-5530324056

   <!-- texera-reviewer-suggestion -->
   ### Automated Reviewer Suggestions
   
   Based on the `git blame` history of the changed files, we recommend the following reviewers:
   
   - **Contributors with relevant context:** `@aglinxinyuan`
     You can notify them by mentioning `@aglinxinyuan` in a comment.
   


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(frontend): render workflow covers on the hub landing page [texera]

Posted by "aicam (via GitHub)" <gi...@apache.org>.
aicam merged PR #8383:
URL: https://github.com/apache/texera/pull/8383


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(frontend): render workflow covers on the hub landing page [texera]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #8383:
URL: https://github.com/apache/texera/pull/8383#issuecomment-5530423468

   ## [Codecov](https://app.codecov.io/gh/apache/texera/pull/8383?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 94.04%. Comparing base ([`cd4fd5a`](https://app.codecov.io/gh/apache/texera/commit/cd4fd5a6d3845f0b7b478e1e86a31bb3151d4cd5?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`b4ab0df`](https://app.codecov.io/gh/apache/texera/commit/b4ab0df3e871d9a85a0c9ac7cd285e7b65756c46?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@            Coverage Diff            @@
   ##               main    #8383   +/-   ##
   =========================================
     Coverage     94.03%   94.04%           
     Complexity     4771     4771           
   =========================================
     Files          1196     1196           
     Lines         48757    48760    +3     
     Branches       5916     5918    +2     
   =========================================
   + Hits          45850    45854    +4     
     Misses         1458     1458           
   + Partials       1449     1448    -1     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/texera/pull/8383/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | | *Carryforward flag |
   |---|---|---|---|
   | [access-control-service](https://app.codecov.io/gh/apache/texera/pull/8383/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `81.00% <ø> (ø)` | | Carriedforward from [cd4fd5a](https://app.codecov.io/gh/apache/texera/commit/cd4fd5a6d3845f0b7b478e1e86a31bb3151d4cd5?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [agent-service](https://app.codecov.io/gh/apache/texera/pull/8383/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `99.32% <ø> (ø)` | | Carriedforward from [cd4fd5a](https://app.codecov.io/gh/apache/texera/commit/cd4fd5a6d3845f0b7b478e1e86a31bb3151d4cd5?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [amber](https://app.codecov.io/gh/apache/texera/pull/8383/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `89.89% <ø> (ø)` | | Carriedforward from [cd4fd5a](https://app.codecov.io/gh/apache/texera/commit/cd4fd5a6d3845f0b7b478e1e86a31bb3151d4cd5?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [computing-unit-managing-service](https://app.codecov.io/gh/apache/texera/pull/8383/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `73.67% <ø> (ø)` | | Carriedforward from [cd4fd5a](https://app.codecov.io/gh/apache/texera/commit/cd4fd5a6d3845f0b7b478e1e86a31bb3151d4cd5?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [config-service](https://app.codecov.io/gh/apache/texera/pull/8383/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `87.12% <ø> (ø)` | | Carriedforward from [cd4fd5a](https://app.codecov.io/gh/apache/texera/commit/cd4fd5a6d3845f0b7b478e1e86a31bb3151d4cd5?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [file-service](https://app.codecov.io/gh/apache/texera/pull/8383/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `87.91% <ø> (ø)` | | Carriedforward from [cd4fd5a](https://app.codecov.io/gh/apache/texera/commit/cd4fd5a6d3845f0b7b478e1e86a31bb3151d4cd5?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [frontend](https://app.codecov.io/gh/apache/texera/pull/8383/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `96.81% <100.00%> (+<0.01%)` | :arrow_up: | |
   | [notebook-migration-service](https://app.codecov.io/gh/apache/texera/pull/8383/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `79.31% <ø> (ø)` | | Carriedforward from [cd4fd5a](https://app.codecov.io/gh/apache/texera/commit/cd4fd5a6d3845f0b7b478e1e86a31bb3151d4cd5?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [pyamber](https://app.codecov.io/gh/apache/texera/pull/8383/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `98.47% <ø> (ø)` | | Carriedforward from [cd4fd5a](https://app.codecov.io/gh/apache/texera/commit/cd4fd5a6d3845f0b7b478e1e86a31bb3151d4cd5?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [workflow-compiling-service](https://app.codecov.io/gh/apache/texera/pull/8383/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `77.19% <ø> (ø)` | | Carriedforward from [cd4fd5a](https://app.codecov.io/gh/apache/texera/commit/cd4fd5a6d3845f0b7b478e1e86a31bb3151d4cd5?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   
   *This pull request uses carry forward flags. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to find out more.
   </details>
   
   [:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/texera/pull/8383?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(frontend): render workflow covers on the hub landing page [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #8383:
URL: https://github.com/apache/texera/pull/8383#issuecomment-5532960900

   Backport PR opened: draft #8390 (https://github.com/apache/texera/pull/8390) to `release/v1.2`, assigned to @tanishqgandhi1908 — needs manual work because the cherry-pick conflicts.


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(frontend): render workflow covers on the hub landing page [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #8383:
URL: https://github.com/apache/texera/pull/8383#issuecomment-5532960905

   Backport PR opened: draft #8389 (https://github.com/apache/texera/pull/8389) to `release/v1.3`, assigned to @tanishqgandhi1908 — needs manual work because the cherry-pick conflicts.


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(frontend): render workflow covers on the hub landing page [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #8383:
URL: https://github.com/apache/texera/pull/8383#issuecomment-5530324627

   <!-- backport-auto-label-report -->
   ### Backport auto-label report
   
   This `fix:` PR was checked against each actively-supported release branch. `release/*` labels drive the post-merge backport, so add or remove one to change where this fix lands.
   
   | Release branch | Analysis |
   | --- | --- |
   | ✅ `release/v1.3` | Change detected on this branch — label added; this fix is queued to backport here. Requested review from @mengw15. |
   | ✅ `release/v1.2` | Change detected on this branch — label added; this fix is queued to backport here. Requested review from @xuang7. |
   
   _[Auto-label run](https://github.com/apache/texera/actions/runs/33791012432)._


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org