From 927b427b25ee1af693b0f1ceb80e537dce3fdb80 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 3 Sep 2026 10:03:06 +0000 Subject: [PATCH 1/2] fix(platform-objects): correct the stale zh-CN dashboard layout section description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `metadataForms.dashboard.sections.layout.description` read 「栅格与响应式」 against a source of "Grid sizing and refresh cadence." — it named a responsiveness control the section does not hold and omitted the refresh cadence it does. Now 「栅格尺寸与刷新间隔」, matching the bundle's own terms for `columns` and `refreshInterval`. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_0112hMx9hjJ9BgB28X97DS68 --- ...cn-dashboard-layout-section-description.md | 22 +++++++++++++++++++ .../zh-CN.metadata-forms.generated.ts | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .changeset/zh-cn-dashboard-layout-section-description.md diff --git a/.changeset/zh-cn-dashboard-layout-section-description.md b/.changeset/zh-cn-dashboard-layout-section-description.md new file mode 100644 index 0000000000..29961bc011 --- /dev/null +++ b/.changeset/zh-cn-dashboard-layout-section-description.md @@ -0,0 +1,22 @@ +--- +"@objectstack/platform-objects": patch +--- + +fix(platform-objects): the zh-CN `dashboard.sections.layout` description names what that section actually holds + +`metadataForms.dashboard.sections.layout.description` served 「栅格与响应式」 +("grid and responsiveness") against a source that reads "Grid sizing and refresh +cadence." The section holds `columns`, `gap`, `refreshInterval` and `header` — +there is no responsive-breakpoint input in it and never was, and the refresh +cadence the section does hold went unnamed. A zh-CN author reading the Studio +dashboard property panel was told to look for a control that does not exist and +not told about one that does. It now reads 「栅格尺寸与刷新间隔」, using this +bundle's own established terms for the two fields it covers (`columns` → +「栅格列数」, `refreshInterval` → 「刷新间隔」). + +The source string has not moved since the file was created: the leaf was +mistranslated when zh-CN's values were carried in from the pre-consolidation +`metadata-translations/zh-CN.ts` overlay, while es-ES and ja-JP were translated +from the extracted English and both carry the correct sense. So this is a +translation correction, not a re-sync after a source edit — nothing else in the +bundle, the source form, or the recorded source-hash companion changes. diff --git a/packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts b/packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts index 266c81315c..f76843cf49 100644 --- a/packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts +++ b/packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts @@ -895,7 +895,7 @@ export const zhCNMetadataForms: NonNullable = }, layout: { label: "布局", - description: "栅格与响应式" + description: "栅格尺寸与刷新间隔" }, widgets: { label: "组件", From e5be136a0808315a1d07813eddd8a9acedc1da37 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 3 Sep 2026 10:50:38 +0000 Subject: [PATCH 2/2] fix(platform-objects): the zh-CN dashboard subtree says what its source says MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Claude-Session: https://claude.ai/code/session_0112hMx9hjJ9BgB28X97DS68 --- ...cn-dashboard-layout-section-description.md | 22 ---------- .../zh-cn-dashboard-subtree-source-parity.md | 40 +++++++++++++++++++ .../zh-CN.metadata-forms.generated.ts | 8 ++-- 3 files changed, 44 insertions(+), 26 deletions(-) delete mode 100644 .changeset/zh-cn-dashboard-layout-section-description.md create mode 100644 .changeset/zh-cn-dashboard-subtree-source-parity.md diff --git a/.changeset/zh-cn-dashboard-layout-section-description.md b/.changeset/zh-cn-dashboard-layout-section-description.md deleted file mode 100644 index 29961bc011..0000000000 --- a/.changeset/zh-cn-dashboard-layout-section-description.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -"@objectstack/platform-objects": patch ---- - -fix(platform-objects): the zh-CN `dashboard.sections.layout` description names what that section actually holds - -`metadataForms.dashboard.sections.layout.description` served 「栅格与响应式」 -("grid and responsiveness") against a source that reads "Grid sizing and refresh -cadence." The section holds `columns`, `gap`, `refreshInterval` and `header` — -there is no responsive-breakpoint input in it and never was, and the refresh -cadence the section does hold went unnamed. A zh-CN author reading the Studio -dashboard property panel was told to look for a control that does not exist and -not told about one that does. It now reads 「栅格尺寸与刷新间隔」, using this -bundle's own established terms for the two fields it covers (`columns` → -「栅格列数」, `refreshInterval` → 「刷新间隔」). - -The source string has not moved since the file was created: the leaf was -mistranslated when zh-CN's values were carried in from the pre-consolidation -`metadata-translations/zh-CN.ts` overlay, while es-ES and ja-JP were translated -from the extracted English and both carry the correct sense. So this is a -translation correction, not a re-sync after a source edit — nothing else in the -bundle, the source form, or the recorded source-hash companion changes. diff --git a/.changeset/zh-cn-dashboard-subtree-source-parity.md b/.changeset/zh-cn-dashboard-subtree-source-parity.md new file mode 100644 index 0000000000..08fc9b1922 --- /dev/null +++ b/.changeset/zh-cn-dashboard-subtree-source-parity.md @@ -0,0 +1,40 @@ +--- +"@objectstack/platform-objects": patch +--- + +fix(platform-objects): the zh-CN `dashboard` metadata-form subtree says what its source says + +Five leaves of `metadataForms.dashboard` in `zh-CN.metadata-forms.generated.ts` +described the Studio dashboard property panel in terms the source form +(`packages/spec/src/ui/dashboard.form.ts`) does not use, each one naming a +concept the source omits while dropping one it names: + +| leaf | was | now | +| --- | --- | --- | +| `sections.layout.description` | 「栅格与响应式」 | 「栅格尺寸与刷新间隔」 | +| `sections.basics.description` | 「名称与图标」 | 「仪表板标识与描述」 | +| `sections.widgets.description` | 「图表、指标、列表等」 | 「放置在栅格上的卡片与图表」 | +| `sections.filters.description` | 「全局筛选与日期范围」 | 「应用到所有组件的默认筛选与全局筛选」 | +| `fields.header.helpText` | 「标题、操作按钮与筛选」 | 「仪表板页眉配置(title、subtitle、actions)」 | + +Two of them sent a zh-CN author looking for a control that does not exist. +`layout` promised a responsive-breakpoint input in a section holding `columns`, +`gap`, `refreshInterval` and `header`, and left the refresh cadence unnamed. +`basics` promised an icon input; that section holds `name`, `label` and +`description`, and the dashboard schema declares no icon key at all — the only +`icon` under `dashboard.zod.ts` is per header action. 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 terms this bundle already +establishes — `grid` → 「栅格」, `widgets` → 「组件」, `identity` → 「标识」, and +the literal key list rendered as `(title、subtitle、actions)` the way +`page.fields.layout.helpText` renders `(header、main、sidebar、footer)`. + +The source strings have not moved since the form was created: all five have been +byte-identical across that file's only two commits. zh-CN's values were carried +in from the pre-consolidation `metadata-translations/zh-CN.ts` overlay and never +reconciled against the extracted English, while es-ES and ja-JP were translated +from it and are correct at all five. So this is a translation correction, not a +re-sync after a source edit — nothing else in the bundle, the source form, or +the recorded source-hash companion changes. diff --git a/packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts b/packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts index f76843cf49..5c19652222 100644 --- a/packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts +++ b/packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts @@ -891,7 +891,7 @@ export const zhCNMetadataForms: NonNullable = sections: { basics: { label: "基础信息", - description: "名称与图标" + description: "仪表板标识与描述" }, layout: { label: "布局", @@ -899,11 +899,11 @@ export const zhCNMetadataForms: NonNullable = }, widgets: { label: "组件", - description: "图表、指标、列表等" + description: "放置在栅格上的卡片与图表" }, filters: { label: "筛选", - description: "全局筛选与日期范围" + description: "应用到所有组件的默认筛选与全局筛选" }, advanced: { label: "高级设置", @@ -936,7 +936,7 @@ export const zhCNMetadataForms: NonNullable = }, header: { label: "页眉", - helpText: "标题、操作按钮与筛选" + helpText: "仪表板页眉配置(title、subtitle、actions)" }, widgets: { label: "组件",