From 3af57151582497a79ef9ffedd942cd4bd1babde2 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 20 Nov 2026 09:48:35 +0000 Subject: [PATCH 1/2] docs(spec): page:header maxVisible describe states the renderer's per-host fallbacks Co-Authored-By: Claude --- .../35660-page-header-max-visible-describe.md | 10 ++++++++++ content/docs/references/ui/component.mdx | 4 ++-- packages/spec/src/ui/component.zod.ts | 13 +++++++------ 3 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 .changeset/35660-page-header-max-visible-describe.md diff --git a/.changeset/35660-page-header-max-visible-describe.md b/.changeset/35660-page-header-max-visible-describe.md new file mode 100644 index 00000000000..baa0955805d --- /dev/null +++ b/.changeset/35660-page-header-max-visible-describe.md @@ -0,0 +1,10 @@ +--- +'@objectstack/spec': patch +--- + +docs(spec): `page:header` `maxVisible` / `mobileMaxVisible` descriptions state the renderer's real fallbacks per host + +Clause-②: no +Metadata-protocol: none + +The two descriptions said the renderer shows 3 inline header buttons (1 on mobile) when the key is unset. Since the record page's header became one row, an unset `maxVisible` gives 1 there and 3 on any other header, and an unset `mobileMaxVisible` gives 2 in a record page's bottom action bar on a phone and 1 elsewhere. Text only: the schema shape, its validation and its lack of a schema default are unchanged. diff --git a/content/docs/references/ui/component.mdx b/content/docs/references/ui/component.mdx index 0c239db1094..1268c7e2d79 100644 --- a/content/docs/references/ui/component.mdx +++ b/content/docs/references/ui/component.mdx @@ -1579,8 +1579,8 @@ An any-of group: `{ or: [rule, ...] }` matches a record when ANY of its rules ma | **recordChrome** | `boolean` | optional (default: `true`) | Render the record chrome — the title as a record chip with its copy-id button. Set false on a non-record page (dashboard, landing) to fall back to the bare heading layout. | | **showStar** | `never` | optional | [REMOVED] `page:header` property `showStar` was removed in @objectstack/spec 18 (ADR-0087 D2) — the reference console draws no star beside the record title, so the key switched nothing: the record's favorites entry is the header's ⋯ menu, and metadata does not control it. Delete the key, whether it was `true` or `false`; the ⋯ menu's favorites entry is unchanged. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. | | **showCopyId** | `boolean` | optional (default: `true`) | Show the copy-record-id button beside the record title. Part of the record chrome — no effect when `recordChrome` is false. | -| **maxVisible** | `integer` | optional | How many header actions render as inline buttons before the rest fold into the overflow menu (renderer default 3). | -| **mobileMaxVisible** | `integer` | optional | The `maxVisible` budget on mobile viewports (renderer default 1). | +| **maxVisible** | `integer` | optional | How many header actions render as inline buttons before the rest fold into the overflow menu. Renderer default when unset: 1 in a record page's one-row header bar, 3 on any other header. | +| **mobileMaxVisible** | `integer` | optional | The `maxVisible` budget on mobile viewports. Renderer default when unset: 2 in a record page's bottom action bar on a phone, 1 on any other header. | | **aria** | `{ ariaLabel?: string \| Record; ariaDescribedBy?: string; role?: string }` | optional | ARIA accessibility attributes | ### Nested Shape: `PageHeaderProps.aria` diff --git a/packages/spec/src/ui/component.zod.ts b/packages/spec/src/ui/component.zod.ts index 2b70e932b76..15d40c22973 100644 --- a/packages/spec/src/ui/component.zod.ts +++ b/packages/spec/src/ui/component.zod.ts @@ -839,22 +839,23 @@ export const PageHeaderProps = strictObject({ * evidence: the renderer has always read them and the schema had not caught * up. The header renderer (read points recorded in `liveness/page.json`, row `regions`) resolves * `schema?.maxVisible ?? schema?.properties?.maxVisible` (and the `mobile*` - * twin), the `?? 3` / `?? 1` are its own fallbacks, and its comment says out - * loud that both are "overridable on the page:header". Closing this shape + * twin), the fallbacks for an unset key are its own (they differ by host, as + * the two `.describe()` strings below state), and its comment says out loud + * that both are "overridable on the page:header". Closing this shape * without declaring them would turn an invited affordance into a hard * rejection — the lesson of commit 78f0be872, which is to enumerate by the RENDERER'S read * pattern rather than by the key list a previous ruling happened to quote. * - * Optional with NO schema default, deliberately: 3 and 1 are the renderer's - * fallbacks, and declaring them here would materialize a `maxVisible` on + * Optional with NO schema default, deliberately: the per-host numbers are the + * renderer's fallbacks, and declaring one here would materialize a `maxVisible` on * every parsed header — turning an unset key into an authored one, exactly * as the record picker's `limit` docblock records for its own 50. */ maxVisible: z.number().int().positive().optional().describe( - 'How many header actions render as inline buttons before the rest fold into the overflow menu (renderer default 3).', + 'How many header actions render as inline buttons before the rest fold into the overflow menu. Renderer default when unset: 1 in a record page\'s one-row header bar, 3 on any other header.', ), mobileMaxVisible: z.number().int().positive().optional().describe( - 'The `maxVisible` budget on mobile viewports (renderer default 1).', + 'The `maxVisible` budget on mobile viewports. Renderer default when unset: 2 in a record page\'s bottom action bar on a phone, 1 on any other header.', ), /** ARIA accessibility */ aria: AriaPropsSchema.optional().describe('ARIA accessibility attributes'), From 263001fa76362cbf617179f85706cecedb83075b Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 20 Nov 2026 09:58:56 +0000 Subject: [PATCH 2/2] docs(ui): page header table states the per-host maxVisible fallbacks Co-Authored-By: Claude --- content/docs/ui/pages.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/ui/pages.mdx b/content/docs/ui/pages.mdx index f7a0dc2730b..923a89c942e 100644 --- a/content/docs/ui/pages.mdx +++ b/content/docs/ui/pages.mdx @@ -300,7 +300,7 @@ unknown or retired key (`description`, `icon`, `breadcrumb`, `showStar`) is refu | `placedActions` | — | `true` asks for every action of the object placed at `record_header` / `record_more`, read live, in place of an `actions` list, so an action another package adds is drawn without editing the page. Refused beside an authored `actions` list: keep one. The platform's user, organization and approval request pages set it | | `recordChrome` | `true` | Draw the title as the record chip (object label, copy-id button, the record's picture when the object names an `imageField`); `false` keeps a bare heading | | `showCopyId` | `true` | The copy-record-id button in the chip | -| `maxVisible` / `mobileMaxVisible` | 3 / 1 | How many actions render inline before the rest fold into the `⋯` menu | +| `maxVisible` / `mobileMaxVisible` | 1 in a record page's one-row header bar, 3 elsewhere / 2 in a phone record page's bottom bar, 1 elsewhere | How many actions render inline before the rest fold into the `⋯` menu | | `aria` | — | ARIA attributes (`ariaLabel`, `ariaDescribedBy`, …) for the `
` element | A named action renders only if its `locations` include `record_header` (inline) or