Skip to content

Commit 236c804

Browse files
feat(spec)!: retire the boolean arm of a relationship field's inlineEdit, which read as absent once a parent field group decides the placement (#36802)
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH Fixes #35926 Clause-②: no (narrowing) Metadata-protocol: narrowed Skills-docs: follow-up #37042 ## 维护者速读 - 用户能看到什么变化:写元数据的人(包括 AI 搭建)在主从或查找字段上写「内联编辑」为真或假时,校验直接报错并写出改法;已经存下来的旧定义在启动和迁移时自动去掉这个值,页面表现不变。字段设计器里多了一个「表格 / 表单」下拉框来选子表的编辑方式。 - 为什么做:维护者裁定「一律只看分组」之后,子表进不进父表单只由父对象的字段分组决定,这两个真假值读起来和不写完全一样,属于写了没用的键(记录页重做专题的收尾)。 - 出错会怎样:最坏是有人在源码里写了真假值,升级后校验被拒并看到改法;已存数据走自动转换,不会坏页面。撤回即还原本改动。 - 要你做什么:无。 ## What changes Per the maintainer's field-group ruling on #35889 (record 7046311205, 「一律只看分组」), a field group of the parent decides whether the parent's form inlines a child, so a relationship field's `inlineEdit` only picks the form factor of a placed child. Measured on `origin/main` e343ab7, every reader passes anything but `'grid'` / `'form'` as absent: - `ui/packages/app-shell/src/providers/MetadataProvider.tsx` (`attachInlineSubforms`): `d.inlineEdit === 'grid' || d.inlineEdit === 'form' ? d.inlineEdit : undefined`; - `ui/packages/plugin-form/src/deriveMasterDetail.ts` `resolveInlineMode`: `true` / `false` / `undefined` all take the smart default; - `packages/lint/src/validate-field-consumers.ts` `formFactorOf`: `undefined` for anything else; - the lint rules R5 / R6 (`data-model-rules.ts`) no longer read the value at all. So `false` reads exactly as absent too, and the whole boolean arm is retired, not only `true`. One non-runtime reader treats `true` differently, the scenario scorer; see Acceptance notes. - **`@objectstack/spec`**: `FieldSchema.inlineEdit` narrows from `boolean | 'grid' | 'form'` to `z.enum(['grid', 'form'])`, and the enum's own error map answers a boolean with the prescription (`INLINE_EDIT_BOOLEAN_RETIRED`, house five-part shape and `os migrate meta --from 17` sentence). `tsc` refuses a boolean at every typed site. The route is a value narrowing like `indexes[].unique: true` (the same refusal-by-error-map precedent): `enumWithRetiredValues` takes string members only, so it cannot name a boolean arm. - **ADR-0087**: D2 conversion `field-inline-edit-boolean-removed` (lossless delete of a boolean on `objects[]` / `objectExtensions[]` field maps, `retiredFromLoadPath: true`, `retiredAfter: '18.6.0'`), in `MAJOR_18_CONVERSIONS` at order 84; D3 semantic entry `field-inline-edit-boolean-retired`; a step-18 rationale fragment; a JOIN row in `retired-key-removal-version.pin.test.ts`. No `RETIRED_KEYS_BY_MAJOR` row: the key is not tombstoned. - **Liveness**: `field.json` `inlineEdit` stays `live` for the two surviving values, now with `verifiedAt`, in-repo evidence and the narrowing in its note. State counts unchanged. - **Field form**: with the union gone, a select spells every value, so the omit row "no registered widget spells this union" no longer holds. The field form offers `inlineEdit` as a Grid / Form select on `lookup` / `master_detail`; the reconciliation ledger drops the row and the ruled class drops `field.inlineEdit`, as that test's own header prescribes for "a ruled key that a form offers later". i18n bundles regenerated (`check-i18n-bundles.mjs --write`), zh-CN / ja-JP / es-ES translated by hand; the echo-decisions count pin carries one more row label (824 after the second main merge: main's 823 plus this PR's one label). - **`relatedList` prose** kept true: it no longer calls itself "the read-side mirror of inlineEdit" but "the record-page side; inlineEdit picks the form factor on the form side". - **Authored values**: the CLI golden metadata-eval corpus places its line items with a parent field group (`fieldGroups[].relatedList`) instead of `inlineEdit: true`, since each prompt asks for lines entered with the parent; test fixtures in spec, cli and app-shell are respelled to `'grid'` or the key is dropped. Docs (`field-types.mdx`, `fields.mdx`, `common-patterns.mdx`, `flows.mdx`) teach `'grid' | 'form'`. Stale comments in `project.view.ts`, `deriveRelatedLists.ts`, `validate-field-consumers.ts`, `score.ts` fixed. - Changeset `.changeset/35926-field-inline-edit-boolean-retired.md` (spec minor, cli patch, platform-objects patch, lint patch: the lint edit is comment text on unexported functions) with FROM → TO table and ADR-0087 disposition. File-surface notes: the claim listed `examples/app-showcase/src/ui/views/task.view.ts` and `packages/lint/src/showcase-shape.fixtures.ts`; both carry the VIEW-level `inlineEdit` (a different, live key) and are untouched. Producer-side files outside the listed surface, each a direct consequence of the narrowing: `field.form.ts`, `metadata-form-zod-reconciliation.test.ts`, the platform-objects translation bundles and their count pin, cli `score.ts` comment and four cli tests, the app-shell inspector test. ## Tests - New `packages/spec/src/data/field-inline-edit-boolean.pin.test.ts` (14): `true` / `false` refused at `inlineEdit` with `invalid_value` and the prescription; `'grid'`, `'form'`, absent parse; an unknown string keeps zod's own message; `@ts-expect-error` on a typed boolean; the conversion deletes a boolean on both collections and leaves `'grid'` / `'form'`; step-18 wiring. - No tree-scoped absence pin: the view-level `inlineEdit` is a live boolean key of the same name, so a text scan cannot tell the retired spelling from the live one. The sweep is the input type and the parse. <details><summary>Package runs on earlier head 5874e77 (after the first main merge at 57445a6; the second merge changed only the count pin and the changeset)</summary> - `@objectstack/spec` test: Test Files 890 passed (890), Tests 28186 passed, 1 todo; typecheck exit 0. - `@objectstack/lint` test: Test Files 231 passed (231), Tests 9567 passed; typecheck exit 0. - `@objectstack/cli` unit tier: Test Files 443 passed (443), Tests 6325 passed; typecheck exit 0. Integration tier declared to CI (no integration-tier file or spawn entry in the diff). - `@objectstack/platform-objects` test: Test Files 125 passed (125), Tests 2138 passed; typecheck exit 0. - `@object-ui/app-shell` `ObjectFieldInspector.relatedList-27054.test.tsx` (run from the `ui/` root): 8 passed. - `@objectstack/example-showcase` typecheck exit 0. - `test:repo` (vitest `repo` project) not run locally: the diff edits none of its tests and the derived list does not name it; CI's `Test Core` carries it. </details> ## Acceptance notes - Run history: the first dev ran on os-dev agent defaults (no model or effort passed explicitly, before the seat's tier/effort convention); its work up to `214ce2d72c` is carried. This head was produced by a seat-owned resume on the default tier (opus), effort high: a fresh worktree, `origin/main` merged (a merge, not a rebase) through `scripts/pm/os-regen-merge.sh`, the one deferred artifact (`content/docs/references/data/object.mdx`) regenerated from the merged tree, then every spec artifact gate re-run. - `packages/qa/scenarios/src/score/scenario-tags.ts` (`records-forms.master-detail-inline-edit`) credits `inlineEdit === true` as "edited inline". Since #35889 `inlineEdit` alone inlines nothing, and since this PR a boolean is refused at parse, so that branch can only see an unparsed stack. Not changed here; carried by #37127. - `docs/adr/0035-config-driven-master-detail.md` still shows `inlineEdit: true` as history; governed surface, not edited. - `skills/objectstack-data/rules/relationships.md` still teaches `inlineEdit: true` as "auto"; skills are out of this PR's surface; carried by #37042 (release-coupled: lands before the release that ships this narrowing). `check:skill-examples` is green (the block is unmarked). - Seven non-hand-translated locales (ar, de, fr, ko, pt-BR, ru, zh-Hant) carry the new form label filled with the source text; `check:i18n-coverage` reports none new. - Sister repos (hotcrm, cloud) not measured from this container: any stored or authored boolean there meets the conversion at rest and the prescription at authoring. - `pnpm check:platform-checklist` reads red on `origin/main` itself (57445a6 and a73edb3): `docs/qa/platform-checklist/areas/access-security.json` anchors `anonymousFormExplicitWithdrawals` in `packages/metadata-core/src/anonymous-form-intake.ts`, which no longer declares it. This diff touches neither file; the gate is outside per-PR CI and its nightly watchdog carries it. ## Verification First read (by risk): 1. `packages/spec/src/data/field.zod.ts` — the narrowed enum and `INLINE_EDIT_BOOLEAN_RETIRED`. 2. `packages/spec/src/conversions/entries/18/field-inline-edit-boolean-removed.ts` — the lossless delete and its fixture. 3. `packages/spec/src/data/field.form.ts` + `metadata-form-zod-reconciliation.test.ts` — the new form row and the ledger change. Two-minute check: `pnpm --filter @objectstack/spec exec vitest run src/data/field-inline-edit-boolean.pin.test.ts` — expect 14 passed, the refusal message starting with `` `field.inlineEdit: true` and `field.inlineEdit: false` were removed in @objectstack/spec 18.7.0 ``. <details><summary>Readings on head ca353cc (second main merge at bfd1049, merge commit f671e98)</summary> - Count pin `object-lifecycle-panel-echo-decisions.test.ts`: 35 passed, pinned at 824. i18n bundles regenerated with zero byte change; `check:generated`: all 14 artifacts up to date. - `pnpm --dir ui exec vitest run scripts/`: 172 files passed, 2 skipped. cli `migrate-meta-engine-guidance.test.ts`: 3 passed. Full build (`turbo run build --filter=!@objectstack/docs`): `VERDICT command-exit 0` after the post-merge `pnpm install --frozen-lockfile`. - `dispatch-gates --commands` derived 128 families; `--ran`: 128 accounted for, 127 run, 1 NOT-MEASURED: `check:type-check-debt` (its closure build never got a turn on the shared verify lock; CI's `Type Check · debt ledger` is success). - Full dogfood battery (`pnpm --filter @objectstack/dogfood test`, no shard, no path): `DOGFOOD_EXIT=0`, Test Files 487 passed, 3 skipped (490), Tests 4128 passed, 68 skipped (4196), 0 failed. Caveat: it ran in a locked batch whose last leg read an earlier failed build attempt (service-knowledge, outside the dogfood closure), so the lock line reads `batch-last-exit 1`, not the battery's own verdict; the seat review 7144293247 accepted it as head-pinned evidence. - PR check-runs on ca353cc: 61 success, 9 skipped, 0 failed, 0 pending; all eleven required contexts success, Check Changeset success. </details> <details><summary>Gates (local, earlier head 5874e77)</summary> - `check:generated` (after `gen:schema && gen:docs` over the merge, spec rebuilt from the merged tree): all 14 generated artifacts up to date. - `dispatch-gates --commands` derived 128 families; all 128 run with exit codes recorded; `--ran` reconciliation: 128 derived, 128 run, 0 NOT-MEASURED, 0 UNRUN (a derived zero). Exit 0 for 127, including `check:dual-build-cjs-loads` and `pnpm --dir ui exec vitest run scripts/` (172 files passed, 2 skipped), both NOT MEASURED on the previous head. Exit 1: `check:platform-checklist`, the main-side anchor named in Acceptance notes. - `check:type-check-debt` under the lock: OK, 129/132 type-checked, 0 above ledger. - Local-only state gates: `check:dev-prereqs` 0, `check:skill-frame-freshness` 0. - Full dogfood battery on this head (`pnpm --filter @objectstack/dogfood test` under the lock, no shard, no path, every package built from the merged tree): `VERDICT command-exit 0`, Test Files 487 passed, 3 skipped (490), Tests 4127 passed, 68 skipped (4195), no failure. - PR check-runs on 5874e77: 70 runs, 61 success, 9 skipped, none failed or pending; the eleven required contexts (Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate) all success, Check Changeset success. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_011y7As5bdhV5T4N9vpjmZzH)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 32c197e commit 236c804

