Skip to content

Commit 18da137

Browse files
committed
chore(i18n,spec): regenerate metadata-forms translations, add changeset
en.metadata-forms.generated.ts picks up the new condition helpText (node scripts/check-i18n-bundles.mjs --write). The other 8 packages' bundles regenerated byte-identical; zh-CN/ja-JP/es-ES kept their existing translated-locale values under merge mode (now stale relative to the new English source, per the tool's documented behaviour). --- _Generated by [Claude Code](https://claude.ai/code)_ Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014EJ1ED8X4MMrT18BhVx4tx
1 parent c468b80 commit 18da137

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
`hook.form.ts`'s `condition` row now declares `language: 'expression'`, matching the CEL predicate `HookSchema.condition` actually is.
6+
7+
Clause-②: no
8+
9+
The row previously declared `language: 'javascript'` — the same declared language as a real script row (`body.source`) — over a field that is `EvaluatedExpressionInputSchema`, a CEL predicate. A consumer keyed on the row's declared language could not tell the predicate apart from a script. The `helpText` moves from "Optional formula — skip the hook when this evaluates to false" to "CEL predicate — the hook runs only when TRUE", matching the phrasing every sibling predicate row (`field.form.ts` / `object.form.ts`'s `visibleWhen` / `readonlyWhen` / `requiredWhen`, and the formula `expression` row) already uses.
10+
11+
No key is added, removed, narrowed or widened, and no parse verdict changes — `type: 'code'` and `language` are already-declared form-DSL vocabulary. `metadata-form-declared-rows.pin.test.ts` pins the new value, with a control against a sibling predicate row.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ export const enMetadataForms: NonNullable<TranslationData['metadataForms']> = {
767767
},
768768
condition: {
769769
label: "Condition",
770-
helpText: "Optional formula — skip the hook when this evaluates to false"
770+
helpText: "CEL predicate — the hook runs only when TRUE"
771771
},
772772
retryPolicy: {
773773
label: "Retry Policy",

0 commit comments

Comments
 (0)