Skip to content

fix(spec): the report form's top-level rows use the blocks grid's terms - #36879

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-36838-report-form-one-vocabulary
Nov 24, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-36838-report-form-one-vocabulary

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
Fixes #36838
Clause-②: no
Metadata-protocol: none

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

维护者速读

  • 报表设计器(英文界面)里报表顶层的四个栏目名改成与联合报表分块表格一致的说法:数据来源、指标、分组、列分组;“指标”和“文件名”两条提示改成与实际运行一致;中文面板的“日期范围”“运行时筛选”两条提示跟上了新的英文说法。
  • 属于“报表面板说业务话”这项体验工作的收尾,替用英文界面搭报表的业务管理员解决同一张表单里一个设置有两种叫法的问题。
  • 只改了栏目名和提示文字,不改任何可保存的设置;出错最多是某句提示读起来别扭,直接撤回即可。
  • 无

What changes

One form, one vocabulary: the report form's top-level data rows now carry the titles its joined-blocks grid already uses (report.form.ts lines 93–96 on main), and two hints now say what the runtime does.

Label resolution, measured. The four top-level rows declared no label, and ReportSchema gives those keys no .meta({ title }), so both readers fell through to the key:

  • the console form: SchemaForm.tsx:1931–1934, fieldSpec.label, then the localized schema title, then prettify(name);
  • the catalog extractor: packages/lint/src/i18n-walk.ts:2771, inlineText(field.label) ?? humanizeFieldPath(path).

A form-row label is therefore the route (producer-first, no en overlay). Each metadataForms.report.fields.KEY.label leaf already existed with the humanized text, so no catalog key is added, moved or removed; only its en value changes.

