Skip to content

fix(spec): the report panel's English rows read in business terms - #36814

Merged
objectstack-fleet[bot] merged 11 commits into
mainfrom
claude/issue-36447-report-widget-form-wording
Nov 24, 2026
Merged

objectstack-fleet[bot] merged 11 commits into
mainfrom
claude/issue-36447-report-widget-form-wording

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

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

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

维护者速读

  • 报表设计器右侧属性面板在英文界面下,所有说明文字和栏目名改成业务用语(数据来源、分组、指标、排序),时间段与导出下面的六个子项也各有自己的名称和说明,与中文面板说法一致;日文、西班牙文同步补上了新增的六项。
  • 属于"报表与仪表盘面板说业务话"这项体验工作的英文收尾,替用英文界面搭报表的业务管理员解决看不懂开发术语的问题。
  • 只改了说明文字和表单排布,不改任何可保存的设置;出错最多是某句提示读起来别扭,直接撤回即可。
  • 无

What changes

The report authoring form (packages/spec/src/ui/report.form.ts) produces the English rows the console's report panel draws below its curated controls. Per the seat route (producer-first, no en overlay, no rename of a section title whose key is slugged from its label), every such row now reads in business terms carrying the zh-CN meaning: data source, grouping, metric, sort.

  • Round 1: reworded the section descriptions and hints that no pin held.
  • Round 2, on the seat's widened surface (claim amendment 7119493070):
  • Translations: the 13 new catalog leaves are regenerated in every platform *.metadata-forms.generated.ts, with zh-CN, ja-JP and es-ES values authored. The other locales carry the English fill and its provenance entry.
    • The console's zh overlay (metadata-form-zh-cn.ts) carries the six new children: that file's rule is that every report field string the curated inspector renders lives there, copied from the platform zh-CN bundle.
  • Measured premise correction: the dashboard widget panel (DashboardWidgetInspector.tsx) draws zero rows from spec text. Its rows are console strings (engine.inspector.widget.*) that already read "Data source", "Group by", "Metrics" in English.

Row table — every English row the report panel draws from spec text (lines on base 4c93f88; enumerated by rendering ReportDefaultInspector in English for summary, matrix and joined reports with every section open, then re-rendered at the final head)

