Commit Graph

277 Commits

Author SHA1 Message Date
63e6522f3b feat(主子表): 引用驱动联动(选物料→带出单价/规格) onEvent setValue
子表引用列渲染 picker select,选中后 onEvent.change → setValue 按映射把所选引用行的列
自动带出到同行其它子列。隔离 Playwright 钉死正确形态:单选 select 的 selectedItems 是
被选 Option 对象本身(非数组),value=${event.data.selectedItems.<src>} 绝不可加 [0]
(上一会话 fill 失败真因);目标列 id=<col>_${index} 挂列上,needConfirm:false 下仍被命中。

- PageBlueprintChild: Linkage(refColumn,List<Fill>) / Fill(target,source) 模型 + 兼容构造
- PageBlueprintCompiler: 引用子列→select(source=/api/picker/{ref}/list, options=${items},
  _label/_id)+onEvent setValue;目标列挂 id;effectiveFills 剔除派生目标/同目标去重/
  仅合法引用 refColumn 渲 select(对抗评审加固,防 setValue 落空与串台)
- TypedPageSchemaValidator: 仅 onEvent.<event>.actions[] 锚定放行 setValue 白名单(D3 门收窄)
- DesignFeatureController: childLinkage Object 容错解析 + COLUMN_IDENT 标识符白名单防注入
- 测试: 编译/校验/控制器联动 + 派生冲突/去重/非引用 健壮性 + 防注入 400

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 22:28:24 +08:00
3e4264d9e0 fix(recipe): 表单/列表/查询/子表排除标准审计列,生成页真正可用
recipe 编译器此前把标准审计列(主键/VERSION/CREATETIME/UPDATETIME/CREATEBY/UPDATEBY/
ISACTIVE)也渲成可编辑必填表单字段、列表列、查询条件、子表 EditGrid 单元格——致新建出的
页 11 列过宽、表单杂乱不可用(此前 e2e 都走 API 未经表单 UI 故未暴露,影响所有主子表功能)。

PageBlueprintCompiler 在 maintenanceColumns/treeColumns/searchFilter/formControlsExcluding/
masterDetailFormControls/childInputTable 统一排除系统列(SYSTEM_COLUMNS + 主键)。编辑表单仍保留
hidden 主键(_UPDATE 定位)。子表按子表 PK 排除。

+2 单测(维护页 forms/list/查询排除+编辑表单 hidden 主键;主子表主表单/子表排除),
全量测试绿,live 验证维护页+主子表页 schema 系统列全清(仅留编辑表单 hidden 主键)。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 21:15:53 +08:00
ba8177e9d4 feat(主子表): 父级汇总(总额=子表金额之和) compute-on-save + SUM 实时预览
主表列 = SUM/COUNT/AVG/MIN/MAX(子表某列)。服务端权威:行级派生(__derive)之后再聚合
(?__rollup=主列=AGG:LIST:子列),把子表列聚合写回主 map → 引擎落库;主表单该列只读
static + ${SUM(ARRAYMAP(DETAILS, item => <派生公式或子列>))} 实时预览。

- RecipeDerivedFieldComputer.enrichRollup: 子表列聚合(空集 SUM/COUNT=0,MIN/MAX/AVG 跳过)
- PageBlueprintChild.RollupColumn + 编译器 masterDetailFormControls(汇总列→static SUM 预览,
  被聚合子列若派生则用其公式 item 前缀)+ masterDetailFormApi 拼 __derive&__rollup
- RecipePageComposer/DesignFeatureController 贯通 childRollup(Object 容错;主列须主表真实列、
  子列须子表真实列、agg 白名单 SUM/COUNT/AVG/MIN/MAX)
- FlowController.executePost 接 __rollup(在 __derive 之后,使派生列已算好)

+5 单测,curl live e2e(TOTAL=SUM(明细金额)=55,服务端先逐行派生再聚合)PASS,Playwright 3/3。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 17:55:49 +08:00
ce544fa65e feat(主子表): 派生字段(金额=数量×单价) compute-on-save + tpl 实时预览
零引擎改动:UI 派生列只读 tpl ${公式} 实时预览(quickEdit:false),服务端权威
经写流 ?__derive= 用安全算术求值器逐行 compute-on-save 落库(复用 ?__egtpl=
同款轨道,绕开 amis input-table 前端竞态)。

