Skip to content

docs(spec): page:header maxVisible describe states the renderer's per-host fallbacks - #35821

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-qixvqq
Nov 20, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-qixvqq

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread
Fixes #35660

repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:只改元数据参考文档里「页头按钮露几个」的说明文字,界面行为不变。
  • 属于记录页一行头部专题的收尾,让文档与上一张卡改过的默认值一致。
  • 只是说明文字,出错只会让作者读到不准的说明,可直接撤回。
  • 无。

What changes

packages/spec/src/ui/component.zod.ts, page:header:

  • maxVisible describe: "(renderer default 3)" becomes "Renderer default when unset: 1 in a record page's one-row header bar, 3 on any other header."
  • mobileMaxVisible describe: "(renderer default 1)" becomes "Renderer default when unset: 2 in a record page's bottom action bar on a phone, 1 on any other header."
  • The docblock above them no longer names 3 / 1 as the fallbacks; it points at the describe strings. Its reason for having no schema default is unchanged.
  • content/docs/references/ui/component.mdx regenerated with pnpm --filter @objectstack/spec gen:docs (2 rows).
  • Changeset 35660-page-header-max-visible-describe.md, patch on @objectstack/spec.
  • content/docs/ui/pages.mdx:303 (hand-written, claim surface amendment 2, comment 7036602364): the Default cell of the maxVisible / mobileMaxVisible row said "3 / 1"; it now states the same per-host fallbacks. The docs-drift bot flagged it (comment 7036588828). The release-owned pages it also names are untouched.

No schema shape change, no .default(), no renderer code.

Tests

Renderer fallbacks measured at origin/main 65fddc8 (A1)

