Commit 34c4df7
docs(actions): document that
Keeps the two action docs in sync with the parse-time rule added in this PR
(and with the console-side target resolution in objectui#2826):
- ui/actions: a second "trap" callout next to the existing dead-button one —
a `body` on a non-script action is rejected, with `type: 'script'` + `params`
named as the shape for "collect input, then run logic".
- protocol/objectui/actions: `body` on a non-script type is now a parse-time
error, not just "not meaningful"; the Modal Actions section states the
page → object → server-handler resolution order and that `params` are
collected before the target opens.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KYuc9N6YRbvoDMbCvJiX9fbody is script-only and how a modal target resolves1 parent 85ea69f commit 34c4df7
2 files changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
154 | 156 | | |
155 | 157 | | |
156 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
129 | 140 | | |
130 | 141 | | |
131 | 142 | | |
| |||
0 commit comments