From 6c5199bbc179a64231a49c9bdcfef2d45e505c2a Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 03:07:30 +0000 Subject: [PATCH 1/3] fix: record page descriptions no longer claim a key-field strip or stage path The default record page draws no record:highlights strip and no record:path stage path; the stage is the status tag beside the record name. Reword the highlightFields describe, JSDoc and Studio help text (every metadata-form locale), the stageField and RECORD_HIGHLIGHTS_MAX doc comments, the record:details hideFields description, Studio's lifecycle-field help, the os explain text of two lint rules, and comments in the examples, the dogfood test and the synthesizer. Regenerate the spec references, the en metadata-form bundle, the SDUI manifest and the component reference. On a phone the default record page no longer passes a highlight list to buildDefaultPageSchema, which never read it; the page and the phone subtitle are unchanged. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv --- .../35943-record-page-strip-descriptions.md | 22 +++++++++++++++++++ content/docs/references/api/metadata.mdx | 2 +- content/docs/references/data/object.mdx | 2 +- content/docs/references/system/migration.mdx | 4 ++-- content/docs/ui/components/record.mdx | 2 +- .../app-crm/src/objects/activity.object.ts | 5 +++-- examples/app-crm/src/objects/lead.object.ts | 5 +++-- .../app-crm/src/objects/opportunity.object.ts | 5 +++-- .../src/data/objects/account.object.ts | 8 +++---- .../src/data/objects/semantic-zoo.object.ts | 16 +++++++------- packages/lint/src/rule-explanations.ts | 6 ++--- .../src/validate-object-field-refs.test.ts | 2 +- .../lint/src/validate-object-field-refs.ts | 4 ++-- .../ar.metadata-forms.generated.ts | 2 +- .../de.metadata-forms.generated.ts | 2 +- .../en.metadata-forms.generated.ts | 2 +- .../es-ES.metadata-forms.generated.ts | 2 +- .../fr.metadata-forms.generated.ts | 2 +- .../ja-JP.metadata-forms.generated.ts | 2 +- .../ko.metadata-forms.generated.ts | 2 +- .../pt-BR.metadata-forms.generated.ts | 2 +- .../ru.metadata-forms.generated.ts | 2 +- .../zh-CN.metadata-forms.generated.ts | 2 +- .../zh-Hant.metadata-forms.generated.ts | 2 +- ...sys-email.highlight-fields-resolve.test.ts | 3 ++- .../src/objects/sys-record-share.object.ts | 11 +++++----- .../test/semantic-roles.dogfood.test.ts | 7 +++--- packages/spec/liveness/object.json | 2 +- packages/spec/src/data/object.form.ts | 2 +- packages/spec/src/data/object.zod.ts | 19 ++++++++++------ packages/spec/src/ui/component.zod.ts | 14 +++++------- scripts/sdui-manifest.record.json | 4 ++-- sdui.manifest.json | 2 +- .../app-shell/src/views/RecordDetailView.tsx | 9 ++++---- .../app-shell/src/views/recordPhoneHeader.ts | 13 +++++------ ui/packages/fields/src/RecordHoverCard.tsx | 2 +- ui/packages/i18n/src/namespaces/studio/en.ts | 4 ++-- ui/packages/i18n/src/namespaces/studio/zh.ts | 4 ++-- ui/packages/plugin-detail/README.md | 2 +- ui/packages/plugin-detail/src/index.tsx | 2 +- .../src/renderers/record-details.tsx | 13 +++++------ .../src/synth/buildDefaultPageSchema.ts | 15 +++++++------ ui/packages/types/src/layout.ts | 5 +++-- 43 files changed, 133 insertions(+), 105 deletions(-) create mode 100644 .changeset/35943-record-page-strip-descriptions.md diff --git a/.changeset/35943-record-page-strip-descriptions.md b/.changeset/35943-record-page-strip-descriptions.md new file mode 100644 index 00000000000..a0810b43f2f --- /dev/null +++ b/.changeset/35943-record-page-strip-descriptions.md @@ -0,0 +1,22 @@ +--- +'@objectstack/spec': patch +'@objectstack/platform-objects': patch +'@objectstack/lint': patch +'@object-ui/plugin-detail': patch +'@object-ui/i18n': patch +'@object-ui/app-shell': patch +--- + +fix: descriptions and help text no longer say the default record page draws a key-field strip or a stage path + +Clause-②: no +Metadata-protocol: none + +The default record page draws no key-field strip and no stage path: the stage is the status tag beside the record name. These texts said otherwise and now say what each key drives: + +- `@objectstack/spec`: the `highlightFields` describe ("Drives default list and related-list columns, cards, hover cards, previews and the record picker; the default record page draws no strip from it") and its Studio help text. The `stageField` and `RECORD_HIGHLIGHTS_MAX` doc comments say the header's status tag reads the stage and the count cuts only a strip a page places in its `highlights` slot. +- `@objectstack/platform-objects`: the `highlightFields` help text in every metadata-form locale. +- `@objectstack/lint`: the `os explain` text of `object-field-ref-unknown` and `semantic-role-field-unprovisioned` names the hover card and the record picker in place of the strip. +- `@object-ui/plugin-detail`: the `record:details` `hideFields` description no longer says the default page fills it. The key is still accepted. +- `@object-ui/i18n`: Studio's lifecycle-field help (`stageField`, and its "None" choice) talks about the status tag, not a progress bar. +- `@object-ui/app-shell`: on a phone the default record page no longer hands the synthesizer a highlight list it never read. The page looks the same, and the subtitle under the record name is unchanged. diff --git a/content/docs/references/api/metadata.mdx b/content/docs/references/api/metadata.mdx index 204bb7cf90e..5bd07c2600d 100644 --- a/content/docs/references/api/metadata.mdx +++ b/content/docs/references/api/metadata.mdx @@ -961,7 +961,7 @@ Metadata query with filtering, sorting, and pagination | **displayNameField** | `string` | optional | [DEPRECATED → nameField] Field to use as the record display name (e.g., "name", "title"). Accepted as an alias for nameField. | | **titleFormat** | `string \| { dialect: 'template'; source?: string; ast?: any; meta?: object }` | optional | [DEPRECATED → nameField (ADR-0079)] Render-only title template; the server cannot return or query it, and an explicit nameField now takes precedence. An object definition that declares it is refused at the metadata save gate and by os validate; a stored object that carries it still parses and reads. Migrate a single-field title to nameField; a composite title that import, sort or search must match to a stored computed field (a non-formula field with an expression, computed and stored on every write) designated as nameField — a text formula designated as nameField stays legal for a title shown for display only. Placeholders may be written `{{field}}` or `{field}` — the title renderers treat the two as equivalent, normalizing `{{field}}` to `{field}` before substituting; neither spelling is judged at parse time. | | **imageField** | `string` | optional | The record's picture: names the field the record page header (record chrome) draws beside the title — one object-level declaration every record detail page reads, not a per-page header prop. Must name a field of this object whose type is `image` or `avatar`; any other name is refused. A record whose field is empty shows no picture (no initials or placeholder). | -| **highlightFields** | `string[]` | optional | [ADR-0085] Ordered most-important fields; first entry wins where only one fits. Drives default columns, cards, previews, detail highlight strip. Renamed from compactLayout. | +| **highlightFields** | `string[]` | optional | [ADR-0085] Ordered most-important fields; first entry wins where only one fits. Drives default list and related-list columns, cards, hover cards, previews and the record picker; the default record page draws no strip from it. Renamed from compactLayout. | | **relatedLists** | `string[]` | optional | Business order of this object's related lists on its record page, most important first. Each entry is a child object name (e.g. "task"), or object.field when that child has more than one relationship to this object (e.g. "event.related_to"). Listed relationships come first in this order; unlisted ones follow in the derived order (owned master_detail children, then lookup children). An entry whose child is in the stack but has no inbound lookup / master_detail field to this object is refused everywhere. An entry whose child exists nowhere is refused by os validate / os build (which leave a sys_ / cloud_ / ai_ name to the runtime) and by a metadata write that names no package; a write into a package stores it, since a child outside the package may be a downstream package's object that points here, and the record page places nothing for it. It orders only: relatedList: false on the relationship still hides a list, and relatedList: 'primary' still places a list in the record's body, so the order applies among the body tables and among the side cards. | | **stageField** | `string \| false` | optional | [ADR-0085] Lifecycle stage field (linear/ordered), or false to declare the status field non-linear and suppress stage heuristics. Absent = heuristic detection allowed. When the named field carries options, it must be a single-value `select` / `radio` with inline `options`, each declaring its `kind` ('open' / 'won' / 'lost'); a picklist-backed or multi-value stage field is refused. A name that resolves to no declared field, or a field with no options, is not judged at parse. | | **editMode** | `Enum<'modal' \| 'page'>` | optional | Edit-interaction intent for records of this object: 'modal' opens the edit form as a dialog over the current view; 'page' navigates to a dedicated full-page edit route. Absent = the renderer picks its own default (objectui defaults to modal). Cross-renderer intent, not pixel styling (family). | diff --git a/content/docs/references/data/object.mdx b/content/docs/references/data/object.mdx index ad896cf2693..cda27f266c6 100644 --- a/content/docs/references/data/object.mdx +++ b/content/docs/references/data/object.mdx @@ -173,7 +173,7 @@ const result = ApiMethod.parse(data); | **displayNameField** | `string` | optional | [DEPRECATED → nameField] Field to use as the record display name (e.g., "name", "title"). Accepted as an alias for nameField. | | **titleFormat** | `string \| { dialect: 'template'; source?: string; ast?: any; meta?: object }` | optional | [DEPRECATED → nameField (ADR-0079)] Render-only title template; the server cannot return or query it, and an explicit nameField now takes precedence. An object definition that declares it is refused at the metadata save gate and by os validate; a stored object that carries it still parses and reads. Migrate a single-field title to nameField; a composite title that import, sort or search must match to a stored computed field (a non-formula field with an expression, computed and stored on every write) designated as nameField — a text formula designated as nameField stays legal for a title shown for display only. Placeholders may be written `{{field}}` or `{field}` — the title renderers treat the two as equivalent, normalizing `{{field}}` to `{field}` before substituting; neither spelling is judged at parse time. | | **imageField** | `string` | optional | The record's picture: names the field the record page header (record chrome) draws beside the title — one object-level declaration every record detail page reads, not a per-page header prop. Must name a field of this object whose type is `image` or `avatar`; any other name is refused. A record whose field is empty shows no picture (no initials or placeholder). | -| **highlightFields** | `string[]` | optional | [ADR-0085] Ordered most-important fields; first entry wins where only one fits. Drives default columns, cards, previews, detail highlight strip. Renamed from compactLayout. | +| **highlightFields** | `string[]` | optional | [ADR-0085] Ordered most-important fields; first entry wins where only one fits. Drives default list and related-list columns, cards, hover cards, previews and the record picker; the default record page draws no strip from it. Renamed from compactLayout. | | **relatedLists** | `string[]` | optional | Business order of this object's related lists on its record page, most important first. Each entry is a child object name (e.g. "task"), or object.field when that child has more than one relationship to this object (e.g. "event.related_to"). Listed relationships come first in this order; unlisted ones follow in the derived order (owned master_detail children, then lookup children). An entry whose child is in the stack but has no inbound lookup / master_detail field to this object is refused everywhere. An entry whose child exists nowhere is refused by os validate / os build (which leave a sys_ / cloud_ / ai_ name to the runtime) and by a metadata write that names no package; a write into a package stores it, since a child outside the package may be a downstream package's object that points here, and the record page places nothing for it. It orders only: relatedList: false on the relationship still hides a list, and relatedList: 'primary' still places a list in the record's body, so the order applies among the body tables and among the side cards. | | **stageField** | `string \| false` | optional | [ADR-0085] Lifecycle stage field (linear/ordered), or false to declare the status field non-linear and suppress stage heuristics. Absent = heuristic detection allowed. When the named field carries options, it must be a single-value `select` / `radio` with inline `options`, each declaring its `kind` ('open' / 'won' / 'lost'); a picklist-backed or multi-value stage field is refused. A name that resolves to no declared field, or a field with no options, is not judged at parse. | | **editMode** | `Enum<'modal' \| 'page'>` | optional | Edit-interaction intent for records of this object: 'modal' opens the edit form as a dialog over the current view; 'page' navigates to a dedicated full-page edit route. Absent = the renderer picks its own default (objectui defaults to modal). Cross-renderer intent, not pixel styling (family). | diff --git a/content/docs/references/system/migration.mdx b/content/docs/references/system/migration.mdx index 095ac234857..6bcdb385853 100644 --- a/content/docs/references/system/migration.mdx +++ b/content/docs/references/system/migration.mdx @@ -353,7 +353,7 @@ Create a new object | **displayNameField** | `string` | optional | [DEPRECATED → nameField] Field to use as the record display name (e.g., "name", "title"). Accepted as an alias for nameField. | | **titleFormat** | `string \| { dialect: 'template'; source?: string; ast?: any; meta?: object }` | optional | [DEPRECATED → nameField (ADR-0079)] Render-only title template; the server cannot return or query it, and an explicit nameField now takes precedence. An object definition that declares it is refused at the metadata save gate and by os validate; a stored object that carries it still parses and reads. Migrate a single-field title to nameField; a composite title that import, sort or search must match to a stored computed field (a non-formula field with an expression, computed and stored on every write) designated as nameField — a text formula designated as nameField stays legal for a title shown for display only. Placeholders may be written `{{field}}` or `{field}` — the title renderers treat the two as equivalent, normalizing `{{field}}` to `{field}` before substituting; neither spelling is judged at parse time. | | **imageField** | `string` | optional | The record's picture: names the field the record page header (record chrome) draws beside the title — one object-level declaration every record detail page reads, not a per-page header prop. Must name a field of this object whose type is `image` or `avatar`; any other name is refused. A record whose field is empty shows no picture (no initials or placeholder). | -| **highlightFields** | `string[]` | optional | [ADR-0085] Ordered most-important fields; first entry wins where only one fits. Drives default columns, cards, previews, detail highlight strip. Renamed from compactLayout. | +| **highlightFields** | `string[]` | optional | [ADR-0085] Ordered most-important fields; first entry wins where only one fits. Drives default list and related-list columns, cards, hover cards, previews and the record picker; the default record page draws no strip from it. Renamed from compactLayout. | | **relatedLists** | `string[]` | optional | Business order of this object's related lists on its record page, most important first. Each entry is a child object name (e.g. "task"), or object.field when that child has more than one relationship to this object (e.g. "event.related_to"). Listed relationships come first in this order; unlisted ones follow in the derived order (owned master_detail children, then lookup children). An entry whose child is in the stack but has no inbound lookup / master_detail field to this object is refused everywhere. An entry whose child exists nowhere is refused by os validate / os build (which leave a sys_ / cloud_ / ai_ name to the runtime) and by a metadata write that names no package; a write into a package stores it, since a child outside the package may be a downstream package's object that points here, and the record page places nothing for it. It orders only: relatedList: false on the relationship still hides a list, and relatedList: 'primary' still places a list in the record's body, so the order applies among the body tables and among the side cards. | | **stageField** | `string \| false` | optional | [ADR-0085] Lifecycle stage field (linear/ordered), or false to declare the status field non-linear and suppress stage heuristics. Absent = heuristic detection allowed. When the named field carries options, it must be a single-value `select` / `radio` with inline `options`, each declaring its `kind` ('open' / 'won' / 'lost'); a picklist-backed or multi-value stage field is refused. A name that resolves to no declared field, or a field with no options, is not judged at parse. | | **editMode** | `Enum<'modal' \| 'page'>` | optional | Edit-interaction intent for records of this object: 'modal' opens the edit form as a dialog over the current view; 'page' navigates to a dedicated full-page edit route. Absent = the renderer picks its own default (objectui defaults to modal). Cross-renderer intent, not pixel styling (family). | @@ -655,7 +655,7 @@ Create a new object | **displayNameField** | `string` | optional | [DEPRECATED → nameField] Field to use as the record display name (e.g., "name", "title"). Accepted as an alias for nameField. | | **titleFormat** | `string \| { dialect: 'template'; source?: string; ast?: any; meta?: object }` | optional | [DEPRECATED → nameField (ADR-0079)] Render-only title template; the server cannot return or query it, and an explicit nameField now takes precedence. An object definition that declares it is refused at the metadata save gate and by os validate; a stored object that carries it still parses and reads. Migrate a single-field title to nameField; a composite title that import, sort or search must match to a stored computed field (a non-formula field with an expression, computed and stored on every write) designated as nameField — a text formula designated as nameField stays legal for a title shown for display only. Placeholders may be written `{{field}}` or `{field}` — the title renderers treat the two as equivalent, normalizing `{{field}}` to `{field}` before substituting; neither spelling is judged at parse time. | | **imageField** | `string` | optional | The record's picture: names the field the record page header (record chrome) draws beside the title — one object-level declaration every record detail page reads, not a per-page header prop. Must name a field of this object whose type is `image` or `avatar`; any other name is refused. A record whose field is empty shows no picture (no initials or placeholder). | -| **highlightFields** | `string[]` | optional | [ADR-0085] Ordered most-important fields; first entry wins where only one fits. Drives default columns, cards, previews, detail highlight strip. Renamed from compactLayout. | +| **highlightFields** | `string[]` | optional | [ADR-0085] Ordered most-important fields; first entry wins where only one fits. Drives default list and related-list columns, cards, hover cards, previews and the record picker; the default record page draws no strip from it. Renamed from compactLayout. | | **relatedLists** | `string[]` | optional | Business order of this object's related lists on its record page, most important first. Each entry is a child object name (e.g. "task"), or object.field when that child has more than one relationship to this object (e.g. "event.related_to"). Listed relationships come first in this order; unlisted ones follow in the derived order (owned master_detail children, then lookup children). An entry whose child is in the stack but has no inbound lookup / master_detail field to this object is refused everywhere. An entry whose child exists nowhere is refused by os validate / os build (which leave a sys_ / cloud_ / ai_ name to the runtime) and by a metadata write that names no package; a write into a package stores it, since a child outside the package may be a downstream package's object that points here, and the record page places nothing for it. It orders only: relatedList: false on the relationship still hides a list, and relatedList: 'primary' still places a list in the record's body, so the order applies among the body tables and among the side cards. | | **stageField** | `string \| false` | optional | [ADR-0085] Lifecycle stage field (linear/ordered), or false to declare the status field non-linear and suppress stage heuristics. Absent = heuristic detection allowed. When the named field carries options, it must be a single-value `select` / `radio` with inline `options`, each declaring its `kind` ('open' / 'won' / 'lost'); a picklist-backed or multi-value stage field is refused. A name that resolves to no declared field, or a field with no options, is not judged at parse. | | **editMode** | `Enum<'modal' \| 'page'>` | optional | Edit-interaction intent for records of this object: 'modal' opens the edit form as a dialog over the current view; 'page' navigates to a dedicated full-page edit route. Absent = the renderer picks its own default (objectui defaults to modal). Cross-renderer intent, not pixel styling (family). | diff --git a/content/docs/ui/components/record.mdx b/content/docs/ui/components/record.mdx index 69828015672..9238822cf50 100644 --- a/content/docs/ui/components/record.mdx +++ b/content/docs/ui/components/record.mdx @@ -56,7 +56,7 @@ Namespace `record`. | `columns` | `enum`: `1`, `2`, `3`, `4` | | Number of columns for field layout (1-4) | | `sections` | `array` of `object` | | Field groups rendered as the detail body, in order. Every entry is an OBJECT — `{ name?, label?, columns?, fields }` — a bare section-id string is NOT accepted (the spec retired that spelling in objectstack#5611, and the renderer reads name/label/fields off each entry, so a string entry renders no fields at all). `fields` are the field names shown in this section, in order — required unless `group` supplies the members instead (the spec refuses a section carrying neither, and refuses one carrying both). `label` is the section heading; omit it for an untitled, borderless section. `name` is a stable snake_case identifier and the i18n anchor — the heading resolves through objects.\._sections.\.label, so a section without a name shows its authored label in every locale. `columns` (1-4) is THIS section's field-grid width; omit it and the renderer derives the width. Authoring `sections` at all makes it the only source of the detail body; omit it and the body falls back to the object's highlightFields. @objectstack/spec 17.3.0 declares eight more member keys on an entry, and this renderer honours all eight: `icon` (a Lucide name on the section header), `description` (sub-heading copy under the heading), `collapsible` and `defaultCollapsed` (a foldable section and its initial state), `showBorder` (force the Card wrapper on or off, overriding the heading-derived default) and `headerColor` (a header tint from the shared palette) through DetailSection, plus `group` — the ADR-0085 §5 REFERENCE form, the alternative to enumerating `fields`. `{ group: 'contact_info' }` inherits the object's `fieldGroups` entry with that key: its members (the group's own `fields` list in its order, then every other visible field whose `group` names it, in declaration order), its presentation (label, icon, description, collapse) and its `visibleWhen` all come from the group, so the section restates none of it — the predicate is evaluated against the bound record exactly as the entry form evaluates it, and a group it hides renders nothing (a `visibleWhen` written on a section itself is refused by the spec and not read: gate the group and reference it) and the spec refuses those keys beside `group`; `columns`, `showBorder` and `headerColor` stay yours because they are how THIS page lays the section out. A `group` naming no declared group renders nothing and is reported to the console (`@objectstack/lint` flags it as `page-section-group-unknown`). `hideEmpty` is the eighth, and it decides whether an ALL-empty section exists: it defaults to on, so a section whose fields are every one of them empty renders nothing at all — no heading, no skeleton — and `hideEmpty: false` is the spelling that keeps the section on a brand-new record: in read-only mode named in the one line that closes the body, beside every other all-empty section kept this way, and expanding that line draws each in its place as its heading plus one fold row that counts the empty fields and reveals them on request (the same fold a partly-filled section uses, objectui#13386), in edit mode as every field an editable row. It decides ONLY the all-empty case; the empty rows of a section that still has a filled one belong to DetailSection's auto-hide heuristic plus the reader's show-empty toggle, which no authored value overrides in either polarity (objectui#7129 Q2-C), and inline-edit mode renders the section either way so its fields stay reachable. Restored under objectui#8603 (maintainer 2026-09-15) after objectui#7129 retired it on the premise, since falsified upstream, that the spec refused the key. None of the eight has a designer control yet; they are authorable in source mode only, tracked as a deferred feature. @objectstack/spec 18 declares a ninth, `count` (`{ field }`): the renderer fills the heading's `{{ count }}` hole with how many values that multi-value field holds on the current record — `{ name: 'tagging', label: '{{ count }} tags', count: { field: 'tags' }, fields: ['tags'] }` reads `3 tags` when three are selected. An absent or empty value counts 0; `count` changes only the heading, never whether the section renders, so with `hideEmpty` on an all-empty section is still absent. The hole is filled after the heading is translated, so each locale of an inline label map and a translated objects.\._sections.\.label write the same `{{ count }}`. The spec refuses `count` beside `group`, on a section with no `label`, and on a label with no hole; a heading on a section without `count` prints as written. Like the eight, `count` has no designer control yet. | | `fields` | `array` of `string` | | Explicit field list (overrides highlightFields) | -| `hideFields` | `array` of `string` | | Field names to omit from the body — applied to the top-level `fields` list AND to every section's `fields`. Bare field names only. Authors rarely need it: the synth pipeline fills it with the fields already shown in `record:highlights`, and hand-authored pages get the same dedup live from HighlightFieldsContext, so its purpose is suppressing a field you do not want repeated (the page H1 title field is dropped for you too). Hiding every field of a section leaves that section out entirely. | +| `hideFields` | `array` of `string` | | Field names to omit from the body — applied to the top-level `fields` list AND to every section's `fields`. Bare field names only. Authors rarely need it: the default record page sets none and draws no highlight strip, and a page that places a `record:highlights` block gets the fields of that block dropped from the body live through HighlightFieldsContext, so its purpose is suppressing a field you do not want repeated (the page H1 title field is dropped for you too). Hiding every field of a section leaves that section out entirely. | | `inlineEdit` | `boolean` | | Offer the per-field double-click / pencil inline-edit affordances in the detail body. On by default, and an OPT-OUT only: the value is combined with the object's own editability (system, engine-owned, append-only and better-auth objects are not user-editable unless they opened userActions.edit) and with the server's effective API operation set for the object, so `false` always wins while `true` cannot open editing the platform refuses. The edit session and the atomic Save bar are hosted by the page, so one draft spans the highlights strip and this body. | | `showHeader` | `boolean` | | Render the detail body's own title / follow-star / copy-id chip above the fields. Off by default because this block is normally composed under a `page:header` that already draws that chrome, and turning it on there shows the record title twice. Set it true only when this block is the whole page. | | `enforceFieldSecurity` | `boolean` | | Fold this block's field list through the caller's FIELD-read permissions before rendering, so a field the permission set denies leaves no empty row behind (renderer default: off). Presentation only: it re-applies the same field-read answer the server already enforced (ADR-0066 D3) and never widens access — with it off a denied field still arrives masked or stripped, and with it on the server still decides every value. | diff --git a/examples/app-crm/src/objects/activity.object.ts b/examples/app-crm/src/objects/activity.object.ts index 11579dc9e87..f0d93159960 100644 --- a/examples/app-crm/src/objects/activity.object.ts +++ b/examples/app-crm/src/objects/activity.object.ts @@ -14,8 +14,9 @@ export const Activity = ObjectSchema.create({ pluralLabel: 'Activities', icon: 'calendar-check', description: 'A logged interaction (call, email, meeting, or task) related to a CRM record.', - // What the record page shows at a glance, under the title. The stage is - // not here: the record page already draws it as the stage path. + // The record's most important fields: the hover card, list columns and + // the record picker read them. The stage is not here: the record header + // already shows it as the status tag beside the name. highlightFields: ['type', 'due_date', 'contact', 'account'], fields: { diff --git a/examples/app-crm/src/objects/lead.object.ts b/examples/app-crm/src/objects/lead.object.ts index 560ac89d0a2..e43b693f965 100644 --- a/examples/app-crm/src/objects/lead.object.ts +++ b/examples/app-crm/src/objects/lead.object.ts @@ -14,8 +14,9 @@ export const Lead = ObjectSchema.create({ pluralLabel: 'Leads', icon: 'funnel', description: 'An inbound prospect not yet qualified as an opportunity.', - // What the record page shows at a glance, under the title. The stage is - // not here: the record page already draws it as the stage path. + // The record's most important fields: the hover card, list columns and + // the record picker read them. The stage is not here: the record header + // already shows it as the status tag beside the name. highlightFields: ['company', 'source', 'lead_score', 'assigned_to'], // Field history on the record page: the timeline shows each field change // with its before and after values, and offers the Changes filter. The audit diff --git a/examples/app-crm/src/objects/opportunity.object.ts b/examples/app-crm/src/objects/opportunity.object.ts index 398e39b81f4..a53208f93c7 100644 --- a/examples/app-crm/src/objects/opportunity.object.ts +++ b/examples/app-crm/src/objects/opportunity.object.ts @@ -14,8 +14,9 @@ export const Opportunity = ObjectSchema.create({ pluralLabel: 'Opportunities', icon: 'trending-up', description: 'A potential sale tied to an account.', - // What the record page shows at a glance, under the title. The stage is - // not here: the record page already draws it as the stage path. + // The record's most important fields: the hover card, list columns and + // the record picker read them. The stage is not here: the record header + // already shows it as the status tag beside the name. highlightFields: ['account', 'amount', 'close_date', 'probability'], // Field history on the record page: the timeline shows each field change // with its before and after values, and offers the Changes filter. The audit diff --git a/examples/app-showcase/src/data/objects/account.object.ts b/examples/app-showcase/src/data/objects/account.object.ts index db6c9249cbd..42a66f83535 100644 --- a/examples/app-showcase/src/data/objects/account.object.ts +++ b/examples/app-showcase/src/data/objects/account.object.ts @@ -29,9 +29,9 @@ export const Account = ObjectSchema.create({ searchableFields: ['name', 'industry', 'status', 'billing_email', 'tax_id'], // ADR-0085 semantic role: the record's most important fields. Drives the - // detail-page highlight strip (formerly the deleted account-detail page's - // `highlights` slot) plus default list columns / cards — one declaration, - // every surface, no per-page config. + // default list columns / cards, the record hover card and the record + // picker — one declaration, every surface, no per-page config. The default + // record page draws no key-field strip from it. highlightFields: ['status', 'industry', 'annual_revenue'], // Show the record's field-change history (audit-trail UI). The console reads @@ -61,7 +61,7 @@ export const Account = ObjectSchema.create({ // Explicit ISO code (spec channel: `currencyConfig.defaultCurrency`, read // only under `currencyMode: 'fixed'`): a currency field without a // resolvable code renders as a bare grouped number by design (no guessed - // symbol) — with it, the detail highlight strip and grids show + // symbol) — with it, the record page and grids show // "$25,000,000" instead of "25,000,000". annual_revenue: Field.currency({ label: 'Annual Revenue', diff --git a/examples/app-showcase/src/data/objects/semantic-zoo.object.ts b/examples/app-showcase/src/data/objects/semantic-zoo.object.ts index 2cd23b634e8..fd371ce5d20 100644 --- a/examples/app-showcase/src/data/objects/semantic-zoo.object.ts +++ b/examples/app-showcase/src/data/objects/semantic-zoo.object.ts @@ -14,7 +14,7 @@ * stageField: 'status', collapse enum). * - `SemanticZooLegacy` carries `stageField: false` — `false` must survive * serialization strictly (it is the only "stop guessing" signal; a - * falsy-check regression turns the stepper back on). It exercised the + * falsy-check regression turns the header's stage tag back on). It exercised the * deprecated `compactLayout` alias during the ADR-0085 window; the alias * was retired by framework#2536. */ @@ -44,12 +44,12 @@ export const SemanticZoo = ObjectSchema.create({ ], group: 'basics', }), - // `code`/`budget` are deliberately NOT in highlightFields: detail pages - // hide highlighted fields from the body, so a group whose every member is - // highlighted never renders there (the `field-group-shadowed` lint). Each - // group keeps one non-highlighted member so the grouped detail layout — - // including Money's `collapse: 'collapsed'` — is actually exercised - // in-browser (#2548 follow-up), not just at parse time. + // `code`/`budget` are deliberately NOT in highlightFields: the default + // record page keeps highlighted fields in their groups, but a page that + // places a `record:highlights` block drops them from the body. Each group + // keeps one non-highlighted member so the grouped detail layout — + // including Money's `collapse: 'collapsed'` — is exercised in-browser on + // either page (#2548 follow-up), not just at parse time. code: Field.text({ label: 'Code', group: 'basics' }), amount: Field.number({ label: 'Amount', group: 'money' }), // Explicit ISO currency (spec channel: `currencyConfig.defaultCurrency`, @@ -95,7 +95,7 @@ export const SemanticZooLegacy = ObjectSchema.create({ fields: { name: Field.text({ label: 'Name', required: true, group: 'details' }), - // Named `status` ON PURPOSE: the stepper heuristic would pick it up — + // Named `status` ON PURPOSE: the stage heuristic would pick it up — // `stageField: false` below is what keeps it suppressed. Option `color` // pins the badge tint (spec-typed; without it renderers fall back to a // value-hash palette, which colored "Green" amber). diff --git a/packages/lint/src/rule-explanations.ts b/packages/lint/src/rule-explanations.ts index c56f12e9ce2..603ae5e8e9c 100644 --- a/packages/lint/src/rule-explanations.ts +++ b/packages/lint/src/rule-explanations.ts @@ -4641,8 +4641,8 @@ const OBJECT_FIELD_REF_UNKNOWN_EXPLANATION: RuleExplanation = { 'on the CLI and at the runtime publish gate alike: the reference is parsed, unmarked and ' + 'silently inert (ADR-0078), and a misspelling is refused loudly at authoring.', // The positions are held to the rule by its test, each fired. - 'Object-level: `highlightFields` (the default list columns, record cards, previews and the ' + - 'detail highlight strip each skip the entry and render one field short); ' + + 'Object-level: `highlightFields` (the default list columns, record cards, previews, the hover ' + + 'card and the record picker each skip the entry and render one field short); ' + '`publicSharing.redactFields` (the redaction fails OPEN: records served through a share link ' + 'still carry the field, and a misspelled entry is indistinguishable from one never written); ' + 'and `indexes[].fields` (the SQL driver skips the WHOLE index at sync, logged at error, ' + @@ -5866,7 +5866,7 @@ const SEMANTIC_ROLE_FIELD_UNPROVISIONED_EXPLANATION: RuleExplanation = { paragraphs: [ 'An object\'s semantic roles point into its own field map (ADR-0085): `stageField` (stage ' + 'detection) and each `highlightFields` entry (the default list columns, record cards, ' + - 'previews and the detail highlight strip). A pointer at a system column the registry injects ' + + 'previews, the hover card and the record picker). A pointer at a system column the registry injects ' + '(`owner_id`, `created_by`, `organization_id` and the rest) resolves on every object that gets ' + 'the column, so naming one is legitimate.', // The external arm, the local twin and the declared column are held to the rule by its test. diff --git a/packages/lint/src/validate-object-field-refs.test.ts b/packages/lint/src/validate-object-field-refs.test.ts index 29c3bfa3961..fa38a50dd30 100644 --- a/packages/lint/src/validate-object-field-refs.test.ts +++ b/packages/lint/src/validate-object-field-refs.test.ts @@ -1250,7 +1250,7 @@ describe('[#22161] one-line verdicts — object-field-ref-unknown', () => { const text = explained(); for (const fact of [ 'ADR-0078', - '`highlightFields` (the default list columns, record cards, previews and the detail highlight strip', + '`highlightFields` (the default list columns, record cards, previews, the hover card and the record picker', '`publicSharing.redactFields` (the redaction fails OPEN', '`indexes[].fields` (the SQL driver skips the WHOLE index at sync', '`compactLayout`', diff --git a/packages/lint/src/validate-object-field-refs.ts b/packages/lint/src/validate-object-field-refs.ts index fd916767122..e83449ab5fd 100644 --- a/packages/lint/src/validate-object-field-refs.ts +++ b/packages/lint/src/validate-object-field-refs.ts @@ -77,8 +77,8 @@ * THAT object, and that no other rule already resolves: * * - **`highlightFields[]`** (ADR-0085, `packages/spec/src/data/object.zod.ts` - * line 2092) — drives default list columns, cards, previews and the detail - * highlight strip. A dangling entry is dropped by every consumer. + * line 2092) — drives default list columns, cards, previews, the hover + * card and the record picker. A dangling entry is dropped by every consumer. * - **`publicSharing.redactFields[]`** (`object.zod.ts` line 2258) — the * field names stripped from records served through a share link. This one * fails OPEN, which the schema's own `history` note says in as many words: diff --git a/packages/platform-objects/src/apps/translations/ar.metadata-forms.generated.ts b/packages/platform-objects/src/apps/translations/ar.metadata-forms.generated.ts index 8f456635caa..fa9045986a8 100644 --- a/packages/platform-objects/src/apps/translations/ar.metadata-forms.generated.ts +++ b/packages/platform-objects/src/apps/translations/ar.metadata-forms.generated.ts @@ -70,7 +70,7 @@ export const arMetadataForms: NonNullable = { }, highlightFields: { label: "الحقول المميَّزة", - helpText: "أسماء حقول هذا الكائن، الأهم أولًا — يفوز الإدخال الأول حيث لا يتسع إلا لواحد (ADR-0085). تحدد أعمدة القائمة الافتراضية والبطاقات ومعاينات السجلات الفرعية وشريط الإبراز في صفحة التفاصيل. يُرفض عند النشر أي اسم ليس حقلًا من هذا الكائن." + helpText: "أسماء حقول هذا الكائن، الأهم أولًا — يفوز الإدخال الأول حيث لا يتسع إلا لواحد (ADR-0085). تحدد الأعمدة الافتراضية للقوائم والقوائم المرتبطة والبطاقات ومعاينات السجلات الفرعية وبطاقة التمرير للسجل ومنتقي السجلات. يُرفض عند النشر أي اسم ليس حقلًا من هذا الكائن." }, relatedLists: { label: "القوائم المرتبطة", diff --git a/packages/platform-objects/src/apps/translations/de.metadata-forms.generated.ts b/packages/platform-objects/src/apps/translations/de.metadata-forms.generated.ts index 15ef87a6ab0..e6d8883e4b8 100644 --- a/packages/platform-objects/src/apps/translations/de.metadata-forms.generated.ts +++ b/packages/platform-objects/src/apps/translations/de.metadata-forms.generated.ts @@ -70,7 +70,7 @@ export const deMetadataForms: NonNullable = { }, highlightFields: { label: "Hervorgehobene Felder", - helpText: "Feldnamen dieses Objekts, das wichtigste zuerst – der erste Eintrag gewinnt, wo nur einer Platz hat (ADR-0085). Steuert die Standardspalten der Liste, Karten, Vorschauen untergeordneter Datensätze und die Hervorhebungsleiste der Detailansicht. Ein Name, der kein Feld dieses Objekts ist, wird bei der Veröffentlichung abgelehnt." + helpText: "Feldnamen dieses Objekts, das wichtigste zuerst – der erste Eintrag gewinnt, wo nur einer Platz hat (ADR-0085). Steuert die Standardspalten von Listen und Bezugslisten, Karten, Vorschauen untergeordneter Datensätze, die Hover-Karte des Datensatzes und die Datensatzauswahl. Ein Name, der kein Feld dieses Objekts ist, wird bei der Veröffentlichung abgelehnt." }, relatedLists: { label: "Verknüpfte Listen", diff --git a/packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts b/packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts index acd2781e39e..1dd638338ed 100644 --- a/packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts +++ b/packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts @@ -70,7 +70,7 @@ export const enMetadataForms: NonNullable = { }, highlightFields: { label: "Highlight Fields", - helpText: "Field names of this object, most important first — the first entry wins where only one fits (ADR-0085). Drives the default list columns, cards, child-record previews and the detail highlight strip. A name that is not a field of this object is refused at publish." + helpText: "Field names of this object, most important first — the first entry wins where only one fits (ADR-0085). Drives the default list and related-list columns, cards, child-record previews, the record hover card and the record picker. A name that is not a field of this object is refused at publish." }, relatedLists: { label: "Related Lists", diff --git a/packages/platform-objects/src/apps/translations/es-ES.metadata-forms.generated.ts b/packages/platform-objects/src/apps/translations/es-ES.metadata-forms.generated.ts index 9bc1f39aefb..d5e86c95cba 100644 --- a/packages/platform-objects/src/apps/translations/es-ES.metadata-forms.generated.ts +++ b/packages/platform-objects/src/apps/translations/es-ES.metadata-forms.generated.ts @@ -70,7 +70,7 @@ export const esESMetadataForms: NonNullable = }, highlightFields: { label: "Campos destacados", - helpText: "Nombres de campo de este objeto, del más importante al menos; donde solo cabe uno, gana la primera entrada (ADR-0085). Determinan las columnas de lista predeterminadas, las tarjetas, las vistas previas de registros hijos y la franja destacada del detalle. Un nombre que no sea un campo de este objeto se rechaza al publicar." + helpText: "Nombres de campo de este objeto, del más importante al menos; donde solo cabe uno, gana la primera entrada (ADR-0085). Determinan las columnas predeterminadas de las listas y de las listas relacionadas, las tarjetas, las vistas previas de registros hijos, la tarjeta flotante del registro y el selector de registros. Un nombre que no sea un campo de este objeto se rechaza al publicar." }, relatedLists: { label: "Orden de listas relacionadas", diff --git a/packages/platform-objects/src/apps/translations/fr.metadata-forms.generated.ts b/packages/platform-objects/src/apps/translations/fr.metadata-forms.generated.ts index cd304e3d3bb..c384fc655ae 100644 --- a/packages/platform-objects/src/apps/translations/fr.metadata-forms.generated.ts +++ b/packages/platform-objects/src/apps/translations/fr.metadata-forms.generated.ts @@ -70,7 +70,7 @@ export const frMetadataForms: NonNullable = { }, highlightFields: { label: "Champs mis en avant", - helpText: "Noms des champs de cet objet, du plus important au moins important — la première entrée l’emporte là où une seule peut figurer (ADR-0085). Détermine les colonnes de liste par défaut, les cartes, les aperçus d’enregistrements enfants et la bande de mise en avant du détail. Un nom qui n’est pas un champ de cet objet est refusé à la publication." + helpText: "Noms des champs de cet objet, du plus important au moins important — la première entrée l’emporte là où une seule peut figurer (ADR-0085). Détermine les colonnes par défaut des listes et des listes associées, les cartes, les aperçus d’enregistrements enfants, la carte de survol de l’enregistrement et le sélecteur d’enregistrements. Un nom qui n’est pas un champ de cet objet est refusé à la publication." }, relatedLists: { label: "Listes associées", diff --git a/packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.ts b/packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.ts index bd4fd6fe86d..0defc684846 100644 --- a/packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.ts +++ b/packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.ts @@ -70,7 +70,7 @@ export const jaJPMetadataForms: NonNullable = }, highlightFields: { label: "ハイライト項目", - helpText: "このオブジェクトの項目名を重要な順に並べます。1 つしか表示できない場所では先頭の項目が使われます(ADR-0085)。既定の一覧列、カード、子レコードのプレビュー、詳細画面のハイライト帯を決めます。このオブジェクトの項目でない名前は公開時に拒否されます。" + helpText: "このオブジェクトの項目名を重要な順に並べます。1 つしか表示できない場所では先頭の項目が使われます(ADR-0085)。既定の一覧列と関連リストの列、カード、子レコードのプレビュー、レコードのホバーカード、レコードの選択画面を決めます。このオブジェクトの項目でない名前は公開時に拒否されます。" }, relatedLists: { label: "関連リストの順序", diff --git a/packages/platform-objects/src/apps/translations/ko.metadata-forms.generated.ts b/packages/platform-objects/src/apps/translations/ko.metadata-forms.generated.ts index d87d485d30b..ff393f6d342 100644 --- a/packages/platform-objects/src/apps/translations/ko.metadata-forms.generated.ts +++ b/packages/platform-objects/src/apps/translations/ko.metadata-forms.generated.ts @@ -70,7 +70,7 @@ export const koMetadataForms: NonNullable = { }, highlightFields: { label: "강조 필드", - helpText: "이 객체의 필드 이름을 중요한 순서대로 나열합니다. 하나만 들어갈 자리에서는 첫 항목이 우선합니다(ADR-0085). 기본 목록 열, 카드, 하위 레코드 미리보기, 상세 강조 영역을 결정합니다. 이 객체의 필드가 아닌 이름은 게시할 때 거부됩니다." + helpText: "이 객체의 필드 이름을 중요한 순서대로 나열합니다. 하나만 들어갈 자리에서는 첫 항목이 우선합니다(ADR-0085). 기본 목록 열과 관련 목록 열, 카드, 하위 레코드 미리보기, 레코드 호버 카드, 레코드 선택기를 결정합니다. 이 객체의 필드가 아닌 이름은 게시할 때 거부됩니다." }, relatedLists: { label: "관련 목록", diff --git a/packages/platform-objects/src/apps/translations/pt-BR.metadata-forms.generated.ts b/packages/platform-objects/src/apps/translations/pt-BR.metadata-forms.generated.ts index 2b2f158e419..426719afe96 100644 --- a/packages/platform-objects/src/apps/translations/pt-BR.metadata-forms.generated.ts +++ b/packages/platform-objects/src/apps/translations/pt-BR.metadata-forms.generated.ts @@ -70,7 +70,7 @@ export const ptBRMetadataForms: NonNullable = }, highlightFields: { label: "Campos em destaque", - helpText: "Nomes de campos deste objeto, os mais importantes primeiro — a primeira entrada vence onde só cabe uma (ADR-0085). Define as colunas padrão da lista, os cartões, as pré-visualizações de registros filhos e a faixa de destaque do detalhe. Um nome que não seja um campo deste objeto é recusado na publicação." + helpText: "Nomes de campos deste objeto, os mais importantes primeiro — a primeira entrada vence onde só cabe uma (ADR-0085). Define as colunas padrão das listas e das listas relacionadas, os cartões, as pré-visualizações de registros filhos, o cartão flutuante do registro e o seletor de registros. Um nome que não seja um campo deste objeto é recusado na publicação." }, relatedLists: { label: "Listas relacionadas", diff --git a/packages/platform-objects/src/apps/translations/ru.metadata-forms.generated.ts b/packages/platform-objects/src/apps/translations/ru.metadata-forms.generated.ts index 9be6dd50896..d093dad005f 100644 --- a/packages/platform-objects/src/apps/translations/ru.metadata-forms.generated.ts +++ b/packages/platform-objects/src/apps/translations/ru.metadata-forms.generated.ts @@ -70,7 +70,7 @@ export const ruMetadataForms: NonNullable = { }, highlightFields: { label: "Ключевые поля", - helpText: "Имена полей этого объекта, самые важные первыми — там, где помещается только одно, побеждает первое (ADR-0085). Определяют столбцы списка по умолчанию, карточки, предпросмотр дочерних записей и полосу ключевых полей на странице записи. Имя, не являющееся полем этого объекта, отклоняется при публикации." + helpText: "Имена полей этого объекта, самые важные первыми — там, где помещается только одно, побеждает первое (ADR-0085). Определяют столбцы по умолчанию для списков и связанных списков, карточки, предпросмотр дочерних записей, всплывающую карточку записи и выбор записи. Имя, не являющееся полем этого объекта, отклоняется при публикации." }, relatedLists: { label: "Связанные списки", diff --git a/packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts b/packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts index 84cc7bf239a..adc464170c7 100644 --- a/packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts +++ b/packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts @@ -70,7 +70,7 @@ export const zhCNMetadataForms: NonNullable = }, highlightFields: { label: "重点字段", - helpText: "本对象的字段名,按重要性从高到低排列——只能放下一个时取第一项(ADR-0085)。决定默认列表列、卡片、子记录预览和详情页的重点信息条。不是本对象字段的名称会在发布时被拒绝。" + helpText: "本对象的字段名,按重要性从高到低排列——只能放下一个时取第一项(ADR-0085)。决定默认列表列和相关列表列、卡片、子记录预览、记录悬停卡片和记录选择器。不是本对象字段的名称会在发布时被拒绝。" }, relatedLists: { label: "相关列表顺序", diff --git a/packages/platform-objects/src/apps/translations/zh-Hant.metadata-forms.generated.ts b/packages/platform-objects/src/apps/translations/zh-Hant.metadata-forms.generated.ts index 683d563d826..1948f2539bf 100644 --- a/packages/platform-objects/src/apps/translations/zh-Hant.metadata-forms.generated.ts +++ b/packages/platform-objects/src/apps/translations/zh-Hant.metadata-forms.generated.ts @@ -70,7 +70,7 @@ export const zhHantMetadataForms: NonNullable }, highlightFields: { label: "重點欄位", - helpText: "本物件的欄位名,依重要性從高到低排列——只能放下一個時取第一項(ADR-0085)。決定預設清單欄、卡片、子記錄預覽和詳細資料頁面的重點資訊條。不是本物件欄位的名稱會在發布時被拒絕。" + helpText: "本物件的欄位名,依重要性從高到低排列——只能放下一個時取第一項(ADR-0085)。決定預設清單欄和相關清單欄、卡片、子記錄預覽、記錄懸停卡片和記錄選擇器。不是本物件欄位的名稱會在發布時被拒絕。" }, relatedLists: { label: "相關清單順序", diff --git a/packages/platform-objects/src/audit/sys-email.highlight-fields-resolve.test.ts b/packages/platform-objects/src/audit/sys-email.highlight-fields-resolve.test.ts index baff817b7b8..1b7b3403240 100644 --- a/packages/platform-objects/src/audit/sys-email.highlight-fields-resolve.test.ts +++ b/packages/platform-objects/src/audit/sys-email.highlight-fields-resolve.test.ts @@ -17,7 +17,8 @@ import { SysEmail } from './sys-email.object.js'; * * - **Silent, on every render.** `highlightFields` is the object's ordered * "most important fields" pointer (`packages/spec/src/data/object.zod.ts` - * — "Drives default columns, cards, previews, detail highlight strip"), + * — "Drives default list and related-list columns, cards, hover cards, + * previews and the record picker"), * and every consumer of it SKIPS an entry it cannot resolve. Nothing * throws, nothing logs: the platform's own email log just renders one * column short, and the missing one is the recipient. diff --git a/packages/plugins/plugin-sharing/src/objects/sys-record-share.object.ts b/packages/plugins/plugin-sharing/src/objects/sys-record-share.object.ts index 95f933e70c6..307ab44a27e 100644 --- a/packages/plugins/plugin-sharing/src/objects/sys-record-share.object.ts +++ b/packages/plugins/plugin-sharing/src/objects/sys-record-share.object.ts @@ -50,11 +50,12 @@ export const SysRecordShare = ObjectSchema.create({ // it with its object's label. No `titleFormat`: a declared, required pointer // outranks it on every title reader, so it would only be dead text. nameField: 'recipient_id', - // Neither half of the `record_id` / `object_name` pointer pair is listed. The - // record page's strip draws a listed field as its stored text, so the type - // half read as an API name and the id half as a raw id; a field the strip - // draws is also hidden from the Details tab, which is where `record_id` - // draws as the labelled pointer card (`sharing-pointer-pairs.test.ts`). + // Neither half of the `record_id` / `object_name` pointer pair is listed. A + // highlight strip (on a page that places one; the default record page draws + // none) draws a listed field as its stored text, so the type half read as an + // API name and the id half as a raw id; the Details tab is where + // `record_id` draws as the labelled pointer card + // (`sharing-pointer-pairs.test.ts`). highlightFields: ['recipient_id', 'access_level', 'source'], // A list names the shared record with the pointer's id half, `record_id`: diff --git a/packages/qa/dogfood/test/semantic-roles.dogfood.test.ts b/packages/qa/dogfood/test/semantic-roles.dogfood.test.ts index 0cb35234f2d..7203424d073 100644 --- a/packages/qa/dogfood/test/semantic-roles.dogfood.test.ts +++ b/packages/qa/dogfood/test/semantic-roles.dogfood.test.ts @@ -92,8 +92,9 @@ describe('ADR-0085 semantic roles survive the served pipeline', () => { ]); expect(def.fields?.status?.group).toBe('basics'); expect(def.fields?.amount?.group).toBe('money'); - // Non-highlighted group members (the detail body hides highlighted - // fields, so these keep their groups visible on detail pages). + // Non-highlighted group members (a page that places a + // `record:highlights` block hides highlighted fields from the body, so + // these keep their groups visible there too). expect(def.fields?.code?.group).toBe('basics'); expect(def.fields?.budget?.group).toBe('money'); // The spec channel for a per-field currency is currencyConfig (a bare @@ -114,7 +115,7 @@ describe('ADR-0085 semantic roles survive the served pipeline', () => { // `false` is the only "this status-shaped field is NOT a lifecycle" signal. // It has to arrive as a STRICT false: a serializer that drops falsy values - // (or a renderer falsy-check) silently turns the stepper back on — the + // (or a renderer falsy-check) silently turns the stage tag back on — the // exact bug PR objectui#2168 fixed. The fixture's `status` field is named // to trip the heuristic if this suppression ever leaks. expect(def.stageField).toBe(false); diff --git a/packages/spec/liveness/object.json b/packages/spec/liveness/object.json index bd8576f2b7a..f1253234e7c 100644 --- a/packages/spec/liveness/object.json +++ b/packages/spec/liveness/object.json @@ -45,7 +45,7 @@ "highlightFields": { "status": "live", "proof": "packages/qa/dogfood/test/semantic-roles.dogfood.test.ts#semantic-roles-served", - "note": "ADR-0085 semantic role (renamed from compactLayout): objectui default list/grid columns (ObjectGrid/ObjectView/InterfaceListPage), child-record previews (first entry), record:details auto layout, detail highlight strip (first RECORD_HIGHLIGHTS_MAX = 6, after the title)." + "note": "ADR-0085 semantic role (renamed from compactLayout): objectui default list/grid columns (ObjectGrid/ObjectView/InterfaceListPage), child-record previews (first entry), record:details auto layout, the record hover card, related-list default columns and the record picker. The default record page draws no key-field strip from it; a page that places one in its highlights slot draws the first RECORD_HIGHLIGHTS_MAX, after the title." }, "relatedLists": { "status": "live", diff --git a/packages/spec/src/data/object.form.ts b/packages/spec/src/data/object.form.ts index 1e25ba41ca6..4136df99883 100644 --- a/packages/spec/src/data/object.form.ts +++ b/packages/spec/src/data/object.form.ts @@ -67,7 +67,7 @@ export const objectForm = defineForm({ // it would offer an empty list. A misspelt entry is not dropped quietly: // the publish door refuses it (`object-field-ref-unknown`, // `searchable-field-unknown`, both at `error`), and so does `os validate`. - { field: 'highlightFields', widget: 'string-tags', colSpan: 2, helpText: 'Field names of this object, most important first — the first entry wins where only one fits (ADR-0085). Drives the default list columns, cards, child-record previews and the detail highlight strip. A name that is not a field of this object is refused at publish.' }, + { field: 'highlightFields', widget: 'string-tags', colSpan: 2, helpText: 'Field names of this object, most important first — the first entry wins where only one fits (ADR-0085). Drives the default list and related-list columns, cards, child-record previews, the record hover card and the record picker. A name that is not a field of this object is refused at publish.' }, // #27069 — the business order of the record page's related lists: a // list of inbound relationship names (child object, or `object.field`) // on the `highlightFields` row's face. A dangling name is refused at diff --git a/packages/spec/src/data/object.zod.ts b/packages/spec/src/data/object.zod.ts index 11a9f6036e5..f02a6de4d4f 100644 --- a/packages/spec/src/data/object.zod.ts +++ b/packages/spec/src/data/object.zod.ts @@ -4603,11 +4603,14 @@ const ObjectSchemaBase = strictObject( * [ADR-0085] Semantic role: the object's most important fields, in priority * order (the first entry wins wherever only one field fits, e.g. child-record * previews). Cross-surface by definition — drives default list/grid columns, - * cards, hover/lookup previews, and the record-detail highlight strip (first - * 4). Renamed from `compactLayout` (the value is an ordered field list, not - * a layout); Salesforce compact-layout semantics. + * cards, hover/lookup previews, a related list's default columns and the + * record picker's columns. The default record page draws no key-field strip + * from it and leaves these fields in their groups; a page that places a + * `record:highlights` block draws them there. Renamed from `compactLayout` + * (the value is an ordered field list, not a layout); Salesforce + * compact-layout semantics. */ - highlightFields: z.array(z.string()).optional().describe('[ADR-0085] Ordered most-important fields; first entry wins where only one fits. Drives default columns, cards, previews, detail highlight strip. Renamed from compactLayout.'), + highlightFields: z.array(z.string()).optional().describe('[ADR-0085] Ordered most-important fields; first entry wins where only one fits. Drives default list and related-list columns, cards, hover cards, previews and the record picker; the default record page draws no strip from it. Renamed from compactLayout.'), // `compactLayout` (the pre-ADR-0085 spelling of `highlightFields`) was an // accepted parse-time alias for one deprecation window and is now RETIRED // (framework#2536): authoring it is rejected by `create()` like any unknown @@ -4661,9 +4664,11 @@ const ObjectSchemaBase = strictObject( * field; `false` declares the object's status-like field NON-linear (an * unordered state set such as active/suspended/void) and suppresses every * consumer's stage heuristics. Absent = consumers may heuristically detect - * a stage field (status/stage/state/phase). Consumed by the record-detail - * path/stepper today; kanban default grouping, list badges and report - * bucketing are natural future consumers. + * a stage field (status/stage/state/phase). Consumed by the record page + * header today, whose status tag shows the stage and moves it (the default + * record page draws no stage path; an authored `record:path` block still + * reads it); kanban default grouping, list badges and report bucketing are + * natural future consumers. * * [#23809] When the named field carries options, it must be a single-value * `select` / `radio` whose inline options EACH declare their lifecycle `kind` diff --git a/packages/spec/src/ui/component.zod.ts b/packages/spec/src/ui/component.zod.ts index 15d40c22973..1978360506c 100644 --- a/packages/spec/src/ui/component.zod.ts +++ b/packages/spec/src/ui/component.zod.ts @@ -1865,15 +1865,11 @@ export const RecordRelatedListProps = strictObject({ /** * How many of an object's declared `highlightFields` (ADR-0085), after the - * record's title field leaves the list, the DEFAULT record page draws in its - * header strip. The Details body leaves those fields out, so an entry past - * this count is drawn in the body instead. - * - * The one source both readers ask: the record page synthesizer in - * `@object-ui/plugin-detail` cuts the strip with it, and the - * `field-group-shadowed` lint in `@objectstack/lint` judges with it which - * field groups the strip empties on the record page. A second literal on - * either side is how the lint came to judge four while the page drew six. + * record's title field leaves the list, a SYNTHESIZED key-field strip draws. + * The default record page draws no such strip and leaves every highlighted + * field in its group; the strip is built only for a page that places one in + * its `highlights` slot, by the record page synthesizer in + * `@object-ui/plugin-detail`, which cuts the list with this count. * * Not the bound of an authored `record:highlights` block's `fields` * ({@link RecordHighlightsProps}): an authored page writes its own strip. diff --git a/scripts/sdui-manifest.record.json b/scripts/sdui-manifest.record.json index dc8400f30cf..23723388330 100644 --- a/scripts/sdui-manifest.record.json +++ b/scripts/sdui-manifest.record.json @@ -13,8 +13,8 @@ ], "source": "built-tree", "generator": "scripts/gen-sdui-manifest-node.mjs", - "generatedAt": "2026-11-20", - "sha256": "eb1d4319bfd42d09fd5e3783c00572f77a281626724481f815da7686509d73de", + "generatedAt": "2026-11-21", + "sha256": "3711e7efc78c869ee5c1d8e1b16c8cf718ac87a7c9db3bdb602483684e6065f9", "components": 106, "inTree": { "modulesRoot": "ui/apps/console", diff --git a/sdui.manifest.json b/sdui.manifest.json index e2dceb0cc88..1a7ff3fa7fd 100644 --- a/sdui.manifest.json +++ b/sdui.manifest.json @@ -1613,7 +1613,7 @@ "name": "hideFields", "type": "array", "of": "string", - "description": "Field names to omit from the body — applied to the top-level `fields` list AND to every section's `fields`. Bare field names only. Authors rarely need it: the synth pipeline fills it with the fields already shown in `record:highlights`, and hand-authored pages get the same dedup live from HighlightFieldsContext, so its purpose is suppressing a field you do not want repeated (the page H1 title field is dropped for you too). Hiding every field of a section leaves that section out entirely." + "description": "Field names to omit from the body — applied to the top-level `fields` list AND to every section's `fields`. Bare field names only. Authors rarely need it: the default record page sets none and draws no highlight strip, and a page that places a `record:highlights` block gets the fields of that block dropped from the body live through HighlightFieldsContext, so its purpose is suppressing a field you do not want repeated (the page H1 title field is dropped for you too). Hiding every field of a section leaves that section out entirely." }, { "name": "inlineEdit", diff --git a/ui/packages/app-shell/src/views/RecordDetailView.tsx b/ui/packages/app-shell/src/views/RecordDetailView.tsx index 1ca911ec66b..d297e8d5835 100644 --- a/ui/packages/app-shell/src/views/RecordDetailView.tsx +++ b/ui/packages/app-shell/src/views/RecordDetailView.tsx @@ -345,8 +345,8 @@ function recordPagePlacesNoComponent(page: Parameters = { 'engine.studio.settings.semanticHint': 'Applied consistently across forms, lists and detail pages (ADR-0085)', 'engine.studio.settings.nameField': 'Record name field (nameField) — shown in titles, links and references', 'engine.studio.settings.autoDerive': '(auto-derived)', - 'engine.studio.settings.stageField': 'Lifecycle field (stageField) — the detail page progress bar renders its options', + 'engine.studio.settings.stageField': 'Lifecycle field (stageField) — the status tag beside the record name shows its stage, and moves the record between its options', 'engine.studio.settings.autoDetect': '(auto-detect status/stage-like field names)', - 'engine.studio.settings.stageNone': 'None — this object has no linear flow; hide the progress bar', + 'engine.studio.settings.stageNone': 'None — this object has no linear flow; the record header shows no stage', 'engine.studio.settings.highlightFields': 'Highlight fields (highlightFields) — the most important fields on this object, in display order; surfaces that show a record at a glance draw on them, each taking as many as it has room for', 'engine.studio.settings.removeField': 'Remove {field}', 'engine.studio.settings.addFieldOption': '+ Add field…', diff --git a/ui/packages/i18n/src/namespaces/studio/zh.ts b/ui/packages/i18n/src/namespaces/studio/zh.ts index b5ca451f98e..4077ef6e3fb 100644 --- a/ui/packages/i18n/src/namespaces/studio/zh.ts +++ b/ui/packages/i18n/src/namespaces/studio/zh.ts @@ -2128,9 +2128,9 @@ const STUDIO_ZH: Record = { 'engine.studio.settings.semanticHint': '跨表单 / 列表 / 详情统一生效(ADR-0085)', 'engine.studio.settings.nameField': '记录名称字段(nameField)—— 标题、链接、引用处显示的字段', 'engine.studio.settings.autoDerive': '(自动推导)', - 'engine.studio.settings.stageField': '生命周期字段(stageField)—— 详情页顶部进度条按它的选项渲染', + 'engine.studio.settings.stageField': '生命周期字段(stageField)—— 记录名称旁的状态标签显示它的阶段,并可在它的选项之间切换', 'engine.studio.settings.autoDetect': '(自动探测 status/stage 等字段名)', - 'engine.studio.settings.stageNone': '无 —— 这个对象没有线性流程,不显示进度条', + 'engine.studio.settings.stageNone': '无 —— 这个对象没有线性流程,记录标题不显示阶段', 'engine.studio.settings.highlightFields': '重点字段(highlightFields)—— 本对象最重要的字段,顺序即展示顺序;需要概览展示一条记录的界面都从中取用,各自能放下多少取多少', 'engine.studio.settings.removeField': '移除 {field}', 'engine.studio.settings.addFieldOption': '+ 添加字段…', diff --git a/ui/packages/plugin-detail/README.md b/ui/packages/plugin-detail/README.md index c1f2195f485..2ab07af1183 100644 --- a/ui/packages/plugin-detail/README.md +++ b/ui/packages/plugin-detail/README.md @@ -857,7 +857,7 @@ read no child schema first; `prefetchRelatedCounts` and `relatedCountTargetsIn` warm another record's counts, which the console's drawer does for the record `↑` / `↓` would show next. -One header (title, actions, highlights, stage path) serves every tier, and +One header (title, stage tag, actions) serves every tier, and the page description stays the tabbed one: its blocks are read off it by each tab's stable `value` (`buildDefaultPageColumns`), so Studio's page-create seed, a slotted page and the running page never disagree, and no metadata key diff --git a/ui/packages/plugin-detail/src/index.tsx b/ui/packages/plugin-detail/src/index.tsx index 7ec4a77c5e2..92188769312 100644 --- a/ui/packages/plugin-detail/src/index.tsx +++ b/ui/packages/plugin-detail/src/index.tsx @@ -650,7 +650,7 @@ ComponentRegistry.register('details', RecordDetailsRenderer, { // The "hiding every field drops the section" sentence is read off // `DetailSection.tsx` (`visibleFields.length === 0 && // emptyCount === section.fields.length` returns null), not assumed. - { name: 'hideFields', type: 'array', of: 'string', description: 'Field names to omit from the body — applied to the top-level `fields` list AND to every section\'s `fields`. Bare field names only. Authors rarely need it: the synth pipeline fills it with the fields already shown in `record:highlights`, and hand-authored pages get the same dedup live from HighlightFieldsContext, so its purpose is suppressing a field you do not want repeated (the page H1 title field is dropped for you too). Hiding every field of a section leaves that section out entirely.' }, + { name: 'hideFields', type: 'array', of: 'string', description: 'Field names to omit from the body — applied to the top-level `fields` list AND to every section\'s `fields`. Bare field names only. Authors rarely need it: the default record page sets none and draws no highlight strip, and a page that places a `record:highlights` block gets the fields of that block dropped from the body live through HighlightFieldsContext, so its purpose is suppressing a field you do not want repeated (the page H1 title field is dropped for you too). Hiding every field of a section leaves that section out entirely.' }, // `inlineEdit` and `showHeader` are DECLARED, not merely honoured // (objectui#4668) — the same reverse-direction defect `hideFields` above // records, on the two keys @objectstack/spec 17.0.0 GA added to this block. diff --git a/ui/packages/plugin-detail/src/renderers/record-details.tsx b/ui/packages/plugin-detail/src/renderers/record-details.tsx index cf77683a7c1..ccf0aeffa65 100644 --- a/ui/packages/plugin-detail/src/renderers/record-details.tsx +++ b/ui/packages/plugin-detail/src/renderers/record-details.tsx @@ -559,13 +559,12 @@ const RecordDetailsBody: React.FC = ({ const normaliseList = (list: any[] | undefined): any[] | undefined => Array.isArray(list) ? list.map(normaliseField) : list; - // Phase N.4: dedupe with the highlight strip — when authors include a - // field in `record:highlights` we drop it from the details grid so it - // isn't shown twice. The synth pipeline passes the highlight list via - // `hideFields`; authors can also set it directly on the schema. We also - // merge in any field names registered live via HighlightFieldsContext - // (see `liveHighlightNames` above) to cover hand-authored Lightning pages - // that don't go through the synth dedup path. + // Phase N.4: dedupe with the highlight strip — when a page places a + // `record:highlights` block we drop its fields from the details grid so + // they aren't shown twice. The default record page places no strip and + // sets no `hideFields`; authors can set it directly on the schema. The + // field names a mounted `record:highlights` registers live via + // HighlightFieldsContext (see `liveHighlightNames` above) are merged in. // // ⛔ Read UN-CAST (objectui#9965). `hideFields` is DECLARED on the mirror // (`RecordDetailsComponentProps.hideFields`, `string[]`, since objectui#9040, diff --git a/ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts b/ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts index c08c513d752..f6b38faba0f 100644 --- a/ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts +++ b/ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts @@ -39,8 +39,9 @@ export interface ObjectDefLike { label?: string; fields?: Record; /** Semantic role (ADR-0085): the linear-lifecycle field driving the - * `record:path` stepper. `false` = the status-shaped field is NOT a - * linear flow — suppress stage detection entirely (#2065). */ + * header's stage tag, and a `record:path` a page places itself. `false` = + * the status-shaped field is NOT a linear flow — suppress stage detection + * entirely (#2065). */ stageField?: string | false; stages?: Array<{ value: any; label: string }>; /** Semantic role (ADR-0085): the object's most important fields — the @@ -459,13 +460,13 @@ export function resolveTitleField(def: ObjectDefLike | undefined): string | null } /** - * How many highlights the record header shows (objectstack#27055, the v3 + * How many highlights a synthesized strip shows (objectstack#27055, the v3 * header: 「要点 6 项等宽」 — the same six Studio's highlight editor offers). - * A declared `highlightFields` list longer than this is cut here. + * A declared `highlightFields` list longer than this is cut here. The default + * record page draws no strip; {@link buildDefaultHighlights} builds one for a + * page that places it in its `highlights` slot. * - * Declared once in `@objectstack/spec/ui` and re-exported here: the - * `field-group-shadowed` lint judges which field groups this strip empties - * with the same constant, so its verdict matches the page. + * Declared once in `@objectstack/spec/ui` and re-exported here. */ export { RECORD_HIGHLIGHTS_MAX }; diff --git a/ui/packages/types/src/layout.ts b/ui/packages/types/src/layout.ts index b0f53dac7a5..b1849b16dd8 100644 --- a/ui/packages/types/src/layout.ts +++ b/ui/packages/types/src/layout.ts @@ -1806,8 +1806,9 @@ export interface PageNodeSchema extends BaseSchema, Omit Date: Sat, 21 Nov 2026 03:45:58 +0000 Subject: [PATCH 2/3] fix: the six-highlights upgrade entry, two comments and the types changeset follow the strip-free default page The field-group-shadowed-six-highlights upgrade-guide entry no longer tells authors to move highlights: the default record page draws no key-field strip, so the warning judges the record title alone and no action is owed. Two comments that still placed a strip on the default page are reworded, and the changeset gains @object-ui/types for the slot-menu doc it ships. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv --- .../35943-record-page-strip-descriptions.md | 4 ++- .../18.field-group-shadowed-six-highlights.ts | 26 +++++++++---------- .../app-shell/src/views/recordPhoneHeader.ts | 2 +- .../src/synth/buildDefaultPageSchema.ts | 6 ++--- 4 files changed, 20 insertions(+), 18 deletions(-) diff --git a/.changeset/35943-record-page-strip-descriptions.md b/.changeset/35943-record-page-strip-descriptions.md index a0810b43f2f..393313386e1 100644 --- a/.changeset/35943-record-page-strip-descriptions.md +++ b/.changeset/35943-record-page-strip-descriptions.md @@ -5,6 +5,7 @@ '@object-ui/plugin-detail': patch '@object-ui/i18n': patch '@object-ui/app-shell': patch +'@object-ui/types': patch --- fix: descriptions and help text no longer say the default record page draws a key-field strip or a stage path @@ -14,9 +15,10 @@ Metadata-protocol: none The default record page draws no key-field strip and no stage path: the stage is the status tag beside the record name. These texts said otherwise and now say what each key drives: -- `@objectstack/spec`: the `highlightFields` describe ("Drives default list and related-list columns, cards, hover cards, previews and the record picker; the default record page draws no strip from it") and its Studio help text. The `stageField` and `RECORD_HIGHLIGHTS_MAX` doc comments say the header's status tag reads the stage and the count cuts only a strip a page places in its `highlights` slot. +- `@objectstack/spec`: the `highlightFields` describe ("Drives default list and related-list columns, cards, hover cards, previews and the record picker; the default record page draws no strip from it") and its Studio help text. The `stageField` and `RECORD_HIGHLIGHTS_MAX` doc comments say the header's status tag reads the stage and the count cuts only a strip a page places in its `highlights` slot. The upgrade-guide entry `field-group-shadowed-six-highlights` no longer tells authors to move highlights: the warning now judges the record title alone, and no action is owed. - `@objectstack/platform-objects`: the `highlightFields` help text in every metadata-form locale. - `@objectstack/lint`: the `os explain` text of `object-field-ref-unknown` and `semantic-role-field-unprovisioned` names the hover card and the record picker in place of the strip. - `@object-ui/plugin-detail`: the `record:details` `hideFields` description no longer says the default page fills it. The key is still accepted. - `@object-ui/i18n`: Studio's lifecycle-field help (`stageField`, and its "None" choice) talks about the status tag, not a progress bar. +- `@object-ui/types`: the page `highlights` slot doc says it places a strip the synthesized default does not draw. - `@object-ui/app-shell`: on a phone the default record page no longer hands the synthesizer a highlight list it never read. The page looks the same, and the subtitle under the record name is unchanged. diff --git a/packages/spec/src/migrations/entries/semantic/18.field-group-shadowed-six-highlights.ts b/packages/spec/src/migrations/entries/semantic/18.field-group-shadowed-six-highlights.ts index 668ec2f5969..fbd5ca1ea47 100644 --- a/packages/spec/src/migrations/entries/semantic/18.field-group-shadowed-six-highlights.ts +++ b/packages/spec/src/migrations/entries/semantic/18.field-group-shadowed-six-highlights.ts @@ -3,10 +3,10 @@ import type { SemanticMigration } from '../../types.js'; // The upgrade-guide entry of the `field-group-shadowed` warning moving from the -// first four highlightFields to the six the default record page draws -// (RECORD_HIGHLIGHTS_MAX, `@objectstack/spec/ui`). Notice only: no key is -// removed and no D2 conversion exists, because which field leaves the strip, or -// whether the group goes, is a choice only the author can make. +// first four highlightFields to six (RECORD_HIGHLIGHTS_MAX, `@objectstack/spec/ui`). +// The default record page has since stopped drawing a key-field strip, so the +// warning now judges the record title alone and this step owes the author +// nothing. Notice only: no key is removed and no D2 conversion exists. export const entry: SemanticMigration = { id: 'field-group-shadowed-six-highlights', surface: @@ -14,15 +14,15 @@ export const entry: SemanticMigration = { + 'whose every visible member is the record title or one of the first six `highlightFields` (after the title ' + 'leaves the list). It judged the first four before', replacement: - 'Keep at least one member of the group out of the first six `highlightFields`, or remove the group if the record ' - + 'header strip already shows its fields', + 'No action is owed. The warning now fires only for a group whose every visible member is the record title; if ' + + 'one does, add another field to the group or remove the group', reason: - 'The default record page draws the first six highlights in its header strip and leaves those fields out of the ' - + 'Details body, so a group whose only members sit there is empty on the record page while it still shows on ' - + 'forms. The warning judged four of the six, so a group emptied by the fifth or sixth highlight passed. A group ' - + 'it warned before is still warned. Stored items are not rewritten or refused at publish; like any warning, it ' - + 'makes `os validate --strict` exit 1.', + 'In this release line the warning first judged the first six highlights instead of four, because the default ' + + 'record page drew them in a header strip and left them out of the Details body. The default record page now ' + + 'draws no key-field strip and keeps every grouped field in its group, so the warning judges the record title ' + + 'alone: a group emptied by highlights alone no longer warns, and moving highlights to quiet it is not needed. ' + + 'Stored items are not rewritten or refused at publish; like any warning, it makes `os validate --strict` exit 1.', acceptanceCriteria: - 'os validate reports no `field-group-shadowed` warning, and each declared field group shows at least one field ' - + 'in the Details body of the default record page.', + 'os validate reports no `field-group-shadowed` warning; one that remains names a group whose only visible ' + + 'member is the record title.', }; diff --git a/ui/packages/app-shell/src/views/recordPhoneHeader.ts b/ui/packages/app-shell/src/views/recordPhoneHeader.ts index 72edd13a5db..f5147797a28 100644 --- a/ui/packages/app-shell/src/views/recordPhoneHeader.ts +++ b/ui/packages/app-shell/src/views/recordPhoneHeader.ts @@ -17,7 +17,7 @@ * guessed (objectstack#28868). */ -/** The highlights a phone's header strip shows after its subtitle. */ +/** The highlights after the subtitle's, at most; the default page draws no strip, so nothing reads them there. */ export const PHONE_HIGHLIGHTS_MAX = 4; /** The declared text highlights the subtitle reads, at most. */ diff --git a/ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts b/ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts index f6b38faba0f..13dc945bc7f 100644 --- a/ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts +++ b/ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts @@ -833,9 +833,9 @@ export const BODY_TABLE_PAGE_SIZE = 10; * `isBodyTableRelationship` the host computes `isBody` with); * - every other body table goes AFTER the field sections the record page * draws open (objectstack#35742: the record's own fields first, then its - * master-detail tables — 「主记录的字段分组 → 主从子表」; the header strip's - * stage bar and key fields sit above both, objectstack#35597's - * 「关键字段下面」), stacked in the order given — the parent's + * master-detail tables — 「主记录的字段分组 → 主从子表」; on the default + * page both sit directly under the header, which draws no stage bar and + * no key fields), stacked in the order given — the parent's * `relatedLists`, then the derived order. The sections drawn CLOSED that * trail the last open one (a group whose collapse is `collapsed`, an * enumerated section that is `collapsible` and `defaultCollapsed`) follow From e552fec501a7d281f42f89b6557ce9b104a91c7e Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 05:10:42 +0000 Subject: [PATCH 3/3] docs(spec): regenerate reference docs after merging main Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv --- content/docs/references/data/object.mdx | 14 +++++++------- content/docs/references/system/migration.mdx | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/content/docs/references/data/object.mdx b/content/docs/references/data/object.mdx index cda27f266c6..2039c7c6511 100644 --- a/content/docs/references/data/object.mdx +++ b/content/docs/references/data/object.mdx @@ -260,11 +260,11 @@ const result = ApiMethod.parse(data); | **referenceNameVisible** | `boolean` | optional | Declared name exposure (`lookup` and `user` fields only). TRUE declares that a principal who can read the record carrying this field may see the referenced record's display name (the target object's `nameField`, else its `displayNameField`, else the derived title field) and id even when that principal cannot read the referenced record. Served on `$expand`: a target the reader is refused (the object's read gate or its row scope) answers `{ id, name, readRefused: true }` (`ReferenceNameOnlyValueSchema`), per element on a multi-value field; an unexpanded read answers the stored id, as for every reader. Nothing else of the target: `$expand` on this field returns the same name and id only, the field's `displayField` does not widen it, and the name renders as text with no link to the target. A field-level rule on the name field still holds, and the name field is read only where nothing the security layer owns must be computed: the name is the `Record #` floor with the id when the reader may not read that field, it declares a `maskingRule`, it is a formula reading through another reference, an explicit `nameField` (or its `displayNameField` alias) points at a column that is neither title-typed nor autonumber, or no field-level answer can be had for the reader. A target with no resolvable or no non-empty name reads as the same floor. A principal who can read the target is served exactly what it is served without the key. Absent or false keeps the restricted-reference posture for a target the reader cannot read. Declared on the referencing field only; there is no target-object switch. Refused on any other type. | | **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. | | **deleteBehavior** | `Enum<'set_null' \| 'cascade' \| 'restrict'>` | optional (default: `"set_null"`) | What happens if referenced record is deleted | -| **inlineEdit** | `boolean \| Enum<'grid' \| 'form'>` | optional | Edit these child records inline within the parent's form (atomic master-detail). true = auto-pick grid/form by child shape; 'grid' = editable line-item grid; 'form' = list + per-row full form. | +| **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. | | **inlineTitle** | `string` | optional | Title for the inline master-detail grid | | **inlineColumns** | `{ name: string; label?: string; type?: Enum<'text' \| 'number' \| 'currency' \| 'date' \| 'datetime' \| 'time' \| 'select' \| 'lookup' \| 'file'>; 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. | | **inlineAmountField** | `string` | optional | Numeric child field summed for the inline grid total | -| **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 = 'primary' (a body table) on a master_detail field, an auxiliary panel on a lookup field; 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. '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=`` / sort=-``, never $orderby. A child object with no list-view sort emits no ordering parameter, and rows fall back to record-id order. | +| **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=`` / sort=-``, never $orderby. A child object with no list-view sort emits no ordering parameter, and rows fall back to record-id order. | | **relatedListTitle** | `string` | optional | Title for the detail-page related list | | **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. | | **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. | @@ -331,7 +331,7 @@ const result = ApiMethod.parse(data); | **fields** | `string[]` | optional | The group's members in display order (field names of this object). Written, it decides which fields the group shows and their order on the record page and the forms, without changing the order of the object's fields. Absent, members are the fields whose `group` names this group, in field declaration order (the older spelling, still read). A field whose `group` names this group but that the list does not name follows the listed ones. Refused: a listed field whose own `group` names another group, a field two groups list, a repeated name, and `fields` on a group with `relatedList`. A name the object does not declare is skipped. | | **icon** | `string` | optional | Icon name (Lucide/Material) for the group header | | **description** | `string` | optional | Optional description shown under the group header | -| **relatedList** | `string` | optional | Places a related list's body table at this position in the record's details column instead of a section of fields: names one inbound relationship, as a relatedLists entry does (child object, or object.field when that child has more than one relationship to this object). A group with relatedList holds no fields: a field that names it as its group is refused, and so is a fields list on it. The name is judged as a relatedLists entry is: refused when its child is in the stack with no inbound lookup / master_detail field, or exists nowhere (by os validate / os build, which leave a sys_ / cloud_ / ai_ name to the runtime, and by a metadata write that names no package); a write into a package stores it, and the record page places nothing for it. It names a body table only (a FK declaring relatedList: 'primary', or a master_detail FK that declares no relatedList): a group naming a side card or a list hidden by relatedList: false draws nothing, so it is refused where the child's fields are known (os validate / os build and the metadata write door), naming the FK and the remedy (set relatedList: 'primary' on it, name only the body table as object.field when a bare child name also names a side card, or remove the group's relatedList). | +| **relatedList** | `string` | optional | Places a related list's body table at this position in the record's details column instead of a section of fields: names one inbound relationship, as a relatedLists entry does (child object, or object.field when that child has more than one relationship to this object). A group with relatedList holds no fields: a field that names it as its group is refused, and so is a fields list on it. The name is judged as a relatedLists entry is: refused when its child is in the stack with no inbound lookup / master_detail field, or exists nowhere (by os validate / os build, which leave a sys_ / cloud_ / ai_ name to the runtime, and by a metadata write that names no package); a write into a package stores it, and the record page places nothing for it. It names a body table only (a FK declaring relatedList: 'primary', or a master_detail FK that declares no relatedList, which is a tab unless a group places it; placed, it is drawn here, and the parent's entry form inlines it below the record's fields until the form places it at the group as well): a group naming a side card or a list hidden by relatedList: false draws nothing, so it is refused where the child's fields are known (os validate / os build and the metadata write door), naming the FK and the remedy (set relatedList: 'primary' on it, name only the body table as object.field when a bare child name also names a side card, or remove the group's relatedList). | | **visibleWhen** | `string \| { dialect: Enum<'cel' \| 'cron' \| 'template'>; source: string; ast?: any; meta?: object }` | optional | Section visibility predicate (CEL) — the whole group (header included) is shown only when TRUE, else hidden (fail-closed). e.g. P`record.type == 'invoice'` | | **requiresFeature** | `Enum<'twoFactor' \| 'organization' \| 'multiOrgEnabled' \| 'degradedTenancy' \| …>` | optional | Deployment feature flag gating this group, from the same set an action's `requiresFeature` names (e.g. 'multiOrgEnabled'). Lowered at parse time into the group's `visibleWhen` (AND-composed after an authored `visibleWhen`) and stripped from the output; the whole group is hidden where the flag is off. Presentation only: the fields stay readable through the API. | | **collapse** | `Enum<'none' \| 'expanded' \| 'collapsed'>` | optional (default: `"none"`) | [ADR-0085] Section collapse behaviour: 'none' (always open, no toggle), 'expanded' (collapsible, starts open), 'collapsed' (collapsible, starts closed). | @@ -398,7 +398,7 @@ const result = ApiMethod.parse(data); | **resizable** | `boolean` | optional | Enable column resizing | | **compactToolbar** | `boolean` | optional | Collapse Group/Color/Density/Hide-fields into a single View settings popover | | **selection** | `{ type?: Enum<'none' \| 'single' \| 'multiple'> }` | optional | Row selection configuration | -| **navigation** | `{ mode?: Enum<'drawer' \| 'page' \| 'new_window' \| 'none'>; preventNavigation?: boolean; openNewTab?: boolean; size?: Enum<'auto' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'>; … }` | optional | Configuration for item click navigation (drawer by default, page, new_window or none) | +| **navigation** | `{ mode?: Enum<'drawer' \| 'page' \| 'new_window' \| 'none'>; preventNavigation?: boolean; openNewTab?: boolean; size?: Enum<'auto' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'>; … }` | optional | Configuration for item click navigation: the drawer size, and `preventNavigation` for a list whose rows open nothing (`mode` is deprecated — the record name opens the page, the hover icon the side panel) | | **pagination** | `{ pageSize?: integer; pageSizeOptions?: integer[] }` | optional | Pagination configuration | | **kanban** | `{ groupByField: string; lanes?: string[]; summarizeField?: string; titleField?: string; … }` | optional | Kanban-board configuration — applies when the view renders as a kanban layout | | **calendar** | `{ startDateField: string; endDateField?: string; titleField?: string; colorField?: string; … }` | optional | Calendar configuration — applies when the view renders as a calendar layout | @@ -642,11 +642,11 @@ const result = ApiMethod.parse(data); | **referenceNameVisible** | `boolean` | optional | Declared name exposure (`lookup` and `user` fields only). TRUE declares that a principal who can read the record carrying this field may see the referenced record's display name (the target object's `nameField`, else its `displayNameField`, else the derived title field) and id even when that principal cannot read the referenced record. Served on `$expand`: a target the reader is refused (the object's read gate or its row scope) answers `{ id, name, readRefused: true }` (`ReferenceNameOnlyValueSchema`), per element on a multi-value field; an unexpanded read answers the stored id, as for every reader. Nothing else of the target: `$expand` on this field returns the same name and id only, the field's `displayField` does not widen it, and the name renders as text with no link to the target. A field-level rule on the name field still holds, and the name field is read only where nothing the security layer owns must be computed: the name is the `Record #` floor with the id when the reader may not read that field, it declares a `maskingRule`, it is a formula reading through another reference, an explicit `nameField` (or its `displayNameField` alias) points at a column that is neither title-typed nor autonumber, or no field-level answer can be had for the reader. A target with no resolvable or no non-empty name reads as the same floor. A principal who can read the target is served exactly what it is served without the key. Absent or false keeps the restricted-reference posture for a target the reader cannot read. Declared on the referencing field only; there is no target-object switch. Refused on any other type. | | **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. | | **deleteBehavior** | `Enum<'set_null' \| 'cascade' \| 'restrict'>` | optional (default: `"set_null"`) | What happens if referenced record is deleted | -| **inlineEdit** | `boolean \| Enum<'grid' \| 'form'>` | optional | Edit these child records inline within the parent's form (atomic master-detail). true = auto-pick grid/form by child shape; 'grid' = editable line-item grid; 'form' = list + per-row full form. | +| **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. | | **inlineTitle** | `string` | optional | Title for the inline master-detail grid | | **inlineColumns** | `{ name: string; label?: string; type?: Enum<'text' \| 'number' \| 'currency' \| 'date' \| 'datetime' \| 'time' \| 'select' \| 'lookup' \| 'file'>; 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. | | **inlineAmountField** | `string` | optional | Numeric child field summed for the inline grid total | -| **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 = 'primary' (a body table) on a master_detail field, an auxiliary panel on a lookup field; 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. '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=`` / sort=-``, never $orderby. A child object with no list-view sort emits no ordering parameter, and rows fall back to record-id order. | +| **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=`` / sort=-``, never $orderby. A child object with no list-view sort emits no ordering parameter, and rows fall back to record-id order. | | **relatedListTitle** | `string` | optional | Title for the detail-page related list | | **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. | | **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. | @@ -746,7 +746,7 @@ External datasource binding (ADR-0015) | **fields** | `string[]` | optional | The group's members in display order (field names of this object). Written, it decides which fields the group shows and their order on the record page and the forms, without changing the order of the object's fields. Absent, members are the fields whose `group` names this group, in field declaration order (the older spelling, still read). A field whose `group` names this group but that the list does not name follows the listed ones. Refused: a listed field whose own `group` names another group, a field two groups list, a repeated name, and `fields` on a group with `relatedList`. A name the object does not declare is skipped. | | **icon** | `string` | optional | Icon name (Lucide/Material) for the group header | | **description** | `string` | optional | Optional description shown under the group header | -| **relatedList** | `string` | optional | Places a related list's body table at this position in the record's details column instead of a section of fields: names one inbound relationship, as a relatedLists entry does (child object, or object.field when that child has more than one relationship to this object). A group with relatedList holds no fields: a field that names it as its group is refused, and so is a fields list on it. The name is judged as a relatedLists entry is: refused when its child is in the stack with no inbound lookup / master_detail field, or exists nowhere (by os validate / os build, which leave a sys_ / cloud_ / ai_ name to the runtime, and by a metadata write that names no package); a write into a package stores it, and the record page places nothing for it. It names a body table only (a FK declaring relatedList: 'primary', or a master_detail FK that declares no relatedList): a group naming a side card or a list hidden by relatedList: false draws nothing, so it is refused where the child's fields are known (os validate / os build and the metadata write door), naming the FK and the remedy (set relatedList: 'primary' on it, name only the body table as object.field when a bare child name also names a side card, or remove the group's relatedList). | +| **relatedList** | `string` | optional | Places a related list's body table at this position in the record's details column instead of a section of fields: names one inbound relationship, as a relatedLists entry does (child object, or object.field when that child has more than one relationship to this object). A group with relatedList holds no fields: a field that names it as its group is refused, and so is a fields list on it. The name is judged as a relatedLists entry is: refused when its child is in the stack with no inbound lookup / master_detail field, or exists nowhere (by os validate / os build, which leave a sys_ / cloud_ / ai_ name to the runtime, and by a metadata write that names no package); a write into a package stores it, and the record page places nothing for it. It names a body table only (a FK declaring relatedList: 'primary', or a master_detail FK that declares no relatedList, which is a tab unless a group places it; placed, it is drawn here, and the parent's entry form inlines it below the record's fields until the form places it at the group as well): a group naming a side card or a list hidden by relatedList: false draws nothing, so it is refused where the child's fields are known (os validate / os build and the metadata write door), naming the FK and the remedy (set relatedList: 'primary' on it, name only the body table as object.field when a bare child name also names a side card, or remove the group's relatedList). | | **visibleWhen** | `string \| { dialect: Enum<'cel' \| 'cron' \| 'template'>; source: string; ast?: any; meta?: object }` | optional | Section visibility predicate (CEL) — the whole group (header included) is shown only when TRUE, else hidden (fail-closed). e.g. P`record.type == 'invoice'` | | **requiresFeature** | `Enum<'twoFactor' \| 'organization' \| 'multiOrgEnabled' \| 'degradedTenancy' \| 'oidcProvider' \| 'sso' \| 'ssoEnforced' \| 'directSignIn' \| 'deviceAuthorization' \| 'admin' \| … +5 more>` | optional | Deployment feature flag gating this group, from the same set an action's `requiresFeature` names (e.g. 'multiOrgEnabled'). Lowered at parse time into the group's `visibleWhen` (AND-composed after an authored `visibleWhen`) and stripped from the output; the whole group is hidden where the flag is off. Presentation only: the fields stay readable through the API. | | **collapse** | `Enum<'none' \| 'expanded' \| 'collapsed'>` | optional (default: `"none"`) | [ADR-0085] Section collapse behaviour: 'none' (always open, no toggle), 'expanded' (collapsible, starts open), 'collapsed' (collapsible, starts closed). | diff --git a/content/docs/references/system/migration.mdx b/content/docs/references/system/migration.mdx index 6bcdb385853..152ad135927 100644 --- a/content/docs/references/system/migration.mdx +++ b/content/docs/references/system/migration.mdx @@ -84,11 +84,11 @@ Add a new field to an existing object | **referenceNameVisible** | `boolean` | optional | Declared name exposure (`lookup` and `user` fields only). TRUE declares that a principal who can read the record carrying this field may see the referenced record's display name (the target object's `nameField`, else its `displayNameField`, else the derived title field) and id even when that principal cannot read the referenced record. Served on `$expand`: a target the reader is refused (the object's read gate or its row scope) answers `{ id, name, readRefused: true }` (`ReferenceNameOnlyValueSchema`), per element on a multi-value field; an unexpanded read answers the stored id, as for every reader. Nothing else of the target: `$expand` on this field returns the same name and id only, the field's `displayField` does not widen it, and the name renders as text with no link to the target. A field-level rule on the name field still holds, and the name field is read only where nothing the security layer owns must be computed: the name is the `Record #` floor with the id when the reader may not read that field, it declares a `maskingRule`, it is a formula reading through another reference, an explicit `nameField` (or its `displayNameField` alias) points at a column that is neither title-typed nor autonumber, or no field-level answer can be had for the reader. A target with no resolvable or no non-empty name reads as the same floor. A principal who can read the target is served exactly what it is served without the key. Absent or false keeps the restricted-reference posture for a target the reader cannot read. Declared on the referencing field only; there is no target-object switch. Refused on any other type. | | **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. | | **deleteBehavior** | `Enum<'set_null' \| 'cascade' \| 'restrict'>` | optional (default: `"set_null"`) | What happens if referenced record is deleted | -| **inlineEdit** | `boolean \| Enum<'grid' \| 'form'>` | optional | Edit these child records inline within the parent's form (atomic master-detail). true = auto-pick grid/form by child shape; 'grid' = editable line-item grid; 'form' = list + per-row full form. | +| **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. | | **inlineTitle** | `string` | optional | Title for the inline master-detail grid | | **inlineColumns** | `{ name: string; label?: string; type?: Enum<'text' \| 'number' \| 'currency' \| 'date' \| 'datetime' \| 'time' \| 'select' \| 'lookup' \| 'file'>; 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. | | **inlineAmountField** | `string` | optional | Numeric child field summed for the inline grid total | -| **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 = 'primary' (a body table) on a master_detail field, an auxiliary panel on a lookup field; 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. '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=`` / sort=-``, never $orderby. A child object with no list-view sort emits no ordering parameter, and rows fall back to record-id order. | +| **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=`` / sort=-``, never $orderby. A child object with no list-view sort emits no ordering parameter, and rows fall back to record-id order. | | **relatedListTitle** | `string` | optional | Title for the detail-page related list | | **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. | | **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. | @@ -521,11 +521,11 @@ Add a new field to an existing object | **referenceNameVisible** | `boolean` | optional | Declared name exposure (`lookup` and `user` fields only). TRUE declares that a principal who can read the record carrying this field may see the referenced record's display name (the target object's `nameField`, else its `displayNameField`, else the derived title field) and id even when that principal cannot read the referenced record. Served on `$expand`: a target the reader is refused (the object's read gate or its row scope) answers `{ id, name, readRefused: true }` (`ReferenceNameOnlyValueSchema`), per element on a multi-value field; an unexpanded read answers the stored id, as for every reader. Nothing else of the target: `$expand` on this field returns the same name and id only, the field's `displayField` does not widen it, and the name renders as text with no link to the target. A field-level rule on the name field still holds, and the name field is read only where nothing the security layer owns must be computed: the name is the `Record #` floor with the id when the reader may not read that field, it declares a `maskingRule`, it is a formula reading through another reference, an explicit `nameField` (or its `displayNameField` alias) points at a column that is neither title-typed nor autonumber, or no field-level answer can be had for the reader. A target with no resolvable or no non-empty name reads as the same floor. A principal who can read the target is served exactly what it is served without the key. Absent or false keeps the restricted-reference posture for a target the reader cannot read. Declared on the referencing field only; there is no target-object switch. Refused on any other type. | | **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. | | **deleteBehavior** | `Enum<'set_null' \| 'cascade' \| 'restrict'>` | optional (default: `"set_null"`) | What happens if referenced record is deleted | -| **inlineEdit** | `boolean \| Enum<'grid' \| 'form'>` | optional | Edit these child records inline within the parent's form (atomic master-detail). true = auto-pick grid/form by child shape; 'grid' = editable line-item grid; 'form' = list + per-row full form. | +| **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. | | **inlineTitle** | `string` | optional | Title for the inline master-detail grid | | **inlineColumns** | `{ name: string; label?: string; type?: Enum<'text' \| 'number' \| 'currency' \| 'date' \| 'datetime' \| 'time' \| 'select' \| 'lookup' \| 'file'>; 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. | | **inlineAmountField** | `string` | optional | Numeric child field summed for the inline grid total | -| **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 = 'primary' (a body table) on a master_detail field, an auxiliary panel on a lookup field; 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. '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=`` / sort=-``, never $orderby. A child object with no list-view sort emits no ordering parameter, and rows fall back to record-id order. | +| **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=`` / sort=-``, never $orderby. A child object with no list-view sort emits no ordering parameter, and rows fall back to record-id order. | | **relatedListTitle** | `string` | optional | Title for the detail-page related list | | **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. | | **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. |