Commit 57f2e2c
committed
skills(ui): fix schema-enum errors and broken pointers; correct contract generator
Third-party review found a dense cluster of P0 schema errors that made
generated UI metadata fail os validate or render unknown components:
- Page types are record|home|app|utility|list — record_detail/
app_launcher/utility_bar don't exist; page examples fixed (type:
'record', object: not objectName:) and all definePage/defineDataset
examples now carry the required label.
- Interface-page rule updated to the revised ADR-0047 model: the page
IS the view definition (page-owned columns/sort/filterBy);
sourceView is a deprecated fallback.
- Report types = tabular|summary|matrix|joined (charts are the
embedded chart: config); dashboard widget type is the 18-value
ChartTypeSchema taxonomy; widget placement is optional layout (not
required position).
- Action locations: global → global_nav (+record_related/
record_section); nav divider → separator; requiresCapability →
requiresService; component names record:related_list, line_items,
object-metric/object-chart, <object-grid> — all verified against the
objectui block registry.
- DATE_MACRO_TOKENS/isDateMacroToken import from @objectstack/spec/data
(not root); monorepo-relative ADR/examples/content pointers replaced
with plain text or shipped zod paths; stale dated objectui coverage
scan removed.
- build-react-blocks-contract.ts no longer marks .default()-carrying
props as required (Zod v4 output-io artifact); contract + reference
regenerated; provenance now cites the @objectstack/spec/ui module
instead of a non-shipping src path; evals cleaned of internal issue
refs.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012Kj2MJEPXoUXC4LiC3XYJc1 parent cdfc492 commit 57f2e2c
6 files changed
Lines changed: 171 additions & 167 deletions
File tree
- packages/spec/scripts
- skills/objectstack-ui
- contracts
- evals
- references
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| |||
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
104 | | - | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
| |||
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
115 | | - | |
| 119 | + | |
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
| |||
0 commit comments