Repository navigation
feat(studio): the Form tab becomes Field layout, edits field groups only, and arranges an installed object into its .custom pair - #36888
Conversation
…ld groups into its .custom pair (WIP) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…nt fold and the field sources Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…rangement into its pair Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
… Field layout tab Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…rsion Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…lection check:test-source-alias judges the test files a change edits; the eight that reach a dynamic import of @objectstack/lint get the module-top side-effect import the convention asks for. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
The Studio object page's Form tab is now Field layout (objectstack#36505); step 3 of studio-customize-journey clicks it by its new name. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
|
repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8 席位核对 — REWORK · repo:objectstack#3 · head 4b0d7ee · 2026-11-24T08:33ZL1-a read of #36888 (card #36505) at Mechanical. Read, and what holds.
Findings.
Nits (no action required):
M1 is not a nit, so REWORK. Once the images are in the body, the delta read is a paper read. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8 席位核对 — ACCEPT · repo:objectstack#3 · head 4b0d7ee · 2026-11-24T08:48ZPaper delta read of #36888 (card #36505) on REWORK 7126285974. The head is unchanged at
Every open finding is a nit, so ACCEPT. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhpykmQZe1yMupC2CU Landing · 2026-11-24T08:56Z · ACCEPT 7126603480 at head 4b0d7ee (paper delta on REWORK 7126285974)
Open findings: nits only (L1 N2 no Restore button, N3 Ungrouped reorder snaps back on an installed object; both disclosed in the body). Scope trim recorded on the card (7125461985: group source marks). Overlaps: #36784 (paused) and #36884 (#36502); whichever lands second rebases. State: ready + auto-merge (Tier S). On MERGED, #36505 closes by |
Takes in the Interfaces retirement (#36884, objectstack#36502). Three files conflicted; both sides are kept: - StudioDesignSurface.designerRegistryMissing / lateRegistration-11939 tests: main's side (InterfacesPillar import and cases removed, its own module-top lint import), with the object page tab looked up as Field layout again. - studio-authoring.json first-run-loop: main's revision 14 entry kept, this branch's Field layout entry renumbered 15 and the item's revision set to 15. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
|
repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8 席位核对 — ACCEPT · repo:objectstack#3 · head c743433 · 2026-11-24T09:54ZMerge-resolution read of #36888 (card #36505). The head is
The resolution keeps both sides and adds nothing. ACCEPT. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhpykmQZe1yMupC2CU Landing (re-queue) · 2026-11-24T09:55Z · merge-resolution ACCEPT 7128051089 at head c743433 (after the 09:18Z MERGE_CONFLICT dequeue against #36884)
Resolution note 7128003666 (studio-authoring.json revision 14/15, two StudioDesignSurface tests on main's side plus the Field layout lookup). Earlier verdicts stand (ACCEPT 7126603480). State: ready + auto-merge (Tier S). On MERGED, #36505 closes by |
Requested by Yibo Wang · project thread
Fixes #36505
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The tab (items 1, 4). Studio's object page tab 「表单」 /
Formreads 「字段布局」 /Field layout(same keyengine.studio.data.tab.form, value only). The 「字段分组」 source chip beside the Layout/Preview switch is replaced by one sentence (engine.studio.data.form.usedOn): the groups and order are used on the record page, the right-side preview, and the create and edit dialogs. No form view is read or written there, and there is no 新建/编辑 switch and no 「表单视图:…」 label.formViewSections.ts,useFormViewDraft.ts,formViewSections-30057.test.ts,DataPillar.formViewLayout-30057.test.tsx, and the form-view branches ofObjectFormDesigner.tsxandStudioDesignSurface.tsx. Re-measured on this branch: no form-view read, write, label or switch is left in the tab.data-testid="form-layout-source") and its two stringsengine.studio.data.form.layoutSource.fieldGroups/fieldGroupsTitle(en, zh).DataPillar.internalFormRetired-36425.test.tsxnow asserts the sentence in place of the chip.ObjectFormDesigner(now the Field layout canvas), the Layout/Preview switch,ObjectGroupInspector,writeGroupLayout/readFieldGroupMembership, and every canvas operation (item 5: add/rename/delete/move group, drag a field between groups, the keyboard drop, the pinned fields, group settings).The list spelling (item 2). The canvas saves group membership in each group's own
fieldslist throughwriteGroupLayout. NewgroupListLayout(object-fields-io.ts) reads an object still written in the older per-fieldgroupspelling into lists, so the object's first save from the tab converts it: every group lists its members in display order, and each field'sgroupthat a list now holds is dropped. Nothing on the canvas moves. The header sentence ofObjectFormDesigner.tsxthat still namedfields[].group+fieldGroupsis rewritten.An installed object (item 3). Where the base's customization door is open (
extendsBase && extWritable, solayoutWritable), the tab is no longer read-only:.custompackage, in the Data pillar's extension buffer, as the wholefieldGroupsarrangement (every non-table group listing its members, the format of 记录页排布的第三层:配对的 .custom 包可以给安装来的对象声明完整的分组和页签排布(原始包完整声明、继承包只能声明插入位置,这两层不变) #36498 / ADR-0146 D10). NewgroupArrangementbuilds it.__cfields and field patches it already holds stay). The original package is not written.placeentry of the extension, which a writtenfieldGroupsreplaces (the server refuses the pair), is taken off by the newwithoutReplacedPlacements. A{list}placement stays.foldObjectExtensionnow folds a bufferedfieldGroupsthe way the registry does (applyExtensionFieldGroups), so the canvas shows the arrangement before it is saved. It also keeps a placed own field's servedgroup.__cfield), or the existing contributed mark that names the other package (fieldLayoutSources.ts).Write path, a deviation from the claim's wording. The claim says to reuse the writer #36624 added (
saveObjectExtensionArrangement). The tab uses that writer's composerextensionWithArrangementinside the pillar buffer instead of calling the save. The buffer already holds a draft of the very sameobject_extensiondocument, so a second save would be a second writer of it: refused by the first-write pin while the buffer's draft is pending, and overwritten by the buffer's next save once it lands. The header ofobjectExtensionArrangementSave.tsnow says so. No new write path: the bytes go out through the pillar's existing extension save and publish (doSaveExt).Not in this PR.
packages/specand the authorable surface are not touched (0 files underpackages/).Overlap with #36784 (paused, public forms). That PR's DataPillar hunks put a public-forms switch into this same tab. This PR keeps no switch, per the 2026-11-24 ruling (item 4: 字段布局 edits field groups only).
overlap-checkreports a textual conflict inStudioDesignSurface.tsx, plus shared lines in the studio string files andaccess-security.json. Whichever lands second rebases. Nothing here builds on it or copies it.Why
No console path could arrange an installed object's field groups: the record page's 「配置页面」 arranges tabs only, and this tab was walled read-only on an installed package. The tab's name 「表单」 also no longer matched what it edits since the internal-form retirement. It edits the field groups that the record page, the preview and both dialogs read.
Tests
object-fields-io.test.tscases:groupListLayout: legacy to lists, mixed spelling, and unchanged when already listed (the same refs come back).groupArrangement: the result safe-parses as anObjectExtensionSchemabody.StudioCustomizeControls.objectExtension-28575.test.tscases:withoutReplacedPlacements;ObjectFormDesigner.test.tsxcases:DataPillar.baseObjectExtension-28575.test.tsxdescribe, "the Field layout tab arranges an installed object into its pair":basicsaves the extension bodyfieldGroups: [{ key: 'more', fields: ['industry', 'region__c'] }], keepsfieldsandfieldPatches, and leaves only the{list}placement. The body safe-parses. No object save; the publish goes to the pair.DataPillar.internalFormRetired-36425: the sentence replaces the chip, and the save is in the list spelling.ObjectFormDesigner.keyboardDrop-11871andpinnedFields-27516: the move pins read the first save's conversion.StudioDesignSurface.oneSurface-28572: a base field is now an arrangeable card.{ name: 'Form' }tab lookup now reads{ name: 'Field layout' }, and 8 of them get the module-top@objectstack/lintimport thatcheck:test-source-aliasasks of edited files.groupListLayoutforced to answer unchanged, written byscripts/ablation-replace.mjswith the anchor 1 → 0 and the blob 7d646795841f → 8ad709d6432e):object-fields-io,ObjectFormDesignerandDataPillar.internalFormRetired-36425.git diff HEADis empty, and the file blob equals the HEAD blob 7d646795841f.Acceptance notes
Group source marks are not drawn (a gap against item 3's "marks each source"). Field cards are marked. A group's source cannot be told on the client:
codethe canvas reads already has the pair folded in;Drawing group marks needs a read that serves who placed each group. That is a runtime read decoration (spec + runtime), raised in the report as a decision, not guessed here.
Reordering the ungrouped bucket on an installed object is not persisted. An extension can arrange groups but cannot reorder the base's field map. The canvas snaps back when a drag produces nothing to save. Order inside a group is persisted (it is the group's list).
"Restore the original layout" has no button. Removing
fieldGroupsfrom the pair's extension restores the base's groups. This was measured live through the API (below). A UI for it was not asked by the card's items.Field/group
placeentries are dropped when the arrangement is written. The server refuses them beside a writtenfieldGroups(refusePlacementsTheArrangementReplaces), and the arrangement states every group's members anyway.The full
check:platform-checklistis red onmain, not from this diff.access-security.jsoncitespackages/metadata-core/src/anonymous-form-intake.ts#anonymousFormExplicitWithdrawals, a symbol that c45dd80 (feat(setup): Setup → Configuration → Public forms lists and switches every public form #36697) removed. Measured: the symbol has 0 hits in origin/main's file, and origin/main's checklist cites it twice. The scoped mode on this branch is OK:check-platform-checklist --changed-from origin/main: OK — 2 anchored file(s) in the change set, 9 anchor(s) judged, 0 lost.The live check used the showcase app's installed objects. HotCRM's 线索 is not in the example, so
showcase_categorystood in as the installed object.Open questions decided (seat, 2026-11-24). Group source marks are trimmed from this card: field cards are marked, groups are not (recorded on Studio 对象页「表单」页签改成「字段布局」:只编辑对象的字段分组,不再读写表单视图;安装来的对象存到 .custom 的排布里 #36505 as 7125461985). The single-writer route is accepted: the tab composes
extensionWithArrangementinside the Data pillar's buffer and saves through the pillar's extension Save, instead of callingsaveObjectExtensionArrangement.Fix round 1 (4b0d7ee). Step 3 of the live customize journey spec now clicks the object header's Field layout tab (it clicked Form). Run live on a booted showcase: 1 passed (25.2s). The Add field draft body is still exactly
{extend, fields}.Open PR fix(studio): retire Studio's Interfaces column (objectstack#36502) #36884 (Studio「界面」整栏作废:顶部导航去掉「界面」,原来在里面改的东西各有去处;前置的运行界面入口全部落地后再摘 #36502, Interfaces retirement) overlaps textually in
studio-authoring.jsonand two StudioDesignSurface tests, plus shared files. Whichever lands second rebases.Screenshots (card 验收)
Taken at head 4b0d7ee on a booted showcase (
objectstack dev --seed-adminplus console vite from this branch), browser locale zh-CN, 1440×900 at deviceScaleFactor 2. The files are in the project files underissue-36505/:1-installed-field-layout.png: the installed objectshowcase_category(com.example.showcase, badge 只读) on the 「字段布局」 tab. Groups are 分类 (名称, 上级) and 显示 (颜色, 排序). Every field card is marked 原始包, the sentence 「这里的分组和顺序用在记录页、右侧预览、新建和编辑弹窗上。」 is shown, and the group controls are enabled.2-self-built-field-layout.png: the self-builtqa_layout_ticket(writable package com.example.qa-layout, authored in the legacy per-fieldgroupspelling) on the same tab, with groups Main (Title, Status) and Extra (Notes). It shows no source marks, no 只读 badge, and the same sentence. The package's own labels have no zh translation, so they stay in English.3-installed-after-save.png:showcase_categoryafter 删除分组 on 显示 and the top-bar Save. The toast reads 「已保存并生效:分类」, and the groups are 分类 (名称, 上级) and 未分组 (颜色, 排序). The writes werePUT /api/v1/meta/object_extension/showcase_category?mode=draft&package=com.example.showcase.customwith body{"extend":"showcase_category","fieldGroups":[{"key":"category","label":"Category","collapse":"none","fields":["name","parent"]}]}, then publish at the pair (200). There was no write toobject/showcase_category.Customizations reading (card 验收, L1 N1):
GET /api/v1/packages/com.example.showcase/customizations.arrangements: [], counts all 0.arrangements: [{"object":"showcase_category","key":"fieldGroups"}],counts.arrangements: 1,counts.extensions: 0. The pair's extension holds only the arrangement key.Verification
Two-minute check: boot the showcase with the console. Open Studio → Data → Category (installed, read-only package) → 字段布局 / Field layout, delete the group "Display", and press Save. The two fields fall to Ungrouped.
GET /api/v1/meta/object/showcase_categoryserves one groupcategorylistingname,parent, and the base package is unchanged.Live check on a booted showcase (head a144b62), screenshots described
objectstack dev --seed-admin -p 4517with its own db, plus the console Vite dev server on :4518 pointed at it; Playwright Chromium, en-US.showcase_category, packagecom.example.showcase, legacy per-fieldgroupspelling):POST /api/v1/packages/com.example.showcase/ensure-customization→ 201PUT /api/v1/meta/object_extension/showcase_category?mode=draft&package=com.example.showcase.customwith body{"extend":"showcase_category","fieldGroups":[{"key":"category","label":"Category","collapse":"none","fields":["name","parent"]}]}→ 200POST …/object_extension/showcase_category/publish?package=com.example.showcase.custom→ 200object/showcase_category.fieldGroups: [category → name, parent];colorandsort_ordercarry no group.fieldGroupsand published (200/200) serves the base's two groups again, withcolor/sort_order→display.qa_layout_ticketin a scratch writable packagecom.example.qa-layout, authored in the legacy spelling:title/status→main,notes→extra):PUT /api/v1/meta/object/qa_layout_ticket?mode=draft&package=com.example.qa-layoutwhose body hasfieldGroups: [{"key":"main","label":"Main","fields":["title","status"]}]and nogroupon any field (the first-save conversion), then the publish → 200.Local tests and type-check (final head a144b62)
cd ui && npx vitest runover the 9 substantive test files (object-fields-io, StudioCustomizeControls 28575, ObjectFormDesigner, DataPillar 28575, DataPillar 36425, keyboardDrop 11871, pinnedFields 27516, oneSurface 28572, objectExtensionArrangementSave 36499):Test Files 9 passed (9),Tests 153 passed (153),VERDICT command-exit 0.Test Files 8 passed (8),Tests 27 passed (27).packages/i18n/:Test Files 109 passed (109),Tests 2014 passed | 13 skipped.pnpm --dir ui exec vitest run scripts/:Test Files 172 passed | 2 skipped (174),Tests 5127 passed | 2 skipped,VERDICT command-exit 0.studio-design+metadata-admin/previewssweep after the source was final:Test Files 531 passedof 534. The 3 red files were the three updated pins above, re-run green since.pnpm --filter @object-ui/app-shell type-check && pnpm --filter @object-ui/i18n type-check:VERDICT command-exit 0, after building the@object-ui/app-shell^...closure.Derived gate families (dispatch-gates --commands, 45 families)
Run on head a144b62 (the ui scripts suite included), reconciled:
dispatch-gates --ran: 45 derived famil(ies) accounted for — 45 run, 0 NOT-MEASURED (a DERIVED zero — all 45 recorded an exit code and none of them is 3).Red, 1:
pnpm check:platform-checklist :: exit 1. This is main's ABSENT SYMBOLanonymousFormExplicitWithdrawals(see Acceptance notes). The scoped--changed-from origin/mainrun is OK.pnpm check:test-source-alias :: exit 0. It was red on 2f815c5 (8 edited tests lacked the module-top lint import) and is fixed in a144b62.Green, 43:
node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0node scripts/check-adr-0087-registration.mjs --self-test :: exit 0node scripts/check-adr-links.mjs :: exit 0node scripts/check-adr-links.mjs --self-test :: exit 0node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0node scripts/check-closing-keyword-parity.mjs :: exit 0node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0node scripts/check-comment-mask-corpus.mjs :: exit 0node scripts/check-empty-changeset.mjs --base origin/main :: exit 0node scripts/check-empty-changeset.mjs --self-test :: exit 0node scripts/check-sdui-manifest.mjs :: exit 0node scripts/check-sdui-manifest.mjs --self-test :: exit 0node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0node scripts/ci/snapshot-next.mjs --self-test :: exit 0node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0node scripts/release-pending-publish.mjs --self-test :: exit 0pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0pnpm check:adr-anchors :: exit 0pnpm check:changeset-gate-self-tests :: exit 0pnpm check:ci-filter-parity :: exit 0pnpm check:closed-ceremony-text :: exit 0pnpm check:cross-package-test-inputs :: exit 0pnpm check:dispatcher-error-vocabulary :: exit 0pnpm check:doc-authoring :: exit 0pnpm check:driver-memory-census :: exit 0pnpm check:engine-double-contract :: exit 0pnpm check:gitlink-declared :: exit 0pnpm check:nul-bytes :: exit 0pnpm check:published-files :: exit 0pnpm check:query-options-erasure :: exit 0pnpm check:refd-timer-probe :: exit 0pnpm check:registry-log-declared :: exit 0pnpm check:rest-log-spy-declared :: exit 0pnpm check:skill-identifier-liveness :: exit 0pnpm check:tier-file-adoption :: exit 0pnpm check:type-check-coverage :: exit 0pnpm check:type-check-debt :: exit 0pnpm check:undeclared-dep-imports :: exit 0pnpm check:watch-hint-literal :: exit 0pnpm check:where-matcher :: exit 0pnpm --dir ui exec vitest run scripts/ :: exit 0Human Minimum
packages/specholds no runtime logic. (No spec change.)pnpm lintpasses. (No formatter ran.pnpm lintis CI's run, not re-run locally.)main, one pull request.packages/spectouched: n/a (not touched).content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code