Row Source Before After
Section "Basics", description report.form.ts:24 Identity and report type. unchanged (same meaning as zh-CN 标识与报表类型)
Description, hint i18n.zod.ts:275 (shared I18nLabel describe; no form hint) Display label — the default-language string, or an inline locale map ({ en, "zh-CN" }) resolved at render time One sentence on what this report shows, displayed under its name. (form row hint; the shared describe is untouched)
Section "Dataset binding", label report.form.ts:34 Dataset binding left over (slugged section key)
Section "Dataset binding", description report.form.ts:35 The semantic-layer dataset this report renders. Values are the dataset’s measures; rows are its dimensions. Where the report’s numbers come from, how they are grouped and sorted, and which records open when you click a row.
Order, label prettified Order Sort Order
Order, hint report.form.ts:51 Sort keys, most significant first (a rows/columns dimension or a values measure). Time dimensions are chronological by default. What to sort by, most important first (a grouping or a metric). Time groupings sort in date order by default.
Order rows, label report.form.ts:57 = report.zod.ts:107 title Order By Sort By
Drilldown, hint report.form.ts:61 Click an aggregated row/cell to open the underlying records Click a summarized row or cell to open the records behind it.
Section "Joined blocks", label report.form.ts:65 Joined blocks left over (slugged section key)
Section "Joined blocks", description report.form.ts:66 Additional dataset-bound blocks stacked into a single report (joined reports only). Other blocks stacked into the same report, each with its own data source (joined reports only).
Blocks, hint report.form.ts:72 Dataset-bound sub-reports (joined report only) Sub-reports, each with its own data source (joined reports only).
Blocks rows report.form.ts:89-94 = JoinedReportBlockSchema titles Dataset / Rows / Columns / Values / Order Data Source / Group By / Group Columns By / Metrics / Sort Order
Section "Filter & chart", description report.form.ts:101 Render-time scope filter and chart presentation. Filter conditions and how the chart is shown.
Runtime Filter, hint report.form.ts:105 Render-time scope filter, ANDed at query time A filter applied whenever the report is shown, on top of the data source’s own conditions.
Date Range, hint report.form.ts:122 Default period and custom-range switch. The dimension must be a date dimension of the dataset; leave it empty when the dataset has exactly one. The period the report opens with, and whether people may choose their own range.
Date Range children report.zod.ts:702-705 describes (no form rows) Dimension: Dataset dimension (declared type: 'date') the window applies to; omitted = the dataset's one date dimension · Default Range: Default date range preset · Allow Custom Range: Allow users to pick a custom date range Date Field: The date grouping of the data source the period applies to. Leave it empty when the data source has only one. · Default Period: The period the report opens with. · Allow Custom Range: Let people pick their own start and end dates.
Export Options, hint report.form.ts:123 Download formats (csv, xlsx) and file name. Who may download is the export permission on the dataset object. Download formats (csv, xlsx) and file name. Who may download is set by the export permission on the data source’s object.
Export Options children list-view-export-options.ts:195-198 describes (no form rows) Formats: Formats the report's export control offers (default: ['csv', 'xlsx']); an empty list turns the control off · Include Headers: Include column headers in the exported file (default true) · File Name Prefix: Download file name prefix — replaces the report label in the generated file name Formats: The download formats offered. Left unset, both csv and xlsx are offered; an empty list turns downloads off. · Include Headers: Put the column names in the first row of the downloaded file. · File Name: The start of the downloaded file’s name, used instead of the report name.

Rows the panel does not draw, because its curated controls replace them (the server-served form still renders them):

Row Source Before After
Type, hint report.form.ts:30 Report type: tabular/summary/matrix/joined Report type: tabular, summary, matrix or joined.
Dataset, hint report.form.ts:39 Dataset to bind (measures/dimensions come from its semantic layer) The report reads its numbers from here; everyone sees only the records they have access to.
Values, hint report.form.ts:40 Measure names (from the dataset) to display The metrics to total or count (from the data source).
Rows, hint report.form.ts:41 Dimension names (from the dataset) to group rows by The fields to group by (from the data source).
Columns, hint report.form.ts:43 Dimension names across (matrix only) Groups spread across the columns (matrix reports only).
Chart, hint report.form.ts:108 Chart config (type, legend, colors) Chart type and settings.

Left over — section titles whose key is slugged from the label (not renamed, per the seat route: renaming moves the dataset_binding / joined_blocks keys of the zh overlay and of every metadataForms catalog):

  • "Dataset binding" (report.form.ts:34)
  • "Joined blocks" (report.form.ts:65)

Unchanged on purpose: the "Runtime Filter" and "Drilldown" labels (zh-CN reads the same words; the ledger records both as correct English). The top-level Dataset / Values / Rows / Columns labels are not drawn by the panel. The shared I18nLabel and list-view export describes are untouched, per the seat route.

Tests

