feat(gui): improve status scope dialogs

This commit is contained in:
chengma
2026-07-18 17:23:22 +08:00
parent 89f1b085dc
commit 7538009f94
8 changed files with 218 additions and 62 deletions
+6 -2
View File
@@ -1,7 +1,7 @@
---
id: T-663
title: 采集与生成范围确认弹窗可读性与语义色
status: TODO
status: DONE
phase: 7
deps: [T-662b, T-662c]
created: 2026-07-18
@@ -55,4 +55,8 @@ git diff --check
## 执行记录
- 待实现。
- 新增 `ProductStatusScopeDialog`,供①导入采集和②AI生成复用;窗口最小宽度 520px,说明文字换行,三个中文选项纵向全宽显示。
- 默认“正常状态”选项改为主操作蓝色;“所有状态”改为 `#bc4c00` 警示橙色描边,不再使用错误红色或 `DestructiveRole`;取消保持中性,回车默认选择正常范围,Esc 取消。
- 保留既有按钮 objectName 和 `normal_only/all/None` 返回值;不改 Worker、状态范围、任务计划、运行日志、计费或③更新蝦皮逻辑。
- 同步更新 `docs/routes.md`、`docs/04-architecture.md`、`docs/api.md`。
- 验证通过:`py -3.10 -m unittest tests.test_gui`(202 项)、`py -3.10 -m unittest discover -s tests`(617 项)、`py -3.10 -m ruff check app tests main.py`、`py -3.10 -m compileall app main.py`、`git diff --check`。