feat: align collect filters with workflow tabs

This commit is contained in:
chengma
2026-07-02 10:39:29 +08:00
parent b622925d74
commit 820612c3ab
5 changed files with 267 additions and 13 deletions
+7
View File
@@ -967,3 +967,10 @@
- 测试:`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「①筛选对齐②③」。
## 【2026-07-02】T-516 完成 · ①筛选对齐②③
- 文档先行:`docs/06-tasks.md` 将 T-516 标记为 DOING 后补充验收口径,明确①新增店铺、商品ID、状态筛选;当前筛选结果用于①表格和采集作用范围,导入汇总栏/批次进度/未匹配数量仍按当前批次全量统计。
- 代码:`app/gui.py` 的①导入采集新增 `collectShopFilter`、`collectItemFilter`、`collectStatusFilter`,筛选栏顺序对齐②③;刷新时用全量批次任务更新汇总和进度,用筛选后任务更新表格;「采集旧标题/旧封面」改为只处理当前表格可见任务;采集/回写运行中禁用新增筛选控件。
- 测试:`tests/test_gui.py` 新增①筛选覆盖,验证店铺、商品ID、状态筛选、空结果提示、未匹配筛出和采集 worker 接收当前筛选任务。
- 验证:`python -m py_compile app\gui.py tests\test_gui.py`、`python -m unittest discover -s tests -p "test_gui.py"`(68 tests)、`python -m compileall app main.py`、`python -m unittest discover -s tests`(156 tests)均通过;Qt 仍有本机字体目录提示,不影响测试结果。
- 下一步:T-517「⑤设置分区 + 清理兼容字段」。