Skip to content

Commit 5c2d5cf

Browse files
feat(studio): the Form tab becomes Field layout, edits field groups only, and arranges an installed object into its .custom pair (#36888)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwB9qsP28anD5tWRUHq8j1xSU)_ Fixes #36505 Clause-②: no Metadata-protocol: none ## 维护者速读 - 管理员在 Studio 对象页看到的「表单」页签改名为「字段布局」,并多一句说明:这里的分组和顺序用在记录页、右侧预览、新建和编辑弹窗上;已安装应用的对象(比如 HotCRM 的线索)从只读变为可以调整分组和顺序,每个字段标出来自原始包、其他包还是本环境。 - 属于「客户可在已安装应用上自定义」这条主线:之前没有任何界面能调整已安装对象的字段分组。 - 出错时管理员看到的是分组顺序不对或保存被拒;改动只写进本环境的定制包,原始包不动,把定制包里的分组设置删掉就恢复原样。 - 无。 ## What changes **The tab (items 1, 4).** Studio's object page tab 「表单」 / `Form` reads 「字段布局」 / `Field layout` (same key `engine.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. - **Form-view code already deleted on main** before this PR, by the internal-forms retirement (3b58921): `formViewSections.ts`, `useFormViewDraft.ts`, `formViewSections-30057.test.ts`, `DataPillar.formViewLayout-30057.test.tsx`, and the form-view branches of `ObjectFormDesigner.tsx` and `StudioDesignSurface.tsx`. Re-measured on this branch: no form-view read, write, label or switch is left in the tab. - **Deleted here:** the 「字段分组」 chip (`data-testid="form-layout-source"`) and its two strings `engine.studio.data.form.layoutSource.fieldGroups` / `fieldGroupsTitle` (en, zh). `DataPillar.internalFormRetired-36425.test.tsx` now asserts the sentence in place of the chip. - **Kept:** `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 `fields` list through `writeGroupLayout`. New `groupListLayout` (object-fields-io.ts) reads an object still written in the older per-field `group` spelling into lists, so the object's first save from the tab converts it: every group lists its members in display order, and each field's `group` that a list now holds is dropped. Nothing on the canvas moves. The header sentence of `ObjectFormDesigner.tsx` that still named `fields[].group` + `fieldGroups` is rewritten. **An installed object (item 3).** Where the base's customization door is open (`extendsBase && extWritable`, so `layoutWritable`), the tab is no longer read-only: - Every canvas operation and the group inspector edit the object extension of the base's paired `.custom` package, in the Data pillar's extension buffer, as the whole `fieldGroups` arrangement (every non-table group listing its members, the format of #36498 / ADR-0146 D10). New `groupArrangement` builds it. - The top bar's Save saves and publishes it with the rest of that extension (the `__c` fields and field patches it already holds stay). The original package is not written. - A field-arrangement edit on a contributed field (a field another package brings) is allowed here, because the arrangement only places it. Its properties stay locked. - A field or group `place` entry of the extension, which a written `fieldGroups` replaces (the server refuses the pair), is taken off by the new `withoutReplacedPlacements`. A `{list}` placement stays. - `foldObjectExtension` now folds a buffered `fieldGroups` the way the registry does (`applyExtensionFieldGroups`), so the canvas shows the arrangement before it is saved. It also keeps a placed own field's served `group`. - Each field card of an installed object carries its source: 「原始包」 / Original package, 「本环境」 / This environment (a field the pair declares, or any `__c` field), or the existing contributed mark that names the other package (`fieldLayoutSources.ts`). - Where the door is walled, the tab stays read-only, as before. **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 composer `extensionWithArrangement` inside the pillar buffer instead of calling the save. The buffer already holds a draft of the very same `object_extension` document, 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 of `objectExtensionArrangementSave.ts` now says so. No new write path: the bytes go out through the pillar's existing extension save and publish (`doSaveExt`). **Not in this PR.** - No public-forms UI is added or moved. - The Interfaces pillar is not touched. - `packages/spec` and the authorable surface are not touched (0 files under `packages/`). **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-check` reports a textual conflict in `StudioDesignSurface.tsx`, plus shared lines in the studio string files and `access-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 - New `object-fields-io.test.ts` cases: - `groupListLayout`: legacy to lists, mixed spelling, and unchanged when already listed (the same refs come back). - `groupArrangement`: the result safe-parses as an `ObjectExtensionSchema` body. - New `StudioCustomizeControls.objectExtension-28575.test.ts` cases: - the buffered arrangement fold, with a CONTROL; - `withoutReplacedPlacements`; - a placed own field keeps its group. - New `ObjectFormDesigner.test.tsx` cases: - a legacy object converts on a rename, with a CONTROL; - the field sources are marked on an installed object, with a CONTROL. - New `DataPillar.baseObjectExtension-28575.test.tsx` describe, "the Field layout tab arranges an installed object into its pair": - The tab name, the sentence and the marks. - Deleting group `basic` saves the extension body `fieldGroups: [{ key: 'more', fields: ['industry', 'region__c'] }]`, keeps `fields` and `fieldPatches`, and leaves only the `{list}` placement. The body safe-parses. No object save; the publish goes to the pair. - A walled CONTROL. - Updated tests: - `DataPillar.internalFormRetired-36425`: the sentence replaces the chip, and the save is in the list spelling. - `ObjectFormDesigner.keyboardDrop-11871` and `pinnedFields-27516`: the move pins read the first save's conversion. - `StudioDesignSurface.oneSurface-28572`: a base field is now an arrangeable card. - 25 files: the `{ name: 'Form' }` tab lookup now reads `{ name: 'Field layout' }`, and 8 of them get the module-top `@objectstack/lint` import that `check:test-source-alias` asks of edited files. - **Ablation**, once, on the conversion (`groupListLayout` forced to answer unchanged, written by `scripts/ablation-replace.mjs` with the anchor 1 → 0 and the blob 7d64679 → 8ad709d6432e): - Result: 4 failed / 72 passed across `object-fields-io`, `ObjectFormDesigner` and `DataPillar.internalFormRetired-36425`. - Restored: `git diff HEAD` is empty, and the file blob equals the HEAD blob 7d64679. ## 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: - the served object carries no per-group source; - the layered `code` the canvas reads already has the pair folded in; - the customization contributions read lists fields only. 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 `fieldGroups` from 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 `place` entries are dropped when the arrangement is written.** The server refuses them beside a written `fieldGroups` (`refusePlacementsTheArrangementReplaces`), and the arrangement states every group's members anyway. - **The full `check:platform-checklist` is red on `main`, not from this diff.** `access-security.json` cites `packages/metadata-core/src/anonymous-form-intake.ts#anonymousFormExplicitWithdrawals`, a symbol that c45dd80 (#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_category` stood 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 #36505 as 7125461985). The single-writer route is accepted: the tab composes `extensionWithArrangement` inside the Data pillar's buffer and saves through the pillar's extension Save, instead of calling `saveObjectExtensionArrangement`. - **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 #36884 (#36502, Interfaces retirement) overlaps textually in `studio-authoring.json` and two StudioDesignSurface tests, plus shared files. Whichever lands second rebases. ## Screenshots (card 验收) Taken at head 4b0d7ee on a booted showcase (`objectstack dev --seed-admin` plus console vite from this branch), browser locale zh-CN, 1440×900 at deviceScaleFactor 2. The files are in the project files under `issue-36505/`: - `1-installed-field-layout.png`: the installed object `showcase_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-built `qa_layout_ticket` (writable package com.example.qa-layout, authored in the legacy per-field `group` spelling) 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_category` after 删除分组 on 显示 and the top-bar Save. The toast reads 「已保存并生效:分类」, and the groups are 分类 (名称, 上级) and 未分组 (颜色, 排序). The writes were `PUT /api/v1/meta/object_extension/showcase_category?mode=draft&package=com.example.showcase.custom` with body `{"extend":"showcase_category","fieldGroups":[{"key":"category","label":"Category","collapse":"none","fields":["name","parent"]}]}`, then publish at the pair (200). There was no write to `object/showcase_category`. Customizations reading (card 验收, L1 N1): `GET /api/v1/packages/com.example.showcase/customizations`. - Before the save: 200, `arrangements: []`, counts all 0. - After the save: 200, `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_category` serves one group `category` listing `name`, `parent`, and the base package is unchanged. <details><summary>Live check on a booted showcase (head a144b62), screenshots described</summary> `objectstack dev --seed-admin -p 4517` with its own db, plus the console Vite dev server on :4518 pointed at it; Playwright Chromium, en-US. - **Installed object** (`showcase_category`, package `com.example.showcase`, legacy per-field `group` spelling): - Screenshot 1: the tab strip reads Records · **Field layout** · Validations. The sentence sits beside Layout/Preview. Groups Category (Name, Parent) and Display (Color, Sort Order). Every card is marked 「Original package」. The group controls are enabled; the header badge still says Read-only (the package is). - Deleting Display and pressing Save sent exactly: - `POST /api/v1/packages/com.example.showcase/ensure-customization` → 201 - `PUT /api/v1/meta/object_extension/showcase_category?mode=draft&package=com.example.showcase.custom` with body `{"extend":"showcase_category","fieldGroups":[{"key":"category","label":"Category","collapse":"none","fields":["name","parent"]}]}` → 200 - `POST …/object_extension/showcase_category/publish?package=com.example.showcase.custom` → 200 - No write to `object/showcase_category`. - Screenshot 2: Category (Name, Parent) and Ungrouped (Color, Sort Order). - Served object afterwards: `fieldGroups: [category → name, parent]`; `color` and `sort_order` carry no group. - Revert by API: the extension saved without `fieldGroups` and published (200/200) serves the base's two groups again, with `color` / `sort_order` → `display`. - **Self-built object** (`qa_layout_ticket` in a scratch writable package `com.example.qa-layout`, authored in the legacy spelling: `title`/`status` → `main`, `notes` → `extra`): - Screenshot 3: groups Main and Extra, no source marks (not an installed object). - Deleting Extra and pressing Save sent one `PUT /api/v1/meta/object/qa_layout_ticket?mode=draft&package=com.example.qa-layout` whose body has `fieldGroups: [{"key":"main","label":"Main","fields":["title","status"]}]` and no `group` on any field (the first-save conversion), then the publish → 200. - Screenshot 4: Main (Title, Status) and Ungrouped (Notes). </details> <details><summary>Local tests and type-check (final head a144b62)</summary> - `cd ui && npx vitest run` over 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`. - The 8 files given the lint import: `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`. - Whole `studio-design` + `metadata-admin/previews` sweep after the source was final: `Test Files 531 passed` of 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. </details> <details><summary>Derived gate families (dispatch-gates --commands, 45 families)</summary> 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 SYMBOL `anonymousFormExplicitWithdrawals` (see Acceptance notes). The scoped `--changed-from origin/main` run 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 0` - `node scripts/check-adr-0087-registration.mjs --self-test :: exit 0` - `node scripts/check-adr-links.mjs :: exit 0` - `node scripts/check-adr-links.mjs --self-test :: exit 0` - `node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0` - `node scripts/check-closing-keyword-parity.mjs :: exit 0` - `node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0` - `node scripts/check-comment-mask-corpus.mjs :: exit 0` - `node scripts/check-empty-changeset.mjs --base origin/main :: exit 0` - `node scripts/check-empty-changeset.mjs --self-test :: exit 0` - `node scripts/check-sdui-manifest.mjs :: exit 0` - `node scripts/check-sdui-manifest.mjs --self-test :: exit 0` - `node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0` - `node scripts/ci/snapshot-next.mjs --self-test :: exit 0` - `node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0` - `node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0` - `node scripts/release-pending-publish.mjs --self-test :: exit 0` - `pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0` - `pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0` - `pnpm check:adr-anchors :: exit 0` - `pnpm check:changeset-gate-self-tests :: exit 0` - `pnpm check:ci-filter-parity :: exit 0` - `pnpm check:closed-ceremony-text :: exit 0` - `pnpm check:cross-package-test-inputs :: exit 0` - `pnpm check:dispatcher-error-vocabulary :: exit 0` - `pnpm check:doc-authoring :: exit 0` - `pnpm check:driver-memory-census :: exit 0` - `pnpm check:engine-double-contract :: exit 0` - `pnpm check:gitlink-declared :: exit 0` - `pnpm check:nul-bytes :: exit 0` - `pnpm check:published-files :: exit 0` - `pnpm check:query-options-erasure :: exit 0` - `pnpm check:refd-timer-probe :: exit 0` - `pnpm check:registry-log-declared :: exit 0` - `pnpm check:rest-log-spy-declared :: exit 0` - `pnpm check:skill-identifier-liveness :: exit 0` - `pnpm check:tier-file-adoption :: exit 0` - `pnpm check:type-check-coverage :: exit 0` - `pnpm check:type-check-debt :: exit 0` - `pnpm check:undeclared-dep-imports :: exit 0` - `pnpm check:watch-hint-literal :: exit 0` - `pnpm check:where-matcher :: exit 0` - `pnpm --dir ui exec vitest run scripts/ :: exit 0` </details> ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (No spec change.) - [x] 2. Every name I added uses the casing for its kind. - [ ] 3. No formatter ran; `pnpm lint` passes. (No formatter ran. `pnpm lint` is CI's run, not re-run locally.) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a (not touched). - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [ ] 8. Title, body and comments are in English. (English, except the 维护者速读 block the fleet's PR rule asks for in Chinese.) - [x] The *Before Submitting* list in CONTRIBUTING.md is done. --- _Generated by [Claude Code](https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU)_ <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzhpykmQZe1yMupC2CU --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4db08d5 commit 5c2d5cf

45 files changed

Lines changed: 923 additions & 125 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
feat(studio): the object page's 「表单」 tab is now 「字段布局」 (Field layout), edits the object's field groups only, and arranges an installed object into its paired `.custom` package
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
The Studio object page's Form tab is renamed 「字段布局」 / Field layout, and says in one sentence where its groups and order are used: the record page, the right-side preview, and the create and edit dialogs. It reads and writes the object's field groups and nothing else; no form view is read or written there.
12+
13+
Group membership and order are saved in each group's own `fields` list. An object still written with a `group` on each field shows its groups as before, and its first save from the tab converts it to the lists, with nothing on the canvas moving.
14+
15+
On an object of an installed (read-only) package the tab is no longer read-only where the customization door is open: adding, renaming, deleting and reordering groups, dragging fields (a field another package brings included) and the group settings all edit the object extension of the base's paired `.custom` package, as the whole `fieldGroups` arrangement (every group listing its members), saved and published by the top bar's Save with the rest of that extension. The original package is not written. A field or group `place` entry of that extension, which a written arrangement replaces, is taken off on save; a tab placement stays. Each field card of an installed object is marked 「原始包」 / Original package, 「本环境」 / This environment, or with the package that contributes it. Where the door is walled the tab stays read-only, as before.
16+
17+
New Studio strings: `engine.studio.data.form.usedOn` and `engine.studio.designer.source.{base,baseTitle,environment,environmentTitle}` (en, zh); `engine.studio.data.form.layoutSource.*` is removed with the chip it labelled.

‎docs/qa/platform-checklist/areas/access-security.json‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@
405405
"title": "A read-only package actually locks Studio editing surfaces",
406406
"since": "v16",
407407
"status": "active",
408-
"revision": 6,
408+
"revision": 7,
409409
"priority": "P2",
410410
"surface": "mixed",
411411
"personas": [
@@ -428,7 +428,7 @@
428428
{
429429
"clause": "the read-only badge renders AND the controls are actually disabled — checkboxes/Save inert, edit affordances absent",
430430
"oracle": "dom",
431-
"verify": "after screenshot confirms render, assert disabled state on the controls (a badge alone is not a lock). The object designer's Form tab is the designed exception: on a read-only base it stays editable and saves the form view as a declared override in the base's .custom pair, not into the base (ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx formViewReadOnly; ADR-0146 D2), so editable Form-tab controls are not a FAIL; they are inert only when the pair is walled or no form view is chosen",
431+
"verify": "after screenshot confirms render, assert disabled state on the controls (a badge alone is not a lock). The object designer's Field layout tab (字段布局, formerly Form) is the designed exception: on a read-only base it stays editable and saves the object's field groups as the whole fieldGroups arrangement of the object extension in the base's .custom pair, not into the base (ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx layoutWritable; ADR-0146 D10), so editable Field-layout controls are not a FAIL; they are inert only when the pair is walled",
432432
"evidence": "screenshot + disabled-state DOM read"
433433
},
434434
{
@@ -500,6 +500,12 @@
500500
"date": "2026-11-14",
501501
"change": "acceptance[0].verify re-pointed (card #33332; QA run #33094 comment 6852480973): the run found the Form tab editable on a read-only base. That is by design: StudioDesignSurface.tsx makes the Form tab read-only only when no form view is chosen or the pair is walled, because its save lands as a declared override in the base's .custom pair (ADR-0146 D2), never in the base. The verify now names that exception so it is not scored as the lock failing. The clause is unchanged. Read from source at base fca5f89c",
502502
"ref": "#33332"
503+
},
504+
{
505+
"revision": 7,
506+
"date": "2026-11-24",
507+
"change": "acceptance[0].verify re-pointed (card #36505): the Form tab is renamed Field layout (字段布局) and edits the object's field groups only; no form view is read or written there. On a read-only base its edits go into the .custom pair's object extension as the whole fieldGroups arrangement (ADR-0146 D10), and it is read-only only where the pair is walled.",
508+
"ref": "#36505"
503509
}
504510
]
505511
},

