style(ai-outfit): 明细表再缩「衣服图/结果·原因」、标题更宽 (§19.26)
承接 §19.25:_configure_detail_table_columns 把「衣服图」(col3) 初值 150→90、「结果/原因」(col5) 220→130(仍 Interactive 可手拖);「标题」 Stretch 自动吸收省下的宽度变更宽,短固定列(行/货号/状态)不变。 测试:列宽用例补断言 columnWidth(3)<=90、columnWidth(5)<=130。 全套 py37 通过(test_config_service 的 packaging 模板失败属并行 §19.13,无关)。 离屏冒烟:衣服图=90 / 结果·原因=130(Interactive)、标题 Stretch。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1457,3 +1457,21 @@
|
||||
- [x] `ai_outfit_panel.py`:新增处理明细表列宽配置;「行」「货号」「状态」固定窄列,「衣服图」「结果 / 原因」给可拖动默认宽度,「标题」使用 Stretch 占用剩余空间
|
||||
- [x] `test_ai_outfit_panel.py`:补离屏测试,断言短字段列固定、标题列 Stretch
|
||||
- [~] 验证:`python -m py_compile src/app/widgets/ai_outfit_panel.py`、`python tests/test_ai_outfit_panel.py`、离屏启动主窗口通过;全套 `python -m unittest discover -s tests` 当前被工作区未提交的 `packaging/default_config/ai_models.json` 改动阻塞(模型顺序/额外条目与出厂模板规范不一致),待清理该文件后重跑
|
||||
|
||||
### 19.26 处理明细表:再缩「衣服图 / 结果·原因」、再宽「标题」 — docs/11 §10
|
||||
|
||||
前置阅读:
|
||||
|
||||
- `docs/11-ai-outfit.md`(§10 中栏 列宽)
|
||||
- `src/app/widgets/ai_outfit_panel.py`(`_configure_detail_table_columns`)
|
||||
- `tests/test_ai_outfit_panel.py`(`test_detail_table_compacts_short_columns_and_stretches_title`)
|
||||
|
||||
背景:
|
||||
|
||||
承接 §19.25。「衣服图」「结果 / 原因」仍偏宽,再收窄,把更多横向空间让给 Stretch 的「标题」列。
|
||||
|
||||
任务:
|
||||
|
||||
- [x] `ai_outfit_panel.py` `_configure_detail_table_columns`:把「衣服图」(col 3) 初值 150→约 90、「结果 / 原因」(col 5) 初值 220→约 130(仍 `Interactive` 可手拖);「行/货号/状态」固定窄列与「标题」Stretch 不变 → 标题自动更宽
|
||||
- [x] `test_ai_outfit_panel.py`:在既有列宽用例补断言——`columnWidth(3) <= 90`、`columnWidth(5) <= 130`(标题仍 Stretch、短列仍 Fixed 不变)
|
||||
- [x] 验证:`test_ai_outfit_panel.py` + 全套 py37 通过(`test_config_service` 的 packaging 模板失败属并行 §19.13,无关);离屏断言新列宽
|
||||
Reference in New Issue
Block a user