feat(gui): add task deletion menus

This commit is contained in:
chengma
2026-07-20 11:12:01 +08:00
parent 6abe4decff
commit 9f43e5547a
7 changed files with 358 additions and 6 deletions
+6 -2
View File
@@ -1,7 +1,7 @@
---
id: T-674
title: AI生成与更新蝦皮单条任务右键软删除
status: TODO
status: DONE
phase: 7
deps: [T-670, T-672]
created: 2026-07-20
@@ -54,4 +54,8 @@ git diff --check
## 执行记录
- 待实现。
- ②任务表启用右键菜单:先选中命中行,仅提供「删除本条记录」;②生成中或任务运行中禁用/拒绝删除。
- ③右键菜单保留「重置更新状态」,以分隔线增加「删除本条记录」;更新或回写运行中禁用/拒绝删除。
- 两个 Tab 均复用 `db.delete_task()`,确认框显示商品、店铺、批次与本地软删除边界;已提交线上记录明确提示不回滚蝦皮。成功后经主窗口刷新回调同步①②③。
- 更新路由/API 文档,并新增②/③右键选中、菜单内容、取消、已提交提示、软删除成功刷新和运行中拦截的 GUI 回归测试。
- 验证通过:`py -3.10 -m unittest discover -s tests -p "test_gui.py"`(208 项)、`py -3.10 -m unittest discover -s tests -p "test_db.py"`(21 项)、`py -3.10 -m unittest discover -s tests`(627 项)、`py -3.10 -m ruff check app tests main.py`、`py -3.10 -m compileall app main.py`、`git diff --check`。