Skip to content

Commit a10345a

Browse files
docs(skills): stop teaching a boolean inlineEdit on a master-detail relationship (#37170)
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Fixes #37042 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用户无感;读「数据建模」和「界面」技能的 AI 助手不再写已被拒收的 `inlineEdit: true`,主从明细的录入方式只写 `'grid'` / `'form'`,或者不写(按明细的字段自动选)。 - 为什么做:PR #36802 已退役布尔写法(解析时拒收),技能文字还在教它;这张卡必须在带上 #36802 的那次发版之前合并,否则发出去的技能会教 AI 写出被拒收的元数据。 - 出错会怎样:只改说明文字和一条测评,撤回这一个合并即可。 - 要你做什么:无。Tier S(低风险 skills 档,契约审核 7149350343 判 `Security-touching: no`),本区在 CI 全绿后落地。 ## What changes Opened by the seat on the maintainer's authorization in seat repo:objectstack#4's session (「#37093:开 PR 放行。你应该使用 pm-dispatch 技能审核和落地pr,该放行的都放行」; 「#37042:放行」); the developer's own `pr_create` in zone a4-A's session was refused by a permission check. Branch `claude/issue-37042-skills-inline-edit-boolean` @ `bc01139be8`, implemented by zone a4-A's dispatch. - `skills/objectstack-data/rules/relationships.md`, "Inline-edit form factor": the `inlineEdit: true // auto (default)` line is removed; the smart default is described as what an omitted key gets, noting that a boolean is refused. - `skills/objectstack-data/evals/objects-fields-relationships.json` case 25: the expected answer no longer offers `true`. - `skills/objectstack-ui/rules/list-views.md`, Master-Detail Forms: the pointer to that section no longer lists `true` beside `'grid'` and `'form'` (added in the fix round for contract-review finding M1). - One `@objectstack/skills` patch changeset naming both skills. Since PR #36802 merged, the spec parse refuses `true` / `false` on a relationship field's `inlineEdit`; only `'grid'` and `'form'` are accepted, and an omitted key picks the form factor from the child's shape. Release-coupled: this lands before the release that ships #36802. Token readings: `relationships.md` 4199 → 4192 (ceiling 4203); `list-views.md` 4444 → 4442 (ceiling 4448); no ceiling moved, the ratchet script is not in the diff. Merges cleanly with the open PR #36158. A sweep of every `inlineEdit` under `skills/**` finds no other relationship-field boolean; `objectstack-ui/references/react-blocks.md` line 76 is the view-level key, untouched. ## Review history - Contract review 7149242271 at `1787e54e67`: FAIL on M1 (the `list-views.md` pointer still listed `true`). - Fix round at `bc01139be8`; delta review 7149350343: PASS, `M1: closed`, `Security-touching: no`. ## Tests No package source changes. The contract review and L1 read the gate check-runs on this head. --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent d763ee7 commit a10345a

4 files changed

Lines changed: 13 additions & 4 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): the data and UI skills no longer teach a boolean `inlineEdit` on a master-detail relationship
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
objectstack-data's `rules/relationships.md`, "Inline-edit form factor": the `inlineEdit: true // auto (default)` line is gone, and the smart default is now described as what an omitted key gets, with a note that a boolean is refused. The spec parse refuses `true` and `false` on a relationship field's `inlineEdit` since 18.7.0; only `'grid'` and `'form'` are accepted, and leaving the key out picks the form factor from the child's shape. `evals/objects-fields-relationships.json` case 25 drops the same `true` from its expected answer. objectstack-ui's `rules/list-views.md`, Master-Detail Forms: the pointer to that section no longer lists `true` beside `'grid'` and `'form'`; it says `'grid'` / `'form'` or left out.

‎skills/objectstack-data/evals/objects-fields-relationships.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@
436436
{
437437
"id": 25,
438438
"prompt": "`quote_line` 通过 `master_detail` 字段 `quote` 归属 `quote`。新建报价单时要在表单里直接录明细,和报价单一起保存。该怎么声明?",
439-
"expected_output": "On the PARENT `quote` object, a field group that names the child: `fieldGroups: [..., { key: 'lines', label: '明细', relatedList: 'quote_line' }]` (such a group holds no fields). The standard create/edit form of `quote` then enters the lines at that group and saves quote + lines in one atomic transaction, and the record page draws the same table there. Without the group nothing changes: `quote_line` is a tab and the form has no lines, whatever `inlineEdit` on `quote_line.quote` says; `inlineEdit` only picks how the rows are edited (`'grid'` / `'form'`, `true` or absent picks by the child's shape). No custom page and no form view is needed. If either object declares `enable.apiMethods`, it must list `'bulk'`.",
439+
"expected_output": "On the PARENT `quote` object, a field group that names the child: `fieldGroups: [..., { key: 'lines', label: '明细', relatedList: 'quote_line' }]` (such a group holds no fields). The standard create/edit form of `quote` then enters the lines at that group and saves quote + lines in one atomic transaction, and the record page draws the same table there. Without the group nothing changes: `quote_line` is a tab and the form has no lines, whatever `inlineEdit` on `quote_line.quote` says; `inlineEdit` only picks how the rows are edited (`'grid'` / `'form'`; absent picks by the child's shape). No custom page and no form view is needed. If either object declares `enable.apiMethods`, it must list `'bulk'`.",
440440
"files": [],
441441
"assertions": {
442442
"must_contain": [

‎skills/objectstack-data/rules/relationships.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,11 @@ The rendering side: objectstack-ui → Master-Detail Forms.
285285
`inlineEdit` only picks how a placed child's rows are entered:
286286

287287
```typescript
288-
inlineEdit: true // auto (default)
289288
inlineEdit: 'grid' // editable line-item grid (fast bulk entry; thin children)
290289
inlineEdit: 'form' // read-only list; "Add" / per-row edit opens the FULL form
291290
```
292291

293-
**`true`** / omitted — **smart default**: picks `form` when the child has
292+
Omitted (a boolean is refused) — **smart default**: picks `form` when the child has
294293
rich/form-only fields (textarea, file, image, json, location…) or more than ~8
295294
editable fields, else `grid`.
296295

‎skills/objectstack-ui/rules/list-views.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ custom page. Prefer, in order:
387387
is a tab and the form has no lines. A parent or child
388388
declaring `enable.apiMethods` must list `'bulk'`, or that save is refused
389389
`405 OBJECT_API_METHOD_NOT_ALLOWED`. `inlineEdit` only picks how rows are
390-
edited, the `true` / `'grid'` / `'form'` ladder:
390+
edited, `'grid'` / `'form'` or left out:
391391
**objectstack-data → Relationships → Inline Editing**.
392392

393393
2. **`object-master-detail-form` page block (bespoke layout).** Use a page only

0 commit comments

Comments
 (0)