ssw
|
a419de9905
|
chore(form): T3 review - typed error, DRY adapter, magic const, 4 negative tests
|
2026-07-28 16:51:44 +08:00 |
|
ssw
|
8b075cec6d
|
feat(form): create/update close-loop with re-read schema validation (Task 3, webapi hardening)
|
2026-07-28 16:25:27 +08:00 |
|
ssw
|
206f1fd86c
|
auto(14b5ea1b9bd9): session end @ 2026-07-27T16:31:03 (+4f)
|
2026-07-27 16:31:03 +08:00 |
|
ssw
|
f0a3179ace
|
auto(14b5ea1b9bd9): session end @ 2026-07-27T10:43:30 (+2f)
|
2026-07-27 10:43:30 +08:00 |
|
ssw
|
0b14466681
|
fix(dacli): 5 项 tdd8 smoke test 命中修复 — relationForm 4 字段闭环
#1 新增 dacli form relation-form-complete 命令
- 自动补 relationForm 4 字段 (jnpfKey/modelId/propsValue/relationField)
- propsValue 从 target 表 f_*_name 字段自动推
- relationField 默认 = source FK 字段自身
- --dry-run 模式只推导不写
- 19 个单测覆盖 (isRelationFormComplete/pickDisplayField/deriveCompletion)
#2 form update --fields 加 --strict 校验 (默认 ON)
- relationForm 4 字段缺任一 → ctx.fail + 提示用 relation-form-complete 自动补
- --no-strict 兼容老用法
- 7 个单测覆盖 (validateRelationFormFields)
#4 --json 模式 log.* 走 stderr
- log.ts 加 setJsonMode()/isJsonMode()
- info/ok/warn/dim/raw 在 jsonMode 时走 stderr
- setupOutputFilter 自动联动
- 修 menu/info.ts 启用 setupOutputFilter (之前直接 log.* 污染 stdout)
- 修 4 个测试 mock 补 setJsonMode + isJsonMode
#6 menu info 加 formEnCode 反查
- 从 propertyJson.moduleId → form list 反查
- 输出 relatedForms[] 含 formEnCode/formId/fullName
- 解决 form enCode 与 menu enCode hash 后缀不一致问题
#8 TC-A 报告 PASS 显式标 SKIP/FAIL 区分
- '通过: 4/5 (4 PASS + 0 FAIL + 1 SKIP)' 而非仅 '4/5'
实测 tdd8 (本轮 smoke test) 43/46 → 应能提升 (TC-C relationForm FAIL 修复)
质量门 (scripts/quality-gate.sh):
[1/4] tsc --noEmit: 0 错误
[2/4] vitest run tests/unit: 415 passed (含 26 个新测)
[3/4] doc:check: 0 drift (272 文件扫过)
[4/4] backend smoke: dacli form list PASS
|
2026-07-24 22:29:54 +08:00 |
|
ssw
|
ff259efdd5
|
auto(14b5ea1b9bd9): session end @ 2026-07-23T13:28:26 (+5f)
|
2026-07-23 13:28:27 +08:00 |
|
 sswandClaude
|
fa605579f3
|
test: cover eventhub blocker fixes
Co-Authored-By: Claude <[email protected]>
|
2026-07-22 16:51:06 +08:00 |
|