feat(product-suite): confirm prior successful generations

This commit is contained in:
chengma
2026-07-17 10:47:44 +08:00
parent 9166cb7010
commit 9f55dcd4f0
8 changed files with 349 additions and 4 deletions
+5 -1
View File
@@ -3,7 +3,7 @@ id: T-648
title: 商品套图已有成功历史时确认新一轮生成
phase: 7
deps: [T-643, T-646]
status: TODO
status: DONE
created: 2026-07-17
---
@@ -91,3 +91,7 @@ git diff --check
## 执行记录
- 2026-07-17:根据“已有成功套图时先提醒再新建一轮”的产品讨论创建任务。待实现。
- 2026-07-17:新增 `get_successful_generation_history_summary()`,仅按未软删除项目的 SQLite 有效 job 汇总成功轮数、成功图片数与最近成功时间;正常轮次按稳定槽位的最新尝试统计,NULL 旧版轮次整体兼容为一轮,目录与图片文件不参与判断。
- 2026-07-17:常规「生成套图」在原有费用确认前增加“已有套图生成记录”三选一确认;查看历史仅打开并临时筛选当前商品,继续才进入既有费用确认并创建新 UUID 轮次,取消不写入任务。单张失败重试继续绕过该流程。
- 2026-07-17:全局历史窗口增加受控的当前商品筛选设置,普通「历史生成」入口保持全局默认视图;同步更新架构、API 和流程文档。
- 验证通过:`py -3.10 -m unittest discover -s tests`(569 项)、`py -3.10 -m ruff check app tests main.py`、`py -3.10 -m compileall app main.py`、`git diff --check`。