Skip to content

Commit 483e6f5

Browse files
committed
docs(spec): the field-group side-card refusal entry states the placeable set as widened
A field group may place a master_detail FK that declares no relatedList, inlineEdit or not, so the entry no longer lists that shape as refused, and its remedy and reason name the merged predicate. The liveness notes and the checklist's relatedList describe quote follow. Text only. Claude-Session: https://claude.ai/code/session_01FEkQ5kDGa1ViantgrfH797 Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2c7f838 commit 483e6f5

5 files changed

Lines changed: 23 additions & 13 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/spec': minor
3+
---
4+
5+
docs(spec): two upgrade-guide entries state the record page rules as merged
6+
7+
Clause-②: no
8+
Metadata-protocol: semantic
9+
10+
`field-group-related-list-side-card-refused` no longer lists a plain `master_detail` with no `inlineEdit` among the shapes a field group may not name: a group may place a `master_detail` FK that declares no `relatedList`, `inlineEdit` or not, and makes it a body table. Its remedy and reason name that rule. `page-slots-tabs-retired` says a `kind: 'full'` page is drawn as authored on the desktop full record page; a phone and the side preview draw the standard record page. No rule, refusal, schema or entry `id` changes, and `os migrate meta` lists the same entries for the same stacks.

‎docs/qa/platform-checklist/areas/records-forms.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1723,7 +1723,7 @@
17231723
},
17241724
"steps": [
17251725
"open the Northwind account's full record page: from /_console/apps/com.example.showcase/showcase_account, clicking Northwind opens a ~720 px record DRAWER (the console's default record-open mode, ui/packages/app-shell/src/views/ObjectView.tsx), not the column-tier page steps[1] reads — open it full page with the drawer's 'Open as full page' (↗), or load /_console/apps/com.example.showcase/showcase_account/record/ID directly",
1726-
"screenshot at a column-tier width (a record view of 760 px or wider, which a 1440×900 window gives; ui/packages/plugin-detail/src/synth/recordPageColumns.ts#recordPageTierFor); enumerate the related lists. The page draws the record's tab row — Overview (概览), one tab per related list in its order (an empty one muted, with no number), Attachments, Approvals (while a request exists), then Activity (动态) last with its count, the tabs that do not fit folded into its 'More N' (更多 N) dropdown (ui/packages/plugin-detail/src/RecordPageColumns.tsx, the tab row; ui/packages/plugin-detail/src/RecordTabRow.tsx; #35595) over the columns, so a role=tab strip is expected: enumerate the lists from it (QA run #33861 read the earlier records-first row). The primary lists (relatedList: 'primary' — Invoices on showcase_invoice.account, Projects on showcase_project.account) are body tables in the Overview tab's details column, and every non-primary child — Contacts among them — is a tab of its own whose face is the whole list with its pager; on Overview, the right rail's 其他相关 (Other related) group draws a card for each such list that HAS records, naming at most 3 rows with no pager (ui/packages/plugin-detail/src/RecordSummaryRail.tsx, #35596) (packages/spec/src/data/field.zod.ts relatedList: 'true/absent = shown as a supporting list, a side card in the record's related column (the shared \"Related\" tab on the tabbed page)'). Below 760 px the same tab row draws over one column: the details, then the rail",
1726+
"screenshot at a column-tier width (a record view of 760 px or wider, which a 1440×900 window gives; ui/packages/plugin-detail/src/synth/recordPageColumns.ts#recordPageTierFor); enumerate the related lists. The page draws the record's tab row — Overview (概览), one tab per related list in its order (an empty one muted, with no number), Attachments, Approvals (while a request exists), then Activity (动态) last with its count, the tabs that do not fit folded into its 'More N' (更多 N) dropdown (ui/packages/plugin-detail/src/RecordPageColumns.tsx, the tab row; ui/packages/plugin-detail/src/RecordTabRow.tsx; #35595) over the columns, so a role=tab strip is expected: enumerate the lists from it (QA run #33861 read the earlier records-first row). The primary lists (relatedList: 'primary' — Invoices on showcase_invoice.account, Projects on showcase_project.account) are body tables in the Overview tab's details column, and every non-primary child — Contacts among them — is a tab of its own whose face is the whole list with its pager; on Overview, the right rail's 其他相关 (Other related) group draws a card for each such list that HAS records, naming at most 3 rows with no pager (ui/packages/plugin-detail/src/RecordSummaryRail.tsx, #35596) (packages/spec/src/data/field.zod.ts relatedList: '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)'). Below 760 px the same tab row draws over one column: the details, then the rail",
17271727
"open Contacts' whole list: its card's header or count chip enlarges it in place (?related=showcase_contact.account); capture the page-1 data request. An enlarged list whose block names no limit pages 25 rows (ui/packages/plugin-detail/src/RecordPageColumns.tsx, ENLARGED_PAGE_SIZE), so the pager reads 'Page 1 of 2' for Northwind's 26 contacts (QA run #27438)",
17281728
"click next-page; capture the page-2 request; note the pager text ('Page 2 of 2', one row)",
17291729
"diff page-1 and page-2 row ids for overlap",

‎packages/spec/liveness/field.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@
552552
"status": "live",
553553
"verifiedAt": "2026-10-29",
554554
"evidenceScope": "in-repo",
555-
"evidence": "ui/packages/app-shell/src/utils/deriveRelatedLists.ts:367 skips the FK entirely when relatedList is false; ui/packages/app-shell/src/utils/deriveRelatedLists.ts#deriveRelatedLists marks the derived list isPrimary (a body table) by packages/spec/src/data/related-list-body-table.ts#isBodyTableRelationship: when it is 'primary', or when it is absent on a master_detail FK that sets inlineEdit; ui/packages/app-shell/src/views/RecordDetailView.tsx:1959 calls deriveRelatedLists and renders what it returns, consuming the derived structure rather than the key",
555+
"evidence": "ui/packages/app-shell/src/utils/deriveRelatedLists.ts:367 skips the FK entirely when relatedList is false; ui/packages/app-shell/src/utils/deriveRelatedLists.ts#deriveRelatedLists marks the derived list isPrimary (a body table) by packages/spec/src/data/related-list-body-table.ts#isBodyTableRelationship: when it is 'primary', or when it is absent on a master_detail FK that a parent field group places; ui/packages/app-shell/src/views/RecordDetailView.tsx:1959 calls deriveRelatedLists and renders what it returns, consuming the derived structure rather than the key",
556556
"note": "RE-CITED 2026-08-10 (#7133/#7142): the old split citation's RecordDetailView half went to prose — every `relatedList` occurrence in that file is now a comment (:1013, :1847, :1857, :1864). The working half is deriveRelatedLists, which is what branches on the value. RecordDetailView is kept, explicitly labelled as the consumer of the DERIVED list, so the next re-audit does not read its zero key-hits as rot a second time. Verdict unchanged: LIVE. 2026-10-28 (#27069): 'primary' re-read as PLACEMENT (the record's main content: a body table, its own tab on the tabbed page) rather than order — the parent object's `relatedLists` orders the lists now — and an absent relatedList on an inline-edited master_detail FK is 'primary' by default (`isMainContentList`). Re-cited to the moved lines; verdict unchanged: LIVE. 2026-10-29 (#27478): the body-table rule moved into the spec as `isBodyTableRelationship`, the one predicate the record page (deriveRelatedLists isPrimary, RecordDetailView isBody), Studio and the refusal of a field group naming a side card read; RecordDetailView's own copy, which drew an inline-edited master_detail declaring relatedList: true as a body table, is gone. Verdict unchanged: LIVE."
557557
},
558558
"relatedListTitle": {

‎packages/spec/liveness/object.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"verifiedAt": "2026-10-29",
139139
"evidenceScope": "in-repo",
140140
"evidence": "ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts#bodyTablePlacement (reads each group's relatedList and draws the body table it names at the group's position in the details column); packages/spec/src/stack.zod.ts#collectRelatedListNameErrors (the AUTHORING judgement at defineStack: a name matching no inbound relationship, and a name naming a relationship that is not a body table); packages/lint/src/validate-related-list-refs.ts#validateRelatedListRefs (the same judgement at the object publish door: related-list-ref-unknown and related-list-group-not-body, at error)",
141-
"note": "#27069. A group carrying it stands for one related list's table in the record's details column (an inbound relationship, a child object name or `object.field`, as `relatedLists` spells one) instead of a section of fields; a field naming such a group as its `group` is refused at parse. RE-GRADED planned → live 2026-10-29 (#27478): the record page v3 body layout (#27055, PR #27473) draws the placement, and ruling B on #27478 narrowed the value to name BODY TABLES only — the group positions a list the FK already makes a body table (`relatedList: 'primary'`, or an inline-edited master_detail with no relatedList; `packages/spec/src/data/related-list-body-table.ts#isBodyTableRelationship`, the one predicate the record page and Studio read) and never promotes a side card. A name matching no inbound lookup / master_detail field, or naming a side card or a hidden list, is refused by `defineStack` and at the object publish door; Studio's group inspector offers body tables only. D3 entry `field-group-related-list-side-card-refused`."
141+
"note": "#27069. A group carrying it stands for one related list's table in the record's details column (an inbound relationship, a child object name or `object.field`, as `relatedLists` spells one) instead of a section of fields; a field naming such a group as its `group` is refused at parse. RE-GRADED planned → live 2026-10-29 (#27478): the record page v3 body layout (#27055, PR #27473) draws the placement, and ruling B on #27478 narrowed the value to name BODY TABLES only — the group positions a list the FK already makes a body table (`relatedList: 'primary'`, or an inline-edited master_detail with no relatedList; `packages/spec/src/data/related-list-body-table.ts#isBodyTableRelationship`, the one predicate the record page and Studio read) and never promotes a side card. A name matching no inbound lookup / master_detail field, or naming a side card or a hidden list, is refused by `defineStack` and at the object publish door; Studio's group inspector offers body tables only. D3 entry `field-group-related-list-side-card-refused`. 2026-11-21 (#35597, #35889): a group may also place a plain master_detail with no relatedList, inlineEdit or not, and so makes it a body table (`isGroupPlaceableRelationship`); the refused set is otherwise unchanged. Verdict unchanged: LIVE."
142142
},
143143
"visibleWhen": {
144144
"status": "live",

‎packages/spec/src/migrations/entries/semantic/18.field-group-related-list-side-card-refused.ts‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
import type { SemanticMigration } from '../../types.js';
44

5-
// #27478 (ruling B on #27055) — a field group's `relatedList` only POSITIONS a
6-
// body table among the field sections; whether a related list is a body table
7-
// is decided once, by the relationship's own FK keys
8-
// (`isBodyTableRelationship`, `data/related-list-body-table.ts`). A group that
5+
// #27478 (ruling B on #27055) — a field group's `relatedList` places only what
6+
// the relationship's own FK keys let it place: a `'primary'` list, or (since
7+
// #35597) a plain master_detail with no relatedList, whatever its inlineEdit
8+
// (`isGroupPlaceableRelationship`, `data/related-list-body-table.ts`). A group that
99
// names a side card or a hidden list is refused at `defineStack` and at the
1010
// runtime object publish door (`related-list-group-not-body`). Semantic only,
1111
// with no D2 conversion: which of the two remedies the author meant (promote
@@ -15,21 +15,21 @@ export const entry: SemanticMigration = {
1515
surface:
1616
'objects[].fieldGroups[].relatedList (data.ObjectFieldGroupSchema.relatedList) naming an inbound '
1717
+ 'relationship that is not a body table — a lookup or master_detail FK on the child declaring '
18-
+ 'relatedList true or false, a plain master_detail with no inlineEdit, a lookup with no relatedList, '
18+
+ 'relatedList true or false, a lookup with no relatedList, '
1919
+ 'or a bare child name one of whose FKs is any of those',
2020
replacement:
2121
'one of two edits, the author\'s choice. To keep the table at the group: make the relationship a '
22-
+ 'body table on the child\'s FK — `relatedList: \'primary\'`, or for an inline-edited master_detail '
22+
+ 'body table on the child\'s FK — `relatedList: \'primary\'`, or for a master_detail '
2323
+ 'remove an explicit `relatedList: true` — or, for a bare child name whose other FK is a side card, '
2424
+ 'name the body table\'s FK as `object.field`. To keep the list a side card: remove the group\'s '
2525
+ '`relatedList` (and the group itself, if it holds nothing else)',
2626
reason:
2727
'A field group\'s `relatedList` was described as placing a related list\'s body table at the '
28-
+ 'group, but the record page draws only lists that ARE body tables by the FK\'s own keys '
29-
+ '(`relatedList: \'primary\'`, or a master_detail FK that sets inlineEdit and declares no '
30-
+ 'relatedList), so a group naming a side card or a hidden list parsed, published and drew nothing '
28+
+ 'group, but the record page draws at a group only a list the FK\'s own keys let it place '
29+
+ '(`relatedList: \'primary\'`, or a master_detail FK that declares no relatedList, which the '
30+
+ 'group makes a body table), so a group naming a side card or a hidden list parsed, published and drew nothing '
3131
+ 'at the group — silently; Studio\'s group inspector offered every inbound relationship, so the '
32-
+ 'public door produced it. Ruling B keeps body-ness in one place (the FK) instead of giving the '
32+
+ 'public door produced it. Ruling B keeps the FK\'s declared relatedList authoritative instead of giving the '
3333
+ 'group a second, disagreeing source, so the group is refused rather than honoured. The '
3434
+ 'refusal is a cross-object judgement, not a parse: `defineStack` (os validate, os build) and the '
3535
+ 'object publish door refuse it, naming each FK that is not a body table and the remedy. There is '

0 commit comments

Comments
 (0)