Spec, platform translations, console tests — green at 60b7741; the last commit f2cbae0 touches two test files only, re-run green
  • spec: pnpm --filter @objectstack/spec exec vitest run src/ui/ plus repeater-item-titles, metadata-form-declared-rows.pin, i18n-resolver and schema-index: Test Files 192 passed (192), Tests 7209 passed (7209). pnpm --filter @objectstack/spec typecheck exit 0.
  • New pin src/ui/report-form-composite-children.test.ts: 6 tests. Ablation through scripts/ablation-replace.mjs, deleting the includeHeaders row: "Tests 1 failed / 5 passed", restored blob == HEAD.
  • platform-objects: pnpm --filter @objectstack/platform-objects test: Test Files 125 passed (125), Tests 2126 passed (2126). This includes both report echo-decision ledgers and the object-lifecycle positive control (763, then 765 after the merge of main, then 771).
  • ui, from ui/, over every report-form reader (all ReportDefaultInspector*, panelBusinessWording-36373, report-schema, metadata-form-i18n, InterfacesPillar.report*, metadataError.report*, ReportConfigPanel*, ReportView* and more, 35 files): first run 17 failed in 5 files, all pinning the old labels. After those pins moved: 5 passed (5), 37 tests; the other 30 files passed.
  • At merged head 60b7741: platform-objects 125/125 files, 2126/2126 tests; spec 192/192, 7209/7209; ui 35/35, 273/273. Every run exited 0 under the verify lock.
  • f2cbae0: check:test-source-alias red on CI (lane lint-ci-engine, rolled up as Lint & Repo Gates). Cause: the two edited pins reach the console's dynamic @objectstack/lint / @objectstack/formula imports inside a case's clock. Fix: module-top side-effect imports. Local result: check-test-source-alias OK, EXIT=0, and the two files pass 2/2 files, 6/6 tests.

Acceptance notes

Verification

First read, by risk: packages/spec/src/ui/report.form.ts (the declared children and every reworded row); packages/platform-objects/src/apps/translations/report-form-echo-decisions.test.ts (moved en sources, counts and their reason); packages/spec/src/ui/report.zod.ts (six .meta({ title }) strings, prose only).

Two-minute check: open a summary report in the Studio with the console in English and expand "Period & export". It should show Date Field, Default Period and Allow Custom Range, then Formats, Include Headers and File Name, each with a plain-language hint. Switch to Chinese and the same rows read 日期字段 / 默认时间段 / 允许自定义范围 / 格式 / 包含表头 / 文件名.


Generated by Claude Code

Rewords the report authoring form's English section descriptions and field
hints the console report panel draws (and the hidden rows the curated
controls replace) in the business vocabulary the zh-CN rows already use:
data source, grouping, metric. Section labels are left as they are, since a
section's translation key is slugged from its label.

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

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/platform-objects, @objectstack/spec, touching 16 documentable anchor(s).

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

  • content/docs/api/data-api.mdx (via dateRange (literal, a string literal in sections))
  • content/docs/data-modeling/analytics.mdx (via runtimeFilter (literal, a string literal in sections))
  • content/docs/deployment/cli.mdx (via dateRange (literal, a string literal in sections))
  • content/docs/deployment/validating-metadata.mdx (via dateRange (literal, a string literal in sections))
  • content/docs/frontend/plugins/plugin-view.mdx (via exportOptions (literal, a string literal in sections))
  • content/docs/ui/dashboards.mdx (via allowCustomRange (literal, a string literal in sections), dateRange (literal, a string literal in sections), defaultRange (literal, a string literal in sections), runtimeFilter (literal, a string literal in sections))
  • content/docs/ui/reports.mdx (via allowCustomRange (literal, a string literal in sections), dateRange (literal, a string literal in sections), defaultRange (literal, a string literal in sections), exportOptions (literal, a string literal in sections), fileNamePrefix (literal, a string literal in sections), includeHeaders (literal, a string literal in sections), runtimeFilter (literal, a string literal in sections))
  • content/docs/ui/views.mdx (via exportOptions (literal, a string literal in sections), fileNamePrefix (literal, a string literal in sections), includeHeaders (literal, a string literal in sections))

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

  • content/docs/releases/v15.mdx (via dateRange (literal, a string literal in sections), runtimeFilter (literal, a string literal in sections))
  • content/docs/releases/v16.mdx (via dateRange (literal, a string literal in sections))
  • content/docs/releases/v17/17-0.mdx (via exportOptions (literal, a string literal in sections))
  • content/docs/releases/v17/17-1.mdx (via runtimeFilter (literal, a string literal in sections))
  • content/docs/releases/v17/17-4.mdx (via dateRange (literal, a string literal in sections))
  • content/docs/releases/v17/17-5.mdx (via dateRange (literal, a string literal in sections), runtimeFilter (literal, a string literal in sections))
  • content/docs/releases/v17/17-7.mdx (via dateRange (literal, a string literal in sections), exportOptions (literal, a string literal in sections), runtimeFilter (literal, a string literal in sections))
  • content/docs/releases/v18/18-3.mdx (via dateRange (literal, a string literal in sections), exportOptions (literal, a string literal in sections), runtimeFilter (literal, a string literal in sections))
  • content/docs/releases/v18/18-4.mdx (via runtimeFilter (literal, a string literal in sections))
  • content/docs/releases/v9.mdx (via runtimeFilter (literal, a string literal in sections))

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

