feat: add batch progress overview

This commit is contained in:
chengma
2026-07-02 10:21:39 +08:00
parent d8c3c5d548
commit b622925d74
5 changed files with 165 additions and 9 deletions
+7
View File
@@ -960,3 +960,10 @@
- 测试:`tests/test_gui.py` 新增①②③空状态断言,覆盖无账号时按钮跳④、有账号但无任务时显示对应下一步提示且隐藏跳④按钮。
- 验证:`python -m py_compile app\gui.py tests\test_gui.py` 通过;`python -m unittest discover -s tests -p "test_gui.py"` 通过(66 tests);`python -m compileall app main.py` 通过;`python -m unittest discover -s tests` 通过(154 tests)。测试输出仍有 PySide6 字体目录提示,不影响结果。
- 下一步:T-515「批次阶段进度总览」。
## 【2026-07-02】T-515 完成 · 批次阶段进度总览
- 文档先行:`docs/06-tasks.md` 将 T-515 标记为 DOING 后补充计数口径,明确①②③同显当前批次/全部批次总数、导入、已采集、已生成、已更新、失败、略过,失败/略过按 `status` 优先统计,不新增表、不改执行流程。
- 代码:`app/gui.py` 新增共享批次进度聚合和总览条;①导入采集、②AI生成、③更新shopee在摘要区下方展示同一组计数。③任务列表仍只显示可更新相关记录,但总览使用当前批次全部未软删除任务统计。
- 测试:`tests/test_gui.py` 新增①②③批次进度总览覆盖,构造导入/已采集/已生成/已更新/失败/略过各 1 条,并确认软删除批次不出现在筛选和计数中。
- 验证:`python -m py_compile app\gui.py tests\test_gui.py`、`python -m unittest discover -s tests -p "test_gui.py"`(67 tests)、`python -m compileall app main.py`、`python -m unittest discover -s tests`(155 tests)均通过;Qt 仍有本机字体目录提示,不影响测试结果。
- 下一步:T-516「①筛选对齐②③」。