Skip to content

Commit 1d215c5

Browse files
committed
fix(spec): keep issue ids out of the widget describe and its author hint
check:doc-authoring refuses an issue id in author-facing prose; the pointer to the reader card moves to a // comment beside the key. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhmTfrR3b13itPTmu3
1 parent 4fe77e8 commit 1d215c5

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +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. Not read yet: until objectstack#30260 lands, the console's action dialog draws every param with its `type` renderer whatever this names. |
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. Not read yet: until the console's action dialog passes it through, the dialog draws every param with its `type` renderer whatever this names. |
145145
| **required** | `boolean` | optional (default: `false`) | |
146146
| **options** | `{ label: string \| Record<string, string>; value: string; visibleWhen?: string \| object }[]` | optional | |
147147
| **placeholder** | `string` | optional | |
@@ -235,7 +235,7 @@ L2 sandboxed JS body — runs inside an isolated VM with declared capabilities
235235
| **objectOverride** | `string` | optional | Snake case identifier (lowercase with underscores only) |
236236
| **label** | `string \| Record<string, string>` | optional | Display label — the default-language string, or an inline locale map (`{ en, "zh-CN" }`) resolved at render time |
237237
| **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. Not read yet: until objectstack#30260 lands, the console's action dialog draws every param with its `type` renderer whatever this names. |
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. Not read yet: until the console's action dialog passes it through, the dialog draws every param with its `type` renderer whatever this names. |
239239
| **required** | `boolean` | optional (default: `false`) | |
240240
| **options** | `{ label: string \| Record<string, string>; value: string; visibleWhen?: string \| object }[]` | optional | |
241241
| **placeholder** | `string` | optional | |
@@ -372,7 +372,7 @@ L2 sandboxed JS body — runs inside an isolated VM with declared capabilities
372372
| **objectOverride** | `string` | optional | Snake case identifier (lowercase with underscores only) |
373373
| **label** | `string \| Record<string, string>` | optional | Display label — the default-language string, or an inline locale map (`{ en, "zh-CN" }`) resolved at render time |
374374
| **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. Not read yet: until objectstack#30260 lands, the console's action dialog draws every param with its `type` renderer whatever this names. |
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. Not read yet: until the console's action dialog passes it through, the dialog draws every param with its `type` renderer whatever this names. |
376376
| **required** | `boolean` | optional (default: `false`) | |
377377
| **options** | `{ label: string \| Record<string, string>; value: string; visibleWhen?: string \| object }[]` | optional | |
378378
| **placeholder** | `string` | optional | |

‎packages/spec/liveness/action.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"verifiedAt": "2026-11-05",
134134
"evidenceScope": "in-repo",
135135
"authorWarn": true,
136-
"authorHint": "Keep it, but nothing reads it yet: the console's action dialog draws the param with its `type` widget until objectstack#30260 passes `widget` through, so a param naming `permission-ref` is a text box for now.",
136+
"authorHint": "Keep it, but nothing reads it yet: the console's action dialog draws the param with its `type` widget until the dialog passes `widget` through, so a param naming `permission-ref` is a text box for now.",
137137
"note": "PLANNED RECORD (#30259, ADR-0131 D4): the widget override, the same key, vocabulary and meaning as FieldSchema.widget, declared spec-first so a param can ask for the `permission-ref` picker the grant column uses. Accepted by the parse door and carried in the parsed param; read by nothing yet, measured: the console's resolveActionParam builds an ActionParamDef from named members and copies no `widget`, paramToField sets a field widget only for `boolean`, and the dispatcher's resolveDeclaredActionParams copies five named members and validates by `type`, so the value contract is unchanged. The reader is #30260 (the resolveActionParams / paramToField pass-through); flip this row to live there. Create User's permissionSet param switches to it in #30117's server PR."
138138
},
139139
"required": {

‎packages/spec/src/ui/action.zod.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,13 @@ export const ActionParamSchema = lazySchema(() => strictObject(
257257
* widget yet (#30260); until it does, the param draws its `type` renderer
258258
* and its value is submitted as before.
259259
*/
260+
// The describe's "Not read yet" sentence comes off when #30260's pass-through lands.
260261
widget: z.string().optional().describe(
261262
'Widget override for this param — names a registered field component (resolved as `field:<widget>`) '
262263
+ 'to draw it instead of the `type` default; same key and vocabulary as FieldSchema.widget, and `type` '
263264
+ 'stays the value\'s type. e.g. "permission-ref" on a text param picks a permission set by name '
264-
+ '(ADR-0131 D4). Degrades to the `type` renderer when unregistered. Not read yet: until objectstack#30260 '
265-
+ 'lands, the console\'s action dialog draws every param with its `type` renderer whatever this names.',
265+
+ '(ADR-0131 D4). Degrades to the `type` renderer when unregistered. Not read yet: until the console\'s '
266+
+ 'action dialog passes it through, the dialog draws every param with its `type` renderer whatever this names.',
266267
).meta({ title: 'Widget' }),
267268
/**
268269
* Required override; when omitted defaults to `false`. Consumers that wish

0 commit comments

Comments
 (0)