- RecipeArithmeticEvaluator: 纯算术递归下降/BigDecimal,无任意代码执行;含递归
  深度(64)+表达式长度(512)护栏,防深嵌套 StackOverflowError(Error 逃兜底)DoS
- RecipeDerivedFieldComputer: 子表数组逐行求值写回,逐格错误隔离不阻断保存
- PageBlueprintChild.derived + 编译器派生列(tpl + quickEdit:false + 表单 api
  URL 编码 __derive);RecipePageComposer/DesignFeatureController 贯通 childDerived
  (Object 容错避免 Jackson 400;公式字符白名单拒 |/=/; 防静默写错值)
- FlowController.executePost 接 __derive(9 参 @Autowired + 反射回归测试)

对抗评审(36 agent)揪修 3 真 bug:amis needConfirm:false 强注 quickEdit 需显式
false 才保留 tpl 预览;求值器深嵌套 Error 逃逐行兜底;公式 | 破坏 spec 切分。
+9 单测,curl live e2e 含负控 PASS,Playwright 3/3。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 17:32:13 +08:00
f18d998337 feat(metadata): createEntity 支持 masterTable(子表自动加 MASTERID 引用列回链主表)
主子表向导一步建子表:传 masterTable 时自动加 MASTERID 引用列(=子表回链主表外键),
linkColumn 固定 MASTERID,再由 MasterDetailLinker 接线。已由主子表 Playwright e2e 端到端证明。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 15:37:04 +08:00
6e096dce1d fix(metadata): MasterDetailLinker 主 LIST 属性 INSERT 补 createtime/updatetime/createby/updateby
live e2e 揪出:SYS_ENTITYATTRIBUTE 这4列 NOT NULL 无默认值,原 INSERT 漏列 → 接线失败。
补齐后 master-detail compile→ensureLink→级联保存 端到端通(子行外键自动回填)。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 15:29:40 +08:00
c9be9bc125 feat(design): /recipe/compile 支持 master-detail-v1(先接线再编译)
DesignFeatureController 注入 MasterDetailLinker(生产+包测构造同步);
CompileRequest 加 childTable/linkColumn/listColumn(默认 DETAILS)/listLabel;
recipe 门禁放行 master-detail-v1。compile() master-detail 分支:先
masterDetailLinker.ensureLink(主表,子表,外键,listColumn,listLabel) 接线
元数据,再 attributeReader.read(子表) 读子列(剔除指回主表的外键列),
装配带 child 的 Spec→compose→严格 typed 校验→upsertStandard 落标准层。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 15:20:17 +08:00
25494efadf feat(blueprint): master-detail recipe 接入 registry/composer + YAML
PageRecipeRegistry.defaults+compile switch 加 master-detail-v1。
RecipePageComposer.Spec 携带 childTable/listColumn/childAttributes
(7-arg 兼容构造保留),toBlueprint 装配 PageBlueprintChild。
新增 page-recipes/master-detail-v1.yaml(镜像 maintenance/tree,
gates 含 typed-page-schema/amis-schema)。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 15:18:22 +08:00
8fe377b0c8 feat(blueprint): master-detail-v1 编译器分支 + PageBlueprintChild
PageBlueprint 加 RECIPE_MASTER_DETAIL 常量与可空 child 组件(14-arg,
保留 13-arg 兼容构造);新增 PageBlueprintChild record。
PageBlueprintCompiler.masterDetail 复用 maintenance 列表骨架,
新增/编辑表单内联 house-style input-table 子表(name=listColumn,
quickEdit 控件),编辑表单 initApi 走 _LOAD 回显主+子行。
validate 接受 master-detail 并要求 child 非空/childTable/listColumn
非空/fields 非空。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 15:16:30 +08:00
d71ad6f461 feat(metadata): MasterDetailLinker 主子表元数据接线(幂等)
ensureLink(主表,子表,外键列,列表列,标签,ctx) 把已存在子实体接成主表内联子表:
INSERT 一行 SYS_REFERENCEVALUE(entityid=子实体,entityattributeid=子表外键列属性)
+ INSERT 主表一条 LIST 属性(referenceid=LIST,referencevalue=新 RV id)。
接线后 evictByTable(主表),默认流即自动级联(实测无需主子表专属流节点)。
幂等:主表已有同名 LIST 属性 → 返回既有 referencevalue,不重复 INSERT。
TDD: MasterDetailLinkerTest 两测(INSERT 两条 + 失效缓存 / 幂等无 INSERT)。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 15:13:06 +08:00
b0daaaab0f feat(metadata): createEntity 透传 tabletype(子表建模支持)
createEntity 接受可选 req.tabletype(Integer),非空时覆盖克隆源的 TABLETYPE。
子表(tabletype=1)+ 指向主表的引用列 = 主子表级联接线前提。
TDD: MetaControllerReferenceTest.createEntityPassesTableTypeThrough 捕获
保存的实体 map 断言 TABLETYPE=1。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 15:10:54 +08:00
f281de1c5a feat(meta): 建实体支持「所属分类」entitytype + GET /api/meta/entity-types 分类目录
用户反馈建模器缺「实体所属分类」。根因:createEntity 克隆 SYS_USERGROUP → 新实体继承其
entitytype(错分类)。修:createEntity 接 entitytype(SYS_ENTITYTYPE.id)覆盖克隆值;
新增 GET /api/meta/entity-types 列 221 个分类供建模器选择器。live 验:建实体 entitytype 正确落库。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 14:45:43 +08:00
4400eabc66 test(e2e): 人走五环端到端验收脚本 + live 验收实证(Section 6 / Task 24)
8094+真实DB验收通过:五环①②③④(含引用列 OWNER→SYS_USER)+ AI ①面(READY_FOR_HUMAN_REVIEW)
+ 部署包(requiresHumanApproval) + 红线全守;实证写入脚本头注。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 10:27:03 +08:00
303b4d0240 fix(design): @Autowired DesignFeatureController 生产构造器 — 修 Spring 多构造器回退无参导致启动崩
live e2e 揪出:DesignFeatureController 有「生产构造+包级测试构造」两个构造器,
生产构造未标 @Autowired → Spring 回退找无参构造 → NoSuchMethodException 启动失败。
纯单元测试全 new 对象故漏检;真实 boot 才暴露。补 @Autowired + 回归测试守护此装配模式。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 10:25:12 +08:00
b5a6388024 feat(design): publish 生成 production 人审部署包(DECISION-2,manifest+rollback)(建物3-Task13)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 10:10:22 +08:00
c339efcdcb feat(design): publish 菜单注册 MenuRegistrar(dedup+新功能目录)(建物3-Task12)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 10:08:41 +08:00
74478f030e feat(design): POST /api/design/publish 确保默认流落库(幂等)(建物3-Task11)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 10:07:13 +08:00
9765872382 feat(design): GET /api/design/flows 列出实体默认流预览(建物3-Task10)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 10:05:30 +08:00
05181d75bf test(design): 端到端·composer 透传 reference 列→编译显名 <COL>_DISPLAY__
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 09:55:10 +08:00
869790d04f feat(design): 编译器引用列渲染显名·list 列 name 指向 <COL>_DISPLAY__(运行时 _SEARCH 注入,白名单安全)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 09:54:33 +08:00
eabebae361 feat(design): POST /api/design/recipe/compile 单步端点(建物2)·服务端生成 templateId+严格 typed 闸+唯一真相落标准层
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 09:53:49 +08:00
687ade7513 feat(design): RecipePageComposer 共享蓝图装配器 + PageBlueprintField 引用字段扩展(向后兼容)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 09:52:13 +08:00
3e24f135ad chore(meta): 实体描述取请求 description, 默认中性'设计中心创建'(去硬编码 AI 标记)
DESCRIPTION 行与 resolveDescription 在 Task 3 即就地实现(§B.9-7 收口),本提交补
resolveDescription 纯函数单测。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 09:37:10 +08:00
6f34be15eb fix(meta): 引用列 DDL 外键指向目标表而非自表(DECISION-1)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 09:36:43 +08:00
8c3f3944be feat(meta): POST /api/meta/entity 支持 reference 列(find-or-create SYS_REFERENCE 指向目标实体)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 09:35:14 +08:00
61e51abeb6 feat(meta): GET /api/meta/entity/{table}/attributes 列清单+displayColumn+引用列反解
抽出可复用 @Component EntityAttributesService(records Result/Column,读真实表
SYS_ENTITYATTRIBUTE⋈SYS_ENTITY,引用目标经 DataDicService.getReferenceEntityTableName
反解),MetaController.attributes() 委托它(供 Section 2 同源消费)。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 09:33:25 +08:00
4319178b66 feat(meta): GET /api/meta/entities 实体目录端点(引用列选择器数据源)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 09:31:34 +08:00
418b0b6458 docs(plan): land human five-ring build-new-feature implementation plan (24 TDD tasks, adversarially reviewed)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 09:27:51 +08:00
22d481e1cb docs(plan): land human five-ring build-new-feature design (NocoBase-style modeler + live designer)
Brainstorm output. Locks: NocoBase-style modeler+live-designer (no linear wizard);
v1 builds NEW features only (CREATE proven, ALTER=M4 deferred); recipe auto-generates
wired default page then edit in DesignerPage; AI-assist via external agent+Skills
(no in-platform LLM); single metadata truth SYS_ENTITY/SYS_ENTITYATTRIBUTE.
Companion to 2026-06-19 direction+roadmap. Ready for writing-plans.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 00:16:31 +08:00
6c6038350a feat(ai-recipe): typed list columns to match converter house-style
AI 生成页的列直接显原始值(布尔列显「true/false」),与转换器 house-style 的
「是/否」「日期格式化」不一致——live 验收时 boolean 列肉眼可见 true。本次按
blueprint field type 纯导出列渲染类型(不依赖 colMeta 枚举/引用元数据):

