Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/36611-skills-wizard-routing-sections.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@objectstack/skills': patch
---

docs(skills): the skills index routes a stepped single-object form to a named wizard form an action opens, and the UI skill's `sections` ladder says New and Edit never read sections

Clause-②: no
Metadata-protocol: none

Two passages still taught what the Console's create and edit surfaces stopped doing. `skills/README.md`, "Cross-skill routing": a stepped form over one object that never branches is a named form view (`type: 'wizard'`) that an action of `type: 'form'` opens; an object's own New and Edit never step, because they are built from its fields and `fieldGroups`. `skills/objectstack-ui/rules/navigation.md`, "Record Presentation": the `sections` ladder now says where sections are read (a named or public form, and a page's `record:details` or form block) and that New and Edit never read them, with a link to "Form Views". The ladder's retired `pane` example is gone; a wizard's steps are the example of sections that must enumerate fields. No metadata shape changes.
6 changes: 4 additions & 2 deletions skills/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@ A few common decision points where the right skill isn't obvious:
(`beforeInsert`, etc.) live in **objectstack-data**; cross-record orchestration,
approvals, and scheduled work live in **objectstack-automation**.
- **Screen flows vs. views** — a stepped form over one object that never branches
is **ui** (a form view, `type: 'wizard'`); a screen flow that branches, or steps
across several objects, is **automation**. Static record / list / dashboard surfaces are **ui**.
is **ui**: a named form view (`type: 'wizard'`) that an action of `type: 'form'`
opens. An object's own New and Edit never step: they are built from its fields
and `fieldGroups`. A screen flow that branches, or steps across several
objects, is **automation**. Static record / list / dashboard surfaces are **ui**.
- **Any CEL expression** — load **objectstack-formula** alongside the host
skill (data validations, automation guards, UI visibility).
- **Kernel / plugin events vs. data lifecycle** — `PluginContext` lifecycle and
Expand Down
20 changes: 10 additions & 10 deletions skills/objectstack-ui/rules/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,13 @@ at runtime from the client viewport, because an author
- **Column count.** Not authored. The form grid follows its **real rendered width**
via container queries — the same form is 1 column in a narrow drawer and up to 4
on a wide page. Author *grouping* with `fieldGroups`.
- **`sections` are the escape hatch — reach for them last.** The ladder, in
order: (1) **derive** — declare `fieldGroups` and author no
`sections` at all; (2) **reference** — when one surface needs a local
arrangement, a section may name a declared group, `{ group: 'contact_info' }`,
and inherits its members, label and presentation (restating a key the group
declares is refused at parse); (3) **enumerate** — `{ label, fields: [...] }`
only for a named-customer requirement a group reference genuinely cannot
express (a cross-group entry combination, a wizard/pane structure), with that
reason in a comment beside it. A hand-enumerated section re-copies membership
the object already owns and goes stale on the next field added.
- **`sections` are the escape hatch — reach for them last.** New and Edit
never read them ([Form Views](./list-views.md#form-views)); a named or
public form and a page's `record:details` or form block do. The ladder:
(1) **derive** — declare `fieldGroups`, author no `sections`;
(2) **reference** — a section names a declared group, `{ group: 'contact_info' }`,
inheriting its members, label and presentation (restating a group's key is
refused); (3) **enumerate** — `{ label, fields: [...] }` only for a
named-customer requirement a group reference cannot express (a cross-group
combination, a wizard's steps), with the reason in a comment. An enumerated
section copies membership the object owns and goes stale on the next field.
Loading