Repository navigation
Description
Task Summary
Feature Summary
The HuggingFace inference operator (#5041) is being landed as a sequence of focused PRs. The backend operator descriptor and codegen architecture were introduced in #5277, with the final backend task family (QA/ranking) in #5292. This issue covers creating the custom Angular components that will be wired into the property editor in the next PR.
This issue adds two custom formly field type components and registers them in the formly configuration. These components are not yet visible to the user — they become active once the property editor remaps the HuggingFace schema fields to use them (covered by the next PR in the stack).
Concretely, landing this would add:
HuggingFaceComponent— a custom formly field type containing a task dropdown, paginated model browser with client-side search, per-task field state snapshot/restore, and module-level cachingHuggingFaceAudioUploadComponent— a custom formly field type for uploading audio files to backend storage with playback preview
Proposed Solution or Design
Add new files:
| Path | Purpose |
|---|---|
frontend/.../hugging-face/hugging-face.component.ts |
Custom formly field type containing task dropdown + paginated model browser |
frontend/.../hugging-face/hugging-face.component.html |
Template with task selector, search bar, model grid, and pagination |
frontend/.../hugging-face/hugging-face.component.scss |
Styles for task/model selector layout |
frontend/.../hugging-face/hugging-face.component.spec.ts |
Component unit tests |
frontend/.../hugging-face-audio-upload/hugging-face-audio-upload.component.ts |
Custom formly field type for audio file upload via backend storage |
frontend/.../hugging-face-audio-upload/hugging-face-audio-upload.component.html |
Upload button, playback preview, filename and status display |
frontend/.../hugging-face-audio-upload/hugging-face-audio-upload.component.scss |
Audio upload styles |
frontend/.../hugging-face-audio-upload/hugging-face-audio-upload.component.spec.ts |
Audio upload unit tests |
Modify:
| File | Change |
|---|---|
frontend/src/app/app.module.ts |
Declare HuggingFaceComponent and HuggingFaceAudioUploadComponent |
frontend/src/app/common/formly/formly-config.ts |
Register huggingface and huggingface-audio-upload formly field types |
Design constraints:
- Module-level caching for tasks and models so data survives component re-renders.
- Task state snapshot/restore preserves user input when switching between tasks.
- Backend endpoint failures fall back to a static task list — the component must remain functional without the backend proxy.
- Audio upload posts the file to the backend's
/huggingface/upload-audioendpoint and stores a server-side reference — audio data does not go into the workflow JSON. - These components are registered as formly types but are not yet rendered — the property editor field type remapping that activates them is part of the next PR in the stack.
References:
- Parent issue: Add Hugging Face inference operator #5041
- Depends on: Add HuggingFace question answering and ranking tasks #5292 — this PR branches off the QA/ranking tasks PR; the components assume all backend task families and their fields are available.
Impact / Priority
(P2) Medium — required before the property editor can render the HuggingFace task selector and audio upload. Does not affect existing operators.
Affected Area
Frontend (Angular) — workspace custom formly field type components.
Task Type
- Refactor / Cleanup
- DevOps / Deployment / CI
- Testing / QA
- Documentation
- Performance
- Other
Activity
github-actions commentedon Jun 2, 2026
👋 Thanks for your first contribution to Texera, @ELin2025!
You can drive common housekeeping tasks just by leaving a comment. Type the command on its own line.
On issues
/take/untakeTo find unclaimed work, search
is:issue is:open no:assignee— there's no "triage" label; the search filter is the triage state.Linking sub-issues
/sub-issue #12 #13/unsub-issue #12 #13/parent-issue #5/unparent-issue/unparent-issue #5You can write references as
#12or bare12. Cross-repo references likeowner/repo#12aren't supported and are ignored.On pull requests (author only)
/request-review @user [@user ...]/unrequest-review @user [@user ...]You can mention teams as
@org/team, and@copilotworks too. Only the PR author can use these commands.For the full contribution flow, see CONTRIBUTING.md.
ELin2025 commentedon Jun 2, 2026
/parent-issue #5041
feat(frontend): add HuggingFace task selector and model browser compo…
feat(frontend): add HuggingFace audio upload component (apache#5567)
feat(frontend): add HuggingFace task selector and model browser compo…
feat(frontend): add HuggingFace audio upload component (apache#5567)