Skip to content

fix(i18n): the compact toolbar hint says the same thing in every language - #37523

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-8g8mrg
Nov 26, 2026
Merged

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

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

Fixes #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 #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

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

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CaA9KCLA988RAhFACC

…uage

The ten translated compactToolbar hints and the console zh-CN overlay now
carry the whole reworded English hint. The hint and the describe name the
popover "Display", the word the toolbar shows. The types jsdoc and the
plugin-list README no longer put Refresh in the Display panel, and the
view liveness note points at the current toolbarFlags lines.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CaA9KCLA988RAhFACC
@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 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

⚠️ 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. Nothing else in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 2 changed package(s)).

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
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • 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 — 177 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 276174ab0c70804700b196d4d718268331be8120 → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head bc41a77 · 2026-11-26T11:30Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: bc41a77bc10780d418c1d4f8649c47bdf465c411
Local-runs: none
Scope: packages/spec/src/ui/view.form.ts, packages/spec/src/ui/view.zod.ts + packages/spec/liveness/view.json, ui/packages/types/src/objectql.ts, ui/packages/plugin-list/README.md

① Derived judgments

  • Accept set: unchanged. compactToolbar stays z.boolean().optional(); only its describe string and the form helpText change. Right.
  • Public surface: the describe text, the en hint and the reference docs change one word; ten locale hints and the console zh-CN overlay gain three sentences. No key added or removed. Right as a derivation.
  • Generated output agrees with its sources: the en pack leaf equals view.form.ts:109, the nine .mdx rows equal the describe, and the zh-CN overlay equals the zh-CN pack. The check-runs on this head are green (Lint & Repo Gates, Spec property liveness, Check Changeset, Build Docs).

② Semver level

All five packages at patch is right for a text-only change. Clause-②: no and Metadata-protocol: none are right: no accept set, key or behaviour moves. The changeset and the PR body carry the same two lines.

③ Boundary flags

  • Dev flag, check:i18n-coverage not measured locally: answered by the green check-runs on this head.
  • Dev flag, the compactToolbar and addRecord liveness notes left with old line numbers (outside the fence): accepted as a follow-up. Note that the compactToolbar note's "View-settings popover" is the name the UI shows today (see M1).
  • Fence amendment 1 (view.form.ts): the reason holds; the en pack is extracted from the form helpText.
  • SQL push-down: not applicable, the diff holds no query code.
  • No open_questions.

④ Design judgment