- boolean → type:mapping, map:{true/1:"是", false/0:"否"}
- date     → type:date,     format:YYYY-MM-DD
- datetime → type:datetime, format:YYYY-MM-DD HH:mm:ss
- string/integer/number 保持纯文本(默认渲染即正确)

同时在 PageComponentRegistry 注册 mapping/date/datetime 三个标准 amis 列渲染器
(display 类,转换页本就用,否则 typed-page-schema 门会拒含 type 的列 → 409)。
maintenance 与 tree 列均应用。

验证:platform-metadata 397 + platform-ai 61 测试绿;8093 live 重生成
EIP4AI_HSDEMO,served schema ENABLED 列=mapping,浏览器实证「启用」列显
「是」(原 true),0 console error;已清测试数据。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 19:29:02 +08:00
5f320503ee feat(ai-recipe): bind tree-crud-v1 writes to backend service flows
tree-crud 与 maintenance 同病:AI 已生成 _ADD/_UPDATE/_DELETE 流但树页的增改删
仍绑自创 /api/entity/{表}/save|delete(「页不绑」)。本次把写入对齐保真层服务流:

- 新增顶级 / 加子 表单 → post:/api/flow/<TABLE>_ADD
- 节点编辑 表单 → post:/api/flow/<TABLE>_UPDATE
- 节点删除 → /api/flow/<TABLE>_DELETE,data={ids:"${<PK>}"}(基线 ids 口径)

