完成任务系统重构的最后3个TODO:UI整合、实例日志区分、命令切换清空提醒 - #2
Draft
KiritoKing with Copilot wants to merge 4 commits into
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Removed Tabs component, display queue directly in execution panel - Added "任务历史" button to open history in a dialog - Kept ProgressLogViewer at the bottom - Task history now opens in a modal dialog instead of a separate tab - All type checks pass and code is properly formatted Co-authored-by: KiritoKing <19513548+KiritoKing@users.noreply.github.com>
- Detect preset changes and check for pending tasks - Show confirmation dialog if queue has items or completed results - Dialog displays: waiting, executing, and completed tasks counts - List output files that will be lost (up to 5, with "...and N more") - Warn users to download files before clearing - Clear queue and results only after user confirmation - Cancel option reverts to previous preset selection - All checks pass (type check, linting, formatting) Co-authored-by: KiritoKing <19513548+KiritoKing@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Complete todos from TODOS.md
完成任务系统重构的最后3个TODO:UI整合、实例日志区分、命令切换清空提醒
Nov 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
完成 TODOS.md 第12-18行"彻底重构进度/日志/任务调度系统"中的最后3个子任务:移除任务队列标签页、确保日志可区分实例来源、实现命令切换时的队列清空警告。
TODO 1: 移除标签页,整合任务面板
ExecutionPanel中的 Tabs 组件TODO 2: 日志实例区分
现有实现已支持:
ProgressLogViewer显示instanceId(如[worker-1]、[worker-2])FFmpegWorkerPool为每个实例分配唯一标识TODO 3: 命令切换清空提醒
在
useFFmpegWeb中添加检测逻辑:新增
ClearQueueConfirmDialog组件:taskManager.clearQueue()和clearAllTaskResults()修改的文件
app/components/ExecutionPanel.tsx- UI 重构app/store/ffmpegWebStore.ts- 添加清空确认对话框状态app/hooks/useFFmpegWeb.ts- 命令切换检测和清空逻辑app/hooks/useTaskManager.ts- 导出clearAllTaskResultsapp/components/FFmpegDialogs.tsx- 新增ClearQueueConfirmDialogapp/routes/ffmpeg-web.tsx- 集成清空确认对话框TODOS.md- 标记完成状态Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.