Skip to content

Commit 792c7ab

Browse files
committed
chore(spec,platform-objects): regenerate the action reference and move the two row-label counts for params.widget
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhmTfrR3b13itPTmu3
1 parent 6b15981 commit 792c7ab

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

‎content/docs/references/ui/action.mdx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ L2 sandboxed JS body — runs inside an isolated VM with declared capabilities
141141
| **objectOverride** | `string` | optional | Snake case identifier (lowercase with underscores only) |
142142
| **label** | `string \| Record<string, string>` | optional | Display label — the default-language string, or an inline locale map (`{ en, "zh-CN" }`) resolved at render time |
143143
| **type** | `Enum<'text' \| 'textarea' \| 'email' \| 'url' \| 'phone' \| 'password' \| 'secret' \| …>` | optional | |
144+
| **widget** | `string` | optional | Widget override for this param — names a registered field component (resolved as `field:<widget>`) to draw it instead of the `type` default; same key and vocabulary as FieldSchema.widget, and `type` stays the value's type. e.g. "permission-ref" on a text param picks a permission set by name (ADR-0131 D4). Degrades to the `type` renderer when unregistered. |
144145
| **required** | `boolean` | optional (default: `false`) | |
145146
| **options** | `{ label: string \| Record<string, string>; value: string; visibleWhen?: string \| object }[]` | optional | |
146147
| **placeholder** | `string` | optional | |
@@ -234,6 +235,7 @@ L2 sandboxed JS body — runs inside an isolated VM with declared capabilities
234235
| **objectOverride** | `string` | optional | Snake case identifier (lowercase with underscores only) |
235236
| **label** | `string \| Record<string, string>` | optional | Display label — the default-language string, or an inline locale map (`{ en, "zh-CN" }`) resolved at render time |
236237
| **type** | `Enum<'text' \| 'textarea' \| 'email' \| 'url' \| 'phone' \| 'password' \| 'secret' \| 'markdown' \| 'html' \| 'richtext' \| 'number' \| 'currency' \| 'percent' \| 'date' \| … +35 more>` | optional | |
238+
| **widget** | `string` | optional | Widget override for this param — names a registered field component (resolved as `field:<widget>`) to draw it instead of the `type` default; same key and vocabulary as FieldSchema.widget, and `type` stays the value's type. e.g. "permission-ref" on a text param picks a permission set by name (ADR-0131 D4). Degrades to the `type` renderer when unregistered. |
237239
| **required** | `boolean` | optional (default: `false`) | |
238240
| **options** | `{ label: string \| Record<string, string>; value: string; visibleWhen?: string \| object }[]` | optional | |
239241
| **placeholder** | `string` | optional | |
@@ -370,6 +372,7 @@ L2 sandboxed JS body — runs inside an isolated VM with declared capabilities
370372
| **objectOverride** | `string` | optional | Snake case identifier (lowercase with underscores only) |
371373
| **label** | `string \| Record<string, string>` | optional | Display label — the default-language string, or an inline locale map (`{ en, "zh-CN" }`) resolved at render time |
372374
| **type** | `Enum<'text' \| 'textarea' \| 'email' \| 'url' \| 'phone' \| 'password' \| 'secret' \| …>` | optional | |
375+
| **widget** | `string` | optional | Widget override for this param — names a registered field component (resolved as `field:<widget>`) to draw it instead of the `type` default; same key and vocabulary as FieldSchema.widget, and `type` stays the value's type. e.g. "permission-ref" on a text param picks a permission set by name (ADR-0131 D4). Degrades to the `type` renderer when unregistered. |
373376
| **required** | `boolean` | optional (default: `false`) | |
374377
| **options** | `{ label: string \| Record<string, string>; value: string; visibleWhen?: string \| object }[]` | optional | |
375378
| **placeholder** | `string` | optional | |

‎packages/platform-objects/src/apps/translations/action-body-panel-echo-decisions.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,9 @@ describe('#19403 round 5 — the blind spot, FIFTH shape: one schema, two forms,
637637
// `repeater-row-properties.test.ts` derives a row property for every child
638638
// of a `type: 'repeater'` field. On `actionForm` that is exactly ONE
639639
// repeater — `params`, with eighteen children — and every one of those
640-
// carried its own text in all three locales before this round.
641-
expect(ACTION_ENUMERATED.covered.length).toBe(18);
640+
// carried its own text in all three locales before this round. Nineteen
641+
// since #30259 added `params.widget`, authored in all three locales too.
642+
expect(ACTION_ENUMERATED.covered.length).toBe(19);
642643
expect(ACTION_ENUMERATED.covered).toContain('params.carryOver');
643644
expect(ACTION_ENUMERATED.covered).toContain('params.requiresFeature');
644645
for (const [locale, forms] of TRANSLATED_LOCALES) {

‎packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,10 @@ describe('#19403 round 10 — the verdicts, on the live bundles', () => {
12591259
// 701 since #29442: the flow form's variables repeater offers
12601260
// `objectName` (a start input declared a record id) — one row label,
12611261
// authored in all three locales.
1262-
expect(translated.length, `${locale} positive control`).toBe(701);
1262+
// 702 since #30259: the action form's params repeater offers `widget`
1263+
// (the widget that draws the param, the same key as a field's) — one
1264+
// row label, authored in all three locales.
1265+
expect(translated.length, `${locale} positive control`).toBe(702);
12631266
}
12641267
// ⭐ DARK — the blindness, executable. On a synthetic two-locale catalog the
12651268
// all-three predicate returns 0 while the per-locale one returns 1, so the

0 commit comments

Comments
 (0)