fix: unify extract video voice progress text & cleanup file input
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 4s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 7s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 1m24s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 2m0s
AI Code Review / AI Code Review (pull_request) Successful in 2m8s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 1m26s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 1m53s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m17s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m25s
CI/CD Pipeline / Validate - Style (pull_request) Successful in 2m38s
CI/CD Pipeline / Validate - Security (pull_request) Successful in 6m47s
CI/CD Pipeline / CI Gate (pull_request) Successful in 7s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 5m27s
ACR Cleanup / ACR Image Cleanup (pull_request_target) Successful in 13s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 36s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 288h25m49s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 288h25m50s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 288h26m0s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 288h26m4s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 288h31m15s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 288h31m16s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 288h32m47s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 288h33m8s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 288h33m9s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 288h33m13s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 288h31m17s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 288h31m22s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 288h31m47s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 288h31m49s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 288h31m51s
CI/CD Pipeline / PR Build Worker Image (pull_request) Failing after 288h31m54s
CI/CD Pipeline / PR Build API Image (pull_request) Failing after 288h32m24s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 289h0m29s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 289h7m14s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 289h7m35s

1. Unify progress modal text to '正在提取音频,请稍后...' throughout the
   entire upload+extraction flow, instead of showing different text for
   upload vs extraction phases.

2. Clear file input value on modal close to help browser release the
   file handle sooner, reducing residual cache in browser temp storage.
This commit is contained in:
xiaoxia
2026-09-04 14:51:11 +08:00
parent ed72a91990
commit aaf89fc245
@@ -30,6 +30,7 @@ const VideoExtractModal: React.FC<VideoExtractModalProps> = ({
title={<span style={{ fontSize: 16, fontWeight: 600 }}>提取视频配音</span>}
open={open}
onCancel={() => {
if (inputRef.current) inputRef.current.value = ""
if (isExtracting) return
onClose()
}}
@@ -152,7 +153,7 @@ const VideoExtractModal: React.FC<VideoExtractModalProps> = ({
{isExtracting && (
<p style={{ textAlign: "center", fontSize: 13, color: "#7c3aed", margin: "12px 0 0" }}>
{progress === 100 ? "正在提取人声,请稍候..." : "正在上传视频..."}
{"正在提取音频,请稍后..."}
</p>
)}
</div>