chore: hide data path settings

This commit is contained in:
chengma
2026-07-07 15:24:08 +08:00
parent 6e2347e1c8
commit bb2aa70c54
6 changed files with 58 additions and 25 deletions
+9
View File
@@ -1380,3 +1380,12 @@
- 文档:同步 `docs/03-tech-stack.md`、`docs/05-coding-rules.md`、`docs/README.md`、`docs/engineering-review.md`、`docs/cmhub-integration-design.md`、`docs/06-tasks.md` 与 `docs/current-state.md`;下一个可领取任务为 T-539。
- 验证:`python -m pip install -r requirements-dev.txt` 成功;`python -m ruff check app tests main.py` 通过;`python -m compileall app main.py` 通过;`python -m unittest discover -s tests` 通过(221 tests);`git diff --check` 无空白错误;根目录未生成 `db.sqlite`。
- 边界:未改 AI、DB、Excel、Shopee/CDP 流程;未新增 pre-commit 或 mypy。
## 【2026-07-07】T-539 完成 · ⑤隐藏数据路径设置
- 状态:DONE
- 代码:⑤设置页从「基础设施(路径与端口)」表单中移除账号数据根目录、图片目录、DB 路径三个输入框;这些控件保留为内部状态但禁用/隐藏,不再接入未保存状态。保存设置时 `user_data_root`、`image_dir`、`db_path` 从当前配置原样保留并写回,手工配置值仍有效。
- 保留:Chrome 路径、默认调试端口、调试端口范围、CDP 就绪超时继续可见可调。
- 文档:同步 `docs/routes.md`、`docs/06-tasks.md` 与 `docs/current-state.md`;正式任务看板当前无 TODO。
- 验证:`python -m ruff check app tests main.py` 通过;`python -m compileall app main.py` 通过;`python -m unittest discover -s tests` 通过(221 tests);`git diff --check` 无空白错误;任务看板无剩余 TODO/DOING/BLOCKED。
- 边界:只改⑤设置页展示层和 GUI 单测;未改 `config.json` schema、T-538 路径解析、DB、AI、Excel 或 Shopee/CDP 流程。