Skip to content

fix(platform-objects): every locale's field-group and inline-columns help states the field-group rule - #36003

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-35927-metadata-forms-translations
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-35927-metadata-forms-translations

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

repo:objectstack#1 · os-sales · session_01L6bhgW85kwjGaz7HqsmEuv

Fixes #35927

Clause-②: no
Metadata-protocol: none
Skills-docs: none — translation leaves of the Studio metadata forms only; no metadata an author can write changes

维护者速读

  • 用阿拉伯语、德语、西班牙语、法语、日语、韩语、葡萄牙语、俄语、繁体中文看 Studio 的管理员,字段分组和内嵌表格列的帮助说明,从旧规则改成了与英文、简体中文一致的新规则。
  • 属于记录页重做专题:上一步改了主从子表进表单的规则,只更新了英文和简体中文的说明,这里补齐其余九种语言。
  • 只改帮助文字,不影响数据和页面行为;译文有误时管理员只会看到不准确的提示,可以直接撤回。
  • 无

What changes

#35921 rewrote two help texts in the en and zh-CN metadata-forms bundles: a master-detail child reaches the parent's forms because a parent field group names it (fieldGroups[].relatedList), not because the FK sets inlineEdit. The other nine bundles kept the old text, and os i18n extract --merge never overwrites a present leaf, so they are re-translated by hand here (leaf strings only, structure untouched):

  • metadataForms.object.fields['fieldGroups.relatedList'].helpText: the closing sentence "The record page does not draw this placement yet." is replaced by "The parent's create and edit forms inline the table too, and the record page's Edit saves the record and its rows together."
  • metadataForms.field.fields.inlineColumns.helpText: "used only when this field sets inlineEdit, which is written in source" becomes "used only when a field group of the parent names this child (fieldGroups[].relatedList)".

Locales: ar, de, es-ES, fr, ja-JP, ko, pt-BR, ru, zh-Hant. Each rendering reuses the words the bundle already uses for the same things: the parent (the inline-columns leaf's own word), the field group (the fieldGroups label), the child object (the relatedList leaf's own word), and the console's own label for the Edit button (ui/packages/i18n locales: Bearbeiten, Editar, Modifier, Редактировать, تعديل, 編集, 편집, 編輯), each in that bundle's own quotation marks.

Staleness mechanism, checked: these leaves have no recorded source hash. <locale>.source-hashes.ts holds hand-maintained digests for en.ts paths only (0 metadataForms entries in all ten files). <locale>.source-hashes.generated.ts holds an entry only while a leaf is still a byte copy of its source, and neither path has one in any locale. So both leaves are legacy-trusted and nothing marks them stale. os i18n check measures coverage (whether a leaf is present), not staleness, and pnpm check:i18n checks that a re-extract leaves the bundles as committed. Neither would catch a stale leaf here, so there is nothing to update for this change, and a cheap pin was added.

Pin: a new top-level describe in the existing cross-locale guard metadata-forms-vocabulary.test.ts. For every one of the 11 locales: the inline-columns help contains fieldGroups[].relatedList and does not contain inlineEdit; the field-group help does not contain that locale's retired "not drawn yet" sentence. A further case holds the retired-sentence table equal to the locale list.

Changeset: '@objectstack/platform-objects': patch (published, in the changeset fixed group; its files[] ships dist, which carries the bundles).

Tests

platform-objects: the pinned file, the package suite and typecheck at 40af800
  • pnpm --filter @objectstack/platform-objects exec vitest run --maxWorkers=2 src/apps/translations/metadata-forms-vocabulary.test.ts: Test Files 1 passed (1), Tests 35 passed (35).
  • pnpm --filter @objectstack/platform-objects build && … test && … typecheck: Test Files 125 passed (125), Tests 2117 passed (2117); typecheck check:test-typecheck: OK. Lock verdict command-exit 0.
  • The first package run, before this package's own dist/ was built, had 2 suites red with Cannot find package '@objectstack/platform-objects/system'. They import plugins that resolve this package's dist/, so this was a missing build prerequisite and not a finding. After the build they are green.