All in ui/packages/components/src/renderers/layout/containers.tsx, the one resolver PageHeaderActions:

  • :2603-2607: bar face uses mobileMaxVisible ?? PHONE_ACTION_BAR_BUTTONS; mobile row uses mobileMaxVisible ?? 1; desktop uses maxVisible ?? defaultMaxVisible ?? 3.
  • :1929: PHONE_ACTION_BAR_BUTTONS = 2.
  • :3153: page:header passes defaultMaxVisible={inBar ? 1 : undefined}; inBar is true only at :3492, the record page's one-row header bar (drawsInBar, :3168). The in-page record header (:3547) and the non-record header (:3570) pass nothing, so 3.
  • :3149: face="bar" when the host gives a phone face (the record page's bottom action bar).
  • ui/packages/app-shell/src/views/RecordDetailView.tsx:5775: the print chrome draws PageHeaderActions with no budget props (3 / 1), but that row has no page:header, so the keys do not reach it.
Generated artifacts (A2) and gates, local, head 3af5715; pages.mdx commit 263001f re-ran affected-docs, drift-comment, doc-anchors, doc-authoring, docs-spec-enumerations, nul-bytes, all exit 0
  • git grep of both old strings: only component.zod.ts and content/docs/references/ui/component.mdx.
  • pnpm --filter @objectstack/spec build: VERDICT command-exit 0.
  • pnpm --filter @objectstack/spec check:generated: "All 14 generated artifacts are up to date" (exit 0).
  • exit 0: check:docs, check:liveness, check:authorable-surface, check:api-surface, check:llms-txt (spec); check:adr-0087-registration --base origin/main, check-changeset-no-major, check-empty-changeset, check-comment-mask-corpus, check-issue-citations, docs-audit/check-affected-docs, docs-audit/check-drift-comment, check:doc-anchors, check:docs-spec-enumerations, check-nul-bytes.
  • overlap-check --branch=HEAD: VERDICT clean.
  • The rest of the derived families run in CI.

Acceptance notes

  • Out of scope, not edited (outside the claim's file surface): the renderer comment at containers.tsx:2574 ("default to 3 / 1"), the prop docs at containers.tsx:1947/1949, ui/packages/types/src/ui-action.ts:1072 "(default: 1)" and ui/packages/components/src/renderers/action/auto-trigger.ts:24 still state the old pair. They are code comments, no metadata or author-facing reference; carrier: none.

Verification

pnpm --filter @objectstack/spec gen:docs && git diff content/docs/references/ui/component.mdx shows no change: the two page:header rows read as above.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CZh8cPvxZUjw1JuYzZ

…-host fallbacks

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation protocol:ui tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 20, 2026
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/spec, touching 3 documentable anchor(s).

1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/ui/pages.mdx (via maxVisible (symbol, a field of const object PageHeaderProps, an authorable key of ui/PageHeaderProps), mobileMaxVisible (symbol, a field of const object PageHeaderProps, an authorable key of ui/PageHeaderProps))

⛔ 2 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v15.mdx (via maxVisible (symbol, a field of const object PageHeaderProps, an authorable key of ui/PageHeaderProps), mobileMaxVisible (symbol, a field of const object PageHeaderProps, an authorable key of ui/PageHeaderProps))
  • content/docs/releases/v17/17-6.mdx (via PageHeaderProps (symbol, a top-level const object))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 174 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json cbc50a5a8ecc47eb5c5246fe90ab67d3570e625a → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 8fde2cc751d57d558b7d65436b9b9b63a0a9060c — the merge of head 263001fa76362cbf617179f85706cecedb83075b into base cbc50a5a8ecc47eb5c5246fe90ab67d3570e625a, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 8fde2cc751d57d558b7d65436b9b9b63a0a9060c && git checkout 8fde2cc751d57d558b7d65436b9b9b63a0a9060c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin cbc50a5a8ecc47eb5c5246fe90ab67d3570e625a 263001fa76362cbf617179f85706cecedb83075b && git checkout -B drift-repro cbc50a5a8ecc47eb5c5246fe90ab67d3570e625a && git merge --no-ff 263001fa76362cbf617179f85706cecedb83075b

node scripts/docs-audit/affected-docs.mjs --json cbc50a5a8ecc47eb5c5246fe90ab67d3570e625a

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs cbc50a5a8ecc47eb5c5246fe90ab67d3570e625a → pass the list as
args.docs, on the commit named under Which tree this was computed on.

Co-Authored-By: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

Final head · area ux-4 · 2026-11-20T10:37Z

Reading Value
Head 263001fa76362cbf617179f85706cecedb83075b
CI 62 success, 11 skipped, 1 cancelled (PR-body guard superseded by a later success after the body edit), 0 failed or pending
check-governed-merges --pr 35821 not governed, 29 lines
K (merge base..origin/main) 7 (< 15)
Surface 4 files within claim 7036160652 + amendment 2 (7036602364, content/docs/ui/pages.mdx Default cell)

os-dev-report: 7036568619 on #35660. packages/spec describe and docblock text only: no shape change, no default, no renderer code. New text, measured from containers.tsx: when unset, maxVisible is 1 in the record page's one-row header bar and 3 on any other header; mobileMaxVisible is 2 in a record page's phone bottom action bar and 1 on any other header. The phone-bar reading of 2 is new versus the card. component.mdx is regenerated by gen:docs. Sent to L1-a; the seat reads reviewFace for a possible L2 after L1.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 只改说明文字,不改任何行为:页面头部「最多显示几个按钮」两个设置项的说明,以前写的默认值(桌面 3、手机 1)和实际不符。
  • 现在写清楚:不设置时,记录页的单行头部显示 1 个,其他头部 3 个;手机上记录页底部操作栏显示 2 个,其他头部 1 个。
  • 同步改了两处文档里的同一说明。
  • 因为改动落在对外发布的规范定义文件里,按规则需要席位做一次接口层面的复核(只核这两句文字)。
  • 席位意见:通过;转席位做接口复核,复核通过后分区合并。

席位核对

ACCEPT · head 263001fa76 · Fixes #35660 (p2, maintainer exception 09:37Z) · K=7 · merge-tree vs origin/main clean · governed 0/4 · 4 files, 29 lines · CI 62 success, 11 skipped; the one cancelled PR-body guards run (10:00:04Z) is superseded by a success of the same check (10:00:20Z) · 2026-11-20T10:40Z

reviewFace (record-recognisers.mjs, committed file list + the changeset's Clause-②: no): face schema, tier CONTRACT_REVIEW_TIER, hits.schema = [packages/spec/src/ui/component.zod.ts], hits.rules = []. A published-schema path is an L2 face whatever the edit, so L2 at CONTRACT_REVIEW_TIER by the seat is owed; scope floor = that file. Then the area lands it.

Checked, sentence by sentence against the renderer at this head (containers.tsx PageHeaderActions, ~2603-2607 and ~3153):

  • maxVisible unset: desktop takes defaultMaxVisible ?? 3, and the record page's one-row header passes defaultMaxVisible={inBar ? 1 : undefined} → "1 in a record page's one-row header bar, 3 on any other header" ✔.
  • mobileMaxVisible unset: the phone bottom bar (face === 'bar') takes PHONE_ACTION_BAR_BUTTONS = 2; any other mobile header takes 1 → "2 in a record page's bottom action bar on a phone, 1 on any other header" ✔. The 2 is new against the card's wording and is what the code does.
  • No shape change: both keys stay optional with no schema default; only the two .describe() strings and the JSDoc above them change. The JSDoc's reason for no schema default (a default would materialize the key on every header) still holds.
  • Prose faces checked against the same lines: content/docs/references/ui/component.mdx (the generated reference rows, identical to the new describes) and content/docs/ui/pages.mdx Default cell (amendment 2, 7036602364). The changeset says the same.
  • action:bar (action-bar.tsx ?? 1 / ?? 3) is another component with its own keys; untouched and not described here.
  • Surface: the 4 files are inside claim 7036160652 + amendment 2.

Required before landing:

  • R1. L2 by the seat at CONTRACT_REVIEW_TIER on component.zod.ts (text only).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

VERDICT: PASS

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 263001fa76362cbf617179f85706cecedb83075b
Local-runs: none
Scope: packages/spec/src/ui/component.zod.ts + none

No file in the diff implements the two strings: the renderer they describe is outside it. Read, not reviewed: ui/packages/components/src/renderers/layout/containers.tsx, ui/packages/components/src/renderers/action/action-bar.tsx, ui/packages/app-shell/src/views/RecordDetailView.tsx, ui/packages/app-shell/src/views/recordDrawerStack.tsx. The changeset, the generated content/docs/references/ui/component.mdx and the one cell of content/docs/ui/pages.mdx are the lane seat's ACCEPT.

① Derived judgments

  • Accept set: unchanged, right. Both keys stay z.number().int().positive().optional() in the same strict object. The diff moves only the two .describe() arguments (855, 858) and two docblock passages (842-844, 849-850).
  • Public surface: two description strings of PageHeaderProps change in the published schema. No export, key, type or default moves. Right.
  • No schema default added: right. A default would put the key on every parsed header, and an authored value outranks the host's defaultMaxVisible (containers.tsx:2607), so it would undo the one-button record bar.
  • Generated output: component.mdx:1582-1583 carry the two strings verbatim, and no other tracked file holds either string. Right.
  • Gates: 74 check-runs on this head. 62 success, 11 skipped (opt-in or not applicable), 1 cancelled: the first PR-body guards run, replaced by a later success of the same name. Check Changeset, Spec property liveness, Lint · docs & code guards, Build Docs, the Type Check families, Test Core and Test UI are all green.

② Semver level

@objectstack/spec patch: right. The diff publishes description text and nothing else. Metadata-protocol: none is right: what an author can write, and what a written value means, do not change here. The default itself moved in the renderer under #35593, not in this diff. The Clause-②: no line is right, since no export and no accept set moves, and it stands line-initial in both the PR body and the changeset body.

③ Boundary flags

  • open_questions: empty.
  • Deviation (the local test-typecheck needed a larger heap): local tooling only. The Type Check runs on the head are green. Answered.
  • Claim surface: held, amendment 2 included. No shape change, no default, no renderer code.
  • out_of_scope_findings ("carrier: none"): answered in three parts.
    • ui/packages/types/src/ui-action.ts:1070-1073 and ui/packages/components/src/renderers/action/auto-trigger.ts:24 describe action:bar, whose own resolver still falls back to 3 / 1 (action-bar.tsx:232-234). They are correct as written and should not be changed.
    • containers.tsx:2574-2575 and 1947 / 1949 are stale code comments on page:header. They need no carrier of their own.
    • Not in the report: containers.tsx:3631, the designer input description of mobileMaxVisible ("A positive integer, defaulting to 1"). It is published to sdui.manifest.json:3547 and the generated content/docs/ui/components/page.mdx:59, so it is author-facing, and it now disagrees with the reference row for the phone record bar. It predates this PR and is renderer code outside the claim's surface. Escalated to the seat: one domain:ui follow-up card for line 3631 with its regenerated manifest and page, taking the two stale comments along.
  • SQL push-down: not applicable. No query, id materialisation or join.

④ Design judgment

packages/spec/src/ui/component.zod.ts, against the renderer it cites: the one resolver, PageHeaderActions, read at this head.

  • maxVisible (855): holds. The desktop budget is readMax(maxVisible) ?? defaultMaxVisible ?? 3 (containers.tsx:2607). page:header passes a defaultMaxVisible of 1 only for the tail it portals into the host's bar (3153, 3492). That draw needs a host bar, a face that is not a phone, a loaded record and record chrome on (3168). The record view gives that bar on every non-phone record, page or pane (RecordDetailView.tsx:5464, recordDrawerStack.tsx:649). The in-page record header (3547) and the non-record header (3570) pass nothing, so 3.
  • mobileMaxVisible (858): holds. The bar face reads readMax(mobileMaxVisible) ?? PHONE_ACTION_BAR_BUTTONS, which is 2 (1929, 2603-2604), and the bar face exists only where the record view gives a phone face (RecordDetailView.tsx:4458, 5822). Every other mobile row reads ?? 1 (2606).
  • Docblock (842-844, 849-850): holds. The renderer comment it quotes still reads "overridable on the page:header" (2574), and the reason for having no schema default still stands.
  • Tried to break it with: a record page with recordChrome: false, a header before its record loads, a record in a drawer on a phone, a narrow viewport that is not a phone, and the print chrome row (RecordDetailView.tsx:5775, which has no page:header, so neither key reaches it). Each lands on the "any other header" arm with the number the string gives.

No must-fix, no should-fix.

  • N1 (nit) — In the phone bar the budget counts every button, the host's Edit included (containers.tsx:2672-2679). On the header row Edit takes no slot. The string gives 2 without saying so, so on an editable record an unset key draws Edit and one of the page's actions. The number is right. Left as an accepted deviation for a later text touch of this row: a fix here would move the head.

Implemented-by: claude/project-thread-qixvqq
Reviewed-by: isolated-l2-35821

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

Landing · area ux-4 · 2026-11-20T10:47Z

Reading Value
check-governed-merges --pr 35821 not governed, 29 lines → ordinary queue landing
K (merge base..origin/main) 8 (< 15)
CI on head 263001fa76 62 success, 11 skipped, 1 superseded cancelled guard run, 0 failed or pending; mergeable clean

Head 263001fa76362cbf617179f85706cecedb83075b:

Ready + auto-merge now. #35660 closes on merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:ui size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spec: page:header 的 maxVisible 说明仍写「渲染器默认 3」,记录页一行头部改为默认 1 后要同步(承 #35593)

1 participant