Commit dc7ca77
committed
feat(record): declare inputs for the seven configurable record:* blocks, and curate six
Seven record:* blocks shipped with renderers that read props but declared no
inputs. That combination is the worst of both: the renderer honours `limit`,
`severity`, `location` …, while every authoring surface — the designer panel,
the AI vocabulary, the generated manifest — reports the block takes no
configuration. #3013 recorded them as deliberately uncurated for exactly that
reason.
The declarations mirror what each renderer actually reads:
record:activity 11 from RecordActivityComponentProps
record:chatter 5 from RecordChatterComponentProps
record:discussion 5 (same renderer, same inputs)
record:alert 8 severity, title, body, visible, icon, action,
dismissible, dismissKey
record:quick_actions 7 actionNames, requiredPermissions, location, align,
inline, variant, size
record:history 3 limit, emptyText, unknownUserText
record:reference_rail 1 hideEmpty
inputs describe what an AUTHOR writes, which is a subset of what the renderer
reads. `entries`, `loading` and resolved `actions` are injected by the host
shell off RecordContext; declaring them would invite a model to hand-write the
data the page is supposed to fetch. `aria` is omitted for the reason it is
omitted on record:details — an accessibility escape hatch, not a layout choice.
`location` takes its enum from the spec's ACTION_LOCATIONS rather than
restating it, per #3019.
Six of the seven join PUBLIC_BLOCKS: configurable and absent from the contract
is the state #3006 was about. The contract goes 36 -> 42 tags, all resolving.
record:chatter stays out — same renderer as record:discussion under a
Salesforce-familiar name, kept for schemas already in the wild. Two spellings
of one block is ambiguity an authoring model cannot resolve, so the vocabulary
carries the spec's name. A test compares the two input lists, so the day they
diverge the exclusion stops being justified and fails.
A companion assertion requires every curated record:* tag to declare inputs. A
curated tag with none reads as "takes no configuration" when the renderer in
fact reads props — the same gap #3006 opened, pointed the other way.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N4mrr1ihhwnfEHFSWmGoMp1 parent bf66b70 commit dc7ca77
4 files changed
Lines changed: 173 additions & 27 deletions
File tree
- .changeset
- apps/console/src/__tests__
- packages
- core/src/registry
- plugin-detail/src
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
| |||
161 | 167 | | |
162 | 168 | | |
163 | 169 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
| 170 | + | |
168 | 171 | | |
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
173 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
174 | 181 | | |
175 | 182 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
183 | 187 | | |
184 | 188 | | |
185 | 189 | | |
| |||
220 | 224 | | |
221 | 225 | | |
222 | 226 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
232 | 238 | | |
233 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
234 | 255 | | |
235 | 256 | | |
236 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
51 | 66 | | |
52 | 67 | | |
53 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
285 | 294 | | |
286 | 295 | | |
287 | 296 | | |
288 | 297 | | |
289 | 298 | | |
290 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
291 | 315 | | |
292 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
293 | 330 | | |
294 | 331 | | |
295 | 332 | | |
296 | 333 | | |
297 | 334 | | |
298 | 335 | | |
| 336 | + | |
| 337 | + | |
299 | 338 | | |
300 | 339 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | 340 | | |
307 | 341 | | |
308 | 342 | | |
309 | 343 | | |
310 | 344 | | |
311 | 345 | | |
| 346 | + | |
312 | 347 | | |
313 | 348 | | |
314 | 349 | | |
| |||
330 | 365 | | |
331 | 366 | | |
332 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
333 | 378 | | |
334 | 379 | | |
335 | 380 | | |
| |||
338 | 383 | | |
339 | 384 | | |
340 | 385 | | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
341 | 391 | | |
342 | 392 | | |
343 | 393 | | |
| |||
346 | 396 | | |
347 | 397 | | |
348 | 398 | | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
349 | 402 | | |
350 | 403 | | |
351 | 404 | | |
| |||
354 | 407 | | |
355 | 408 | | |
356 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
357 | 420 | | |
358 | 421 | | |
359 | 422 | | |
| |||
0 commit comments