Skip to content

docs(spec): the compactToolbar describe and the userActions liveness note say which toolbar draws Refresh - #36872

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-36353-compact-toolbar-refresh-describe
Nov 24, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-36353-compact-toolbar-refresh-describe

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
Fixes #36353

Clause-②: no
Metadata-protocol: none

repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB

维护者速读

  • 用户无感:视图元数据里「紧凑工具栏」这一项的说明文字改了,写明默认就是紧凑工具栏、紧凑工具栏上没有刷新按钮;界面与行为都不变。
  • 属于「列表页重做」专题的收尾:上一轮已把「刷新开关只管宽工具栏」写进刷新开关的说明,这次把相邻的工具栏说明和审计台账补齐。
  • 出错时最坏是说明文字不准,作者或智能体误判某个开关管哪个工具栏;只改文字,可整体撤回。
  • 无。

What changes

  • packages/spec/src/ui/view.zod.ts, the compactToolbar describe: the first sentence is kept and two are added. It now says the compact toolbar is on by default (omitted or true; false draws the wide toolbar, one button per control) and that the compact toolbar draws no Refresh button, so userActions.refresh governs only the wide toolbar; pull-to-refresh is unaffected by either key. The wording follows the userActions.refresh describe that fix(plugin-list): Refresh alone no longer draws the Display entry in the default list toolbar #36339 landed ("Governs only the wide toolbar's Refresh button (compactToolbar: false): the default toolbar has no Refresh, so the toggle changes nothing there.").
  • packages/spec/src/ui/view.form.ts: the view form's compactToolbar hint mirrors the new describe. The hint == describe pin (src/ui/view-form-composite-children.test.ts, "top-level rows that gained a hint carry their schema description") requires it.
  • packages/spec/liveness/view.json, the userActions note: the userActions.refresh sentence now says it drives only the wide toolbar's Refresh button and names the reader by line: showRefresh at ui/packages/plugin-list/src/ListView.tsx:2710, the button at :8125 behind !compactToolbar, measured at 5c2e34cdb. The verdict stays live.
  • Regenerated, not hand-edited: content/docs/references/{ui/view,data/object,api/protocol}.mdx (check:generated --fix, which found only check:docs stale) and packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts (node scripts/check-i18n-bundles.mjs --write --filter=platform-objects; translated locales keep their wording).
  • Changeset .changeset/36353-compact-toolbar-refresh-describe.md: patch for @objectstack/spec and @objectstack/platform-objects.

Description text only. compactToolbar stays z.boolean().optional() and userActions.refresh is not touched, so no key, type, default or optionality changes and the accept set is the same.

What the new sentences rest on, read on origin/main 5c2e34cdb (ui/packages/plugin-list/src/ListView.tsx):

  1. Default: compactToolbar: schema.compactToolbar !== false (:2718). The plugin-list registry input already says "On by default; false draws one toolbar button per control" (ui/packages/plugin-list/src/index.tsx:236).
  2. No Refresh in the compact toolbar: the only Refresh button is toolbarFlags.showRefresh && !toolbarFlags.compactToolbar (:8125, data-testid="refresh-button"). ViewSettingsPopover gets no refresh prop (the viewSettingsElement at :7548), and components/ViewSettingsPopover.tsx has no refresh hit at all.
  3. Pull-to-refresh: usePullToRefresh({ onRefresh: handlePullRefresh, enabled: !!dataSource && !!schema.objectName }) (:3680), attached unconditionally to the list root (ref={pullRef}, :7637). It reads neither compactToolbar nor userActions.refresh.

