feat: refine settings sections
This commit is contained in:
@@ -974,3 +974,9 @@
|
||||
- 测试:`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「⑤设置分区 + 清理兼容字段」。
|
||||
## 【2026-07-02】T-517 完成 · ⑤设置分区与兼容字段清理
|
||||
|
||||
- 文档先行:`docs/06-tasks.md` 将 T-517 标记为 DOING 后明确范围:只改⑤设置页 UI 分区、保存/加载展示和 GUI 测试,不改配置 schema,不改 Shopee/CDP 更新流程。
|
||||
- 代码:`app/gui.py` 将「Shopee 更新安全 / 执行模式」前置为独立分区,将「基础设施(路径与端口)」后置;移除 `test_item_id_edit`、`dry_run_checkbox` 这类用户入口,加载时只记录 `test_item_id` 内部兼容值,保存时保留该值并固定 `dry_run=false`。
|
||||
- 测试:`tests/test_gui.py` 更新设置页断言,覆盖分区顺序、旧入口不存在、保存设置仍同步 ApplyTab 安全配置且兼容字段不丢。
|
||||
- 验证:`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);`git diff --check` 无空白错误,仅 LF/CRLF 提示。
|
||||
|
||||
Reference in New Issue
Block a user