Repository navigation
Commit 9e2a4ac
docs(skills): the skills index routes a stepped single-object form to a named wizard form, and the sections ladder says New and Edit never read sections (#36625)
<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi91tYCagMT6JaQ6YA5YqnWwi)_
Part of #36611
Clause-②: no
Metadata-protocol: none
Skills-docs: updated here
## 维护者速读
- 用户能看到什么变化:照着技能包写应用的 AI,想要「一个对象上的分步表单」时,会被指到「由动作打开的具名分步表单」;也不会再以为「新建 /
编辑」弹窗能靠表单分区来重新排版。
- 为什么做:这是「内部新建和编辑表单退役」的收尾。平台已经改了,技能总目录和界面技能里还各留着一段旧说法。
- 出错会怎样:AI 照旧文字写出的分步表单或分区不会生效。本次只改两段技能文字,撤回这一个合并就恢复原样。
-
要你做什么:技能包属于受管文件,本单保持草稿,等席位的契约审核记录后落地;数据技能和自动化技能里的同类旧说法留给第二阶段(等另一张在途的数据技能改动先合并)。
## What changes
Stage 1 of the card: the two passages that do not intersect PR #36158.
- **`skills/README.md`**, "Cross-skill routing", the "Screen flows vs.
views" bullet. Before: a stepped form over one object that never
branches is "a form view, `type: 'wizard'`", with no door named. On
`main` the only form views that load are a named one an action of `type:
'form'` opens and a public one; an object's New and Edit load none.
After: the bullet names the named wizard form and the action that opens
it, and says an object's own New and Edit never step because they are
built from its fields and `fieldGroups`. The screen-flow half (branches,
or several objects, is automation) is unchanged.
- **`skills/objectstack-ui/rules/navigation.md`**, "Record
Presentation", the `sections` bullet. Before: step 2 of the ladder read
"when one surface needs a local arrangement, a section may name a
declared group", in a section about a record's create / edit / detail.
After: the bullet opens by saying New and Edit never read `sections`
(linking "Form Views" in `rules/list-views.md`), and names what does: a
named or public form, and a page's `record:details` or form block. The
three steps of the ladder are kept. The enumerate step's example "a
wizard/pane structure" becomes "a wizard's steps": `pane` left the
section shape in spec 18.3.0, and a wizard step is the case that must
enumerate `fields`, because `group` is refused there.
- **`.changeset/36611-skills-wizard-routing-sections.md`**:
`@objectstack/skills` patch.
No eval case teaches either passage (`git grep -n -i "wizard\|sections"
skills/objectstack-ui/evals` at this head: one trigger prompt, one
`must_not_contain` token, and prose about field groups), so no eval file
changes.
**Left for stage 2** (a second PR on this card, Blocked-by #36158, which
edits all three files): `skills/objectstack-data/rules/relationships.md`
(the pointer to the removed subforms override), `showOnCreate` in
objectstack-data, and the same routing sentence in
`skills/objectstack-automation/SKILL.md` line 44. Until stage 2 lands,
that automation line still reads "an objectstack-ui form view, `type:
'wizard'`", shorter than the README now is.
### Token and line readings (no ceiling is changed)
| File | Lines before → after | Bytes before → after | Tokens before →
after | Ceiling |
|:--|:--|:--|:--|:--|
| `skills/objectstack-ui/rules/navigation.md` | 191 → 191 | 10216 →
10216 | 2554 → 2554 | 2564 (unchanged, headroom 10 as before) |
| `skills/README.md` | 146 → 148 | 10753 → 10893 | 2689 → 2724 by the
same convention | none: outside the ratchet's population ("population 3"
in the checker's header), not inside any published skill directory |
| All `SKILL.md` files under `skills/`, summed | 4948 → 4948 | | | |
| Ratcheted (authored) total | | | 197572 → 197572 | 202541 |
| Bundle total (whole shipped tree) | | | 294087 → 294087 | |
The new sentence in `navigation.md` is paid in full by cuts inside the
same bullet ("in order", "when one surface needs a local arrangement",
"at all", "genuinely", "at parse", "beside it", and shorter wording of
the last sentence). Readings at `affa89e7a9` against base `ed0edb1b50`.
## Tests
No package source changed, so no package suite is owed. No ablation:
prose only.
Local gates at `affa89e7a9`: the 49 commands `dispatch-gates.mjs
--commands` derives, each run with its exit code recorded; `--ran`
answers "49 derived famil(ies) accounted for — 47 run, 2 NOT-MEASURED".
The two are `check:dual-build-cjs-loads` and `check:lean-entry-closure`
(exit 3, PREREQUISITE NOT MET: they read built `dist/` of packages this
diff does not touch; CI decides). Among the 47:
`check-skills-token-ratchet` exit 0, `check:skill-links` exit 0,
`check:skill-docs` exit 0, `check:doc-formula-expressions` exit 0,
`check:nul-bytes` exit 0.
## Acceptance notes
Each taught sentence against `main` (`ed0edb1b50`):
- New and Edit are built from the object's fields and field groups, and
read no form view:
`ui/packages/app-shell/src/utils/recordFormFields.ts:29`
(`recordFormFieldNames`), called by the dialog
(`ui/packages/app-shell/src/console/AppContent.tsx:1791`), the full page
(`ui/packages/app-shell/src/views/RecordFormPage.tsx:296`) and an
action-opened create or edit
(`ui/packages/app-shell/src/hooks/useActionModal.tsx:289`).
- An internal form parses and steers nothing, with a warning:
`packages/lint/src/validate-internal-form-views.ts:36` and `:91-112`.
- An action of `type: 'form'` opens a named form at its own page:
`ui/packages/core/src/actions/ActionRunner.ts:2931-2939`
(`executeForm`), route `ui/apps/console/src/App.tsx:456`;
`packages/spec/src/ui/action.zod.ts:693` and `:719`.
- That page honours `wizard` (a step per section) and `tabbed`:
`ui/apps/console/src/components/FormPage.tsx:2841` and `:2848`; type
enum `packages/spec/src/ui/view.zod.ts:5341-5343`.
- A named form resolves a `group` section:
`ui/apps/console/src/components/FormPage.tsx:845-857`. `group` on a
wizard step is refused: `packages/spec/src/ui/view.zod.ts:5727-5737`.
- A page's `record:details` block takes `sections` with a `group`
reference: `packages/spec/src/ui/component.zod.ts:1327`, `:1379`,
`:1549`. The `object-form` and `object-master-detail-form` blocks take
them too: `:7259`, `:7540`; resolved in
`ui/packages/plugin-form/src/ObjectForm.tsx:336`.
- `pane` is gone from both section shapes:
`packages/spec/src/ui/view.zod.ts:4106-4115`,
`packages/spec/src/ui/component.zod.ts:6556-6559`.
Noted, not filed: an `object-form` page block also accepts `formType:
'wizard'` (`packages/spec/src/ui/component.zod.ts:7220`), a second ui
home for a stepped single-object form. The README bullet names only the
named form, the home "Form Views" teaches; whether the routing should
name the page block as well is the reviewer's call.
## Verification
Read first, by risk: (1) the `sections` bullet in
`skills/objectstack-ui/rules/navigation.md`, the one hunk in a ratcheted
file; (2) the routing bullet in `skills/README.md`.
Two-minute check: `node scripts/check-skills-token-ratchet.mjs`,
expected line "skills/objectstack-ui/rules/navigation.md is 2554 tokens
(ceiling 2564; headroom 10)" and exit 0.
CI check-runs: not read at the time this body was written.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01ADHkmPTDM2MxHR8cvoMVUX
<!-- signed: repo:objectstack#2 · os-steve ·
session_01ADHkmPTDM2MxHR8cvoMVUX -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 2924732 commit 9e2a4ac
3 files changed
Lines changed: 24 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
0 commit comments