T-580 精简设置页更新执行配置
This commit is contained in:
+18
-2
@@ -3,7 +3,7 @@ id: T-580
|
||||
title: ⑤设置精简:删真实提交闸/关页开关/jpg质量,合并并行为「同时更新蝦皮账号(≤5)」,改名Chrome就绪超时
|
||||
phase: 7
|
||||
deps: [T-571, T-578]
|
||||
status: TODO
|
||||
status: DONE
|
||||
created: 2026-07-10
|
||||
---
|
||||
|
||||
@@ -90,4 +90,20 @@ created: 2026-07-10
|
||||
|
||||
## 执行记录
|
||||
|
||||
(做完在这里写:改了什么文件、跑了什么验证命令及结果、遇到的阻塞、关键决策。)
|
||||
- 2026-07-10:完成设置精简与执行语义调整。
|
||||
- `app/appconfig.py`:`shopee_update` 默认删除真实提交、封面兼容、成功关页、并行 bool 等旧开关;新增 `max_parallel_accounts` 默认 1、范围 1..5;旧配置 `parallel_accounts=false` 迁移为 1,`true` 保留并夹紧;保存后不再写回旧开关。
|
||||
- `app/gui/tabs/settings.py`:⑤设置页删除「允许真实提交线上商品」「允许更新封面」「成功后关闭本次新开编辑页」「多账号并行更新」「jpg质量」控件;「最大并行账号数」改为「同时更新蝦皮账号」,范围 1..5;「CDP就绪超时」改为「Chrome 就绪超时」;分区标题改为「蝦皮更新执行」。
|
||||
- `app/gui/tabs/apply.py` / `app/gui/workers.py`:③「开始更新」不再被真实提交开关阻断,仍保留最终确认弹窗;按 `max_parallel_accounts > 1` 决定账号并行;worker 不再传成功关页开关。
|
||||
- `app/editor.py`:程序自动新开的商品编辑页成功/失败都关闭;成功关闭前等待 2 秒;复用用户原本 tab 不关闭。`close_success_tab` 仅保留为旧调用兼容参数。
|
||||
- `docs/04-architecture.md`、`docs/api.md`、`docs/routes.md` 同步当前配置 schema、③确认边界、tab 生命周期和⑤设置文案;更新 `tests/test_appconfig.py`、`tests/test_gui.py`、`tests/test_editor_login.py` 覆盖迁移、UI 删除、并行语义和成功关页。
|
||||
- 验证:
|
||||
- 当前工作区运行 `python -m ruff check app tests main.py`:通过。
|
||||
- 当前工作区运行 `py -3.10 -m unittest tests.test_appconfig tests.test_editor_login tests.test_ai`:通过,108 tests OK。
|
||||
- 当前工作区运行 T-580 相关 GUI 单测 10 项:通过。
|
||||
- 当前工作区运行 `python -m compileall app main.py`:通过。
|
||||
- 因当前工作区存在非 T-580 未归属默认封面提示词改名(`papa1.txt` 删除、`默认.txt` 未跟踪),直接跑 `py -3.10 -m unittest tests.test_gui ...` 会有 2 个 T-579 提示词名称断言失败。为隔离该非本任务影响,创建临时干净 worktree,仅应用 T-580 diff 后运行:
|
||||
- `py -3.10 -m unittest tests.test_gui tests.test_appconfig tests.test_editor_login tests.test_ai`:通过,246 tests OK。
|
||||
- `python -m ruff check app tests main.py`:通过。
|
||||
- `py -3.10 -m compileall app main.py`:通过。
|
||||
- `py -3.10 -m unittest discover -s tests`:通过,318 tests OK。
|
||||
- `git diff --check`:通过。
|
||||
|
||||
Reference in New Issue
Block a user