数据读保留 /api/entity/<TABLE>/tree(层级构建器,无 flow 树端点,非写旁路);
per-node 操作列对树是恰当 house-style(节点操作天生 per-node),不套用 flat
CRUD 的「无操作列」规则。证据:2727 转换页 0 用 crud+childrenColumnName,
基线树走 input-tree/tree 组件,故树 recipe 的对齐核心=写口径而非组件重构。

验证:platform-metadata 397 + platform-ai 61 测试绿;8093 live 经 AI pipeline
生成 tree 页 + 浏览器实证渲染(工具栏/节点加子-编辑-删除/entity-tree 取数)
+ served schema 确认写绑定全走 _ADD/_UPDATE/_DELETE,0 console error。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 19:13:48 +08:00
1ff0d334d0 feat(ai-recipe): align maintenance-crud-v1 to converter house-style
AI 生成的单表维护页与转换器基线产出存在「陌生感」:缺查询区、走自创
/api/entity REST 而非保真层服务流、动作放 per-row 操作列。本次对齐:

- crud.api → /api/flow/<TABLE>_SEARCH(amis 自动追 page/perPage,无 adaptor)
  + selectable/checkOnItemClick/primaryField
- 补 filter 查询区(string 列 → input-text 文本搜索)
- 新增/编辑/删除挂 headerToolbar 操作 selectedItems(带 id + disabledOn 守卫,
  删掉 per-row 操作列);增改 inline 表单绑 _ADD/_UPDATE + reload,编辑用
  dialog data:{"&":"${selectedItems[0]}"} 预填 + hidden 主键;删除
  data={ids:"${selectedItems|pick:<PK>|join:','}"}(照搬基线,键为 ids)
