You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(skills): author the 16 factory domains via defineX, not bare literals (#2035) (#2124)
The example apps were migrated to the `defineX` factories in #2088/#2095 and a
lint guard keeps them clean — but the skills and hand-written docs still taught
the old bare-literal pattern (`: Page = {}`, `: Action = {}`, `: PermissionSet
= {}`, …). Skills are the corpus AI authors from, so this directly undercut the
#2035 north star: leaving the unsafe pattern as the thing AI copies.
Converts every bare output/Input-type metadata literal for the 16 factory
domains to its `defineX(...)` factory call, across:
- skills/objectstack-ui/SKILL.md (8: Page/Action/Report/Cube)
- content/docs/guides/security.mdx (8: PermissionSet/SharingRule)
- content/docs/{guides/standards,concepts/index,concepts/architecture,
getting-started/architecture,protocol/objectui/record-alert}.* (7)
Imports are rewritten in place (preserving each block's import source — root vs
subpath) or injected where the snippet had none. Pre-existing `defineView` /
`defineFlow` examples are untouched. `check:skill-docs` stays green (generated
references come from frontmatter, unchanged).
Docs-only — no package code, no changeset. Code blocks in MDX/skills are not
type-checked by any gate, which is why they drifted; a lightweight MDX code-block
lint is noted as a separate follow-up.
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
The `alerts` slot is rendered between the page header (`header/actions`) and the highlights strip — the standard enterprise UX placement for contextual notices.
0 commit comments