Skip to content

Commit d95d34f

Browse files
fix(spec): the report form's top-level rows use the blocks grid's terms (#36879)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwB9Gqqp1VYZwEqbXEm1YsTjU)_ 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 #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 <details><summary>platform-objects, spec, console readers: all green at cf23885</summary> - `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. </details> <details><summary>Derived gate families: 91 run at cf23885, 89 exit 0, 2 not measured (prerequisite, exit 3)</summary> - `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 #36802 both merge cleanly). </details> ## 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 #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](https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB)_ <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 53733c1 commit d95d34f

9 files changed

Lines changed: 63 additions & 26 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/spec': patch
3+
'@objectstack/platform-objects': patch
4+
'@object-ui/app-shell': patch
5+
---
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The report authoring form now names its top-level data rows with the same words as its joined-blocks grid: Data Source, Metrics, Group By and Group Columns By, where they read Dataset, Values, Rows and Columns. One form no longer calls the same setting by two names. The Metrics hint no longer says a metric is only a total or a count; it can be any measure of the data source, such as an average or a ratio. The File Name hint now says what the download does: the prefix takes the place of the report's label, and an empty prefix names the file after the label, or after the report's name when it has no label.
11+
12+
Only prose moved. No key, accepted value, default or section title changed. The platform metadata-form bundles are regenerated, the File Name hint is re-translated in zh-CN, ja-JP and es-ES, and the console's zh-CN overlay now follows the current English for the Date Range and Runtime Filter hints.

‎packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2206,19 +2206,19 @@ export const enMetadataForms: NonNullable<TranslationData['metadataForms']> = {
22062206
helpText: "Report type: tabular, summary, matrix or joined."
22072207
},
22082208
dataset: {
2209-
label: "Dataset",
2209+
label: "Data Source",
22102210
helpText: "The report reads its numbers from here; everyone sees only the records they have access to."
22112211
},
22122212
values: {
2213-
label: "Values",
2214-
helpText: "The metrics to total or count (from the data source)."
2213+
label: "Metrics",
2214+
helpText: "The metrics to show, such as totals, counts, averages or ratios (from the data source)."
22152215
},
22162216
rows: {
2217-
label: "Rows",
2217+
label: "Group By",
22182218
helpText: "The fields to group by (from the data source)."
22192219
},
22202220
columns: {
2221-
label: "Columns",
2221+
label: "Group Columns By",
22222222
helpText: "Groups spread across the columns (matrix reports only)."
22232223
},
22242224
order: {
@@ -2307,7 +2307,7 @@ export const enMetadataForms: NonNullable<TranslationData['metadataForms']> = {
23072307
},
23082308
"exportOptions.fileNamePrefix": {
23092309
label: "File Name",
2310-
helpText: "The start of the downloaded file’s name, used instead of the report name."
2310+
helpText: "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."
23112311
}
23122312
}
23132313
},

‎packages/platform-objects/src/apps/translations/es-ES.metadata-forms.generated.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2307,7 +2307,7 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
23072307
},
23082308
"exportOptions.fileNamePrefix": {
23092309
label: "Nombre de archivo",
2310-
helpText: "El inicio del nombre del archivo descargado, en lugar del nombre del informe."
2310+
helpText: "El inicio del nombre del archivo descargado. Si se deja vacío, el archivo toma la etiqueta del informe, o su nombre si no tiene etiqueta."
23112311
}
23122312
}
23132313
},

‎packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2307,7 +2307,7 @@ export const jaJPMetadataForms: NonNullable<TranslationData['metadataForms']> =
23072307
},
23082308
"exportOptions.fileNamePrefix": {
23092309
label: "ファイル名",
2310-
helpText: "ダウンロードするファイル名の先頭部分。レポート名の代わりに使われます。"
2310+
helpText: "ダウンロードするファイル名の先頭部分。空欄の場合はレポートの表示名が使われ、表示名がない場合は名前が使われます。"
23112311
}
23122312
}
23132313
},

