From 2c7f83854a6d111b0a4b7c746bf70a6be1dcec5d Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Nov 2026 03:36:43 +0000 Subject: [PATCH 1/2] docs(spec): the page-slots-tabs-retired entry says a kind full page is drawn as authored on the desktop full record page only The replacement and acceptance criteria now match PAGE_SLOTS_TABS_REMEDY as qualified by the page describes: a phone and the side preview draw the standard record page, with the composed strip. Text only. Claude-Session: https://claude.ai/code/session_01FEkQ5kDGa1ViantgrfH797 Co-Authored-By: Claude --- .../entries/semantic/18.page-slots-tabs-retired.ts | 5 +++-- packages/spec/src/ui/page-slots-tabs-retirement.test.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/spec/src/migrations/entries/semantic/18.page-slots-tabs-retired.ts b/packages/spec/src/migrations/entries/semantic/18.page-slots-tabs-retired.ts index ed94665f92d..5e77fb15c42 100644 --- a/packages/spec/src/migrations/entries/semantic/18.page-slots-tabs-retired.ts +++ b/packages/spec/src/migrations/entries/semantic/18.page-slots-tabs-retired.ts @@ -18,7 +18,8 @@ export const entry: SemanticMigration = { + 'their order, set `relatedList` / `relatedList: \'primary\'` on the child\'s reference field; to ' + 'replace the Details body, author `slots.details`. A page that needs its own strip — a curated ' + 'tab set, a tab the object does not produce — is a `kind: \'full\'` page whose regions carry the ' - + 'header, the highlights, the `page:tabs` strip and the discussion, drawn as authored.', + + 'header, the highlights, the `page:tabs` strip and the discussion, drawn as authored on the desktop ' + + 'full record page (a phone and the side preview draw the standard record page, with the composed strip).', reason: 'An authored `tabs` slot replaced the whole synthesized strip, so the related lists, approvals, ' + 'attachments and history the platform composes from the object were dropped unless the author ' @@ -44,6 +45,6 @@ export const entry: SemanticMigration = { + 'highlights, the same `page:tabs` strip and the discussion. Then `objectstack validate` reports ' + 'nothing at `pages.N.slots.tabs`, saving each formerly affected page through the metadata API ' + 'succeeds, and each record page shows either the synthesized strip (and the columns at wider ' - + 'widths) or, for a `kind: \'full\'` page, the same tabs it showed before.', + + 'widths) or, for a `kind: \'full\'` page on the desktop full record page, the same tabs it showed before.', conversionIds: ['page-slots-tabs-removed'], }; diff --git a/packages/spec/src/ui/page-slots-tabs-retirement.test.ts b/packages/spec/src/ui/page-slots-tabs-retirement.test.ts index 9832c41dfe7..4f001d01078 100644 --- a/packages/spec/src/ui/page-slots-tabs-retirement.test.ts +++ b/packages/spec/src/ui/page-slots-tabs-retirement.test.ts @@ -9,7 +9,7 @@ * The slot replaced the whole synthesized tab strip — the related lists, the * approvals, attachments and history tabs were dropped unless re-added by hand — * and opted the page out of the record page's column tiers. A page that needs - * its own strip is a `kind: 'full'` page, drawn as authored. + * its own strip is a `kind: 'full'` page, drawn as authored on the desktop full record page. * * Bookkeeping shapes, pinned below: * 1. A `retiredKey()` tombstone on the slot map, so the parse refuses the slot From 483e6f51f3cc515a387e4c9d6e50f9c3a4e7e6e5 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Nov 2026 03:37:23 +0000 Subject: [PATCH 2/2] 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 --- .../35701-shipped-text-after-body-tables.md | 10 ++++++++++ .../areas/records-forms.json | 2 +- packages/spec/liveness/field.json | 2 +- packages/spec/liveness/object.json | 2 +- ...ld-group-related-list-side-card-refused.ts | 20 +++++++++---------- 5 files changed, 23 insertions(+), 13 deletions(-) create mode 100644 .changeset/35701-shipped-text-after-body-tables.md diff --git a/.changeset/35701-shipped-text-after-body-tables.md b/.changeset/35701-shipped-text-after-body-tables.md new file mode 100644 index 00000000000..11965ac8dd9 --- /dev/null +++ b/.changeset/35701-shipped-text-after-body-tables.md @@ -0,0 +1,10 @@ +--- +'@objectstack/spec': minor +--- + +docs(spec): two upgrade-guide entries state the record page rules as merged + +Clause-②: no +Metadata-protocol: semantic + +`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. diff --git a/docs/qa/platform-checklist/areas/records-forms.json b/docs/qa/platform-checklist/areas/records-forms.json index 46b2d4dffba..45aab96c89b 100644 --- a/docs/qa/platform-checklist/areas/records-forms.json +++ b/docs/qa/platform-checklist/areas/records-forms.json @@ -1723,7 +1723,7 @@ }, "steps": [ "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", - "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", + "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", "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)", "click next-page; capture the page-2 request; note the pager text ('Page 2 of 2', one row)", "diff page-1 and page-2 row ids for overlap", diff --git a/packages/spec/liveness/field.json b/packages/spec/liveness/field.json index 4f2f8b63ecf..5f37d85809c 100644 --- a/packages/spec/liveness/field.json +++ b/packages/spec/liveness/field.json @@ -552,7 +552,7 @@ "status": "live", "verifiedAt": "2026-10-29", "evidenceScope": "in-repo", - "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", + "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", "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." }, "relatedListTitle": { diff --git a/packages/spec/liveness/object.json b/packages/spec/liveness/object.json index c56a315b458..62b026870ab 100644 --- a/packages/spec/liveness/object.json +++ b/packages/spec/liveness/object.json @@ -138,7 +138,7 @@ "verifiedAt": "2026-10-29", "evidenceScope": "in-repo", "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)", - "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`." + "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." }, "visibleWhen": { "status": "live", diff --git a/packages/spec/src/migrations/entries/semantic/18.field-group-related-list-side-card-refused.ts b/packages/spec/src/migrations/entries/semantic/18.field-group-related-list-side-card-refused.ts index e9dd79c707a..5ff95cbb4ec 100644 --- a/packages/spec/src/migrations/entries/semantic/18.field-group-related-list-side-card-refused.ts +++ b/packages/spec/src/migrations/entries/semantic/18.field-group-related-list-side-card-refused.ts @@ -2,10 +2,10 @@ import type { SemanticMigration } from '../../types.js'; -// #27478 (ruling B on #27055) — a field group's `relatedList` only POSITIONS a -// body table among the field sections; whether a related list is a body table -// is decided once, by the relationship's own FK keys -// (`isBodyTableRelationship`, `data/related-list-body-table.ts`). A group that +// #27478 (ruling B on #27055) — a field group's `relatedList` places only what +// the relationship's own FK keys let it place: a `'primary'` list, or (since +// #35597) a plain master_detail with no relatedList, whatever its inlineEdit +// (`isGroupPlaceableRelationship`, `data/related-list-body-table.ts`). A group that // names a side card or a hidden list is refused at `defineStack` and at the // runtime object publish door (`related-list-group-not-body`). Semantic only, // with no D2 conversion: which of the two remedies the author meant (promote @@ -15,21 +15,21 @@ export const entry: SemanticMigration = { surface: 'objects[].fieldGroups[].relatedList (data.ObjectFieldGroupSchema.relatedList) naming an inbound ' + 'relationship that is not a body table — a lookup or master_detail FK on the child declaring ' - + 'relatedList true or false, a plain master_detail with no inlineEdit, a lookup with no relatedList, ' + + 'relatedList true or false, a lookup with no relatedList, ' + 'or a bare child name one of whose FKs is any of those', replacement: 'one of two edits, the author\'s choice. To keep the table at the group: make the relationship a ' - + 'body table on the child\'s FK — `relatedList: \'primary\'`, or for an inline-edited master_detail ' + + 'body table on the child\'s FK — `relatedList: \'primary\'`, or for a master_detail ' + 'remove an explicit `relatedList: true` — or, for a bare child name whose other FK is a side card, ' + 'name the body table\'s FK as `object.field`. To keep the list a side card: remove the group\'s ' + '`relatedList` (and the group itself, if it holds nothing else)', reason: 'A field group\'s `relatedList` was described as placing a related list\'s body table at the ' - + 'group, but the record page draws only lists that ARE body tables by the FK\'s own keys ' - + '(`relatedList: \'primary\'`, or a master_detail FK that sets inlineEdit and declares no ' - + 'relatedList), so a group naming a side card or a hidden list parsed, published and drew nothing ' + + 'group, but the record page draws at a group only a list the FK\'s own keys let it place ' + + '(`relatedList: \'primary\'`, or a master_detail FK that declares no relatedList, which the ' + + 'group makes a body table), so a group naming a side card or a hidden list parsed, published and drew nothing ' + 'at the group — silently; Studio\'s group inspector offered every inbound relationship, so the ' - + 'public door produced it. Ruling B keeps body-ness in one place (the FK) instead of giving the ' + + 'public door produced it. Ruling B keeps the FK\'s declared relatedList authoritative instead of giving the ' + 'group a second, disagreeing source, so the group is refused rather than honoured. The ' + 'refusal is a cross-object judgement, not a parse: `defineStack` (os validate, os build) and the ' + 'object publish door refuse it, naming each FK that is not a body table and the remedy. There is '