ssw
|
e5f8bad3fc
|
Phase 2: merge v13-f2-menu 5 type menu builder (5 type 0 误差 + 139 menu 验收 + 反向调试器)
|
2026-06-12 01:46:38 +08:00 |
|
 sswandClaude Fable 5
|
648afd7749
|
v13-f2 Task 2.7+2.8: menu 反向调试器 + 139 menu 0 误差验收 (5 type 全覆盖)
- 新增 MenuReverseDebugger + MenuReverseReport (reverse/ 子目录)
- 检查 6 维度: category 支持 / type 支持 / 4 authorize 一致性 /
propertyJson 字段数 / urlAddress 模板 / linkTarget 一致性
- MenuCommand.InfoCommand 加 reverse debug 段 (dacli menu info --reverse 友好输出)
- 4 个 @Test: Web / no-spa / unsupported category / dumpToFile
- scripts/menu-validate.py + scripts/menu-coverage-check.sh
STRICT 91 (builder 默认) + LOOSE 48 (用户改 4 authorize) = 139 PASS / 0 FAIL
- 全集 25 tests PASS (21 旧 + 4 新)
Co-Authored-By: Claude Fable 5 <[email protected]>
|
2026-06-12 01:41:55 +08:00 |
|
ssw
|
c28f848a11
|
v13-f2 Task 2.6: Link+Button 菜单 0 误差 (外链 _blank+http(s), 按钮 type=0 无 urlAddress, 4 authorize=0)
|
2026-06-12 01:29:20 +08:00 |
|
 sswandClaude Fable 5