49 files changed

Lines changed: 526 additions & 70 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@objectstack/cli': patch
4+
'@objectstack/platform-objects': patch
5+
'@objectstack/lint': patch
6+
---
7+
8+
feat(spec)!: retire the boolean arm of a relationship field's `inlineEdit` — `true` and `false` both read as the key left out
9+
10+
Clause-②: no (narrowing)
11+
Metadata-protocol: narrowed
12+
Skills-docs: follow-up #37042
13+
14+
<!-- adr-0087: registered field-inline-edit-boolean-removed, field-inline-edit-boolean-retired -->
15+
16+
**BREAKING** accept-set narrowing on `FieldSchema.inlineEdit` (`@objectstack/spec/data`), the inline form factor of a `lookup` or `master_detail` field. Since the field-group placement, a field group of the parent (`fieldGroups[].relatedList`) decides whether the parent's create and edit forms inline a child, and `inlineEdit` only picks the form factor of a placed child. Every reader of the key passes anything but `'grid'` and `'form'` as absent, so `true` (documented as "auto") and `false` both did exactly what leaving the key out does: the form factor is picked from the child's shape.
17+
18+
| FROM | TO |
19+
|:--|:--|
20+
| `inlineEdit: true` on a `lookup` / `master_detail` field | delete the key (the form factor is still picked from the child's shape), or write `'grid'` / `'form'` |
21+
| `inlineEdit: false` on a `lookup` / `master_detail` field | delete the key |
22+
| a child meant to be entered in the parent's form | name it in a field group of the parent: `fieldGroups: [{ key: 'lines', label: 'Lines', relatedList: '<child object>' }]` |
23+
24+
The one-line fix: delete a boolean `inlineEdit` wherever it is written; `os migrate meta --from 17 --write` deletes it from object sources. Writing one after upgrade fails `tsc` (the input type is `'grid' | 'form'`) and fails the parse with that prescription. `'grid'` and `'form'` parse unchanged. The view-level `inlineEdit` (a list view's in-cell editing switch) is a different key and is unchanged.
25+
26+
The retirement kit:
27+
28+
- **`@objectstack/spec`**: `FieldSchema.inlineEdit` is `z.enum(['grid', 'form'])`, and a boolean meets the prescription from the enum's own error map. The D2 conversion `field-inline-edit-boolean-removed` (lossless, retired from the load path) deletes a boolean `inlineEdit` from `objects[]` and `objectExtensions[]` field maps on every data-at-rest seam (stored rows, built artifacts, `os migrate meta`); the D3 entry `field-inline-edit-boolean-retired` names what the upgrade still owes: whether the child should be placed by a field group of the parent. The liveness ledger keeps the key `live` for the two surviving values, with the narrowing recorded.
29+
- **Field form** (`@objectstack/spec` `field.form.ts`, labels in `@objectstack/platform-objects`): with the boolean arm gone a select spells every value, so the field designer now offers `inlineEdit` as a `Grid` / `Form` select on `lookup` and `master_detail` fields; left unset, the form factor is picked from the child's shape. Before, the form left the key out because no widget could spell a boolean-or-string union.
30+
- **`@objectstack/lint`**: two doc comments in the field-consumer rule (`validate-field-consumers.ts`) now read a boolean `inlineEdit` as refused by the spec and as absent at the renderer; comment text on unexported functions only, so no shipped byte changes.
31+
- **`@objectstack/cli`**: the golden metadata-eval corpus places its line items with a field group of the parent, with `inlineEdit: 'grid'` as their form factor, instead of `inlineEdit: true`.

‎content/docs/automation/flows.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ screen flow can end on a result screen that links the records it created:
10331033

10341034
Set `config.objectName`
10351035
to instead render an object's **entire** create/edit form — including any
1036-
master-detail child grids (`inlineEdit`) — as one wizard step. The client
1036+
master-detail child grids (the children a field group of the object places) — as one wizard step. The client
10371037
renders the object form and, on save, **persists the record itself** (parent +
10381038
inline children atomically); the flow then resumes with the new record's id
10391039
bound to `config.idVariable` so a later step can reference it.

‎content/docs/data-modeling/field-types.mdx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ Parent-child relationship (cascading delete by default).
564564
| `reference` | `string` | **required** | Target (master) object name. A stored-metadata table is refused — see [below](#a-relationship-never-targets-a-stored-metadata-table) |
565565
| `referenceFilters` | `string[]` | — | **Removed** (#2377, ADR-0049) — no longer a recognized field property. `FieldSchema` is a strict object, so an unknown key is **rejected with guidance**, not silently stripped (ADR-0078): the error echoes the offending key and prescribes the replacement. Use structured `lookupFilters` + `dependsOn` instead; see [Relationships](/docs/data-modeling/relationships) |
566566
| `deleteBehavior` | `'restrict' \| 'cascade'` | `'cascade'` | Behavior when parent is deleted. `restrict` refuses the parent delete while children exist; `cascade` (and omitting the key) deletes the children with the parent. An explicit `set_null` is a **parse-time rejection** on this type (#9689) — a detail row cannot outlive its master; use a `lookup` if children must survive the parent |
567-
| `inlineEdit` | `boolean \| 'grid' \| 'form'` | — | Form factor of the child rows on the parent create/edit form (`true` = auto-pick, `'grid'`, or `'form'`). The form inlines the child only where a field group of the parent names it; `inlineEdit` alone inlines nothing |
567+
| `inlineEdit` | `'grid' \| 'form'` | — (auto-pick) | Form factor of the child rows on the parent create/edit form: `'grid'` or `'form'`; left out, the form factor is picked from the child's shape. The form inlines the child only where a field group of the parent names it; `inlineEdit` alone inlines nothing. A boolean is refused at parse: `true` and `false` both read as the key left out |
568568
| `inlineColumns` | `array` | — | Optional explicit inline grid columns |
569569
| `inlineAmountField` | `string` | — | Numeric child field used for the inline running total |
570570

@@ -574,7 +574,7 @@ Parent-child relationship (cascading delete by default).
574574
label: 'Order',
575575
type: 'master_detail',
576576
reference: 'order',
577-
inlineEdit: true,
577+
inlineEdit: 'grid',
578578
inlineAmountField: 'line_total',
579579
}
580580
```
@@ -594,7 +594,7 @@ fieldGroups: [
594594
A placed table keeps its tab, and the record page's Edit saves the record and its rows in one
595595
save. `relatedList: 'primary'` on the FK puts the table in the overview with no group.
596596

597-
**The inline grid in the Console.** With `inlineEdit: 'grid'` (or `true` resolving to the grid)
597+
**The inline grid in the Console.** With `inlineEdit: 'grid'` (or no `inlineEdit` resolving to the grid)
598598
the parent's form edits the children as rows of a table:
599599

600600
- **Columns.** Without `inlineColumns` the columns are derived from the child object. An
@@ -622,7 +622,7 @@ the parent's form edits the children as rows of a table:
622622
added, removed, duplicated or dragged, so the order is saved with the rows.
623623
- **Total.** `inlineAmountField` names the numeric child field summed into the footer.
624624

625-
`inlineEdit: true` picks the form factor itself: a child with a single file, image or avatar
625+
Without `inlineEdit` the form factor is picked from the child: a child with a single file, image or avatar
626626
field keeps the grid, while a form-only field (textarea, rich text, JSON, location) or several
627627
rich fields tips it to a per-row form. An explicit `'grid'` or `'form'` always wins.
628628

‎content/docs/data-modeling/fields.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ project: Field.masterDetail('project', {
238238
order: Field.masterDetail('order', {
239239
label: 'Order',
240240
required: true,
241-
inlineEdit: true,
241+
inlineEdit: 'grid',
242242
inlineTitle: 'Lines',
243243
inlineAmountField: 'line_total',
244244
}),
@@ -250,7 +250,7 @@ order: Field.masterDetail('order', {
250250
| `lookupFilters` | `{ field, operator, value, orEmpty? }[]` | Base filters restricting which records are selectable (structured, picker-honored). `value` is a literal or a `{ $record }` reference — see below |
251251
| `dependsOn` | `(string \| { field, param? })[]` | Sibling fields that scope the candidates by equality; the picker is gated until they are set |
252252
| `deleteBehavior` | `enum` | `'set_null'`, `'cascade'`, `'restrict'` |
253-
| `inlineEdit` | `boolean \| 'grid' \| 'form'` | Form factor of the child rows on the parent create/edit form (`true` = auto-pick, `'grid'`, or `'form'`). The form inlines the child only where a field group of the parent names it (`fieldGroups[].relatedList`); `inlineEdit` alone inlines nothing |
253+
| `inlineEdit` | `'grid' \| 'form'` | Form factor of the child rows on the parent create/edit form: `'grid'` or `'form'`; left out, it is picked from the child's shape (a boolean is refused at parse). The form inlines the child only where a field group of the parent names it (`fieldGroups[].relatedList`); `inlineEdit` alone inlines nothing |
254254
| `inlineColumns` | `array` | Optional explicit columns for the inline grid |
255255
| `inlineAmountField` | `string` | Optional numeric child field for the inline running total |
256256
| `lookupAutofill` | `{ target, source, overwrite? }[]` | Fields of this object a pick fills from the picked record (single-value `lookup` / `master_detail` only) — see below |

‎content/docs/getting-started/common-patterns.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Create a parent-child relationship between a master and its detail records. A `m
137137
type: 'master_detail',
138138
reference: 'order',
139139
deleteBehavior: 'cascade',
140-
inlineEdit: true,
140+
inlineEdit: 'grid',
141141
inlineAmountField: 'line_total',
142142
},
143143
product: { label: 'Product', type: 'lookup', reference: 'product' },

‎content/docs/references/data/field.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ const result = CurrencyConfigSchema.parse(data);
8282
| **mailAssociation** | `boolean` | optional | Inbound mail association (`email` fields only): TRUE marks this field as identifying a correspondent. When a mailbox service ingests a message, it associates the message with every record of this object whose value in this field equals one of the message's participant addresses (From, Sender, Reply-To, To and Cc, plus those of a forwarded message it carries; ASCII case-insensitive; the receiving mailbox's own addresses excluded; only within the mailbox's organization). A message no record matches waits in the mailbox's unassociated pool. Refused on any other type. Takes effect only where a mailbox service is composed. |
8383
| **deleteBehavior** | `Enum<'set_null' \| 'cascade' \| 'restrict'>` | optional (default: `"set_null"`) | What happens if referenced record is deleted |
8484
| **transferBehavior** | `Enum<'none' \| 'cascade'>` | optional (default: `"none"`) | What a Change Owner of the referenced (parent) record does to this object's records that point at it. 'none' (default): they keep their owner. 'cascade': the Change Owner dialog offers this relationship, and when it is ticked the records here that point at the parent and are owned by the parent's previous owner move to the new owner too, each as the caller's own update (a row the caller may not transfer is reported, never skipped; one call moves at most 500 rows). Only on lookup and master_detail fields, not on a reference to a sys_ object, and cascade only on an object that offers Change Owner itself (eligible, not controlled_by_parent, userActions.transfer not off). |
85-
| **inlineEdit** | `boolean \| Enum<'grid' \| 'form'>` | optional | How the parent's form edits these child records inline (atomic master-detail) when a field group of the parent names this child (fieldGroups[].relatedList); a child no group names is not inlined, whatever this says. true or absent = auto-pick grid/form by child shape; 'grid' = editable line-item grid; 'form' = list + per-row full form. |
85+
| **inlineEdit** | `Enum<'grid' \| 'form'>` | optional | How the parent's form edits these child records inline (atomic master-detail) when a field group of the parent names this child (fieldGroups[].relatedList); a child no group names is not inlined, whatever this says. Absent = auto-pick grid/form by child shape; 'grid' = editable line-item grid; 'form' = list + per-row full form. A boolean is refused: true and false both read as absent. |
8686
| **inlineTitle** | `string` | optional | Title for the inline master-detail grid |
8787
| **inlineColumns** | `{ name: string; label?: string; type?: Enum<'text' \| 'number' \| 'currency' \| 'date' \| 'datetime' \| 'time' \| 'select' \| …>; width?: number; … }[]` | optional | Explicit columns for the inline grid (derived from the child object when omitted). Each entry is a strict, name-keyed column (`{ name, label?, type?, … }` — objectui GridColumn); identity-only entries (`{ name }`) hydrate everything else from the child object's fields. Unknown keys and the retired `field` spelling are refused at parse. |
8888
| **inlineAmountField** | `string` | optional | Numeric child field summed for the inline grid total |
89-
| **relatedList** | `boolean \| 'primary'` | optional | Show this child collection as a related list on the parent's detail page (read-side mirror of inlineEdit). true = an auxiliary panel on the record page; absent = an auxiliary panel, except that a master_detail field becomes a body table when a field group of the parent names it (fieldGroups[].relatedList); false = hidden: the child object is not shown on the parent record page; 'primary' = a body table: part of the record's main content, shown as a full-width table in the record's detail body. Write true on a master_detail field to keep it an auxiliary panel even from a field group. 'primary' places a list and does not order it: the parent object's relatedLists orders the full-width tables and the auxiliary panels. The page layout is defined by ADR-0085. A derived related list (relatedList: 'primary') inherits its row order from the child object's DEFAULT list view sort — the isDefault view, or the first declared list item when none is marked default; wire spelling is sort=`<field>` / sort=-`<field>`, never $orderby. A child object with no list-view sort emits no ordering parameter, and rows fall back to record-id order. |
89+
| **relatedList** | `boolean \| 'primary'` | optional | Show this child collection as a related list on the parent's detail page (the record-page side; inlineEdit picks the form factor on the form side). true = an auxiliary panel on the record page; absent = an auxiliary panel, except that a master_detail field becomes a body table when a field group of the parent names it (fieldGroups[].relatedList); false = hidden: the child object is not shown on the parent record page; 'primary' = a body table: part of the record's main content, shown as a full-width table in the record's detail body. Write true on a master_detail field to keep it an auxiliary panel even from a field group. 'primary' places a list and does not order it: the parent object's relatedLists orders the full-width tables and the auxiliary panels. The page layout is defined by ADR-0085. A derived related list (relatedList: 'primary') inherits its row order from the child object's DEFAULT list view sort — the isDefault view, or the first declared list item when none is marked default; wire spelling is sort=`<field>` / sort=-`<field>`, never $orderby. A child object with no list-view sort emits no ordering parameter, and rows fall back to record-id order. |
9090
| **relatedListTitle** | `string` | optional | Title for the detail-page related list |
9191
| **relatedListColumns** | `string[]` | optional | Explicit columns for the detail-page related list, as child field names (e.g. ['name', 'status']); derived from the child object (highlightFields → field walk) when omitted. Strings only — labels, cell types and formatting always derive from the child object's field definitions; column objects are refused at parse. |
9292
| **relatedListFilter** | `any` | optional | Declarative default filter for the detail-page related list: AND-composed with the parent-relationship condition `{ [referenceField]: parentId }` — an authored constraint, never a user-editable suggestion. The related-list tab badge count honors the same composed filter, so counts match the visible rows. Canonical Query-DSL FilterCondition (the same dialect as a query `where`), e.g. `{ status: { $ne: 'deleted' } }` to hide soft-deleted children. |

0 commit comments

Comments
 (0)