Skip to content

Commit c2b9101

Browse files
committed
chore(spec): regenerate the os-regen artifacts on the merged tree
The os-regen driver kept the branch side of authorable-surface/ui.json and the component reference page; regeneration restores main's `ui/Action:outcomeMessages` beside this branch's record:line_items keys. Claude-Session: https://claude.ai/code/session_01UtnxvdiN376GF3sgXwAw4d Co-authored-by: Claude <noreply@anthropic.com>
1 parent 85478c3 commit c2b9101

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ const result = AIChatWindowProps.parse(data);
179179
| **params** | `{ name?: string; field?: string; objectOverride?: string; label?: string \| Record<string, string>; … }[]` | optional | Input parameters required from user — an ActionParam[] DEFINITION array, never a payload map (a static request body goes in `bodyExtra`). |
180180
| **bodyExtra** | `Record<string, any>` | optional | Static request-body fields for a type:"api" action, merged last (overrides user params). `{{page.<var>}}` tokens are resolved by the runtime. This — not `params` — is where a payload goes. |
181181
| **confirmText** | `string \| Record<string, string>` | optional | Confirmation message before execution. On a registered action, pairing this with a non-empty `params` is refused — that opens a second dialog for one decision; put the question on `description` instead. Correct on a param-LESS action, where the confirm is the only dialog there is. |
182-
| **successMessage** | `string \| Record<string, string>` | optional | Success message to show after execution |
182+
| **successMessage** | `string \| Record<string, string>` | optional | Success message shown after the action succeeds. On a `type: 'api'` or `type: 'script'` action it may interpolate $`{result.*}` — the server response payload, the same scope `onSuccess.navigate` declares (e.g. $`{result.id}`). On a registered action that declares `outcomeMessages`, the entry named by the response's `outcome` is shown instead, and this message is the fallback. |
183183
| **errorMessage** | `string \| Record<string, string>` | optional | Error message to show when the action fails (overrides the raw error). |
184184
| **refreshAfter** | `boolean` | optional (default: `false`) | Refresh view after execution |
185185
| **opensInNewTab** | `boolean` | optional | Open the action result in a new tab. The renderer pre-opens the tab synchronously on click (popup-blocker-safe) and navigates it to the handler's redirectUrl. |

‎packages/spec/authorable-surface/ui.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"ui/Action:opensInNewTab",
4040
"ui/Action:operation",
4141
"ui/Action:order",
42+
"ui/Action:outcomeMessages",
4243
"ui/Action:params",
4344
"ui/Action:patch",
4445
"ui/Action:recordIdField",

0 commit comments

Comments
 (0)