M1 (must-fix) — view.zod.ts:3699 and view.form.ts:109 rename the popover from "View settings" to "Display", and the UI at this head says "View settings".

  • ViewSettingsPopover.tsx:1256 labels the trigger with t('list.viewSettings') ("View settings", 视图设置). ListView.tsx:7791 titles the phone sheet with the same key.
  • No t('list.display') call exists anywhere in the tree. The key survives only in the default map at ListView.tsx:1617 and in the locale files.
  • ListView.fieldListRead-11984.test.tsx:269 pins the compact toolbar's buttons as Filter, Sort, View settings.
  • The card's scope comment said the UI says "Display" and to use the UI's word. That premise is stale (objectstack#35878 renamed the panel). The UI's word is "View settings", which is what main already says.
  • Effect: the describe, the en hint, nine docs rows and all ten translations (显示, 顯示, 表示, 표시, Anzeige, Affichage, Visualización, Exibição, Отображение, العرض) now name a button no builder can find. Each translation does match its locale's list.display; that is the wrong key.
  • Fix: keep "View settings" in both spec files and regenerate; name the popover in each locale by its list.viewSettings label (视图设置, 檢視設定, ビュー設定, 보기 설정, Ansichtseinstellungen, Paramètres de la vue, Ajustes de vista, Configurações da visualização, Настройки представления, إعدادات العرض). Or return the scope item to triage for a ruling.

S1 (should-fix) — the sentences this diff rewrote in ui/packages/types/src/objectql.ts (2947–2953) and ui/packages/plugin-list/README.md (24–28) still disagree with the panel.

  • The footer button is "Restore defaults" (list.optionsMenu.restoreDefaults, ViewSettingsPopover.tsx:1209), not "Reset to view default". The footer also draws Save when the host wires onSave (:1186).
  • The panel has no Row numbers switch and no Edit inline switch: ListView.tsx:7594–7660 passes neither, and the component has no such prop.
  • Both texts call the panel "Display" (same root as M1).

Held against the tree:

  • "The compact toolbar draws no Refresh button" holds. The only Refresh button is ListView.tsx:8171, behind showRefresh && !compactToolbar; displayOffered (:7201) does not read it; the panel has no refresh control. The other setRefreshKey button (:8604) is the error-state Retry.
  • "Pull-to-refresh is unaffected by either key" holds: usePullToRefresh at :3687 is enabled on dataSource and objectName only.
  • liveness/view.json userActions note: toolbarFlags is ListView.tsx:2682–2736, showRefresh is :2717, the button is :8171. All three are right at the merge base 54ea3c8c3 and at origin/main.
  • The three added sentences in each of the ten hints and the overlay say what the English says.

Nits (the lane seat's files, no effect on the contract):

  • ko writes "새로 고침"; the UI's list.refresh is "새로고침".
  • es writes "deslizar para actualizar"; the UI's list.pullToRefresh is "Tirar para actualizar".

Implemented-by: claude/project-thread-8g8mrg
Reviewed-by: contract-reviewer session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: FAIL

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对

Head-sha: bc41a77bc10780d418c1d4f8649c47bdf465c411
REWORK — L1, seat repo:objectstack#5

  1. Shape: open draft against main, Fixes #36874. Clause-②: no, Metadata-protocol: none. Five packages at patch. Not governed (0 of 21 paths), 77 lines.
  2. Premise: the full hint in every locale and "the compact toolbar draws no Refresh" both hold in the tree. The popover's name does not. The seat checked M1 itself: the trigger (ViewSettingsPopover.tsx:1256), the phone sheet (ListView.tsx:7791) and the title switcher (objectViewTitleSwitcher.tsx:247) all read list.viewSettings ("View settings"). Nothing calls t('list.display').
  3. Gates: contract record 7190887867 reads FAIL at CONTRACT_REVIEW_TIER (verified on the transcript). Checks on the head are all green or skipped.
  4. Owed for the delta:
    • M1: name the popover by the word the UI shows, "View settings". The scope comment 7124214589 says to use the UI's word, but its premise that the word is "Display" is stale, so the seat rules for the UI's actual word; no triage round is needed. Put "View settings" back in the view.zod.ts describe and the view.form.ts helpText, regenerate the docs rows and the en pack, and use each locale's list.viewSettings label in the ten packs and the zh-CN overlay (the record lists them). Fence amendment 1 (view.form.ts) stays in force.
    • S1: make the objectql.ts jsdoc and the plugin-list README match the panel. The footer is "Restore defaults" (list.optionsMenu.restoreDefaults), plus Save when onSave is wired. Drop Row numbers and Edit inline, which ListView.tsx:7594-7660 does not pass. Call the panel "View settings".
    • Nits, fix while you're in the packs: ko 「새로고침」 (as list.refresh), es 「Tirar para actualizar」 (as list.pullToRefresh).
    • Update the changeset and the PR body to match: the "calls the popover Display" line goes.
  5. Out of scope and where it went: the stale addRecord / compactToolbar liveness line numbers are on console UI (area o1-B) loose ends: copy and doc-comment nits from landed reviews #35155 (7190845848).
  6. Next: push the fix, then knock. The same reviewer runs the delta. After ACCEPT, Bill names it on a card for landing.

The popover's button reads list.viewSettings ("View settings"); nothing
reads list.display. The describe and the form helpText keep "View
settings", and each translation uses its locale's list.viewSettings label.
The types jsdoc and the plugin-list README describe the panel as it is:
name, columns, Layout, Group, Row height and Row color, with Save,
Restore defaults and Export in the footer. ko and es use the UI's own
words for refresh and pull to refresh.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CaA9KCLA988RAhFACC
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head f4ae8ed · 2026-11-26T12:11Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: TIER_DEFAULT
Head-sha: f4ae8eda41b79f88ecb986bde4d175386ffcf29c
Local-runs: none

Delta record on record 7190887867 (FAIL at bc41a77b), after REWORK 7190902038. Face re-read on the new file list: no schema or governed path is left in the diff, and the changeset's Clause-②: no carries no narrowing arm, so this is the declaration face.

① Derived judgments

  • packages/spec/src/ui/view.zod.ts and packages/spec/src/ui/view.form.ts are back to main: neither is in the net diff. The en pack and the three reference .mdx files are out of the net diff too, so they equal main as their sources do.
  • Accept set and keys: unchanged. The net diff is 15 files of text: ten locale hints, the console zh-CN overlay, one liveness note, one jsdoc, one README, one changeset.
  • M1: closed. Each locale names the popover by its own list.viewSettings value in ui/packages/i18n/src/locales/: 视图设置, 檢視設定, ビュー設定, 보기 설정, Ansichtseinstellungen, Paramètres de la vue, Ajustes de vista, Configurações da visualização, Настройки представления, إعدادات العرض. That is the key the trigger reads (ViewSettingsPopover.tsx:1256). The zh-CN overlay equals the zh-CN pack.
  • S1: closed. The jsdoc in ui/packages/types/src/objectql.ts and the ui/packages/plugin-list/README.md entry now list what the panel draws: the view's name, its columns, then Layout, Group, Row height and Row color where offered, with Save, Restore defaults and Export in the footer. Row numbers, Edit inline and Refresh are gone, and the panel is called "View settings".
  • Nits: closed. ko reads 새로고침 and es reads «Tirar para actualizar», as the UI does.
  • The liveness note is unchanged from the reviewed head; its line numbers (2682–2736, 2717, 8171) still hold.
  • Check-runs on this head: 61 success, 12 skipped, none failed.

No must-fix, no should-fix.

② Semver level

Five packages at patch is right for text only. @objectstack/spec stays in the changeset correctly: liveness is in its published files. Clause-②: no and Metadata-protocol: none are right, and the changeset and PR body agree. Both now describe the "View settings" wording and the unchanged English source.

③ Boundary flags

  • The seat ruling in REWORK 7190902038 (keep the English as on main, because the UI's word is "View settings") agrees with the tree and with the card's instruction to use the UI's word.
  • Left-out liveness notes (compactToolbar, addRecord old line numbers): still a follow-up, outside this PR.
  • SQL push-down: not applicable, no query code.
  • No open_questions.

Implemented-by: claude/project-thread-8g8mrg
Reviewed-by: contract-reviewer session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对

Head-sha: f4ae8eda41b79f88ecb986bde4d175386ffcf29c
ACCEPT — L1, seat repo:objectstack#5

  1. Shape: open draft against main, Fixes #36874. 15 files, +45/−22. Not governed. Text only: Clause-②: no, Metadata-protocol: none, five packages at patch. view.zod.ts and view.form.ts are back to main, so the PR has no review face, and the declaration face applies at TIER_DEFAULT.
  2. Premise: the compactToolbar hint now says the same thing in all ten locale packs and in the console zh-CN overlay. It names the popover by each locale's list.viewSettings label, which is the word the UI shows. The jsdoc and README describe the real panel.
  3. Gates: delta record 7191731377 (same reviewer) reads PASS. M1, S1 and the ko/es nits are closed. CI on this head: 61 success, 12 skipped, 0 failed.
  4. Accepted deviations: none.
  5. Out of scope and where it went: the stale addRecord / compactToolbar liveness notes are on console UI (area o1-B) loose ends: copy and doc-comment nits from landed reviews #35155 (7190845848).
  6. Landing terms: ungoverned, default tier, no narrowing declared. The seat lands it with --land once the maintainer names it, because area o5-U cannot run --land.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Probe Reading
check-governed-merges --pr 37523 NOT governed, +45 / −22 ≤ 3000. No narrowing declared (Clause-②: no, Metadata-protocol: none)
landing-k --pr 37523 OK, K = 7 < 15
pr-state --pr 37523 at f4ae8eda41 61 success · 12 expected skip · 0 failed · 0 pending, mergeable clean
os-regen paths in diff none (git check-attr reads no os-regen on any of the 15 paths)

Landing on seat ACCEPT 7191740870, which sits on the same-head delta PASS 7191731377. The maintainer named this PR on the seat thread's decision card: 「合并 #37523」 on 「合并已 ACCEPT 的非受管 PR #37523(紧凑工具栏提示多语言)吗?」, 2026-11-26T12:26Z. Action: ready + auto-merge. Closes #36874 on merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 26, 2026 12:28
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 81c1ae9 Nov 26, 2026
74 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-8g8mrg branch November 26, 2026 12:57
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.

表格紧凑工具栏(compactToolbar)的说明改写后:十种译文和控制台中文覆盖层只剩旧的第一句,需要译者过一遍

2 participants