diff --git a/.changeset/36611-skills-wizard-routing-sections.md b/.changeset/36611-skills-wizard-routing-sections.md new file mode 100644 index 00000000000..564401c91ce --- /dev/null +++ b/.changeset/36611-skills-wizard-routing-sections.md @@ -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. diff --git a/skills/README.md b/skills/README.md index 94cced8eee3..4e2f52b59a5 100644 --- a/skills/README.md +++ b/skills/README.md @@ -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 diff --git a/skills/objectstack-ui/rules/navigation.md b/skills/objectstack-ui/rules/navigation.md index 328f4d8cd56..1bb5ec2deb3 100644 --- a/skills/objectstack-ui/rules/navigation.md +++ b/skills/objectstack-ui/rules/navigation.md @@ -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.