You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@texera.apache.org by GitBox <gi...@apache.org> on 2026/06/29 18:14:40 UTC
[GH] (texera/gh-readonly-queue/main/pr-5566-22705e9143f58cbbb487582ea529dda0738c6e60): Workflow run "Required Checks" is working again!
The GitHub Actions job "Required Checks" on texera.git/gh-readonly-queue/main/pr-5566-22705e9143f58cbbb487582ea529dda0738c6e60 has succeeded.
Run started by GitHub user xuang7 (triggered by xuang7).
Head commit for run:
d10e1a29b8704ed9453134cb87e20828ed7684c4 / Elliot Lin <36...@users.noreply.github.com>
feat(frontend): add HuggingFace task selector and model browser component (#5566)
⚠️ This PR is stacked on #5574. Until that lands, the diff below may
also include PR 5's QA/ranking task changes depending on which base
GitHub is showing. The new code in this PR is the HuggingFaceComponent
(task selector + model browser) under
frontend/src/app/workspace/component/hugging-face/, plus the formly
registration in formly-config.ts and the declaration in app.module.ts.
Once PR #5574 merges and this PR is retargeted to main, the diff should
auto-clean to the PR 6a frontend selector changes only.
### What changes were proposed in this PR?
Add `HuggingFaceComponent`, a custom formly field type (`huggingface`)
that provides:
- A task dropdown listing all supported HuggingFace inference tasks
(fetched from the Texera backend's `/huggingface/tasks` endpoint, with a
static fallback list)
- A paginated model list with client-side search, fetched from the
Texera backend's `/huggingface/models` endpoint (which proxies
HuggingFace Hub)
- Per-task field state preservation — when switching tasks, previously
entered values (modelId, promptColumn, etc.) are saved and restored
This PR registers the component in `formly-config.ts` and declares it in
`AppModule`. The component is not yet wired into the HuggingFace
operator's property editor; the `jsonSchemaMapIntercept` mapping that
routes the `modelId` field to this component is added in the follow-up
property-editor PR (PR 7).
### Any related issues, documentation, discussions?
- Tracking issue: https://github.com/apache/texera/issues/5314
- Closes: https://github.com/apache/texera/issues/5314
- Stacked on: PR tracked in issue #5292
- Parent issue: https://github.com/apache/texera/issues/5041
### How was this PR tested?
7 unit tests added in `hugging-face.component.spec.ts` covering:
- Static task list is non-empty and contains expected tasks
(text-generation, image tasks, audio tasks, QA/ranking tasks)
- Task tags are unique
- Cache invalidation does not throw
Run with `ng test`.
### Was this PR authored or co-authored using generative AI tooling?
Co-authored with Claude Opus 4.7
---------
Signed-off-by: Elliot Lin <36...@users.noreply.github.com>
Co-authored-by: Elliot <36...@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <no...@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <17...@users.noreply.github.com>
Report URL: https://github.com/apache/texera/actions/runs/28392487844
With regards,
GitHub Actions via GitBox