- 连带:AiFeatureDraftGenerator.expectedPageApi + AiAgentService 的
  render-plan 门禁改 recipe-aware(原硬编码 /api/entity + /list? 会让整条
  pipeline 409)

证据:2727 转换页聚合 0 用 per-row operation 列 / 1976 headerToolbar /
1211 filter / 1277 _SEARCH。DefaultFlowHelper 流名吻合,AI pipeline 仅生成
list 页无独立表单页 → recipe 保持 inline 自包含。

验证:platform-metadata 397 + platform-ai 61 测试绿;8093 live 经 AI pipeline
重生成页 + 浏览器实证查询区/工具栏/选中守卫/flow 取数/编辑预填全绿,0 console error。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 19:07:39 +08:00
d3b88467e0 feat(page-schema): converge net-new standard writes to single PageSchemaWriter (M3a)
sys_page_schema standard layer had two runtime writers: the converter import CLI and AiLocalReleaseExecutor's raw JDBC INSERT (the critic-flagged net-new bypass). Introduce PageSchemaWriter as the single runtime write function (typed-recipe validation warn-not-block + etag + UPSERT), and route both a new admin-gated PUT /api/page/schema/{id}/standard endpoint (net-new producer for the design-center 'new feature' path) and AiLocalReleaseExecutor.applyPageSchema through it. No remaining raw INSERT into sys_page_schema in the AI runtime write path.

Scope: page_schema runtime write only. The deployment-package SQL-text generator (AiAgentService.pageSchemaSql, offline human-apply artifact) and SchemaImportCli (batch converter import) are separate legitimate paths. AiLocalReleaseExecutor sys_serviceflow/sys_menu raw writes remain (follow-on). Completion = code-complete, integration-pending (end-to-end render proof env-gated).

Tests: PageSchemaWriterTest (4) + PageSchemaControllerTest putStandard success/403/split (27 total) + AiLocalReleaseExecutorTest/AiAgentApiPipelineTest unchanged-green. TDD.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 17:21:06 +08:00
da3ad35821 docs(plan): land EIP4 dev-platform direction + reconciled execution roadmap
Commit the architecture-direction design doc (D1-D7 locked decisions) and add a companion living execution roadmap reconciling the design with the already-merged AI agent module (main 9aea6c1): phase-by-phase delivery account + ordered milestones (M0 component L1 -> render-smoke gate -> 先宽度 M1/M3a/M2/M3b -> 再深度 M4/M5/M7/M8), split autonomous-build vs env-verification.

Roadmap revised after adversarial review: restored the D2-locked P0 prerequisite (component L1), moved the render-smoke correctness gate ahead of real-DB dogfood, split net-new write-path convergence ahead of the new endpoint, marked code-complete vs integration-pending.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 16:59:16 +08:00
9aea6c1cd0 docs(ai): converge external wording to AI-assisted + human review, not full-auto
Per the architecture-review redline (EIP3 决策会纪要: AI claims limited to 'AI-assisted, human-reviewed'; never promise 'AI full-auto development'), soften endpoint @Operation summaries, the default task objective, and AI docs that read as committed full-automation. Endpoint paths/method names unchanged (API contract). Added a capability-boundary disclaimer at the top of AI_AGENT_AUTO_DEVELOPMENT.md. 33 platform-ai tests green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 16:39:45 +08:00
c379f5b1ea feat(ai): require admin for AI agent mutation/action endpoints
AiAgentController's endpoints relied only on the SecurityFilterChain (prod: /api/** authenticated; dev: permitAll), so any authenticated user could trigger AI writes/actions (auto-develop, local-apply, change-sets, deployment packages) - a lower bar than the comparable overlay/standard-page write endpoints which require admin.

