Skip to content

Commit e5be136

Browse files
committed
fix(platform-objects): the zh-CN dashboard subtree says what its source says
Four more leaves of `metadataForms.dashboard` described the Studio dashboard property panel in terms `packages/spec/src/ui/dashboard.form.ts` does not use — each naming a concept the source omits while dropping one it names: sections.basics.description 「名称与图标」 -> 「仪表板标识与描述」 sections.widgets.description 「图表、指标、列表等」 -> 「放置在栅格上的卡片与图表」 sections.filters.description 「全局筛选与日期范围」 -> 「应用到所有组件的默认筛选与全局筛选」 fields.header.helpText 「标题、操作按钮与筛选」 -> 「仪表板页眉配置(title、subtitle、actions)」 `basics` promised an icon input, and the dashboard schema declares no icon key at all (the only `icon` under `dashboard.zod.ts` is per header action) — the same defect class as the layout leaf this branch already corrected, which promised a responsive-breakpoint control. The other three swapped which concepts the section covers: widgets is cards and charts on the grid, not metrics and lists; filters is default plus global filters across widgets, not the date range (that is the separate `dateRange` field); and the header carries a subtitle, not filters. The replacements reuse this bundle's own established terms and mirror es-ES / ja-JP, both of which are correct at all five leaves. The two changesets are consolidated into one so the subtree's correction lands as a single release note row. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0112hMx9hjJ9BgB28X97DS68
1 parent 927b427 commit e5be136

3 files changed

Lines changed: 44 additions & 26 deletions

File tree

.changeset/zh-cn-dashboard-layout-section-description.md

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
"@objectstack/platform-objects": patch
3+
---
4+
5+
fix(platform-objects): the zh-CN `dashboard` metadata-form subtree says what its source says
6+
7+
Five leaves of `metadataForms.dashboard` in `zh-CN.metadata-forms.generated.ts`
8+
described the Studio dashboard property panel in terms the source form
9+
(`packages/spec/src/ui/dashboard.form.ts`) does not use, each one naming a
10+
concept the source omits while dropping one it names:
11+
12+
| leaf | was | now |
13+
| --- | --- | --- |
14+
| `sections.layout.description` | 「栅格与响应式」 | 「栅格尺寸与刷新间隔」 |
15+
| `sections.basics.description` | 「名称与图标」 | 「仪表板标识与描述」 |
16+
| `sections.widgets.description` | 「图表、指标、列表等」 | 「放置在栅格上的卡片与图表」 |
17+
| `sections.filters.description` | 「全局筛选与日期范围」 | 「应用到所有组件的默认筛选与全局筛选」 |
18+
| `fields.header.helpText` | 「标题、操作按钮与筛选」 | 「仪表板页眉配置(title、subtitle、actions)」 |
19+
20+
Two of them sent a zh-CN author looking for a control that does not exist.
21+
`layout` promised a responsive-breakpoint input in a section holding `columns`,
22+
`gap`, `refreshInterval` and `header`, and left the refresh cadence unnamed.
23+
`basics` promised an icon input; that section holds `name`, `label` and
24+
`description`, and the dashboard schema declares no icon key at all — the only
25+
`icon` under `dashboard.zod.ts` is per header action. The other three swapped
26+
which concepts the section covers: widgets is cards and charts on the grid, not
27+
metrics and lists; filters is default plus global filters across widgets, not
28+
the date range (that is the separate `dateRange` field); and the header carries
29+
a subtitle, not filters. The replacements reuse terms this bundle already
30+
establishes — `grid` → 「栅格」, `widgets` → 「组件」, `identity` → 「标识」, and
31+
the literal key list rendered as `(title、subtitle、actions)` the way
32+
`page.fields.layout.helpText` renders `(header、main、sidebar、footer)`.
33+
34+
The source strings have not moved since the form was created: all five have been
35+
byte-identical across that file's only two commits. zh-CN's values were carried
36+
in from the pre-consolidation `metadata-translations/zh-CN.ts` overlay and never
37+
reconciled against the extracted English, while es-ES and ja-JP were translated
38+
from it and are correct at all five. So this is a translation correction, not a
39+
re-sync after a source edit — nothing else in the bundle, the source form, or
40+
the recorded source-hash companion changes.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -891,19 +891,19 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
891891
sections: {
892892
basics: {
893893
label: "基础信息",
894-
description: "名称与图标"
894+
description: "仪表板标识与描述"
895895
},
896896
layout: {
897897
label: "布局",
898898
description: "栅格尺寸与刷新间隔"
899899
},
900900
widgets: {
901901
label: "组件",
902-
description: "图表、指标、列表等"
902+
description: "放置在栅格上的卡片与图表"
903903
},
904904
filters: {
905905
label: "筛选",
906-
description: "全局筛选与日期范围"
906+
description: "应用到所有组件的默认筛选与全局筛选"
907907
},
908908
advanced: {
909909
label: "高级设置",
@@ -936,7 +936,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
936936
},
937937
header: {
938938
label: "页眉",
939-
helpText: "标题、操作按钮与筛选"
939+
helpText: "仪表板页眉配置(title、subtitle、actions)"
940940
},
941941
widgets: {
942942
label: "组件",

0 commit comments

Comments
 (0)