‎packages/platform-objects/src/apps/translations/report-dataset-panel-echo-decisions.test.ts‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ const DECISIONS: readonly Decision[] = [
8383
type: 'report',
8484
key: 'dataset',
8585
prop: 'label',
86-
en: 'Dataset',
86+
en: 'Data Source',
8787
verdict: ALL_TRANSLATE,
88-
reason: `${SIBLING_PRECEDENT} Precedent: report.fields['blocks.dataset'].`,
88+
reason: `${SIBLING_PRECEDENT} Precedent: report.fields['blocks.dataset']. ⚠️ #36838 renamed this \`en\` label from "Dataset" to "Data Source", the title the blocks grid already gives the same key, so one form names it once. Re-read against the new English: each translated value is still byte-identical to its blocks twin, whose \`en\` is now the same string, so top level and blocks keep reading one word per locale. Those words carry the older dataset vocabulary at both positions; moving them to the business wording is a translator pass over both positions together, not this rename.`,
8989
},
9090
{
9191
type: 'report',
@@ -100,26 +100,26 @@ const DECISIONS: readonly Decision[] = [
100100
type: 'report',
101101
key: 'values',
102102
prop: 'label',
103-
en: 'Values',
103+
en: 'Metrics',
104104
verdict: ALL_TRANSLATE,
105-
reason: `${SIBLING_PRECEDENT} Precedent: report.fields['blocks.values'].`,
105+
reason: `${SIBLING_PRECEDENT} Precedent: report.fields['blocks.values']. ⚠️ #36838 renamed this \`en\` label from "Values" to "Metrics", the title the blocks grid already gives the same key, so one form names it once. Re-read against the new English: each translated value is still byte-identical to its blocks twin, whose \`en\` is now the same string, so top level and blocks keep reading one word per locale. Those words carry the older dataset vocabulary at both positions; moving them to the business wording is a translator pass over both positions together, not this rename.`,
106106
},
107107
{
108108
type: 'report',
109109
key: 'values',
110110
prop: 'helpText',
111-
en: 'The metrics to total or count (from the data source).',
111+
en: 'The metrics to show, such as totals, counts, averages or ratios (from the data source).',
112112
verdict: ALL_TRANSLATE,
113113
reason:
114-
'Prose. Its own sibling order.helpText names the same two vocabularies (rows/columns dimensions, values measures) in authored text in every locale, so the vocabulary existed and this leaf simply never got it. ⚠️ #36447 reworded this `en` source into business terms (from "Measure names (from the dataset) to display"); the zh-CN / ja-JP / es-ES verdicts and values above were taken against the OLD English and were not re-judged.',
114+
'Prose. Its own sibling order.helpText names the same two vocabularies (rows/columns dimensions, values measures) in authored text in every locale, so the vocabulary existed and this leaf simply never got it. ⚠️ #36447 reworded this `en` source into business terms (from "Measure names (from the dataset) to display"); the zh-CN / ja-JP / es-ES verdicts and values above were taken against the OLD English and were not re-judged. ⚠️ #36838 reworded it again (from "The metrics to total or count (from the data source)."), because a measure may be any dataset measure, not only a total or a count. Re-read against that English: the three values say "the measure names to show" and promise no narrower set, so they stay true; their dataset vocabulary is left to a translator pass (ja-JP and es-ES: #36836).',
115115
},
116116
{
117117
type: 'report',
118118
key: 'rows',
119119
prop: 'label',
120-
en: 'Rows',
120+
en: 'Group By',
121121
verdict: ALL_TRANSLATE,
122-
reason: `${SIBLING_PRECEDENT} Precedent: report.fields['blocks.rows'], and the adjacent top-level columns is authored on the same panel.`,
122+
reason: `${SIBLING_PRECEDENT} Precedent: report.fields['blocks.rows'], and the adjacent top-level columns is authored on the same panel. ⚠️ #36838 renamed this \`en\` label from "Rows" to "Group By", the title the blocks grid already gives the same key, so one form names it once. Re-read against the new English: each translated value is still byte-identical to its blocks twin, whose \`en\` is now the same string, so top level and blocks keep reading one word per locale. Those words carry the older axis vocabulary at both positions; moving them to the business wording is a translator pass over both positions together, not this rename.`,
123123
},
124124
{
125125
type: 'report',

‎packages/platform-objects/src/apps/translations/report-form-echo-decisions.test.ts‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@
9696
// `dataset_binding` description, the `drilldown` hint and the `runtimeFilter`
9797
// hint — and each row says its verdicts were taken against the old English.)
9898
//
99+
// (#36838 gave the top-level `dataset` / `values` / `rows` / `columns` rows the
100+
// blocks grid's titles — Data Source / Metrics / Group By / Group Columns By —
101+
// where they read the humanized keys. Each label leaf already existed, so the
102+
// population, the field leaves and the inward negatives did not move, and none
103+
// of the six decided rows moved. The "Dataset" twin below now points at the
104+
// English the heading was rendered from on the dataset type's own label.)
105+
//
99106
// ## ⚠️⚠️ The phantom-translation trap — and why this family is the SHARP case
100107
//
101108
// `reportForm` declares NO label on `drilldown` and NO label on `runtimeFilter`
@@ -788,7 +795,13 @@ describe('#19403 round 9 — one schema key, one rendering', () => {
788795
// Round 5's discipline, from the other side: a row that names a twin has to
789796
// be able to point at it.
790797
const en = enMetadataForms as Record<string, any>;
791-
expect(en.report?.fields?.dataset?.label).toBe('Dataset');
798+
// #36838 renamed the report row's English to "Data Source", the blocks
799+
// grid's term; its translated values (asserted below) did not move. The
800+
// English word "Dataset" this heading was rendered from still has an
801+
// authored home with the SAME three renderings: the metadata type's own
802+
// label, asserted below as well.
803+
expect(en.report?.fields?.dataset?.label).toBe('Data Source');
804+
expect(en.dataset?.label).toBe('Dataset');
792805
expect(en.dataset?.sections?.measures?.label).toBe('Measures');
793806
expect(en.dataset?.sections?.dimensions?.label).toBe('Dimensions');
794807
expect(String(en.dataset?.fields?.filter?.helpText)).toContain('ANDed into every query');
@@ -817,6 +830,7 @@ describe('#19403 round 9 — one schema key, one rendering', () => {
817830
for (const [locale, forms] of TRANSLATED_LOCALES) {
818831
const want = expected[locale];
819832
expect(String(forms.report?.fields?.dataset?.label), `${locale} the Dataset twin moved`).toBe(want.dataset);
833+
expect(String(forms.dataset?.label), `${locale} the dataset type label no longer reads the Dataset twin`).toBe(want.dataset);
820834
expect(String(forms.dataset?.sections?.measures?.label), `${locale} the Measures twin moved`).toBe(want.measures);
821835
expect(String(forms.dataset?.sections?.dimensions?.label), `${locale} the Dimensions twin moved`).toBe(
822836
want.dimensions,

‎packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2307,7 +2307,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
23072307
},
23082308
"exportOptions.fileNamePrefix": {
23092309
label: "文件名",
2310-
helpText: "下载文件名的开头,用来代替报表名称"
2310+
helpText: "下载文件名的开头。留空时以报表的显示名称命名,没有显示名称时用名称"
23112311
}
23122312
}
23132313
},

‎packages/spec/src/ui/report.form.ts‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,16 @@ export const reportForm = defineForm({
3838
// A `joined` report carries its data on `blocks` instead.
3939
visibleWhen: "data.type != 'joined'",
4040
fields: [
41-
{ field: 'dataset', widget: 'ref:dataset', helpText: 'The report reads its numbers from here; everyone sees only the records they have access to.' },
42-
{ field: 'values', widget: 'string-tags', helpText: 'The metrics to total or count (from the data source).' },
43-
{ field: 'rows', widget: 'string-tags', helpText: 'The fields to group by (from the data source).' },
41+
// #36838 — the four row titles are the blocks grid's terms below (and
42+
// `JoinedReportBlockSchema`'s `.meta({ title })`), so one form never
43+
// names the same key in two vocabularies. Without a `label` these rows
44+
// read the prettified keys Dataset / Values / Rows / Columns.
45+
{ field: 'dataset', label: 'Data Source', widget: 'ref:dataset', helpText: 'The report reads its numbers from here; everyone sees only the records they have access to.' },
46+
// A measure may be any dataset measure (sum, count, average, ratio, derived).
47+
{ field: 'values', label: 'Metrics', widget: 'string-tags', helpText: 'The metrics to show, such as totals, counts, averages or ratios (from the data source).' },
48+
{ field: 'rows', label: 'Group By', widget: 'string-tags', helpText: 'The fields to group by (from the data source).' },
4449
// CEL visibility — only Matrix reports pivot across a second dimension.
45-
{ field: 'columns', widget: 'string-tags', visibleWhen: "data.type == 'matrix'", helpText: 'Groups spread across the columns (matrix reports only).' },
50+
{ field: 'columns', label: 'Group Columns By', widget: 'string-tags', visibleWhen: "data.type == 'matrix'", helpText: 'Groups spread across the columns (matrix reports only).' },
4651
// #3916 — ordering is authorable here or it is not authorable at all:
4752
// `DatasetSelection.order` has always existed on the wire, but a report
4853
// author had no channel to reach it. Optional — a selected time
@@ -145,7 +150,10 @@ export const reportForm = defineForm({
145150
fields: [
146151
{ field: 'formats', label: 'Formats', helpText: 'The download formats offered. Left unset, both csv and xlsx are offered; an empty list turns downloads off.' },
147152
{ field: 'includeHeaders', label: 'Include Headers', helpText: 'Put the column names in the first row of the downloaded file.' },
148-
{ field: 'fileNamePrefix', label: 'File Name', helpText: 'The start of the downloaded file’s name, used instead of the report name.' },
153+
// The prefix replaces the report's label, which falls back to its
154+
// name (`buildExportFileName` in @object-ui/core, called by the
155+
// report export control); the date and time follow it.
156+
{ field: 'fileNamePrefix', label: 'File Name', helpText: '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.' },
149157
],
150158
},
151159
],

‎ui/packages/app-shell/src/views/metadata-admin/metadata-form-zh-cn.ts‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,13 @@ export const ZH_CN_SPEC_FORMS: NonNullable<TranslationData['metadataForms']> = {
343343
'blocks.values': { label: '指标' },
344344
'blocks.runtimeFilter': { label: '运行时筛选' },
345345
'blocks.order': { label: '排序' },
346-
runtimeFilter: { label: '运行时筛选', helpText: '渲染时的范围筛选,在查询时以 AND 方式并入' },
346+
// ⟨36373⟩ follows the English (objectstack#36838); the platform's zh-CN row is
347+
// the ledger-pinned rendering of the older render-time / AND sentence.
348+
runtimeFilter: { label: '运行时筛选', helpText: '每次显示报表时都会应用的筛选,叠加在数据来源自身的条件之上' },
347349
chart: { label: '图表', helpText: '图表类型与配置' },
348350
// ⟨36373⟩ dateRange · exportOptions
349-
dateRange: { label: '日期范围', helpText: '默认时间段与自定义范围开关。按数据来源里的一个日期分组筛选;只有一个日期分组时可留空' },
351+
// The date-grouping sentence lives on the `dateRange.dimension` child below (objectstack#36838).
352+
dateRange: { label: '日期范围', helpText: '打开报表时显示的时间段,以及使用者能否自己选择范围' },
350353
exportOptions: { label: '导出选项', helpText: '下载格式(csv、xlsx)与文件名。谁可以下载由数据来源对象上的导出权限决定' },
351354
// The children `report.form.ts` declares for both composites (objectstack#36447),
352355
// copied from the platform zh-CN bundle like every unmarked row here.
@@ -355,7 +358,7 @@ export const ZH_CN_SPEC_FORMS: NonNullable<TranslationData['metadataForms']> = {
355358
'dateRange.allowCustomRange': { label: '允许自定义范围', helpText: '允许使用者自己选择开始和结束日期' },
356359
'exportOptions.formats': { label: '格式', helpText: '可下载的格式。不设置时提供 csv 与 xlsx;空列表则关闭下载' },
357360
'exportOptions.includeHeaders': { label: '包含表头', helpText: '在下载文件的第一行写入列名' },
358-
'exportOptions.fileNamePrefix': { label: '文件名', helpText: '下载文件名的开头,用来代替报表名称' },
361+
'exportOptions.fileNamePrefix': { label: '文件名', helpText: '下载文件名的开头。留空时以报表的显示名称命名,没有显示名称时用名称' },
359362
},
360363
},
361364

0 commit comments

Comments
 (0)