|
7021dfe19a
|
v13-f2 Task 2.5: dataReport (type=10) + portal (type=8) 菜单 0 误差
urlAddress 模板 (实测 workSystem 18 样本对齐):
- type=10 报表 (Web): report/{enCode}
- type=8 门户 (Web): portal/{enCode}
- type=8 门户 (App): /pages/apply/visualPortal/index?id={moduleId}
propertyJson 4 字段 (18/18 baseline 一致):
- iconBackgroundColor: ""
- isTree: 0
- moduleId: "{formId}"
- webType: null (注意: 不是 8/10, 是 null!)
4 authorize 字段全 0 (18/18, 跟 WebMenuBuilder 的全 1 不同).
linkTarget: type=10 = _self, type=8 = null.
category: "Web" (默认) 或 "App" (portal 移动端).
entity.moduleId: type=10 缺省 null (pj.moduleId 必有, 盲点 JNPF-30 例外).
5 个 @Test 通过 (type=10/type=8 Web/type=8 App/propertyJson 结构/dumpToFile).
0 误差: 18 baseline 样本字段集 + propertyJson 4 字段 + 4 auth=0 + webType=null 全对齐.
Co-Authored-By: Claude Fable 5 <[email protected]>
|
2026-06-12 01:12:51 +08:00 |
|
ssw
|
04517b5d89
|
v13-f2 Task 2.4: no-spa 菜单 (type=7) 0 误差 (5 样本, urlAddress token 模板, 4 字段 propertyJson)
|
2026-06-12 01:00:12 +08:00 |
|
claude
|
2505fc7cff
|
v13-f2 Task 2.3: Web 菜单 propertyJson 0 误差 (116 Web menu, 4 字段结构对齐)
基线: 拉 developSystem 48 + workSystem 68 = 116 Web menu 真实数据, 字段集验证 0 误差对齐.
修复:
- PropertyJsonBuilder.build: 4 字段 {moduleId, iconBackgroundColor, isTree, webType}, 删除冗余 (icon/iconBackground/moduleName/tableName)
- WebMenuBuilder: type=int 字段 (JNPF API 习惯); type=1 目录用 3 字段 (iconBackgroundColor+isTree+moduleId, NO webType); type=2 Vue 扩展用 3 字段 (NO webType, moduleId=''); type=3/9 用 4 字段 (含 webType); sortCode 从 extra 读
- AuthorizeFieldsBuilder: 字段名改成 isButtonAuthorize/isColumnAuthorize/isDataAuthorize/isFormAuthorize (JNPF 真实 API 字段名, 盲点 JNPF-30)
新增:
- WebMenuBuilderTest: 4 @Test (basic/propertyJson_structure/webTypes/dumpToFile) 全 PASS
- pom.xml: junit-jupiter 5.12.2 test scope
- scripts/pull-web-menus.sh: 拉 116 baseline
- scripts/menu-baseline-diff.sh: 0 误差验证 + baseline 字段集对照
- scripts/menu-baseline/{developSystem,workSystem}-web.jsonl: 116 真实 Web menu 数据 (48+68)
|
2026-06-12 00:47:41 +08:00 |
|
ssw
|
36936a872d
|
v13-f2: 拆 menu 包骨架 (5 type + 2 共享 + SPI, baseline 157 menu + type 分布)
- 拆 ssw.dacli.menu.builder 包: MenuBuilder 接口 + MenuBuildContext + 5 type builder
- WebMenuBuilder (type=1/2/3/9, 默认)
- NoSpaMenuBuilder (type=7, /ssw/{app}/... token 模板)
- DataReportMenuBuilder (type=5/6/8/10, bi/portal URL)
- LinkMenuBuilder (type=7, 完整 http:// 链接)
- ButtonMenuBuilder (type=0, 按钮, parentId 必非 -1)
- 共享 PropertyJsonBuilder + AuthorizeFieldsBuilder (4 authorize 必含)
- MenuBuilderFactory SPI 加载, 未注册 category 抛明确错误
- ssw.dacli.MenuBuilder 变轻量门面, 委派给 factory
- META-INF/services/ssw.dacli.menu.builder.MenuBuilder (5 行 SPI)
Task 2.1 baseline 157 menu (dev 54 + work 103) 收集 + type 分布:
docs/dacli/2/v13-f2-menu-type-distribution.md
docs/dacli/2/v13-f2-todo.md
注: baseline/{developSystem,workSystem}/menu/*.json 全部 0 字节
(v13 Phase 0 baseline-collect.sh 只建 ID 壳, 需 v14 修复)
本次用 dacli live API 拉真数据作 0 误差源
mvn -pl ssw-dacli -am clean compile -DskipTests ✓ BUILD SUCCESS
smoke test 5 SPI 加载 ✓ UnsupportedOperationException 错误信息正确
|
2026-06-12 00:25:08 +08:00 |
|
 sswandClaude Fable 5
|
106aa9be51
|
boot: yml datasource 注入 (initapp developSystem 写入)
Co-Authored-By: Claude Fable 5 <[email protected]>
|
2026-06-11 20:39:13 +08:00 |
|
ssw
|
e5b19f5ef0
|
auto(1dc9423ac708): session end @ 2026-06-11T16:08:15 (+1f)
|
2026-06-11 16:08:16 +08:00 |
|
ssw
|
ad9471d5f7
|
auto(1dc9423ac708): session end @ 2026-06-11T15:10:26 (+1f)
|
2026-06-11 15:10:28 +08:00 |
|
ssw
|
12549103c8
|
auto(1dc9423ac708): session end @ 2026-06-11T13:44:23 (+1f)
|
2026-06-11 13:44:23 +08:00 |
|
ssw
|
d3ebd6c63e
|
auto(1dc9423ac708): session end @ 2026-06-11T13:42:38 (+1f)
|
2026-06-11 13:42:40 +08:00 |
|
ssw
|
4c86353e9f
|
auto(1dc9423ac708): session end @ 2026-06-11T12:21:15 (+1f)
|
2026-06-11 12:21:17 +08:00 |
|
ssw
|
04b8467b55
|
auto(1dc9423ac708): session end @ 2026-06-11T12:12:47 (+1f)
|
2026-06-11 12:12:49 +08:00 |
|
ssw
|
fd75311d25
|
chore(boot): untrack all target/ build dirs (601 entries) and *.jar (27)
|
2026-06-11 10:26:31 +08:00 |
|
ssw
|
1af57696f3
|
chore(boot): gitignore target/ and *.jar; untrack existing build artifacts
|
2026-06-11 10:25:01 +08:00 |
|
ssw
|
9a602d6f45
|
chore: pre-autopush snapshot @ 2026-06-11T10:05:43 (working tree snapshot)
|
2026-06-11 10:09:45 +08:00 |
|
Claude
|
df972a7ee7
|
test: check boot git
|
2026-05-18 14:12:50 +08:00 |
|
admin
|
03f4d36d92
|
feat: initial commit
|
2026-05-18 09:22:20 +08:00 |
|