What this run could not see
  • 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 14f4d8f8cd997d3722db0460a0fc7230f793121a → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 14f4d8f8cd997d3722db0460a0fc7230f793121a

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

…ning rows in business terms

Declares the dateRange and exportOptions children and a Description hint as
form rows with business wording, rewords the remaining ledger-pinned hints,
and renames the joined-block and order row titles (Data Source, Group By,
Group Columns By, Metrics, Sort Order, Sort By) in the form and the item
schema titles together. Adds the zh-CN overlay rows for the new children.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
…worded report form

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
@github-actions github-actions Bot added size/l and removed size/m labels Nov 24, 2026
…s to the reworded English

Authors the 13 new report form leaves in zh-CN, ja-JP and es-ES, updates the
two report echo-decision ledgers' en sources (each row records that its
verdicts were taken against the old English) and moves the population counts
with their reason.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
…ate on its decided sentence

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
…port-widget-form-wording

# Conflicts:
#	packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts
…ited report pins

check-test-source-alias judges every test file a change edits: the block-picker
and joined-report pins reach the console's dynamic @objectstack/lint (and, for
the inspector, @objectstack/formula) imports inside a case's clock. A
module-top side-effect import moves that first load to collection.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_01WGufziwMkZG34d69p8BHb4 · head f2cbae0 · 2026-11-24T03:17Z

Face: published schema (packages/spec/src/ui/report.form.ts, report.zod.ts, non-test) ⇒ CONTRACT_REVIEW_TIER. L1-b runs it in an isolated reviewer beside its L1 read.

@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: f2cbae0a02519de290478e4f85c8ed3c24156f7a
Local-runs: none
Scope: packages/spec/src/ui/report.form.ts, packages/spec/src/ui/report.zod.ts + packages/spec/src/ui/report-form-composite-children.test.ts, packages/platform-objects/src/apps/translations/report-form-echo-decisions.test.ts, packages/platform-objects/src/apps/translations/report-dataset-panel-echo-decisions.test.ts, packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts, packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts and zh-CN.metadata-forms.generated.ts (agreement with the producer only), ui/packages/app-shell/src/views/metadata-admin/metadata-form-zh-cn.ts

Inputs read: card #36447 body and all six comments (seat route in claim 7118706101, round-1 report 7119456005 with Q1-Q4, claim amendment 7119493070, round-2 report 7120587547); PR #36814 body and both comments; the net diff origin/main...f2cbae0a; the 73 check-runs on the head (every one success or skipped, none failed, none pending). The remainder of the diff (the other regenerated bundles and source-hashes, the five console test pins, the changeset prose) is the lane seat's ACCEPT.