Prior rulings: check-prior-rulings --paths over both files lists 146 hit lines. The ones near the edited lines (view.zod.ts :3710 ruling 6095014058 letter A on sharing, :3733 #15184 ruling B on composition order, :1935/:1946 the hideFields/editInline defaults; view.json :236, :250, :254) are about other keys, and none governs compactToolbar or the refresh scope. No ADR names compactToolbar. The scope sentence restates what #36339's describe already says (contract review record 7076152814, N2 and N3), and no ruling is reversed.

Read first, by risk:

  1. packages/spec/src/ui/view.zod.ts, the compactToolbar line: this is the published schema text, and the contract review reads it.
  2. packages/spec/liveness/view.json, the userActions note: the line numbers it cites.

Tests

Final head: ca02fd3f8. Every local reading below was taken against that head's tree.

Local readings (builds and tests under scripts/pm/os-verify-lock.sh)
  • pnpm --filter @objectstack/spec build: VERDICT command-exit 0.
  • pnpm --filter @objectstack/spec check:generated --fix: rebuilt the package first, and regenerated only check:docs (content/docs/references/**), the one artifact it found stale. A re-run of check:generated then exited 0.
  • pnpm --filter @objectstack/spec test: Test Files 885 passed (885), Tests 28146 passed, 1 todo (28147), exit 0.
  • pnpm --filter @objectstack/spec typecheck: exit 0.
  • pnpm --filter @objectstack/platform-objects test: Test Files 125 passed (125), Tests 2126 passed (2126), exit 0. typecheck: exit 0.
  • The hint == describe pin src/ui/view-form-composite-children.test.ts: Test Files 1 passed (1), Tests 20 passed (20), VERDICT command-exit 0. With view-form-pagination.test.ts and view.test.ts: 3 files, 573 tests passed.
  • node scripts/check-i18n-bundles.mjs: before the regeneration, "platform-objects: 1 bundle(s) drifted from the schema". After --write --filter=platform-objects: "OK (10 package(s), all bundles in sync)". This ran after the build of the @objectstack/cli + @objectstack/platform-objects closure (VERDICT command-exit 0).

No ablation and no reverse verification: the diff changes description text, a ledger note and generated output, and no tested behaviour.

Acceptance notes

Verification

Two-minute check: pnpm --filter @objectstack/spec exec vitest run src/ui/view-form-composite-children.test.ts shows 20 passed. grep -n "compactToolbar: z" packages/spec/src/ui/view.zod.ts shows the new describe after z.boolean().optional().

Gates
  • node scripts/pm/dispatch-gates.mjs --commands on the final diff named 112 commands, and all of them ran locally. The --ran reconciliation reads "112 derived famil(ies) accounted for, 112 run, 0 NOT-MEASURED".
  • 108 exited 0. The other four:
    • Exit 3, PREREQUISITE NOT MET, so NOT MEASURED locally (CI measures them): node scripts/check-plugin-teardown-shape.mjs --self-test, because the shallow clone cannot reach its pinned fixture commit; pnpm check:dual-build-cjs-loads, because the whole-tree dist is absent; pnpm --filter @objectstack/spec run check:skill-examples, because some workspace dists are absent.
    • Exit 1: pnpm check:platform-checklist, "ABSENT SYMBOL packages/metadata-core/src/anonymous-form-intake.ts#anonymousFormExplicitWithdrawals" in docs/qa/platform-checklist/areas/access-security.json. This diff touches neither file. The symbol is absent from that source at the base 5c2e34cdb and at the current origin/main d9c799c10, so it is red independently of this PR, and it is reported to the seat.
  • pnpm --filter @objectstack/spec check:generated: exit 0. node scripts/check-i18n-bundles.mjs: exit 0. node scripts/pm/overlap-check.mjs: see Acceptance notes.
  • node scripts/check-dev-prereqs.mjs (a local-only family): exit 1, "the workspace is not built" (44 of 108 package dists absent in this container). This describes the machine and says nothing about the diff.
  • node scripts/pm/dispatch-gates.mjs --tier: no path-derived mandate.

Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB

… say which toolbar draws Refresh

The compactToolbar describe (and its form hint, pinned equal) now states the
renderer default (compact unless false) and that the compact toolbar draws no
Refresh, so userActions.refresh governs only the wide toolbar; pull-to-refresh
is unaffected. The userActions liveness note gives the refresh sub-key its
wide-toolbar scope and the current reader line.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
…dle, add the changeset

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
@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 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/platform-objects, @objectstack/spec, touching 2 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/spec/liveness/view.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

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

  • content/docs/frontend/plugins/plugin-view.mdx (via compactToolbar (literal, a string literal in sections))
What this run could not see
  • 1 changed file(s) yielded no anchor (packages/spec/liveness/view.json) — pages documenting those are invisible to this run
  • 2 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 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; 124 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 — 175 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 76bff41f451d3fa3d475384d8483905f49f6607f → packageMentionDocs.

Which tree this was computed on

This run read content/docs from fe3fb6c5a44d6bf46024fd3d8a1864a8995b5553 — the merge of head ca02fd3f89afbb29c51208859b7183818b5e5314 into base 76bff41f451d3fa3d475384d8483905f49f6607f, 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 fe3fb6c5a44d6bf46024fd3d8a1864a8995b5553 && git checkout fe3fb6c5a44d6bf46024fd3d8a1864a8995b5553
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 76bff41f451d3fa3d475384d8483905f49f6607f ca02fd3f89afbb29c51208859b7183818b5e5314 && git checkout -B drift-repro 76bff41f451d3fa3d475384d8483905f49f6607f && git merge --no-ff ca02fd3f89afbb29c51208859b7183818b5e5314

node scripts/docs-audit/affected-docs.mjs --json 76bff41f451d3fa3d475384d8483905f49f6607f

⚠️ 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 76bff41f451d3fa3d475384d8483905f49f6607f → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufziwMkZG34d69p8BHb4

Contract-review-claim: session_01WGufziwMkZG34d69p8BHb4 · head ca02fd3 · 2026-11-24T06:34Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufziwMkZG34d69p8BHb4

席位核对 — ACCEPT · repo:objectstack#3 · head ca02fd3 · 2026-11-24T06:35Z

L1: ACCEPT
Head-sha: ca02fd3f89afbb29c51208859b7183818b5e5314
Card: #36353 (from contract review 7076152814 N2/N3 on #36339) · os-dev-report 7123443977 · surface amendment 7123463265. Contract review claimed on this head (7124084371) at CONTRACT_REVIEW_TIER, face schema (view.zod.ts, view.form.ts); the record follows.

Checklist

  • Shape: l1-face CLEAN, 13 items. Draft, base main, first line Fixes #36353. mergeable_state clean.
  • Checks at this head: 60 success, 10 expected skip, 0 failed, 0 pending.
  • Governance: NOT governed, 39 lines, most of them generated.
  • Declarations: Clause-②: no and Metadata-protocol: none. compactToolbar stays z.boolean().optional(); only its .describe() string moves. No accept set changes.
  • Changeset: spec and platform-objects at patch, both published with src moved. The prose is true sentence by sentence. The claim that the translated help texts keep their current wording is also true: only the en bundle is regenerated.
  • The describe against the renderer on this head (ui/packages/plugin-list/src/ListView.tsx):
    • on by default: true. compactToolbar: schema.compactToolbar !== false (:2718);
    • the compact toolbar draws no Refresh: true. The Refresh button sits behind toolbarFlags.showRefresh && !toolbarFlags.compactToolbar (:8125), and showRefresh is ua?.refresh !== false (:2710);
    • pull-to-refresh is unaffected: true. usePullToRefresh (:3680) reads neither key.
      It now matches the userActions.refresh describe from fix(plugin-list): Refresh alone no longer draws the Display entry in the default list toolbar #36339.
  • Card "Done when": all three lines met. The describe states the default and the absence of Refresh; the form hint equals the describe, as the existing pin requires; the docs and en bundle are regenerated; and the liveness note names the wide-toolbar scope with reader lines pinned to a measured sha (5c2e34c).
  • Scope: inside the amended surface (7123463265).
  • Overlap: the only conflict with feat(spec)!: retire the boolean arm of a relationship field's inlineEdit, which read as absent once a parent field group decides the placement #36802 is a generated one, in content/docs/references/data/object.mdx; it resolves with merge=os-regen.

Findings

Must-fix: none. Should-fix: none.

Landing notes

The area lands once this ACCEPT and a PASS contract-review record on this head are both in place. Fixes #36353 closes the card.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufziwMkZG34d69p8BHb4

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ca02fd3f89afbb29c51208859b7183818b5e5314
Local-runs: none
Scope: packages/spec/src/ui/view.form.ts, packages/spec/src/ui/view.zod.ts + packages/spec/liveness/view.json

Inputs read: card #36353 with all five comments (triage 7076775316, unblock 7101079773, claim 7122783775, dev report 7123443977, claim amendment 7123463265), PR #36872 body, its 8-file list and the net diff against main, and the check-runs on the head. The renderer was read at origin/main 0819cab13 and at the PR head; ui/packages/plugin-list/src/ListView.tsx is byte-identical on the two, so every line number below holds on both.

① Derived judgments

  • Accept set: unchanged, and the PR says so correctly. compactToolbar stays z.boolean().optional() at view.zod.ts:3664; only the .describe() string changes. No key, type, default, optionality or strictness moves, so every view that parsed before parses the same and nothing that was refused is now accepted.
  • Public surface: the description text of one property changes, and with it the description in the generated JSON schema and the three regenerated reference pages. Text only. Right.
  • view.form.ts:109: the helpText is the same string as the describe, character for character. The pin view-form-composite-children.test.ts:97-101 asserts helpText equals the schema description for compactToolbar, and Test Core is green on this head. Right.
  • en.metadata-forms.generated.ts: one helpText line, the same string. It is generated from the form hint, and its package is in the changeset. Right.
  • packages/spec/liveness/view.json: the userActions row keeps status: live; only its note changes. No verdict moves, and the Spec property liveness check is green. Right.
  • Check-runs on the head: 60 success, 10 skipped (opt-in or matrix placeholders), none failed or pending. Check Changeset, Governed Surface Queue Guard, Spec property liveness, Test Core and Lint · docs & code guards are among the green ones.

② Semver level

Clause-②: no. Correct: no accept set narrows or widens and no published type changes shape.

The changeset is patch for @objectstack/spec and @objectstack/platform-objects. Both packages ship changed bytes (a description string, and the English help text generated from it), and neither changes behaviour or an accepted value, so patch is the right level for both. Metadata-protocol: none is correct: no key, type or default of the metadata protocol changes. The changeset's prose matches the diff, including its statement that the translated help texts keep their wording.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • Deviation, file surface: en.metadata-forms.generated.ts was outside the claim. It is the generated mirror of the edited hint, and the claim amendment 7123463265 adds it. Accepted.
  • Deviation, first commit made with the repo pre-commit hook skipped, then amended with hooks before any push: nothing reached the remote without the hook, and the CI lint families are green on the head. Accepted.
  • Deviation, second push sent after overlap-check exited 1 on a generated-file conflict with feat(spec)!: retire the boolean arm of a relationship field's inlineEdit, which read as absent once a parent field group decides the placement #36802 in content/docs/references/data/object.mdx: a regenerated file, outside this review's scope, and GitHub reports the PR mergeable_state: clean against its base. For the lane seat's ACCEPT; no contract effect.
  • Deviation, one locked batch sequenced with ;, and test:repo left to CI: the head's check-runs are the gate verdicts here and they are green. Accepted.
  • Dev flag, check:platform-checklist red locally on an absent symbol in files outside this diff: Lint & Repo Gates is green on this head, so nothing blocks this PR. The dev's out-of-scope finding stands for the seat to route.
  • Dev flag, the userActions note's first sentence still cites the old ListView.tsx:374: confirmed, see N2.
  • Dev flag, translated hints carry only the first sentence: confirmed, see N4.
  • SQL push-down: not applicable. The diff holds no query, no id materialisation and no join; it is description text.
  • Author: the PR's user.login is objectstack-fleet[bot], so no separate author note is owed.
  • The PR is a draft and no auto-merge is armed.

④ Design judgment

packages/spec/src/ui/view.zod.ts — each sentence of the new describe against ui/packages/plugin-list/src/ListView.tsx:

  1. "On by default: omitted or true, the renderer draws this compact toolbar; false draws the wide toolbar, one button per control." Holds. :2718 is compactToolbar: schema.compactToolbar !== false, so undefined and true both give the compact form and only false gives the wide one. The test ListView.test.tsx:1337 pins the unset case. The host forwards the key unchanged: ui/packages/plugin-view/src/ObjectView.tsx:3154 passes namedView ?? activeView ?? schema, which is undefined when no one sets it, so the default is the list's own.
  2. "The compact toolbar draws no Refresh button." Holds. The only Refresh button under ui/ that reads a view key is :8125, toolbarFlags.showRefresh && !toolbarFlags.compactToolbar, data-testid="refresh-button" at :8134. components/ViewSettingsPopover.tsx has no occurrence of "refresh", and displayOffered at :7163 does not count showRefresh, so Refresh is neither on the compact bar nor in the Display panel.
  3. "so userActions.refresh governs only the wide toolbar." Holds. userActions.refresh has one reader under ui/: :2710, showRefresh: ua?.refresh !== false, and showRefresh has one use, :8125. No file under packages/, apps/ or examples/ outside the spec reads either key.
  4. "pull-to-refresh is unaffected by either key." Holds. :3680 enables usePullToRefresh on !!dataSource && !!schema.objectName alone, handlePullRefresh at :3675 bumps refreshKey unconditionally, and ref={pullRef} is on the list root at :7637. ui/packages/mobile/src/usePullToRefresh.ts reads only enabled.

The new text also agrees with its sibling on main, the userActions.refresh describe at view.zod.ts:1971 ("Governs only the wide toolbar's Refresh button (compactToolbar: false): the default toolbar has no Refresh"). The two descriptions now name each other and say the same thing from both sides. It meets the card's first Done-when clause.

Other readers of compactToolbar under ui/, each read to try to break the text:

  • plugin-view/src/ObjectView.tsx:1023, :3154: a pass-through, no default of its own. Consistent.
  • plugin-list/src/index.tsx:236: the registry input says "On by default; false draws one toolbar button per control". Consistent.
  • types/src/objectql.ts:2954: the type is compactToolbar?: boolean, @default true. Consistent on the default; its jsdoc is stale on Refresh, see N1.
  • app-shell/.../StudioDesignSurface.tsx:5575: the Studio Records artboard sets compactToolbar: false after spreading the list schema, so that one design surface draws the wide toolbar whatever the view says. See N5.
  • app-shell/.../InterfaceListPage (census row :519): the interface page config has no such key, so the list's default applies. Consistent.
  • The rest are tests, changelogs and key lists.

packages/spec/src/ui/view.form.ts — the hint is the describe verbatim, as the pin requires, so the four judgments above carry over. The neighbouring refresh hint at :250 already says the same from the other side. Holds.

packages/spec/liveness/view.json (widened scope) — the new sentence in the userActions note holds: showRefresh is read at :2710 and the button is drawn at :8125 behind !compactToolbar, on main today as at the cited 5c2e34cdb; pull-to-refresh does not read the key. It meets the card's second Done-when clause.

No must-fix, no should-fix.

Nits, none of which changes correctness or the contract on this head:

  • N1 (nit) — two texts outside the diff now contradict the new describe: the jsdoc at ui/packages/types/src/objectql.ts:2946-2953 lists Refresh among what Display carries, and ui/packages/plugin-list/README.md:27 puts Refresh in the Display footer. Both were stale before this PR. Follow-up card.
  • N2 (nit) — view.json keeps old objectui line numbers beside the new ones: the userActions note's first sentence cites ListView.tsx:374, and the compactToolbar row at :86-89 cites ListView.tsx:370 and :1776-1988. The card asked only for the userActions.refresh sentence. Follow-up card or accepted deviation.
  • N3 (nit) — "one button per control" is the desktop reading: on the wide form the Hide fields button is hidden sm:inline-flex (:7861), so below sm not every control has a bar button. The Refresh button, the subject of the sentence, is drawn at every width. The wording matches the renderer's own registry text. Accepted deviation.
  • N4 (nit) — the translated hints (ui/packages/app-shell/src/views/metadata-admin/metadata-form-zh-cn.ts:440 and the non-English bundles) keep only the first sentence, as the changeset states. Follow-up card for the translation.
  • N5 (nit) — the describe says "the renderer"; the Studio Records artboard overrides the key to false (StudioDesignSurface.tsx:5575). That is a design surface's own choice, not the list renderer's default, and the describe need not carry it. Accepted deviation.
  • N6 (nit) — the kept first sentence still calls the panel a "View settings popover"; the UI labels it "Display". Not changed by this diff. Accepted deviation.

Implemented-by: claude/issue-36353-compact-toolbar-refresh-describe
Reviewed-by: session_01WGufziwMkZG34d69p8BHb4 (sub-agent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB

Landing · 2026-11-24T06:39Z · ACCEPT 7124101951 (L1-b) at head ca02fd3

reading value
check-governed-merges.mjs --pr 36872 NOT governed · +26/−13
landing-k.mjs --pr 36872 OK · K = 2 < 15 · label PR, no new locale pack, no shared book moved
contract review PASS 7124131764 (CONTRACT_REVIEW_TIER) on ca02fd3; no must-fix, no should-fix; nits N1–N6 go to the seat
Clause-② no: describe/hint text and a liveness note only; patch for @objectstack/spec and @objectstack/platform-objects, Metadata-protocol: none
checks at ca02fd3 60 success, 10 expected skip, 0 failed, 0 pending; mergeable clean

State: ready + auto-merge (area ux-D, not governed, ≤3000 lines). Fixes #36353: merging closes the card.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 24, 2026 06:39
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 7a5ae65 Nov 24, 2026
71 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36353-compact-toolbar-refresh-describe branch November 24, 2026 07:17
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…bjectstack-ai#36881)

<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBDErTg6aA1Xze24mDcUfseY)_
Part of objectstack-ai#36860

This is part (a) of the card's two-PR split, which the seat chose when
the whole change measured about 3,530 changed lines: the spec
declaration, the serving, the header translation, the extractor support
and the console precedence, proven end to end on `hook`. Part (b)
follows from `main` once this merges and closes the card: the other 26
types, their 52 new header leaves in the 11 `metadata-forms` bundles,
the 9 console declarations moved into spec and the duplicate `object`
registration resolved.

Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: none — the served `list` is Studio display data that only
the spec registry declares; a metadata author cannot write it, and no
skill under `skills/**` teaches Studio list columns
(`skills/objectstack-ui/SKILL.md` names `entries[].schema` only,
unchanged)

## 维护者速读

- 工作室里「钩子」列表的列改由平台规范统一声明,列头随界面语言显示,其他元数据列表暂时不变。
- 属于工作室元数据列表标准化:列定义从控制台代码搬进规范,命令行和 AI 客户端读同一份。
- 只有看钩子列表的管理员会看到列变化;出错时退回原来的默认列,合并后可直接撤回。
- 无。

## What changes

- **Spec (`@objectstack/spec`).** `MetadataListViewSchema` is a list
layout bound to the type's own schema (`data: { provider: 'schema',
schemaId }`) with `columns`. Each `MetadataListColumnSchema` is
`ListColumnSchema` narrowed to `field` / `label` / `type`. `field` is a
schema key or a dotted path into it, and `type` is a
`MetadataListCellTypeSchema` renderer: `text`, `badge`, `boolean`,
`count`, `list` or `summary`. `defineList({ schemaId, columns })` builds
one and refuses anything else. `METADATA_LIST_REGISTRY` (`system`) sits
beside `METADATA_FORM_REGISTRY` and declares `hook` here.
`resolveMetadataListLabels` translates a list's headers through
`metadataForms.<type>.fields.<field>.label`.
- **Serve (`@objectstack/metadata-protocol`, `@objectstack/rest`).**
`getMetaTypes()` serves the registry entry as `list` beside `form`, and
`GetMetaTypesResponseSchema` declares it. `translateMetaTypesResponse`
localizes the headers with the bundle and locale it already uses for
`form`. A type with no entry carries no `list` key.
- **i18n (`@objectstack/lint`).** `walkMetadataForms` emits the form
field slot for each column path the type's form does not already label,
with the header as the English source. `scripts/check-i18n-bundles.mjs`
names the registry module as a bundle trigger. Every `hook` header
reuses a form label, so no bundle changes.
- **Console (`@object-ui/app-shell`).** `ResourceListPage` reads the
served columns first (`servedListColumns.tsx`). If the type serves none,
it uses the console's `listColumns`, then the default name / label /
description. A served header is shown as served. A key the stored row
omits shows the schema default at that path. `listCells` overrides a
served column's cell and `listExtraColumns` appends server-stamped
values that are not schema keys. `builtinComponents.tsx` and
`anchors.ts` are not touched here; their 9 declarations move in part
(b).

## Tests

- `packages/spec/src/system/metadata-list-zod-reconciliation.test.ts`:
every column resolves to a declared, writable, non-retired, non-overlay
key of its type's schema. No column is duplicated, and each header
equals the form field label or the humanized path. Each refusal has a
"gate can fail" pin: an undeclared key, an `_` overlay key, a retired
key, an undeclared nested key, and `defineList` refusing `currency`, an
empty column list and `width`.
-
`packages/metadata-protocol/src/protocol.meta-types-list-layout-36860.test.ts`:
every registry type is served with its own frozen layout. The control is
a type with no entry, which carries no `list` key.
- `packages/rest/src/meta-types-list-headers.test.ts`: zh-CN headers are
translated through the form field slot, dotted path included, and only
the header is rewritten. The controls are the en headers, a type serving
no list, and no in-place mutation across requests. Ablation: replacing
the translate call with `next.list = entry.list` reds the zh-CN case (1
failed, 2 passed), restored by `trap`.
- `ui/.../servedListColumns.test.tsx` covers the renderers, path and
default readers and the precedence helpers.
`ui/.../ResourceListPage.servedListColumns-36860.test.tsx` mounts the
page and checks served headers in order, each renderer, schema defaults
for absent keys, a dotted path, the default list as control, a
`listCells` override and a `listExtraColumns` column.

## Acceptance notes

- First batch: this PR declares `hook` only, by the seat's split. The
keys of all 27 types were checked against their schemas, and the dropped
or corrected keys are in the card's thread. They land with part (b).
- `GetMetaTypesResponseSchema` declares `list` but still not `schema` /
`form` (pre-existing gap, not widened here).
- The runtime dispatcher's `/metadata/types` path does not translate
`form` today, and `list` follows it (pre-existing, unchanged).
- No plugin registrar for list layouts, per the seat route (7122844515).
- Overlap: `node scripts/pm/overlap-check.mjs` reads clean against
`main` and the three open PRs sharing files (objectstack-ai#36872, objectstack-ai#36869, objectstack-ai#36857).

## Verification

Read first, by risk:
1.
`ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx`:
the precedence expression and `localizeColumnLabel` skipping a served
header.
2. `packages/lint/src/i18n-walk.ts`: the column step in
`walkMetadataForms`. It decides which bundle leaves part (b) adds.
3. `packages/spec/src/ui/view.zod.ts`: the `pick`/`extend` narrowing
behind `defineList`.

Two-minute check: `pnpm --filter @objectstack/rest exec vitest run
src/meta-types-list-headers.test.ts`. Expect 3 passed, with the zh-CN
case reading `['名称', '事件', '最大重试次数']`.

<details><summary>Gates on 597f70e</summary>

- `node scripts/pm/dispatch-gates.mjs --ran`: 145 derived, 145 run, 0
NOT-MEASURED, 0 UNRUN. Two findings were fixed in this PR:
`check:test-source-alias` (module-top `@objectstack/objectql` import in
the new rest test) and `check:engine-double-contract` (ledger rewritten
with `--write` for the new metadata-protocol test). Three gates first
exited 3 on prerequisites and were re-run green: the plugin-teardown
self-test after fetching its pinned fixture commit, and
`check:skill-examples` and `check:dual-build-cjs-loads` after building
the packages that had no dist.
- `pnpm --filter @objectstack/spec check:generated`: all 14 artifacts up
to date. `check:authorable-surface`, `check:llms-txt`,
`check:spec-parsed-alias`, `check-i18n-bundles` (no bundle changes),
`check:i18n`, `check:i18n-walk-parity`, `check-changeset-no-major`,
`check-empty-changeset` and `check-changeset-fixed` pass.
`check:i18n-coverage` passes after building `service-print`.
- `check-governed-merges --branch HEAD`: not governed, 1,309 changed
lines.
- `tsc --noEmit` is clean for `@objectstack/metadata-protocol`,
`@objectstack/rest` and `@objectstack/lint`. `@object-ui/app-shell`
type-check was not measured locally because the ui workspace deps have
no dist; the only error in the changed files is the shared unresolved
`@object-ui/components` import. CI's type-check lane is the verdict.
- Tests: spec `src/system` + `src/api/protocol` 2,941 passed; app-shell
`metadata-admin` list and directory pages 221 passed (15 files);
`@objectstack/lint` i18n 27; metadata-protocol meta-types 67; rest list
headers 3 + schema titles 3.
</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01WGufzg7mFFG5b13DcQ93kf

<!-- signed: repo:objectstack#3 · os-support-ai ·
session_01WGufzg7mFFG5b13DcQ93kf -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…tstack-ai#36883)

<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBP9pYn3ZkhGT2R2hstwEY6w)_
Fixes objectstack-ai#36816
Clause-②: no
Metadata-protocol: none

repo:objectstack#3 · os-support-ai · session_01WGufzh1FMUQYf1PcEunaaK

## 维护者速读

-
在工作室打开仪表盘设置面板的搭建者,看到的九条字段提示(名称、显示名称、列数、间距、自动刷新、页眉、组件、日期范围、全局筛选)从开发术语改成了业务说法,英文、中文和其余八种语言同步更新。
- 属于"报表与仪表盘面板说业务话"这项体验工作,是已完成的报表面板改写的仪表盘姊妹篇,替用工作室搭仪表盘的业务管理员解决看不懂开发术语的问题。
- 只改了提示文字,不改任何可保存的设置;出错最多是某句提示读起来别扭,直接撤回即可。
- 无

## What changes

The dashboard authoring form (`packages/spec/src/ui/dashboard.form.ts`)
supplies the hints the Studio dashboard settings panel draws. The route
is the one the seat set for the report panel: English wording at the
producer first, no `en` overlay, and no rename of a section title whose
key is slugged from its label. Nine hints are rewritten in business
terms, with no CSS units, casing jargon or "config".

| Row | Before | After |
|:---|:---|:---|
| Name | snake_case unique identifier | A unique internal name for this
dashboard: lowercase letters, numbers and underscores, starting with a
letter (for example sales_overview). |
| Label | Display name | The title people see for this dashboard. |
| Columns | Grid columns (default 12) | How many columns the widgets are
laid out on, from 1 to 24. Leave it empty and the dashboard picks a
width that fits its widgets. |
| Gap | Space between widgets, in steps of 0.25rem (4 = 1rem) | How much
space to leave between widgets. Larger numbers spread them further
apart; leave it empty for the standard spacing. |
| Refresh Interval Seconds | Auto-refresh (seconds) | How often the
dashboard reloads its data, in seconds. Leave it empty or enter 0 to
turn automatic reloading off. |
| Header | Dashboard header config (title, subtitle, actions) | What
shows at the top of the dashboard: its title, its description and action
buttons. |
| Widgets | Dashboard widgets with position and sizing | The charts,
numbers and tables on this dashboard, and where each one sits. |
| Date Range | Default date range selector | The period the dashboard
opens with, and whether viewers may pick their own dates. |
| Global Filters | Filters applied to all widgets | Filters viewers can
use to narrow every widget at once, or only the widgets you choose. |

The Columns and Gap rows describe what the dashboard renderer really
does with an empty value. An unset `columns` is inferred from the
widgets' widths (4 or 12), not fixed at 12. An unset gap falls back to
the standard 4.

- **Translations.** `node scripts/check-i18n-bundles.mjs --write`
rewrote the `en` leaves and kept every translated value (merge mode).
The nine leaves were then re-translated by hand in all ten translated
locales: zh-CN, zh-Hant, ja-JP, ko, es-ES, fr, de, pt-BR, ru and ar.
This follows the repository's usual rule for changed source text (the
last source-hint change, 9742142, re-translated every locale too). No
`*.source-hashes.generated.ts` moved: these leaves had no provenance
entry.
- **Console zh-CN overlay**
(`ui/packages/app-shell/src/views/metadata-admin/metadata-form-i18n.ts`,
claim amendment 7124829549). The curated dashboard inspector renders
Chinese from this overlay, not from the platform bundle. Its nine
dashboard hints now carry the platform's new zh-CN wording; before, they
still read "snake_case 唯一标识" and "栅格列数(默认 12)". The comment over the gap
row is rewritten to match.
- **The console's "Tailwind units" control**
(`metadata-form-i18n.test.ts`) read the producer's English gap hint and
asserted it still held developer units, so that its zh leg would mean
something. It was built to go red once the spec spoke plainly. Its
English leg is now a fixed literal (the pre-rewrite hint). It then holds
both the producer's English and the zh overlay free of the vocabulary,
and a new case sweeps every dashboard hint in both languages. The
`columns` zh pin moved with its row.
- **Pin.**
`packages/spec/src/ui/dashboard-form-business-wording-36816.test.ts`
names the nine rewritten rows. Each must declare a hint free of
developer vocabulary, and a sweep holds every hint in the form to the
same rule. A control proves the vocabulary test fires on the old hints.
It pins the kind of text, not a sentence.

Unchanged on purpose: section titles and descriptions; field and
repeater-row labels (each row label must equal its schema `title`); the
three header-child hints, which already read as a builder would say
them; and the `DashboardSchema` `.describe()` prose, which is author
documentation outside the panel. The widget panel (studio
`engine.inspector.widget.*`) is out of scope. Left over (slugged section
keys): none — no section title was renamed.

**Contract review.** This PR moves non-test `packages/spec/src` text, so
it owes an **L2 contract review** before landing.

## Tests

<details><summary>spec, platform-objects and console readers: green at
5af304e</summary>

- spec: `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2
src/ui/ src/kernel/repeater-item-titles.test.ts
src/system/i18n-resolver.test.ts`: Test Files 191 passed (191), Tests
7185 passed (7185). The new pin alone, verbose: 11 passed (11).
- spec `typecheck` plus `check:generated`: exit 0, "All 14 generated
artifacts are up to date" (measured at 2969e9a; the merge of main
touched no spec file of this diff).
- platform-objects: Test Files 125 passed (125), Tests 2126 passed
(2126).
- ui, from `ui/`: metadata-form-i18n, dashboard-schema,
DashboardDefaultInspector*, p1-spec-alignment and
`packages/app-shell/src/preview`: Test Files 56 passed (56), Tests 447
passed (447). Before the console change, the old control failed as
predicted: 1 failed / 78 passed.
- Ablation of the spec pin through `scripts/ablation-replace.mjs`,
putting the old gap hint back (anchor x1 to x0): Tests 2 failed / 9
passed. Restored blob equals HEAD's.
- Ablation of the console sweep, putting "snake_case 唯一标识" back into the
overlay (anchor x1 to x0): Tests 1 failed / 22 passed. Restored blob
equals HEAD's.
- eslint on the two console files: exit 0. Every run above exited 0
under the verify lock, except the two ablation legs, which were meant to
fail.

</details>

## Acceptance notes

- `ui/packages/plugin-dashboard/src/DashboardRenderer.tsx:409` reads
`schema.gap || 4`. An authored gap of 0, which `DashboardSchema.gap`
allows (`.min(0)`), would therefore render as 4 (1rem). This is read
from the code, not measured through a public door. The new Gap hint
deliberately does not promise that 0 means no space.
- `DashboardSchema.columns` says "(default 12)", but the renderer infers
4 or 12 from the widgets' widths when columns is unset
(`DashboardRenderer.tsx:391-406`). The new Columns hint describes the
inferred behaviour; the describe prose is unchanged.
- The old developer phrasing remains in the `DashboardSchema`
`.describe()` prose (`dashboard.zod.ts` gap and header) and in its
mirror in `packages/cli/src/commands/explain.ts:293`. That is author
documentation, outside the panel and outside this card's surface.
- Open PRs objectstack-ai#36879, objectstack-ai#36872 and objectstack-ai#36802 regenerate the same platform
bundles. The files are `merge=os-regen`, so whichever lands second
regenerates; `overlap-check` reports a clean merge with all three today.

## Verification

First read, by risk:
`packages/platform-objects/src/apps/translations/*.metadata-forms.generated.ts`
(the ten hand-translated sets of nine leaves);
`ui/packages/app-shell/src/views/metadata-admin/metadata-form-i18n.test.ts`
(the reworked control and the new sweep);
`packages/spec/src/ui/dashboard.form.ts` (the nine hints).

Two-minute check: open a dashboard in Studio with the console in English
and open its settings. The Layout rows should read "How many columns the
widgets are laid out on…", "How much space to leave between widgets…"
and "How often the dashboard reloads its data…". Switch to Chinese and
the same rows read 组件排布所用的列数… / 组件之间留出的空间… / 仪表盘重新加载数据的频率(秒)….

---
_Generated by [Claude
Code](https://claude.ai/code/session_01WGufzh1FMUQYf1PcEunaaK)_

<!-- signed: repo:objectstack#3 · os-support-ai ·
session_01WGufzh1FMUQYf1PcEunaaK -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…uage (objectstack-ai#37523)

<!-- claude-projects-attribution: {"github_login":"os-bill"} -->
_Requested by **Bill** · [project
thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wgVAALzqi1uN3mNQFkgfPALM)_

Fixes objectstack-ai#36874

## 维护者速读

- Studio
里「紧凑工具栏」的说明,十种语言和控制台中文现在和英文一致:补上了「紧凑工具栏没有刷新按钮,`userActions.refresh`
只管宽工具栏」这几句,弹出框用界面上的叫法「视图设置」。
- 顺手改了两处说错的文档(类型注释和列表插件 README 里的面板内容与刷新按钮),以及 liveness 账本里过时的行号。
- 只改文字,不改任何键或行为;出错只是提示措辞不对,可直接撤回。
- 无。

## What changes

- **Ten locale packs**
(`packages/platform-objects/src/apps/translations/{ar,de,es-ES,fr,ja-JP,ko,pt-BR,ru,zh-CN,zh-Hant}.metadata-forms.generated.ts`,
the `compactToolbar.helpText` leaf only): each now carries the whole
English hint, not just its old first sentence. The popover is named with
each locale's own label for the "View settings" button
(`list.viewSettings` in `@object-ui/i18n`: 视图设置, 檢視設定, ビュー設定, 보기 설정,
Ansichtseinstellungen, Paramètres de la vue, Ajustes de vista,
Configurações da visualização, Настройки представления, إعدادات العرض).
ko and es use the UI's own words for refresh (새로고침) and pull to refresh
(Tirar para actualizar).
- **Console zh-CN overlay**
(`ui/packages/app-shell/src/views/metadata-admin/metadata-form-zh-cn.ts`,
the `compactToolbar` entry): same text as the zh-CN pack.
- **English source unchanged**: the scope comment asked for the UI's
word for the popover. The UI shows "View settings" (`list.viewSettings`
on the trigger, `ViewSettingsPopover.tsx:1256`; the phone sheet,
`ListView.tsx:7791`; the title switcher) and nothing reads
`list.display`, so the `view.zod.ts` describe and the `view.form.ts`
helpText already use the UI's word and stay as on `main` (seat ruling in
L1 7190902038).
- **N1**: the `compactToolbar` jsdoc in
`ui/packages/types/src/objectql.ts` and
`ui/packages/plugin-list/README.md` describe the View settings popover
as it is: the view's name, its columns, and Layout, Group, Row height
and Row color where the host offers them, with Save (when wired),
Restore defaults and Export in its footer. No Refresh, Row numbers or
Edit inline there; Refresh is drawn only at `ListView.tsx:8171` behind
`!compactToolbar`.
- **Liveness**: the `userActions` note in
`packages/spec/liveness/view.json` cites `ListView.tsx:2682-2736` for
`toolbarFlags`, `:2717` for `showRefresh` and `:8171` for the button,
measured at 54ea3c8.

## Why

PR objectstack-ai#36872 reworded the English hint; the translations and the zh-CN
overlay kept only its old first sentence, so non-English builders were
told less than the English says. The scope comment on the card added the
wording and line-number fixes.

## Verification

- `pnpm check:i18n` EXIT=0; `pnpm check:i18n-stale-fill` EXIT=0; `pnpm
check:i18n-walk-parity` EXIT=0.
- `pnpm --filter @objectstack/spec check:generated` EXIT=0 (all
artifacts current, incl. `check:liveness`, `check:docs`). Rework round 1
(head `f4ae8eda41`): same gates re-run, all EXIT=0.
- `check:i18n-coverage` could not measure locally (exit 3:
`examples/app-showcase` needs `@objectstack/service-print` built); left
to CI. This PR adds no key.
- `overlap-check --branch=HEAD`: clean against main and 6 open PRs.

Clause-②: no
Metadata-protocol: none

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes.
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset.
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed.
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English.
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01Utp6CaA9KCLA988RAhFACC

<!-- signed: repo:objectstack#5 · os-bill ·
session_01Utp6CaA9KCLA988RAhFACC -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
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: the compactToolbar describe and the userActions liveness note say which toolbar draws Refresh (after #36002)

2 participants