Row (key) Old en New en zh-CN
dataset label Dataset (prettified key) Data Source console overlay 数据来源, unchanged; platform bundle 数据集, unchanged
values label Values (prettified key) Metrics overlay 指标, unchanged; platform 度量, unchanged
rows label Rows (prettified key) Group By overlay 分组, unchanged; platform 行, unchanged
columns label Columns (prettified key) Group Columns By overlay 列分组, unchanged; platform 列, unchanged
values hint (N2) The metrics to total or count (from the data source). The metrics to show, such as totals, counts, averages or ratios (from the data source). overlay 要统计的指标(来自数据来源), unchanged; platform 要展示的度量名(来自该数据集), unchanged
exportOptions.fileNamePrefix hint (N3) The start of the downloaded file’s name, used instead of the report name. The start of the downloaded file’s name. Left empty, the file is named after the report’s label, or its name when it has no label. overlay and platform: 下载文件名的开头。留空时以报表的显示名称命名,没有显示名称时用名称 (was 下载文件名的开头,用来代替报表名称)
dateRange hint (N4) en unchanged en unchanged overlay: 打开报表时显示的时间段,以及使用者能否自己选择范围 (was 默认时间段与自定义范围开关。按数据来源里的一个日期分组筛选;只有一个日期分组时可留空)
runtimeFilter hint (N4) en unchanged en unchanged overlay: 每次显示报表时都会应用的筛选,叠加在数据来源自身的条件之上 (was 渲染时的范围筛选,在查询时以 AND 方式并入)
  • N3, measured at the runtime: ReportExport.tsx:210–217 passes prefix, then the localized report label with name as its fallback, into buildExportFileName (ui/packages/core/src/utils/export-filename.ts:58–77), which takes the prefix first and appends the date and time. The form's own Label / Name rows are the words the hint now uses (显示名称 / 名称 in zh-CN).
  • N2: a report metric is any dataset measure (sum, count, average, ratio, derived), so the hint names examples instead of a closed pair.
  • N4: console overlay only, per the card. dateRange was already a hand-worded row (marked 36373); runtimeFilter is now marked the same way, because the platform zh-CN row is the ledger-pinned rendering of the older sentence and is left alone.
  • Locale packs: node scripts/check-i18n-bundles.mjs --write changed only en. The fileNamePrefix hint is re-translated in zh-CN, ja-JP and es-ES (it is not one of the six rows 报表面板改写后的六行:ja-JP 和 es-ES 译文仍是旧的开发者含义,需要译者过一遍 #36836 carries). The locales that held the old English as a fill (ar, de, fr, ko, pt-BR, ru, zh-Hant) carry a provenance entry for the leaf, so they serve the new English until translated, which is the repository's rule for a changed source string.
  • Ledgers: report-dataset-panel-echo-decisions.test.ts pins the en of four leaves this PR moves (dataset, values, rows labels and the values hint). Each row now holds the new English and says why: the label values are still byte-identical to their blocks twins, whose English is now the same string; the values hint values promise no narrower set than the new English. No verdict and no translated value changed. report-form-echo-decisions.test.ts asserted the English of the "Dataset" twin its section heading was rendered from; that assertion now points at the dataset type's own label, which reads the same three words, and the header records why the population did not move.
  • Left alone, per the seat route: the slugged section titles Dataset binding and Joined blocks, every key, type, default and Zod shape.

Tests

platform-objects, spec, console readers: all green at cf23885
  • pnpm --filter @objectstack/platform-objects test: Test Files 125 passed (125), Tests 2126 passed (2126). The first run of the translations folder had one red, report-form-echo-decisions.test.ts "the authored vocabulary the other five rows were derived from is still there" (expected 'Data Source' to be 'Dataset'); fixed as described above.
  • pnpm --filter @objectstack/spec exec vitest run src/ui/ src/system/ src/kernel/repeater-item-titles.test.ts scripts/schema-index.test.ts: Test Files 267 passed (267), Tests 9316 passed (9316).
  • pnpm --filter @objectstack/spec --filter @objectstack/platform-objects run typecheck: exit 0.
  • From ui/, pnpm exec vitest run over 26 report-form reader files (every ReportDefaultInspector*, panelBusinessWording-36373, report-schema, metadata-form-i18n, SchemaForm.machineNameChip-8231, SchemaForm.deDeveloperize-8218, SchemaForm.refDatasetWidget-11601, InterfacesPillar.report*, metadataError.report*, ReportConfigPanel*, _shared.labels, export-filename, the ReportExport* tests): Test Files 26 passed (26), Tests 254 passed (254).
  • pnpm --filter @objectstack/spec check:generated: "All 14 generated artifacts are up to date".
  • pnpm check:i18n-stale-fill: OK, no new stale fills.
Derived gate families: 91 run at cf23885, 89 exit 0, 2 not measured (prerequisite, exit 3)
  • node scripts/pm/dispatch-gates.mjs --commands derived 91 commands for this diff; each ran once, exit code captured before any pipe. 89 exited 0, among them pnpm check:i18n ("all bundles in sync, no undeclared authoring keys"), pnpm check:i18n-stale-fill, pnpm check:test-source-alias, pnpm check:doc-authoring, pnpm check:nul-bytes, spec check:docs / check:api-surface / check:authorable-surface, and pnpm --dir ui exec vitest run scripts/.
  • NOT MEASURED, exit 3: node scripts/check-plugin-teardown-shape.mjs --self-test (positive control pinned to a commit this shallow checkout cannot reach) and pnpm check:dual-build-cjs-loads (needs a whole-workspace build). Both are CI's.
  • node scripts/pm/dispatch-gates.mjs --ran: "91 derived famil(ies) accounted for — 91 run, 0 NOT-MEASURED" (the two above are NOT MEASURED by their own exit code).
  • node scripts/pm/overlap-check.mjs: VERDICT clean (origin/main and open 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 both merge cleanly).

Acceptance notes

  • The platform zh-CN, ja-JP and es-ES values for these four labels still read the older dataset vocabulary (数据集 / 度量 / 行 / 列 and their ja-JP and es-ES twins), at the top level and in the blocks grid alike, so each locale stays one vocabulary inside the form. The console's curated panel reads the business words from its own overlay. Moving the platform values to the business wording is a translator pass over both positions together (eight leaves), not part of this rename.
  • Overlap with 报表面板改写后的六行:ja-JP 和 es-ES 译文仍是旧的开发者含义,需要译者过一遍 #36836: the values hint is one of its six rows. Its English moved again here; its zh-CN, ja-JP and es-ES values were not touched, so that card should translate against the new English. The fileNamePrefix hint is not one of the six and is fully translated here.
  • With a label that no longer spells the key, the server-served form shows its machine-name hint beside these four rows (SchemaForm.tsx:2044–2051), as it already does for Sort Order. This follows from that rule; it was not checked in a browser.
  • @object-ui/app-shell type-check was not run locally (one data file, strings only); it is left to CI's Type Check UI.

Verification

First read, by risk: packages/spec/src/ui/report.form.ts (four labels, two hints); packages/platform-objects/src/apps/translations/report-dataset-panel-echo-decisions.test.ts (moved en sources and their reasons); ui/packages/app-shell/src/views/metadata-admin/metadata-form-zh-cn.ts (three zh-CN hints).

Two-minute check: open a summary report's metadata form in Studio with the console in English. The data rows read Data Source, Metrics and Group By (Group Columns By on a matrix report), matching the joined-blocks grid, and the File Name hint under Period and export says an empty prefix names the file after the report's label.


Generated by Claude Code

@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation protocol:ui tests 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 1 documentable anchor(s).

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

  • content/docs/ui/reports.mdx (via fileNamePrefix (literal, a string literal in sections))
  • content/docs/ui/views.mdx (via fileNamePrefix (literal, a string literal in sections))
What this run could not see

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 0819cab13c33b6b996c0a5c410052d9524fcf1f7 → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 0819cab13c33b6b996c0a5c410052d9524fcf1f7

⚠️ 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 0819cab13c33b6b996c0a5c410052d9524fcf1f7 → 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 cf23885 · 2026-11-24T07:10Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对 — ACCEPT · repo:objectstack#3 · head cf23885 · 2026-11-24T07:11Z

L1: ACCEPT
Head-sha: cf23885ef91081bbd511897baf7b74c561cec8b6
Card: #36838 (from L1 record 7121034256 on #36814, N1–N4) · claim 7123044139 · os-dev-report 7124023409. Contract review claimed on this head (7124704306) at CONTRACT_REVIEW_TIER (face: report.form.ts); the record follows.

Checklist

  • Shape: l1-face CLEAN, 13 items. Draft, base main, first line Fixes #36838. mergeable_state clean.
  • Checks at this head: 59 success, 10 expected skip, 0 failed, 0 pending.
  • Governance: NOT governed, 89 lines.
  • Declarations: Clause-②: no and Metadata-protocol: none. The four rows gain a form label, and the two hints change their text. No key, widget, visibleWhen, accepted value, default or .meta moves.
  • Changeset: spec and platform-objects (published, src moved), plus app-shell (private, inert), all at patch. The prose is true sentence by sentence:
    • the four labels now equal the blocks grid's titles;
    • the Metrics hint is widened;
    • File Name says the prefix replaces the label, falling back to the name. That is true of ReportExport.tsx:217: buildExportFileName(format, { prefix, label: reportLabel, objectName: name }), prefix first, then label, then name;
    • the bundles are regenerated, File Name is re-translated in three locales, and the overlay follows the English for Date Range and Runtime Filter.
  • Card Acceptance:
    • N1: met. The en top-level labels equal the grid's, and the console zh-CN overlay already read 数据来源 / 指标 / 分组 / 列分组 for both positions.
    • N2 and N3: met.
    • N4: met. The overlay dateRange and runtimeFilter hints follow the English. The date-grouping sentence moved to the dateRange.dimension child row, where it already lived.
    • Locale rule: File Name is translated in full. The new en of the values hint is left untranslated for 报表面板改写后的六行:ja-JP 和 es-ES 译文仍是旧的开发者含义,需要译者过一遍 #36836, the translator-pass card that already owns that row. The report names this, so it stays in the routed carrier.
  • Ledger: report-form-echo-decisions.test.ts changes no population count, verdict or translated value. The "Dataset" twin is re-pointed to en.dataset.label, with a per-locale assertion, because the en word the heading came from still has a home there. The dataset-panel ledger rows follow the moved hint.
  • Scope: inside the claim. The exportOptions.fileNamePrefix overlay row moved because the file keeps unmarked rows as byte copies of the platform bundle; it is declared.
  • Tests: platform-objects: 125 files, 2126 tests. spec: 267 files, 9316 tests. 26 UI reader files, 254 tests. check:generated up to date. No ablation, because only text and pins moved, which is fine for a text card.

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 #36838 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: cf23885ef91081bbd511897baf7b74c561cec8b6
Local-runs: none
Scope: packages/spec/src/ui/report.form.ts + packages/platform-objects/src/apps/translations/report-dataset-panel-echo-decisions.test.ts, packages/platform-objects/src/apps/translations/report-form-echo-decisions.test.ts, ui/packages/app-shell/src/views/metadata-admin/metadata-form-zh-cn.ts

Inputs read: card #36838 with its three comments (triage 7121121205, claim 7123044139, dev report 7124023409), PR #36879's body, file list and net diff against main, and the check-runs on this head. Every check-run on the head concluded success or skipped; none failed.

① Derived judgments

  • Accept set: unchanged — right. The diff adds a label to four existing rows of reportForm (dataset, values, rows, columns) and rewrites two helpText strings (values, exportOptions.fileNamePrefix). report.zod.ts is not in the diff, so no key, type, default, refinement or .meta({ title }) of ReportSchema or JoinedReportBlockSchema moves.
  • Form structure: unchanged — right. No row is added, removed or reordered; no field, widget, type, visibleWhen, required or section label changes. The section titles Dataset binding and Joined blocks, which slug into catalog keys, are untouched.
  • Published surface: values only — right. reportForm keeps its export and its shape; four label strings and two helpText strings are new values on it. The CI api-surface and authorable-surface gates are green on the head.
  • Catalog key set: unchanged — right. packages/lint/src/i18n-walk.ts:2771 on main emits metadataForms.report.fields.KEY.label as inlineText(field.label) ?? humanizeFieldPath(path), so each of the four label leaves already existed with the humanized text. The en bundle hunk changes six values and no key. The three translated bundles change one value each (exportOptions.fileNamePrefix.helpText).
  • Rendering: the declared label wins — right. SchemaForm.tsx:1931-1934 on main resolves fieldSpec.label, then the localized schema title, then prettify(name). ReportSchema gives these four keys no title (report.zod.ts:579-596), so the rows did read the prettified keys, as the new comment says.
  • Blocks-grid terms: match — right. The four new labels are byte-equal to the blocks rows of the same form (Data Source, Group By, Group Columns By, Metrics) and to JoinedReportBlockSchema's titles at report.zod.ts:440-446.
  • Fill locales: served correctly — right. ar, de, fr, ko, pt-BR, ru and zh-Hant still hold the old English fileNamePrefix hint as a fill. Each carries a provenance entry for that leaf in its source-hashes.generated.ts, so the source-hash fallback serves the new English. zh-CN, ja-JP and es-ES carry no entry and are re-translated in this diff. The stale-fill gate is green.

② Semver level

  • .changeset/36838-report-form-one-vocabulary.md takes patch on @objectstack/spec, @objectstack/platform-objects and @object-ui/app-shell. Those are the three packages whose shipped bytes move, and patch is the level for a text fix in a released package.
  • Clause-②: no is right. No accepted set or published type shape changes; only string values on an exported form constant do. The line is present and line-initial in both the PR body and the changeset body, and it matches the claim.
  • Metadata-protocol: none is right. Nothing a metadata author can write is added, refused or given a new meaning or default. It is present in both bodies and matches the claim, and none takes patch.
  • The changeset prose agrees with the tree: the four old and new titles, the two hints, the three re-translated locales and the two zh-CN overlay hints are all as the diff has them.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • Deviation, the overlay's exportOptions.fileNamePrefix row moved: accepted. That file's header keeps unmarked rows byte copies of the platform zh-CN bundle, and the two values are byte-equal on this head.
  • Deviation, the Dataset twin assertion in report-form-echo-decisions.test.ts re-pointed: accepted, judged in ④.
  • Deviation, @object-ui/app-shell type-check left to CI: answered. Type Check UI is success on the head.
  • Deviation, the PR body footer shape: not a contract face, left to the lane seat.
  • Out-of-scope finding with no carrier, the platform label translations in the older vocabulary: see N2 in ④. It needs a card.
  • Out-of-scope finding carried by 报表面板改写后的六行:ja-JP 和 es-ES 译文仍是旧的开发者含义,需要译者过一遍 #36836: 报表面板改写后的六行:ja-JP 和 es-ES 译文仍是旧的开发者含义,需要译者过一遍 #36836 is an open card in pm:queue. It has no claim and no open PR, so no file overlaps today. The values hint is one of its rows; this PR moves that row's English and leaves its three translations alone, and the ledger row names 报表面板改写后的六行:ja-JP 和 es-ES 译文仍是旧的开发者含义,需要译者过一遍 #36836. The card must translate against the English on this head, so it is claimed after this PR lands, as the claim comment already orders.
  • Not stated as a flag but following from the diff: the server-served form now offers the machine-name hint on these four rows (SchemaForm.tsx:2044-2051: the source label no longer equals the prettified key). This is the same rule Sort Order already follows. The PR says it was not checked in a browser; no finding.
  • SQL push-down: the diff holds no query, no id materialisation and no in-app join.
  • Author: the PR's user.login is objectstack-fleet[bot], so no off-relay author note is owed.

④ Design judgment

packages/spec/src/ui/report.form.ts, against the runtime on main:

  • N1 of the card, the four labels: holds. One form now names each key once, and the terms are the schema titles one level down.
  • N2 of the card, the values hint: holds. values selects dataset measures by name (report.zod.ts:596). A measure may be an aggregate, avg among them, or derived with op: 'ratio' (dataset.zod.ts:334, :374). The report viewer draws whichever measures are named (DatasetReportRenderer.tsx:1165-1196). "Totals, counts, averages or ratios" is an open list of examples, each of which exists.
  • N3 of the card, the fileNamePrefix hint: holds. ReportExport.tsx:210-217 passes the prefix and pickLocalized(label, language) || name to buildExportFileName. That function (export-filename.ts:58-77) takes the sanitized prefix first, else the label, and appends the date and time. So the prefix is the start of the name, and an empty prefix names the file after the label, then the name. The new code comment says the same.
  • Tried to break it: a prefix that sanitizes to nothing falls through to the label, which agrees with the hint. The hint's "label" is the label in the viewer's language, which is still the report's label.

The two ledgers: consistent with the tree.

  • report-dataset-panel-echo-decisions.test.ts holds each row's en equal to the live bundle, and the four moved rows carry the new English. Their reasons were checked against the bundles: the top-level dataset, values and rows labels are byte-identical to their blocks.* twins in zh-CN, ja-JP and es-ES, and the three values hint translations say "the measure names to show", which promises no narrower set than the new English. No verdict and no translated value moved.
  • report-form-echo-decisions.test.ts: the re-pointed assertion is sound. The translated report.fields.dataset.label values are still asserted, and the English word Dataset is now read from dataset.label, whose three renderings are asserted equal to them.

metadata-form-zh-cn.ts: the three zh-CN hints say what the current English says. runtimeFilter and dateRange follow the English at report.form.ts, and the date-grouping sentence the old dateRange hint carried lives on the dateRange.dimension row. runtimeFilter is correctly marked hand-worded, because the platform row still holds the older sentence.

No must-fix, no should-fix.

Nits, none of which changes correctness or the contract:

  • N1 (nit) — ReportSchema.label is required (report.zod.ts:564), so the hint's last clause, "or its name when it has no label", describes a state a saved report rarely reaches. It is true of the runtime. Accepted as written.
  • N2 (nit) — after this PR the platform zh-CN, ja-JP and es-ES labels of these four rows translate the old English (行, Filas for Group By). They are legacy-trusted, so they stay served. Each locale is still one vocabulary inside the form, and the blocks twins were already in this state. The dev report lists it with no carrier. Follow-up card: a translator pass over the eight label leaves, and the platform zh-CN values hint, which 报表面板改写后的六行:ja-JP 和 es-ES 译文仍是旧的开发者含义,需要译者过一遍 #36836 does not cover.
  • N3 (nit) — the section heading still reads Dataset binding above a row titled Data Source. Renaming it moves a slugged catalog key, so it is rightly outside this PR. Follow-up card, or fold into N2's.
  • N4 (nit) — the Dataset binding row in report-form-echo-decisions.test.ts (line 251) still names report.fields.dataset.label as the Dataset twin without the 报表表单两套用词:顶层行仍是 Dataset/Values/Rows/Columns,区块表格已改为 Data Source/Metrics/Group By #36838 note its sibling ledger rows got. The file header and the test comment do carry it. Prose in a test file; accepted as a deviation.

Implemented-by: claude/issue-36838-report-form-one-vocabulary
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-24T07:15Z · ACCEPT 7124733963 (L1-b) at head cf23885

reading value
check-governed-merges.mjs --pr 36879 NOT governed · +63/−26
landing-k.mjs --pr 36879 OK · K = 3 < 15 · no new locale pack, no shared book moved
contract review PASS 7124778422 (CONTRACT_REVIEW_TIER) on cf23885; no must-fix, no should-fix; nits go to the seat (platform zh-CN/ja-JP/es-ES label leaves, Dataset binding heading)
Clause-② no: four form labels and two hints, no key, widget, default or accepted value moves; patch for spec, platform-objects, app-shell; Metadata-protocol: none
checks at cf23885 59 success, 10 expected skip, 0 failed, 0 pending; mergeable clean

State: ready + auto-merge (area ux-D, not governed, ≤3000 lines). Fixes #36838: merging closes the card. #36835 and #36836 (same file) are free to start once this merges.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 24, 2026 07:15
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit d95d34f Nov 24, 2026
70 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36838-report-form-one-vocabulary branch November 24, 2026 07:42
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
… zh-CN, ja-JP and es-ES (objectstack-ai#37377)

Fixes objectstack-ai#36836

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 用中文、日文、西班牙文做报表的人,在报表设置面板里看到的"数据来源 / 指标 / 分组 /
列分组"及六条说明,现在和英文说的是同一件事(之前还是旧的"数据集 / 度量 / 行 / 列"开发者说法)。
- 属于报表面板改用业务用语的收尾,替日文、西班牙文和中文的报表搭建者补齐译文。
- 出错只会是某条译文措辞不够好,不影响任何功能或数据,随时可以直接改回或再改。
- 无。

## What changes

Translation text only, in the three hand-written locale bundles of
`@objectstack/platform-objects` (`zh-CN`, `ja-JP`, `es-ES`
`*.metadata-forms.generated.ts`). No key added or dropped; `pnpm
check:i18n` is in sync.

**The six rows objectstack-ai#36447 reworded** (the six ledger-pinned hints PR objectstack-ai#36814
left marked "not re-judged"), re-translated from the current English in
ja-JP and es-ES, and in zh-CN too (see Acceptance notes):

| Leaf | zh-CN | ja-JP | es-ES |
|:---|:---|:---|:---|
| `report.sections.dataset_binding.description` |
报表的数字从哪里来、如何分组和排序,以及点击某一行时打开哪些记录 |
レポートの数値をどこから取得し、どのようにグループ化して並べ替えるか、そして行をクリックしたときにどのレコードを開くか。 | De dónde
provienen las cifras del informe, cómo se agrupan y ordenan, y qué
registros se abren al hacer clic en una fila. |
| `report.fields.dataset.helpText` | 报表从这里取数;每个人只能看到自己有权限的记录 |
レポートはここから数値を読み取ります。各ユーザーには、アクセス権のあるレコードだけが表示されます。 | El informe obtiene
sus cifras de aquí; cada persona solo ve los registros a los que tiene
acceso. |
| `report.fields.values.helpText` | 要展示的指标,例如合计、计数、平均值或比率(来自数据来源) |
表示する指標。合計、件数、平均、比率など(データソースから取得)。 | Las métricas que se mostrarán, como
totales, recuentos, promedios o proporciones (de la fuente de datos). |
| `report.fields.rows.helpText` | 按哪些字段分组(来自数据来源) |
グループ化に使うフィールド(データソースから取得)。 | Los campos por los que agrupar (de la
fuente de datos). |
| `report.fields.drilldown.helpText` | 点击汇总后的行或单元格,打开其中的记录 |
集計された行またはセルをクリックして、その元になっているレコードを開きます。 | Haz clic en una fila o celda
resumida para abrir los registros que hay detrás. |
| `report.fields.runtimeFilter.helpText` | 每次显示报表时都会应用的筛选,叠加在数据来源自身的条件之上
| レポートを表示するたびに適用されるフィルター。データソース自体の条件に加えて適用されます。 | Un filtro que se
aplica cada vez que se muestra el informe, además de las condiciones
propias de la fuente de datos. |

The `values` hint is translated against the current English from objectstack-ai#36879
("…such as totals, counts, averages or ratios…") in all three locales
(scope note item 1 and 2). `exportOptions.fileNamePrefix` was already
done by objectstack-ai#36879 and is untouched.

**The eight label leaves** (scope note item 3), each in zh-CN / ja-JP /
es-ES, top level and the `blocks` twin moved together:

| Leaves | was | now |
|:---|:---|:---|
| `dataset`, `blocks.dataset` | 数据集 · データセット · Conjunto de datos | 数据来源
· データソース · Fuente de datos |
| `values`, `blocks.values` | 度量 · メジャー · Medidas | 指标 · 指標 · Métricas |
| `rows`, `blocks.rows` | 行 · 行 · Filas | 分组 · グループ化 · Agrupar por |
| `columns`, `blocks.columns` | 列 · 列 · Columnas | 列分组 · 列のグループ化 ·
Agrupar columnas por |

zh-CN uses the console overlay's words; ja-JP and es-ES use the words
this catalog already spends on the data source (データソース / Fuente de
datos, e.g. `report.fields["dateRange.dimension"]`).

**The heading** (scope note item 4):
`report.sections.dataset_binding.label` 数据集绑定 / データセットのバインド /
Vinculación del conjunto de datos becomes 数据来源绑定 / データソースの紐付け /
Vinculación de la fuente de datos, so the heading names the source with
the same word as the field under it.

**Ledgers.** The three decision ledgers that pin these leaves are
updated in place: `report-form-echo-decisions.test.ts` and
`report-dataset-panel-echo-decisions.test.ts` record the re-judgement on
each row (the "not re-judged" notes are resolved); the vocabulary twin
test now asserts the business vocabulary (heading and field twins name
the source once, the description no longer speaks of dimensions); the
`AND` token test now asserts the business-wording hint carries no `AND`
in any locale, while the dataset filter twin keeps it.
`object-lifecycle-panel-echo-decisions.test.ts` copied its "rows"
fragment (行 / filas) from `report.fields.rows.label`; that leaf left the
record-row sense, so the eight copies now point at
`sys_import_job.fields.total_rows.label` (総行数 / Filas totales, authored,
no provenance row), and the renderings did not move.

## Tests

<details><summary>platform-objects translations suite + typecheck —
green at 1928c08</summary>

```
pnpm --filter @objectstack/platform-objects exec vitest run --maxWorkers=2 src/apps/translations
 Test Files  26 passed (26)
      Tests  610 passed (610)
pnpm --filter @objectstack/platform-objects run typecheck   (tsc --noEmit, scripts tsconfig, check:test-typecheck)
os-verify-lock: VERDICT command-exit 0
```

First run before the ledger fixes was red (2 files): a syntax slip in a
ledger reason, and the lifecycle ledger's twin assertion `ja-JP twin
report.fields.rows.label lost the shared fragment: expected 'グループ化' to
contain '行'` — the expected consequence of moving the rows label, fixed
by re-pointing the twin.
</details>

<details><summary>Local gates — at 1928c08</summary>

```
pnpm check:i18n                    EXIT=0  check-i18n-bundles: OK (10 package(s) — all bundles in sync, no undeclared authoring keys).
pnpm check:i18n-stale-fill         EXIT=0  OK (11 bundle set(s) — no new stale fills, 1 baselined).
pnpm check:nul-bytes               EXIT=0
pnpm check:doc-authoring           EXIT=0
pnpm check:issue-citations         EXIT=0  (self-test + scan: no issue citations added)
pnpm check:cross-package-test-inputs EXIT=0
pnpm check:i18n-coverage           EXIT=3  NOT MEASURED: showcase config needs service-print built; declared to CI
node scripts/pm/overlap-check.mjs --branch=HEAD   VERDICT clean (origin/main and objectstack-ai#37366 merge cleanly)
```

The remaining derived families are whole-tree gates unrelated to
translation text; CI runs them.
</details>

## Acceptance notes

- **Card item "the six rows … the PR names them"**: named in the first
table above.
- **zh-CN went beyond the scope note's `values` hint.** The card's
premise that zh-CN "follows the new meaning" holds for the console
overlay, not for the platform zh-CN bundle, which still carried the
semantic-layer wording on all six rows (要绑定的数据集…, 度量/维度). Five of the
six zh-CN values are copied verbatim from the console overlay, which
already carried the current English; the section description has no
overlay twin and was translated fresh. Same file, same defect class,
same gate family.
- **Same-family leftovers, not in this card**: on this panel other ja-JP
/ es-ES leaves objectstack-ai#36447 reworded still read the old developer wording —
`columns.helpText`, `order.helpText`, `blocks.helpText`,
`chart.helpText`, `dateRange.helpText` and `exportOptions.helpText`, and
the `joined_blocks` / `filter_and_chart` section descriptions (zh-CN
shares several of them). They are reported to the seat, not fixed here.
- The console's own zh overlay (`metadata-form-zh-cn.ts`, open PR
objectstack-ai#37366) still reads `要统计的指标(来自数据来源)` for the `values` hint, the
pre-objectstack-ai#36879 meaning; that file is outside this PR.
- `compactToolbar` rows are untouched (sibling objectstack-ai#36874 follows this PR on
the same bundles).

## Verification

First read, by risk:
1.
`packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.ts`
and `es-ES.metadata-forms.generated.ts`, the `report` block: the 15
changed values per locale.
2.
`packages/platform-objects/src/apps/translations/report-form-echo-decisions.test.ts`:
the rewritten vocabulary twin test and the `AND` token test.
3.
`packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts`:
the re-pointed "rows" twin.

Two-minute check: `pnpm --filter @objectstack/platform-objects exec
vitest run src/apps/translations` — expect 26 files, 610 tests passed.
In the browser: switch Studio to 日本語, open any report, and the Data
Source section reads データソース / 指標 / グループ化 under the heading データソースの紐付け.

---

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

---------

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 tests 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.

报表表单两套用词:顶层行仍是 Dataset/Values/Rows/Columns,区块表格已改为 Data Source/Metrics/Group By

2 participants