aglinxinyuan opened a new pull request, #9267: URL: https://github.com/apache/texera/pull/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) -- 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]
