feat(offline_download): add task progress list#411
feat(offline_download): add task progress list#411zwzzrl wants to merge 13 commits intoOpenListTeam:mainfrom
Conversation
This reverts commit 94c1b8a.
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
There was a problem hiding this comment.
Pull request overview
Adds an in-modal task progress list to the Home toolbar “Offline Download” flow so users can see ongoing task status immediately after submitting tasks (addresses #410).
Changes:
- Extend the offline download modal to optionally show a periodically refreshed task list.
- Add a small tasks fetch/store module and a
TaskProgressUI component to render task state/progress. - Extend
ModalInputwithonSubmitWithValueto allow submit handlers to clear/reset the input value after success.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| src/pages/home/toolbar/OfflineDownload.tsx | Shows task list in the modal and polls backend for task updates |
| src/pages/home/offlinedownload/task.ts | Implements task fetching + merged list state (old/new endpoints) |
| src/pages/home/offlinedownload/TaskProgress.tsx | Renders individual task progress cards with parsed metadata/links |
| src/components/ModalInput.tsx | Adds onSubmitWithValue callback to expose setValue to submit handlers |
| src/lang/en/tasks.json | Adds i18n strings for the offline download task list UI |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
Description / 描述
为工具栏的离线下载页面添加了任务列表,使得添加完离线下载任务后可以看到任务状态。
Motivation and Context / 背景
方便添加完离线下载任务后看到任务状态,不用打开后台。


Closes #410
How Has This Been Tested? / 测试
添加离线下载任务列表
Checklist / 检查清单
我已阅读 CONTRIBUTING 文档。
go fmtor prettier.我已使用
go fmt或 prettier 格式化提交的代码。我已为此 PR 添加了适当的标签(如无权限或需要的标签不存在,请在描述中说明,管理员将后续处理)。
我已在适当情况下使用"Request review"功能请求相关代码作者进行审查。
我已相应更新了相关仓库(若适用)。