Skip to content

Commit 5c7d568

Browse files
os-zhuangclaude
andcommitted
chore: changeset for page regions/properties optional
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent cb56862 commit 5c7d568

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
"@objectstack/spec": patch
3+
---
4+
5+
fix(spec): make page `regions` and component `properties` optional
6+
7+
`PageSchema.regions` and `PageComponentSchema.properties` were required, which
8+
made it impossible to create record/home/app pages in the Studio editor: the
9+
New Page form has no region editor, and the create-form seeds a record page's
10+
default layout from `buildDefaultPageSchema`, whose nodes carry props at the top
11+
level — so every seeded block tripped `regions.N.components.M.properties:
12+
expected record`. Both are now `.optional().default(...)`; an empty full page
13+
falls back to the synthesized default layout, slotted pages compose via `slots`,
14+
list pages ignore regions, and prop-less components (record:activity,
15+
element:divider) no longer need `properties: {}`.

0 commit comments

Comments
 (0)