Repository navigation
docs(skills): objectstack-ui teaches New and Edit as built from the object's fields and field groups, and showOnCreate - #36609
Conversation
…ect's fields and field groups, and showOnCreate An object's internal create and edit form views are no longer loaded: the create and edit surfaces lay out by fieldGroups and follow the fields' own rules. SKILL.md Traps 1 and rules/list-views.md Form Views now teach that, teach showOnCreate: false (refused beside required: true), and keep the two form views that still load: a named form an action of type form opens, and a public form. The form-view subforms override is retired from Master-Detail Forms. Four eval cases that taught an internal form are rewritten. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmPTDM2MxHR8cvoMVUX
…ck/skills patch) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmPTDM2MxHR8cvoMVUX
…with same-file cuts Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmPTDM2MxHR8cvoMVUX
|
l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih Contract-review-claim: session_01ADHkmT4eA4YqtxfiPyLPih · head f7c9b84 · 2026-11-23T02:44Z |
|
l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih Contract reviewServed-tier: Inputs read: card #36455 (body, 4 comments), PR #36609 (body, 5 files, net diff against merge-base ① Derived judgments
② Semver levelClause-②: no. Agreed. The diff publishes skill prose only; nothing a consumer parses, imports or calls changes. ③ Boundary flags
④ Design judgmentEach taught sentence, read against
Payment cuts: the removed sentences about sizing the New / Edit dialog with
Security: no changed hunk teaches permission, sharing, credential, token or authentication behaviour. No must-fix, no should-fix. N1 (nit) — eval 6 cannot tell the retired answer from the taught one. Its new Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-steve · session_01ADHkmPTDM2MxHR8cvoMVUX 席位核对ACCEPT — PR #36609 @
|
|
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY 维护者速读
ACCEPT → PR #36609 comment 7090372679 · Contract review PASS → comment 7090260349 · Head-sha Out of scope: the review's ③ items → #36611 (with scope addition 7090272791); the |
Requested by Steve · project thread
Fixes #36455
Clause-②: no
Metadata-protocol: none
Skills-docs: updated here
维护者速读
What changes
skills/objectstack-uitaught the object's internal create and edit form views (form,formViews.create,modalSize, the form-viewsubformsoverride). After #36425 (PR #36449, then PR #36543) the Console's create and edit surfaces load none of them. The skill now teaches whatmaindoes.SKILL.md, Traps 1: New and Edit are the object's fields andfieldGroups, never a form view;showOnCreate: falsekeeps a field off every create surface and is refused besiderequired: true. The "Where to go" row for forms names the object as the place the New / Edit form is authored, and keeps the named and public forms undersrc/views/*.view.ts.rules/list-views.md, "Form Views": rewritten. New and Edit are built from the object (fields, sectioned byfieldGroupsin array order, following the fields' own rules);collapse: 'collapsed'on a group folds a rarely filled section;showOnCreate: falseand its refusal; dialog size and column count are derived. A container'sform,formViews.defaultandformViews.createstill parse and steer nothing, andos validatewarnsform-view-internal-not-loaded. Kept, as the two kinds of form view that load: a namedformViewsentry (OBJECT.key) that an action of typeformopens at/forms/:name, and a public form, whose paragraph is unchanged.rules/list-views.md, thedefineViewcontainer example: the defaultformis replaced by a namedformViewsentry (still anos:checkblock).rules/list-views.md, "Master-Detail Forms": option 2 (form-viewsubforms) is removed, because no create or edit surface reads it any more. The parent field group naming the child (option 1) and the page block stay.taxRateFieldis attributed to the page block, the only schema that declares it.evals/views-apps-actions-pages.json: evals 1, 6, 13 and 19 taught or assumed an internal form view. Each now expects the object's field groups andshowOnCreate.evals/README.mdnames the new coverage..changeset/36455-ui-skill-create-surfaces.md:@objectstack/skillspatch. The changeset check requires it: askills/**change releases that package and never takes the skip label.Token and line readings (the skills ratchet; no ceiling is changed)
skills/objectstack-ui/SKILL.mdskills/objectstack-ui/rules/list-views.mdskills/objectstack-ui/evals/views-apps-actions-pages.jsonskills/objectstack-ui/evals/README.mdSKILL.mdfiles underskills/, summedBoth ratcheted files end at the token count they started at: the new text is paid for by cuts in the same file. The bundle total rises by 141 tokens, all of it in the two eval files, which the ratchet measures and does not price (
skills/README.mdsaysevals/is inert in a consumer install). Readings taken atf7c9b8465bagainst basef4c2d0b1b9.Where each sentence comes from
Every behavioural claim in the new text, with the code on
main(f4c2d0b1b9) that makes it true.showOnCreateis an optional boolean on a field; absent ortruemeans asked for on createpackages/spec/src/data/field.zod.ts:2931showOnCreate: falsebesiderequired: trueis refused, with or without adefaultValue;requiredWhenis the way outpackages/spec/src/data/field.zod.ts:3253-3271ui/packages/app-shell/src/utils/recordFormNavigation.ts:206-211(isFieldAskedOnFlow),ui/packages/app-shell/src/utils/recordFormFields.ts:29-40ui/packages/app-shell/src/console/AppContent.tsx:1791,ui/packages/app-shell/src/views/RecordFormPage.tsx:296,ui/packages/app-shell/src/hooks/useActionModal.tsx:289modalSize, buttons, layout,defaultsui/packages/app-shell/src/console/AppContent.tsx:1752-1757,ui/packages/app-shell/src/utils/recordFormNavigation.ts:213-240fieldGroupsin declared orderpackages/spec/src/data/field-group-layout.ts:16-17collapse: 'collapsed'on a group folds its section in the formpackages/spec/src/data/object.zod.ts:1602-1603,ui/packages/plugin-form/src/fieldGroups.ts:121-122full)ui/packages/plugin-form/src/ModalForm.tsx:565-590,ui/packages/app-shell/src/utils/recordFormNavigation.ts:213-240form,formViews.default,formViews.createare reported asform-view-internal-not-loaded, a warning, by the check tools; a public form and a form under any other name are notpackages/lint/src/validate-internal-form-views.ts:16-31and:76-128,packages/lint/src/authoring-rules.ts:1832-1844formViewsentry is registered asOBJECT.keypackages/spec/src/ui/view.zod.ts:8092-8101formopens/forms/:namewithtargetas the nameui/packages/core/src/actions/ActionRunner.ts:2931-2950,ui/apps/console/src/App.tsx:456typeissimple,tabbedorwizard, and the page draws eachpackages/spec/src/ui/view.zod.ts:5341-5343,ui/apps/console/src/components/FormPage.tsx:290and:2834-2847fields;groupon one is refusedpackages/spec/src/ui/view.zod.ts:5710-5731ui/apps/console/src/components/FormPage.tsx: zero matches forsubforms,relatedListandMasterDetail; control: the same file matcheswizard33 timesfieldGroups[].relatedListui/packages/app-shell/src/utils/recordFormNavigation.ts:185-198taxRateFieldis a key of the master-detail page blockpackages/spec/src/ui/component.zod.ts:7552(no other declaration underpackages/spec/src)Tests
No package source changes, so no package test suite is owed. What was run:
check:skill-examples(not in the derived list; run because anos:checkblock changed), after building the@objectstack/client-reactdependency closure under the verify lock (VERDICT command-exit 0, 43 of 43 tasks):349 prose examples type-check across 3 surface(s).parseEvalFile,packages/qa/scenarios/src/skill-evals/cases.ts): 23 cases, 0 refusals.Acceptance notes
formwas dead for create and edit. Also stale, and corrected: Master-Detail option 2, the "Where to go" row, and four eval cases. (2) Partly falsified: ofcolumns,collapseandmodalSize, onlycollapseon a field group is still honoured on create and edit. A field group has nocolumnskey, and the hosts pass nomodalSize. (3) Confirmed: the parent field group naming the child is live and is kept.rules/navigation.md"Record Presentation" already says width and columns are derived; itssectionsladder still applies to named forms and page blocks. Theformrow of the Action Types table still holds.references/react-blocks.mdis generated; itsmodalSizesentence follows the specdescribetext, which Ledger: form viewmodalSizekeepsliveafter #36425 deleted its only named reader — re-audit (enforce-or-remove) #36544 carries.skills/objectstack-data/rules/relationships.md:278still points at "subformsoverrides" in this skill's Master-Detail section, which no longer has one. No file underskills/objectstack-datateachesshowOnCreate, though the key is a field key.skills/objectstack-automation/SKILL.md:44andskills/README.md:125send a stepped form to a wizard form view without saying it must be a named form an action opens.collapsedthrough (FormPage.tsx:933-934) and no render code in that file reads it. Read from source only; not reproduced in a browser. The new text does not teachcollapsedon a form-view section.Verification
Head
f7c9b8465b.Read first (by risk): 1.
skills/objectstack-ui/rules/list-views.md, the "Form Views" hunk: every sentence is new teaching. 2.skills/objectstack-ui/evals/views-apps-actions-pages.json, eval 6: the expected answer changed from a wizard to field-group order. 3.skills/objectstack-ui/SKILL.md, Traps 1.Two-minute check:
node scripts/check-skills-token-ratchet.mjsprintsskills/objectstack-ui/SKILL.md is 2230 tokens (ceiling 2272andskills/objectstack-ui/rules/list-views.md is 4447 tokens (ceiling 4448, and exits 0.Local gates at f7c9b84: 50 derived, 49 run with exit 0, 1 NOT MEASURED
node scripts/pm/dispatch-gates.mjs --commandsderived 50 commands. Each was run with its exit code captured before any pipe, and the record was reconciled:NOT MEASURED:
pnpm check:dual-build-cjs-loads, exit 3 (it needs every package'sdist; left to CI).Verdict lines:
Outside the derived list, also exit 0:
check:skill-examples,check:skill-refs.node scripts/pm/overlap-check.mjsbefore each push:VERDICT clean exit 0(one open PR, #35129, sharesSKILL.mdand merges cleanly).CI check-runs: not read at the time this body was written.
🤖 Generated with Claude Code
https://claude.ai/code/session_01ADHkmPTDM2MxHR8cvoMVUX