① Derived judgments

  • Accept set of ReportSchema: unchanged — right. report.zod.ts moves six strings and nothing else: the .meta({ title }) of ReportSortSchema.by (Order By to Sort By) and of JoinedReportBlockSchema.dataset / rows / columns / values / order (Dataset / Rows / Columns / Values / Order to Data Source / Group By / Group Columns By / Metrics / Sort Order). Every type, .optional(), .default(), .describe(), strictObject alias table and superRefine on those lines is byte-identical. No key added, removed or renamed; no value accepted or refused differently.
  • Authorable keys: unchanged — right. The form now declares children for two composites. dateRange declares dimension, defaultRange, allowCustomRange; the schema block on main (report.zod.ts, the dateRange strictObject) declares exactly those three. exportOptions declares formats, includeHeaders, fileNamePrefix; REPORT_EXPORT_OPTIONS_SHAPE in list-view-export-options.ts declares exactly those three. A declared composite renders only its declared children, so the risk is a key dropping out of the panel, not a key appearing: none drops, and no row names a key the schema lacks. The rows declare no type or widget, so the controls stay schema-derived.
  • Public surface that does move: prose only — right. (a) JSON Schema title of six item properties, served through /api/v1/meta and read by the repeater column headers and by the console's held-edit clauses (the moved pins InterfacesPillar.reportHeld-27785, reportJoined-29022, metadataError.reportHeld-* follow them). (b) The metadataForms.report catalog: 13 new leaves (description.helpText, and a label plus a helpText for each of the six children), and reworded English for existing leaves. No catalog key is removed or renamed; the two section keys slugged from their labels (dataset_binding, joined_blocks) keep their labels, as the seat route requires.
  • Form to schema title equality (the repeater-item-titles rule the form's own comment states): holds. order.by Sort By equals ReportSortSchema.by; blocks.dataset / rows / columns / values / order equal the five JoinedReportBlockSchema titles; the untouched Direction, Runtime Filter, Block Type still match.
  • Ledger population arithmetic: consistent. report-form-echo-decisions.test.ts: population 50 to 63, field leaves 40 to 53, section leaves stay 10, inward negatives 44 to 57 (63 minus the six decided rows). That is the 13 new leaves, and the en bundle diff shows exactly 13. object-lifecycle-panel-echo-decisions.test.ts: 765 to 771, six row labels, which follows that control's established label-only count (every earlier step in its comment chain counts row labels).

② Semver level

Clause-②: no and Metadata-protocol: none are correct, on the PR body and on the changeset body alike. Nothing a metadata author can write changes: no key, accepted value, default, requirement or meaning. AGENTS.md Post-Task Checklist step 3 gives none a patch, and the changeset carries patch for the three packages whose published text moves: @objectstack/spec (form prose and six titles), @objectstack/platform-objects (regenerated bundles), @object-ui/app-shell (the zh-CN overlay rows). No package that publishes moved text is missing from it. Check Changeset and Spec property liveness concluded success on the head.

③ Boundary flags

  • Seat route, Q1 A: followed. Six ledger-pinned English sources are reworded and each ledger row's en moves with the form: three in report-form-echo-decisions.test.ts (dataset_binding description, drilldown hint, runtimeFilter hint) and three in report-dataset-panel-echo-decisions.test.ts (dataset, values, rows hints). All six rows carry the old English verbatim in their reason and say the zh-CN / ja-JP / es-ES verdicts were taken against it and not re-judged. No decided row is deleted, no verdict changed, no translated value touched: no translation pin is silently dropped. The token-guard case that read the runtimeFilter row's en now holds the old sentence as a literal, with a comment saying why; the predicate it demonstrates is unchanged.
  • Q2 A: followed. Children declared in report.form.ts, description given its own hint, completeness pin added; the shared I18nLabel describe and the list-view export describes are untouched.
  • Q3 A: followed, form label and schema title together.
  • Q4 B: followed. dashboard.form.ts is not in the diff.
  • Seat route prohibition (no rename of a section title whose key is slugged from its label): held. Dataset binding and Joined blocks keep their labels and are listed as left over in the PR body. No en overlay was added.
  • Dev deviation "PR body not flipped": resolved on the live body, which reads Fixes #36447.
  • Dev deviation "main merged for a conflict": the lifecycle control stacks both reasons to 771; Test Core is green on the head.
  • Round-2 open_questions: empty.
  • Out-of-scope finding without a carrier, for the seat: the ja-JP and es-ES values of the six reworded rows still state the old developer meaning (true sentences, old vocabulary). The seat route accepted this under Q1 A; the dev noted it and filed nothing. It needs a translator-pass card from the seat, since the ledger rows now say in writing that they were not re-judged.
  • Out-of-scope finding, for the seat: the Default Period select shows the stored preset (this_month) as option text in the inspector. It predates this diff; it needs its own card.
  • Open draft 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 regenerates the same bundles; they are merge=os-regen, the later one regenerates.
  • SQL push-down: not applicable. The diff adds no query, id materialisation or join.
  • The PR is still a draft at the time of this record.

④ Design judgment

packages/spec/src/ui/report.form.ts — every new or reworded sentence read against the runtime on main:

  • description hint "displayed under its name": ReportViewer.tsx draws report.description directly under the title. True. Same meaning as the zh-CN overlay row merged with feat(app-shell): report and widget panels speak business wording, and opening the report editor keeps the page in the session language #36420.
  • dataset hint "everyone sees only the records they have access to": agrees with the ReportSchema.dateRange TSDoc ("what a viewer may read stays with the dataset object's access"). True.
  • rows, columns, order, drilldown, blocks, chart, the three section descriptions: restate the old sentences in business words without adding a promise. order keeps its two facts (a grouping or a metric; time groupings chronological by default), both enforced or documented at checkReportOrder and the [17.0.0-rc.0] Matrix report date columns are unordered — no server-side ordering, no ORDER BY in aggregate SQL, and the report schema offers no sort declaration #3916 comment.
  • runtimeFilter hint "on top of the data source's own conditions": ReportDateRange.tsx and the schema TSDoc both state the server ANDs runtimeFilter with the dataset's own filter. True.
  • dateRange.dimension: the schema describe and useReportDateDimension use the dataset's one type: 'date' dimension when omitted. "Leave it empty when the data source has only one" is true.
  • dateRange.defaultRange "The period the report opens with": initialReportPeriod does exactly that. True.
  • dateRange.allowCustomRange: ReportDateRangeControl offers the custom pick unless it is false. True.
  • exportOptions.formats: readReportExportFormats returns both formats when the list is absent and none for an empty list, and the control then draws nothing. True.
  • exportOptions.includeHeaders: buildReportCsv / buildReportXlsx write the header row first when it is not false. True.
  • exportOptions.fileNamePrefix: buildExportFileName takes the prefix ahead of the report label. True in substance (see N3).
  • exportOptions composite hint: the export-permission sentence matches the schema TSDoc (ObjectPermission.allowExport on the dataset's base object).
  • The English now carries the meaning of the zh-CN overlay rows of feat(app-shell): report and widget panels speak business wording, and opening the report editor keeps the page in the session language #36420 (data source, group, metric, sort), which is the card's acceptance line. The two left-over section titles are the route's own exception.

I tried to break it on three points and could not: a composite child list that drifts from the schema (pinned both ways by set equality in the new test, and the dev's ablation is recorded); a title rename that a consumer keys on (titles are display text only; every reader in the diff is a label pin, and no generated artifact in the tree stores them); a hint promising behaviour the engine lacks (each checked above).

packages/spec/src/ui/report.zod.ts — six title strings, each equal to the form label of its row. The neighbouring TSDoc and .describe() sentences keep the author vocabulary (dimension, measure) and stay true; nothing in the file now contradicts itself.

Implementing files, read for agreement:

  • report-form-composite-children.test.ts: derives the schema the way the inspector does, has a non-empty control, holds each declared list equal to the schema keys, and requires a label and a hint on every child. It agrees with the form comment that cites it. It states openly that hints are not held equal to the describes, which is the point of the rows.
  • The two report echo-decision ledgers and the lifecycle control: agree with the producer, as set out in ① and ③.
  • en.metadata-forms.generated.ts: every leaf equals the form text. zh-CN.metadata-forms.generated.ts: the seven new zh-CN values say what the English says.
  • metadata-form-zh-cn.ts: the six new overlay rows are byte copies of the platform zh-CN bundle rows, as the file's own rule and the new comment say.

No must-fix, no should-fix.

  • N1 — The top-level rows keep the prettified labels Dataset / Values / Rows / Columns while the same keys in the blocks grid now read Data Source / Metrics / Group By / Group Columns By, and the top-level hints already speak of the data source and metrics. The console panel does not draw the top-level rows, but the server-served form does and shows both vocabularies. Inside the route (Q3 named the block and sort titles only); a follow-up card or an accepted deviation.
  • N2 — values hint "The metrics to total or count" is narrower than what a dataset measure can be (averages, ratios and other derived measures exist). The zh-CN row says "the metrics to compute". Wording only.
  • N3 — fileNamePrefix hint says "used instead of the report name"; the runtime replaces the report label (and falls back to the name), while the form's own Name row is the machine name. Wording only.
  • N4 — The console zh-CN overlay's dateRange hint still carries the date-grouping sentence the English moved onto the Date Field child, and its runtimeFilter hint still reads as render-time / AND wording, so on these two rows the English is now plainer than the Chinese. Belongs with the translator-pass follow-up in ③.

Implemented-by: claude/issue-36447-report-widget-form-wording
Reviewed-by: session_01WGufziwMkZG34d69p8BHb4

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对 — ACCEPT · repo:objectstack#3 · head f2cbae0 · 2026-11-24T03:22Z

L1: ACCEPT
Head-sha: f2cbae0a02519de290478e4f85c8ed3c24156f7a
Card: #36447 (round 2) · claim 7118706101, amendment 7119493070 (seat route Q1–Q3 A, Q4 B) · os-dev-report 7120587547 (Dev-effort: high, Rounds: 2).
Contract review on this head: 7121019942 (CONTRACT_REVIEW_TIER, PASS, No must-fix, no should-fix., nits N1–N4; claim 7120958219).

Checklist

  • Shape: l1-face CLEAN. Draft, base main, first line Fixes #36447, no closing keyword next to another card. Under the route, Q2-A keeps the composite rows in this card and Q4-B moves the dashboard widget form to a separate card. So this PR delivers the whole card as routed, and Fixes is right.
  • Checks at this head: 73 check-runs. 61 success, 12 expected skip, 0 failed. Lint & Repo Gates and TypeScript Type Check: success; check:generated and the i18n bundle gates are green in CI. mergeable_state clean.
  • Governance: check-governed-merges.mjs --pr 36814: NOT governed, 725 lines, most of them regenerated bundles.
  • Declarations: Clause-②: no and Metadata-protocol: none in the body and the changeset; they match the claim and its amendment. Contract review ② agrees: report.zod.ts moves six item .meta({ title }) strings only, with types, defaults, describes, alias tables and refinements byte-identical. The six declared composite children equal the schema's keys on main, so no accept set and no authorable key changes.
  • Changeset: @objectstack/spec, @objectstack/platform-objects and @object-ui/app-shell, all at patch. Spec and platform-objects are published and their src/** moved; app-shell is private, so its line is inert. The prose, read sentence by sentence:
    • business terms replace the schema vocabulary in the report form: true;
    • every section description and hint drawn by the panel reworded: true;
    • six child rows with hints for the two composites: true, with the completeness pin report-form-composite-children.test.ts;
    • Description gets its own hint: true;
    • the six joined-block and sort titles match the item schema titles: true, form and .meta together;
    • "No key, accepted value or section title changed": true. The two slugged section titles are left alone per the route;
    • the bundles are regenerated, with zh-CN, ja-JP and es-ES for the 13 new rows, and the console zh-CN overlay carries them: true (metadata-form-zh-cn.ts +6 rows, copied from the platform zh-CN bundle).
  • UI strings: the new rows carry en (producer) and zh-CN (platform bundle and console overlay), plus ja-JP / es-ES and the other platform locales via os-regen. Contract review ④ checked each hint against the runtime on main (ReportDateRange.tsx, ReportExport.tsx, export-filename.ts, ReportViewer.tsx).
  • Ledgers: the six moved hints carry their new en in both report echo-decision ledgers. Each keeps the old English and a "not re-judged" reason. Counts are consistent (50→63, 40→53, 44→57). The lifecycle ledger (765→771) is the merge-conflict stack with console: the default record form never renders owner_id, and the console has no Change Owner action, so an object without an authored form cannot be reassigned #35315, which the report declares.
  • Scope: inside the amended surface, except four existing ui/.../studio-design/*.test.ts(x) pins that read the old labels, and metadata-admin/metadata-form-zh-cn.ts, the zh-CN overlay rows for the new form rows. The report declares both ("Round 1 missed five UI pins …; round 2 moved them"). They are direct consequences, so I accept them. The claim's File surface: line should be amended to name them (area, paper). The added import '@objectstack/lint' / '@objectstack/formula' at collection time in two test files is what check:test-source-alias requires.
  • Tests: real commands with output. platform-objects: 125 files, 2126 tests. spec: 192 files, 7209 tests. 35 UI reader files, 273 tests. The completeness-pin ablation (one row deleted) turned 1 red. check:i18n-coverage was NOT MEASURED locally; CI's i18n gates are green.

Findings

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

Nits (the contract review's), each with the route or a follow-up:

  • N1 (user-visible): the top-level rows still read Dataset / Values / Rows / Columns, while the same keys in the blocks grid now read Data Source / Metrics / Group By / Group Columns By, so one form shows both vocabularies. This is inside the route (Q3 named block and sort titles only). To the seat: a follow-up card to align the top-level row labels.
  • N2: the values hint "The metrics to total or count" is narrower than what a measure can be.
  • N3: the fileNamePrefix hint says "instead of the report name"; the runtime replaces the report label, falling back to the name.
  • N4: the console zh-CN overlay hints for dateRange and runtimeFilter trail the plainer English.

N2–N4 are wording and can ride with N1's card.

For the seat (contract review ③, not findings on this diff)

  • The ja-JP / es-ES values of the six reworded rows keep the old developer meaning. The route accepted that, but no carrier card exists: file a translator-pass card.
  • The Default Period select shows raw preset values (this_month). This predates the diff and needs its own card.

Landing notes

Fixes #36447: merging closes the card; pm:dispatched comes off at close-out. The area lands on this ACCEPT plus PASS 7121019942.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing · 2026-11-24T03:24Z · ACCEPT 7121034256 (L1-b) at head f2cbae0

reading value
check-governed-merges.mjs --pr 36814 NOT governed · +621/−104 (725 ≤ 3000, generated bundles included)
landing-k.mjs --pr 36814 OK · K = 3 < 15 · no new locale pack, no shared book moved
contract review PASS 7121019942 (CONTRACT_REVIEW_TIER) on f2cbae0; no must-fix, no should-fix; nits N1–N4 wording
checks at f2cbae0 61 success, 12 expected skip, 0 failed, 0 pending; mergeable clean
claim surface amended on #36447 to name the four studio-design label pins and the console zh-CN overlay (L1 paper note)

State: ready + auto-merge (area ux-D, not governed, ≤3000 lines). Fixes #36447: merging closes the card. Nits N1–N4, the translator pass (ja-JP / es-ES of the six reworded rows) and the Default Period raw-preset finding go to the seat for follow-up cards; none blocks under the nit-only merge standard.

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/l 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.

console: English report and dashboard panel rows still show the spec's describe wording

2 participants