Commit 8801c02
fix(spec): don't require
`PageSchema`'s superRefine rejected any `kind: 'slotted'` page without a
`slots` map. But a slotted page with no overrides is valid and useful — every
slot falls through to the synthesized default layout, the natural starting
point before you add overrides. Requiring `slots` up front made the Studio
"New Page" form a dead-end the instant you picked "slotted" (the form can't
author a slot map), the same trap as the old required `regions`. Removed the
superRefine clause; `slots` stays optional.
Found by dogfooding the Studio page designer. Verified: slotted-without-slots
now parses; 86 page tests pass.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>slots on slotted pages (#2261)1 parent eb1b987 commit 8801c02
2 files changed
Lines changed: 18 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
425 | 424 | | |
426 | 425 | | |
427 | 426 | | |
| |||
0 commit comments