The GitHub Actions job "Backport Approval Check" on texera.git/gh-readonly-queue/main/pr-9267-19699e3c4b1b616729eb67e9ad126726b3cda0cb has succeeded. Run started by GitHub user aglinxinyuan (triggered by aglinxinyuan).
Head commit for run: aca23086aea781a66ce0fbd0bf730deab22bd774 / Xinyuan Lin <[email protected]> refactor(frontend): deduplicate HuggingFace media components (#9267) ### What changes were proposed in this PR? Deduplicate the shared Formly media upload state, control synchronization, and file lifecycle between `HuggingFaceAudioUploadComponent` and `HuggingFaceImageUploadComponent` into a shared abstract base class `HuggingFaceMediaUploadBase`, and factor the repeated media validator and task-hiding expressions in `applyHuggingFaceFieldBindings`. ### Any related issues, documentation, discussions? Closes #9266. ### How was this PR tested? Tested with Vitest in `frontend`: ```bash node frontend/.yarn/releases/yarn-4.14.1.cjs --cwd frontend run ng test --watch=false --include "src/app/workspace/util/hugging-face-field-bindings.spec.ts" --include "src/app/workspace/component/hugging-face-audio-upload/hugging-face-audio-upload.component.spec.ts" --include "src/app/workspace/component/hugging-face-image-upload/hugging-face-image-upload.component.spec.ts" --include "src/app/workspace/component/hugging-face/hugging-face.component.spec.ts" ``` 185 tests pass. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Antigravity (gemini-2.5-pro) Report URL: https://github.com/apache/texera/actions/runs/41943734741 With regards, GitHub Actions via GitBox