Gate the 14 mutating/action POST endpoints with requireAdmin() (UserSession CURRENTUSER == ADMIN), aligned with PageSchemaController.requireAdmin / AdminWriteController. Read GETs and the pure validate-schema/access-check endpoints stay open. Actual three-truth writes are now admin + localhost double-gated.

Tests: AiAgentControllerTest + AiAgentApiPipelineTest run under an ADMIN session (+ AfterEach clear); added a 403 test for non-admin. 61 platform-ai tests green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 16:22:17 +08:00
bac69d85a7 fix(page-schema): scope typed-recipe gate to AI drafts, not designer overlay saves
putOverlay hard-rejected (400) any overlay using components/actions outside the ~35-component AI recipe whitelist. Existing converted pages use 13 unregistered component types (search-box/dialog/mapping/tabs/each/tree-select/input-date-range/…) plus 6 onEvent action types that are structurally actionType-without-type (ACTION_WITHOUT_COMPONENT), so editing+saving virtually any existing list page in the designer returned 400.

Split path: putOverlay (designer write path) now validates-and-warns instead of blocking; the strict typed gate stays on POST /api/page/schema/validate and the AI draft pipeline. Clears the only existing-page regression blocking the ai-agent merge to main. TDD: PageSchemaControllerTest#20 rewritten RED->GREEN; 37 schema tests green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 15:49:26 +08:00
bd4c642766 merge ai agent module 2026-06-19 14:01:09 +08:00
a51f35317f test edit form page resolution
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 17:17:48 +08:00
dbf5b6c86a fix edit form page resolution
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 17:16:45 +08:00
ccd74710fa fix schedule job notify editor
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 17:15:10 +08:00
62188a557f docs: verify treegrid entity filtering
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 16:44:21 +08:00
d218c2ba6f fix framework treegrid search and formeditgrid editors 2026-06-18 16:35:51 +08:00
b6e6964913 fix framework p2 custom views 2026-06-18 15:35:17 +08:00
55b9c201d6 docs: mark framework P2 gate complete
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 13:25:30 +08:00
ffd8c31e7e fix: gate function template downloads 2026-06-18 13:24:43 +08:00
22211b2557 feat(附件): 双态组件 + 新建/编辑保存落库打通
- 转换器 buildAttachmentField: 附件字段收敛为单个 input-file 双态组件
  (staticOn ${__readonly} 查看只读可下载/编辑可增删; joinValues:false,extractValue:false
  提交附件对象数组), 删除 each+service 容器, 查看/编辑同位置同布局
- FlowController 读路径 resolveAttachmentFields: 把保真层大写 DOCUMENT
  ({SYS_DOC_ID,FILENAME,FILESIZE}) 归一为 amis 小写契约 {id,name,value,url,sizeKb},
  修掉"查看附件空白图标"
- FlowController 写路径 normalizeAttachmentFieldsForWrite(按 url=/api/file/ 签名识别):
  修改流 → [{SYS_DOC_ID}] 交保真层 updateAttachments 对账(留/软删/不重复插);
  新建流 → 捕获 docId+剥离 DOCUMENT, 保存后用返回主键 relinkInsertedAttachments
  UPDATE sys_doc.businesskey 改挂(直接改挂、非复制 → 无 UNKNOWN 孤儿)
- FileController.upload: businesskey 右补白 36 位对齐保真层 getDoc(CHAR(36) 主键),
  否则 loadDoc 读不到新附件; 响应补 value
- 测试: converter 154 + metadata 368 全绿
  (新增 4c 读契约归一 / 4d 修改归一 / 4e 新建改挂 / FileController 补白)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 13:09:36 +08:00
75885f9d7d docs: mark framework P2 complete
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 11:19:22 +08:00
5636b37220 feat: complete framework P2 deltas 2026-06-18 11:18:40 +08:00
be9d1c8e71 docs: record work calendar status
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 10:27:08 +08:00