Commit e914e8c
feat(studio): page WYSIWYG canvas, nested-block config, and type-aware Action authoring (#1831)
* feat(studio): editable config for nested page blocks (table/form/metric)
Selecting a data-bound block (object-grid table, object-form, object-metric,
grid) in the page metadata editor opened an inspector with only
type/id/className while the full `properties` binding lived in source — the
config panel was disconnected from what the author saw.
- block-config: curated fields for object-grid/object-form/object-metric/
object-kanban/grid
- PageBlockInspector: generic "Advanced" editor renders every remaining
property (scalars as typed inputs, objects/arrays as editable JSON), so the
panel always matches source for any block type, curated or not
- PageBlockCanvas.childGroups: fix page:card (properties.children, not body),
add grid, and a generic properties.children fallback so nested blocks are
selectable on the canvas
- block-types: object-grid/form/metric/kanban + grid become first-class
(icons, a Data category, addable from the block picker)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* feat(studio): WYSIWYG page design canvas — render real blocks with selection
The Design canvas showed abstract type-badge cards while Preview rendered the
real page — they looked completely different. Now each leaf block renders its
REAL component (via SchemaRenderer, the same renderer Preview uses) behind a
transparent select/drag overlay with a hover/selected type badge, mirroring the
dashboard editor's design mode. Container blocks (grid/card/tabs/section) keep a
slim title bar; their nested children render as real previews, and a grid lays
its children out in its configured column count.
- PageBlockCanvas: BlockLivePreview helper; BlockRow leaf vs container split;
NestedChildren renders real child previews honoring grid columns
- selection/drag/add/nested-edit ergonomics preserved
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* feat(studio): type-aware Action authoring inspector
Replace the flat SchemaForm for `action` with a progressively-disclosed,
type-first editor (Salesforce Quick Action / ServiceNow UI Action style):
- Basics (label/name/object scope hint/icon/variant)
- Behavior branches by type: script -> body editor; api -> method + endpoint;
url/flow/modal/form -> a single typed target binding
- Inputs: param builder (field-backed picks reuse object field metadata)
- Placement: location checkboxes + object-vs-global scope hint
- Feedback: confirm/success/error/refresh/undo/mode/shortcut
- Conditions: visible/disabled CEL
- AI exposure: opt-in via flattened aiExposed/aiDescription (matches
ActionPreview + served schema), not the nested ai block
- Advanced/rare props fall through to a SchemaForm fed the live server schema
with curated keys hidden, so nothing is double-edited or lost
Registered via registerMetadataDefaultInspector('action', …).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* feat(studio): Action editor — test-run, condition builder, placement preview
Three heavier authoring aids for the Action editor (Retool/ServiceNow-style):
- ActionPreview: a "Test request" runner for type:api (composes method +
endpoint + bodyExtra, sends a real request with the session bearer, renders
HTTP status + response; warns for non-GET) and a "Where it appears"
placement simulation that mocks the button in record header / list row /
toolbar / more-menu / section / command-palette per the action's locations.
- ConditionBuilder (new): no-code visible/disabled editor — [subject][op][value]
rows over the bound object's fields + context, joined AND/OR, compiled to CEL.
Stateful (in-progress rows persist); round-trip guard keeps hand-authored
complex CEL in a raw textarea; empty predicate unsets the field (no invalid '').
- ActionDefaultInspector: Conditions section now uses ConditionBuilder.
Verified live: api test request (real POST → HTTP 404 shown), placement mocks,
and record.status != 'done' compiled from the builder.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 93284b2 commit e914e8c
11 files changed
Lines changed: 1264 additions & 81 deletions
File tree
- packages
- app-shell/src/views/metadata-admin
- inspectors
- previews
- plugin-form/src
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| 409 | + | |
409 | 410 | | |
410 | 411 | | |
411 | 412 | | |
| |||
429 | 430 | | |
430 | 431 | | |
431 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
432 | 436 | | |
433 | 437 | | |
434 | 438 | | |
| |||
1053 | 1057 | | |
1054 | 1058 | | |
1055 | 1059 | | |
| 1060 | + | |
1056 | 1061 | | |
1057 | 1062 | | |
1058 | 1063 | | |
| |||
1076 | 1081 | | |
1077 | 1082 | | |
1078 | 1083 | | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
1079 | 1087 | | |
1080 | 1088 | | |
1081 | 1089 | | |
| |||
Lines changed: 418 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 257 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
0 commit comments