‎docs/qa/platform-checklist/areas/studio-authoring.json‎

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"title": "The first-run authoring loop closes: package → object → record → app → publish → end-user, zero code, zero restarts",
1010
"since": "v16",
1111
"status": "active",
12-
"revision": 14,
12+
"revision": 15,
1313
"priority": "P0",
1414
"surface": "mixed",
1515
"personas": ["admin (seeded admin@objectos.ai)", "end user (same account driving the published app)"],
@@ -28,7 +28,7 @@
2828
"steps": [
2929
"boot the showcase example (objectstack dev --ui --seed-admin -p <port> -d file:/tmp/<run>/data.db), sign in as admin@objectos.ai/admin123, and note the boot timestamp in the server log (the zero-restart clause reads it later). Run steps[0] to [8] once per locale leg (fixtures.requires[0]): the en leg, then the zh-CN leg, each switched with the avatar-menu language switcher right after sign-in",
3030
"Home → the build chip → create a NEW writable package (维修中心 / com.example.repairs, namespace repairs) via the new-package wizard. Type the identifier yourself: since #29734 a Chinese display name derives its id through pinyin (维修中心 gives com.ORG.weixiu-zhongxin, deriveCreatePackageId in ui/packages/app-shell/src/views/metadata-admin/PackageFormDialog.tsx), which is not the id the later steps name, and the namespace derives from the id you type. The build chip has two forms (ui/packages/app-shell/src/console/home/HomePage.tsx): with an agent catalog it reads 'Build an app' (data-testid home-build-app) and opens the Studio landing, where New package opens the wizard; with none it reads 'New in Studio' (home-build-in-studio) and opens Studio with the New package dialog already open, the form QA run #27481 met on the stock showcase. Record which",
31-
"Data pillar → new object 'Repair Ticket' (the identifier auto-suggests repair_ticket from the display name, and the dialog PREFIXES it with the package namespace, so the object is named repairs_repair_ticket — the name every later step and clause uses (framework#2694, objectui StudioDesignSurface prefixObjectName). The dialog also carries an OWD (sharing model) choice, pre-selected to the platform's recommended baseline: confirm or change it, then click 'Save as draft', the dialog's confirm button (engine.studio.createDraft; no Studio create dialog has a button named Create)) → add a picklist field Status with 3 values. After a navigation the object surface opens on its Records tab (the Data pillar's default view, ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx); Add field is the Form tab's button (where QA run #28545 found it; the Records grid's add-column header carries it too). Each option's stored value derives from its label as you type it — 'In Repair' stores in_repair (ui/packages/app-shell/src/views/metadata-admin/inspectors/ObjectFieldInspector.tsx OptionsEditor) — so overwrite the value wherever the run wants a different one (a short code such as wip), and note the three stored values: acceptance[1] and acceptance[2] read them. There is no Save draft button: the designer autosaves, and a picklist field is held unsaved until it has at least one option (the status line reads 'Not saved yet: the field “Status” needs at least one option'), so add the field and fill its options, and the draft save fires",
31+
"Data pillar → new object 'Repair Ticket' (the identifier auto-suggests repair_ticket from the display name, and the dialog PREFIXES it with the package namespace, so the object is named repairs_repair_ticket — the name every later step and clause uses (framework#2694, objectui StudioDesignSurface prefixObjectName). The dialog also carries an OWD (sharing model) choice, pre-selected to the platform's recommended baseline: confirm or change it, then click 'Save as draft', the dialog's confirm button (engine.studio.createDraft; no Studio create dialog has a button named Create)) → add a picklist field Status with 3 values. After a navigation the object surface opens on its Records tab (the Data pillar's default view, ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx); Add field is the Field layout tab's (字段布局, formerly Form) button (where QA run #28545 found it; the Records grid's add-column header carries it too). Each option's stored value derives from its label as you type it — 'In Repair' stores in_repair (ui/packages/app-shell/src/views/metadata-admin/inspectors/ObjectFieldInspector.tsx OptionsEditor) — so overwrite the value wherever the run wants a different one (a short code such as wip), and note the three stored values: acceptance[1] and acceptance[2] read them. There is no Save draft button: the designer autosaves, and a picklist field is held unsaved until it has at least one option (the status line reads 'Not saved yet: the field “Status” needs at least one option'), so add the field and fill its options, and the draft save fires",
3232
"open the Changes panel and Publish, then confirm with 'Publish all' in the review sheet; the toast names the count — 'Published N items in this package' (N = the drafts promoted), 'Published 1 item in this package' for one (engine.studio.publishedAllCount / publishedAllCountOne, objectui#11807; 'Published all drafts in this package' is the fallback when the count is unknown) — and, because the publish puts an object live, it adds 'Members can use it once a permission set grants them access.' with an 'Open Access' action (StudioDesignSurface.tsx)",
3333
"create a record in the runtime-faithful Records grid with a Status value chosen",
3434
"Create app 'Repair Center' (identifier auto-suggested), leaving 'Add this package's objects as menu items' on, so the app's navigation holds an entry bound to repairs_repair_ticket; the dialog stays on the Data pillar → Publish",
@@ -100,15 +100,16 @@
100100
{ "revision": 11, "date": "2026-11-03", "change": "fixtures.requires[0], steps[0] and a new negative[2] name two locale legs, en and zh-CN, and a clause holds only on both; a new fixtures.knownGaps[3] records the zh-CN leg's open failure; steps[1]'s identifier note follows pinyin derivation. QA run #29672 found the item named no locale while steps[1] uses a Chinese display name: its en leg passed and its zh-CN leg failed acceptance[2] (#29673, extracted by the run), so a run that drove one locale could score the loop either way. Read at base 339f63da30: the registry judge and the swallowed registration are unchanged and #29673 is open; and since #29734 (11c4eb59dd) a Chinese display name derives a pinyin package id (deriveCreatePackageId), so steps[1]'s 'derives no package id' no longer held, while its instruction to type com.example.repairs stands. No clause text changed; each now holds per leg. Card #29679, from QA run #29672", "ref": "#29679" },
101101
{ "revision": 12, "date": "2026-11-04", "change": "acceptance[0].verify re-pointed: the Studio package switcher, which declares the studio-pkg-chip testid, moved unchanged from ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx to PackageSwitcher.tsx beside it (#29988 slice 2, a move-only split). Re-read at base f7aab8958. No clause changed", "ref": "#29988" },
102102
{ "revision": 13, "date": "2026-11-04", "change": "fixtures.knownGaps[3] corrected from QA run #29877 (W5-P0, at 589049b0; the list of record is comment 6600018008 on #27377): the zh-CN leg's acceptance[2] failure is fixed by PR #29790 (#29673 closed), and the run read that leg passing acceptance[2] and [3], so the instruction to score it FAIL citing #29673 is withdrawn and the row is a regression row. Read at base f68b47ca", "ref": "#29906" },
103-
{ "revision": 14, "date": "2026-11-24", "change": "steps[5] and knownGaps[1] no longer route through Studio's Interfaces pillar, retired by #36502: the Create-app scaffold (box on) is the nav item, the dialog stays on the Data pillar, and a hand-wired entry is the running app's design-mode menu editor. No clause changed", "ref": "#36502" }
103+
{ "revision": 14, "date": "2026-11-24", "change": "steps[5] and knownGaps[1] no longer route through Studio's Interfaces pillar, retired by #36502: the Create-app scaffold (box on) is the nav item, the dialog stays on the Data pillar, and a hand-wired entry is the running app's design-mode menu editor. No clause changed", "ref": "#36502" },
104+
{ "revision": 15, "date": "2026-11-24", "change": "steps name the object page tab by its new name, Field layout (字段布局, formerly Form; card #36505).", "ref": "#36505" }
104105
]
105106
},
106107
{
107108
"id": "studio-authoring.object-designer-roundtrip",
108109
"title": "Object designer round-trip: field add/edit/reorder persists to metadata, identifiers derive and survive typing",
109110
"since": "v16",
110111
"status": "active",
111-
"revision": 13,
112+
"revision": 14,
112113
"priority": "P1",
113114
"surface": "mixed",
114115
"personas": ["admin"],
@@ -127,7 +128,7 @@
127128
"add a Text field, set its label to 'Asset Code', blur — the API name input must derive asset_code (F3)",
128129
"add a Picklist field and author its 3 real options, THEN add one EMPTY option row; wait out the debounced live validation — no validation banner may appear for the empty row (F4). ⚠ Order matters: with NO real option yet the select-needs-options banner fires, legitimately — the empty rows ARE dropped, so the field has no options — which collides with a literal 'no banner' (objectui F4, as repaired at 0b36ffa, gives its picklist one real option first for this reason). Assert the empty-row half with real options present",
129130
"let the autosave land (Studio has no Save button; on the Data pillar the autosave shows as the PUT …?mode=draft answering 200 and the header chip 'Draft · N unpublished', engine.studio.itemDraftPending; QA run #29893 found no 'Saved HH:MM' status there), then Publish → the review sheet → 'Publish all'; GET /api/v1/meta/object/NS_repair_asset and record the full field list and its order",
130-
"reopen the object in the Data pillar: rename one picklist value, then reorder the fields on the Form tab — the form designer is dnd-kit (ObjectFormDesigner.tsx: a PointerSensor with a 4 px activation distance and a KeyboardSensor), so drag with intermediate pointer moves past 4 px, or focus a field's drag handle and press Space, an arrow key, Space; a single synthetic jump does not start a drag (automation-input). Let the autosave land and Publish again",
131+
"reopen the object in the Data pillar: rename one picklist value, then reorder the fields on the Field layout tab (字段布局, formerly Form) — the form designer is dnd-kit (ObjectFormDesigner.tsx: a PointerSensor with a 4 px activation distance and a KeyboardSensor), so drag with intermediate pointer moves past 4 px, or focus a field's drag handle and press Space, an arrow key, Space; a single synthetic jump does not start a drag (automation-input). Let the autosave land and Publish again",
131132
"GET /api/v1/meta/object/NS_repair_asset again — the rename AND the new field order must be in the persisted metadata, not just the canvas",
132133
"create a record via the Records tab and GET /api/v1/data/NS_repair_asset/<id> — the stored column key must be the derived API name (asset_code)"
133134
],
@@ -233,6 +234,12 @@
233234
"date": "2026-11-04",
234235
"change": "steps[4] corrected from QA run #29893 (W5-STUDIO, at 589049b0): the Data pillar shows no 'Saved HH:MM' line; the autosave is read as the draft PUT's 200 and the 'Draft · N unpublished' chip. Wording only. Read at base f68b47ca",
235236
"ref": "#29906"
237+
},
238+
{
239+
"revision": 14,
240+
"date": "2026-11-24",
241+
"change": "steps name the object page tab by its new name, Field layout (字段布局, formerly Form; card #36505).",
242+
"ref": "#36505"
236243
}
237244
]
238245
},
@@ -2263,7 +2270,7 @@
22632270
"title": "Studio asks before an unsent edit is left behind: a held (incomplete) or dirty edit in any pillar survives a pillar switch, a rail switch, the package switcher, Home and a reload — or is discarded only after the author confirms",
22642271
"since": "v18",
22652272
"status": "active",
2266-
"revision": 10,
2273+
"revision": 11,
22672274
"priority": "P1",
22682275
"surface": "browser",
22692276
"personas": [
@@ -2383,6 +2390,12 @@
23832390
"date": "2026-11-15",
23842391
"change": "steps[4]: departure (a) from the Automations pillar must use another pillar's link, since the Automations link is a no-op there (QA run #33861, comment 6894395705; ledger 6896511848 of #33761 row 167; the record numbers it steps[2]). The clauses are unchanged. Read at base 895783a1",
23852392
"ref": "#33981"
2393+
},
2394+
{
2395+
"revision": 11,
2396+
"date": "2026-11-24",
2397+
"change": "steps name the object page tab by its new name, Field layout (字段布局, formerly Form; card #36505).",
2398+
"ref": "#36505"
23862399
}
23872400
]
23882401
},
@@ -3246,7 +3259,7 @@
32463259
"title": "The Data pillar's API tab is a truthful REST reference: five endpoints under /api/v1/data/OBJECT, an example body built from the object's draft fields that the write path accepts, and copied cURL commands that succeed once a token is put in",
32473260
"since": "v18",
32483261
"status": "active",
3249-
"revision": 3,
3262+
"revision": 4,
32503263
"priority": "P2",
32513264
"surface": "mixed",
32523265
"personas": [
@@ -3262,7 +3275,7 @@
32623275
},
32633276
"steps": [
32643277
"open /_console/studio/PKG/data → the object → API: list the endpoints the tab shows (method + path) and read the create example body",
3265-
"add a field in the Form tab WITHOUT publishing; return to API and re-read the example body (with the inspector panel open, the flat tabs, API among them, fold into 'Advanced' below about 1000 px of container width: reach API through Advanced or close the panel)",
3278+
"add a field in the Field layout tab (字段布局, formerly Form) WITHOUT publishing; return to API and re-read the example body (with the inspector panel open, the flat tabs, API among them, fold into 'Advanced' below about 1000 px of container width: reach API through Advanced or close the panel)",
32663279
"publish; copy each endpoint's cURL (Copy cURL), replace <token> with the session token and each `<id of a TARGET record>` placeholder (a REQUIRED reference) with the id of an existing TARGET record, and run them in order: list, create (with the tab's example body), get, update, delete on the created id"
32673280
],
32683281
"acceptance": [
@@ -3319,6 +3332,12 @@
33193332
"date": "2026-11-04",
33203333
"change": "steps[1] annotated from QA run #29893 (W5-STUDIO, at 589049b0): with the inspector open the tabs fold into 'Advanced' in a narrow container. Wording only. Read at base f68b47ca",
33213334
"ref": "#29906"
3335+
},
3336+
{
3337+
"revision": 4,
3338+
"date": "2026-11-24",
3339+
"change": "steps name the object page tab by its new name, Field layout (字段布局, formerly Form; card #36505).",
3340+
"ref": "#36505"
33223341
}
33233342
]
33243343
},

0 commit comments

Comments
 (0)