Ablation: each pin reds on its own leaf, restored by blob hash

Committed first, then mutated with scripts/ablation-replace.mjs (anchor 1 → 0 on disk, blob changed, and after the run the blob equals HEAD and git diff HEAD is empty):

  • de inline-columns leaf set back to the old inlineEdit clause: × de: inlineColumns names the parent field group, not inlineEdit, Tests 1 failed | 34 passed (35).
  • ru field-group leaf set back to the old closing sentence: × ru: fieldGroups.relatedList no longer says the record page does not draw it, Tests 1 failed | 34 passed (35).

Acceptance notes

Verification

Local gate subset (derived by dispatch-gates --commands at 40af800)
  • pnpm check:i18n: check-i18n-bundles: OK (10 package(s) — all bundles in sync, no undeclared authoring keys), after building its stated prerequisite closure.
  • Every other derived command exit 0, except these NOT MEASURED locally, declared to CI: check-plugin-teardown-shape --self-test (prerequisite: shallow clone cannot reach its pinned positive-control commit; script untouched) and check:dual-build-cjs-loads (prerequisite: reads every package's dist/, needs a full pnpm build) and check:type-check-debt (a workspace-wide tsc ledger; stopped while its closure build was under way, after about 10 minutes, because the diff adds no TypeScript beyond one test file that check:test-typecheck already compiles). --ran reconciliation: 63 derived, 60 run, 3 UNRUN, and these three are the UNRUN ones.
  • The CI-only, workflow-valued, artifact-roster and wide-population families, and the type-check lanes: CI.

Read first: metadata-forms-vocabulary.test.ts (the new describe), then any one bundle's two changed lines.

Two-minute check: pnpm --filter @objectstack/platform-objects exec vitest run src/apps/translations/metadata-forms-vocabulary.test.ts should give 35 passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv

…help states the field-group rule

The nine non-en, non-zh-CN metadata-forms bundles still said the inline
grid columns apply only when the field sets inlineEdit, and that the
record page does not draw a related-list field group yet. Re-translate
both leaves from the current English and pin them per locale.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 21, 2026
@objectstack-fleet
objectstack-fleet Bot requested a review from os-sales November 21, 2026 06:00
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

9 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see

Coarse fallback — 3 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 549c9f5ba9776b0c52509e3599df82a3b6753a6f → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 549c9f5ba9776b0c52509e3599df82a3b6753a6f

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgW85kwjGaz7HqsmEuv

Final green head · 2026-11-21T06:25Z · area b1-DB

  • Head 40af8003b09fde5999c3a67285775a7f2992666b: 37 success, 16 skipped, 0 failed; mergeable clean.
  • check-governed-merges --pr 36003: NOT governed, +71 / −18.
  • Nine locales (ar, de, es-ES, fr, ja-JP, ko, pt-BR, ru, zh-Hant) × two metadata-forms help-text leaves re-translated by hand to feat(spec, ui): a master_detail child is a tab by default; a field group puts it in the overview and the form #35921's English; leaf strings only. No source-hash or staleness gate covers authored metadataForms leaves, so a per-locale pin is added in metadata-forms-vocabulary.test.ts (ablated on de and ru: one case red each).
  • Clause-②: no. Metadata-protocol: none.
  • Next: L1-c review.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

  • 九种语言(阿拉伯语、德语、西班牙语、法语、日语、韩语、葡萄牙语、俄语、繁体中文)在 Studio 里看到的两条帮助说明,改成了和英文、简体中文一样的新规则:主从子表要不要出现在父记录表单上,由父对象的字段分组决定,不再由 inlineEdit 决定。
  • 我逐条对照了英文原文,九种语言的意思都一致,用词也沿用了各语言已有的说法。只改帮助文字,不影响数据和页面行为。
  • 要你做什么:现在不需要。

席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head 40af8003b0 · 2026-11-21T06:27Z

Read at 40af8003b0: 11 files, +71/−18. The face is Clause-②: no, Metadata-protocol: none. No contract face and not Tier H, so no L2 is owed. The PR touches packages/platform-objects/src/apps/translations/, so the seat lands it under that path's landing rule.

Checked and fine

  • Shape. Draft, base main. Fixes #35927 is right. feat(spec, ui): a master_detail child is a tab by default; a field group puts it in the overview and the form #35921 changed exactly two leaves in en.metadata-forms.generated.ts (object.fields['fieldGroups.relatedList'].helpText and field.fields.inlineColumns.helpText), and this PR brings both up to date in all nine remaining locales. That delivers the card's acceptance line.

  • The flow. The card asks for the project's translation flow rather than hand edits where a bundle is generated. os i18n extract --merge never overwrites a present leaf, and feat(spec, ui): a master_detail child is a tab by default; a field group puts it in the overview and the form #35921 edited the en and zh-CN leaves by hand too, so editing the leaf values by hand is that flow here. The body shows that no source hash covers these leaves, so no gate could have flagged them.

  • Translations. I read all 18 new strings against the English source, sentence by sentence. Each one says the same thing as the English:

    • the field-group help keeps its first three sentences and swaps "not drawn yet" for "the parent's create and edit forms inline the table too, and the record page's Edit saves the record and its rows together";
    • the inline-columns help says the columns are used only when a parent field group names this child (fieldGroups[].relatedList), with no inlineEdit.

    The terms match each bundle's existing words, and the Edit button uses the console's own label in each locale. "Past six" is rendered as "from the seventh" in de and ru, which is the same count.

  • Pin. The new describe in metadata-forms-vocabulary.test.ts runs over all 11 locales, and a table-equals-locales case keeps the retired-sentence table complete. The body reports the de and ru ablations going red.

  • Changeset. @objectstack/platform-objects: patch. The package ships dist, which carries the bundles. I read it sentence by sentence and it matches the diff.

  • Overlap. fix(ui): the entry form draws a group-placed master-detail table at its field group #36009 (主从子表默认只是页签,不再自动放进概览和表单;只有字段分组指定时才放进去 #35889 S2) changes neither the English leaves nor these files, so the new text stays true after S2.

  • Gates. At 40af8003b0: 37 success, 16 expected skips, 0 failed, 0 pending. mergeable_state is clean and l1-face is CLEAN.

Nit (not owed)

  • The field-group pin is a negative match on the exact retired sentence, so a stale paraphrase would pass. A positive match, such as each locale's Edit label, would be stricter. It is fine as is: the inline-columns pin is positive, and today the old sentence is the only way these leaves go stale.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing · 2026-11-21T06:28Z · Area b1-DB's PR for #35927: the nine locales other than en and zh-CN now carry the field-group help texts #35921 rewrote (fieldGroups[].relatedList, inlineColumns), hand-edited because the bundle merge fills gaps only, with one pin per locale. Clause-②: no, so no contract L2 is owed. L1-c ACCEPT 7058618146 on 40af8003 (this head). check-governed-merges --pr 36003 reads NOT governed (+71/−18). landing-k reads OK: K = 5, no new locale pack under a label PR, no shared book moved. Translations path: since the merge-base, main changed one leaf in zh-Hant.metadata-forms.generated.ts (#35977), a different leaf from this PR's; the PR reads mergeable clean and the files are not on the merge=os-regen list, so the merge group's checks re-measure the bundles. On this head, 37 check-runs are success, 16 are skipped and none failed. The seat readies this PR and arms auto-merge in the same step. The PR carries Fixes #35927.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 06:28
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit d71fe59 Nov 21, 2026
54 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-35927-metadata-forms-translations branch November 21, 2026 06:52
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 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.

Non-English metadata-forms translations still carry the old inlineEdit help text after #35889

2 participants