Repository navigation
feat(studio): design an object's public forms in Studio's Form tab - #36784
objectstack-fleet[bot] wants to merge 4 commits into
Conversation
Studio → Data → an object → Form switches between the record form and the object's public forms. The designer lists them (published and drafted), creates and deletes one, picks fillable fields only, reorders them, marks them required and groups them into named sections, and sets the title, description, after-submit message and address, with a live preview. A field the object requires cannot be removed, and an address another form uses is refused. Saves follow draft and publish; an installed app's form is saved as a declared override in its customization package. The designer's list, like Setup → Public forms, never shows On for a form its app ships switched off; an unknown row in Setup offers no switch; the withdrawal rule's docblock names its real callers, and the checklist item points at its new source. Claude-Session: https://claude.ai/code/session_01JQwxbWoxCrkYwcqxxENvmn Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check
What this run could not see
Coarse fallback — 175 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
… module; re-point the last checklist anchors at the spec check-vi-mock-inherit refuses a factory that never obtains the real module. The platform checklist's verify steps still anchored anonymousFormIntakeWithdrawnIn and anonymousFormExplicitWithdrawals in metadata-core, where the second no longer exists. Claude-Session: https://claude.ai/code/session_01JQwxbWoxCrkYwcqxxENvmn Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj Contract reviewServed-tier: PR #36784 (card #36444, part 2: the Studio designer), reviewed against merge-base
① Derived judgmentsThe spec change is prose only. The prose is accurate. Callers of the function at the head, outside tests:
N9, N10, N12 of record 7113373743.
The designer's list. Writes on an installed app, against part 1's rules.
Locale keys. The designer and the surface control use 61 keys; all 61 are present in both ② Semver level
③ Boundary flags
④ Design judgment
Implemented-by: VERDICT: FAIL |
- A new form's name may be no other view item's: the name is checked against every view item of the environment (published or drafted), not only the listed public forms. - Writing a form back keeps every key it did not edit for more stored shapes: a section stored without a name is matched by the same key the designer gave it, a field moved across sections keeps its own entry keys, and a title, description, after-submit text or section label the person did not change is kept as stored (including one stored as a map of translations). - The save no longer writes the form's on/off switch from a stale read. - No column count is written onto a section that had none. Claude-Session: https://claude.ai/code/session_01JQwxbWoxCrkYwcqxxENvmn Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj Contract reviewServed-tier: PR #36784 (card #36444, part 2: the Studio designer), second round. The first round is record 7117275850 at head
New in this round, none blocking:
① Derived judgmentsThe spec is untouched by the delta. Each closing claim against the code.
The new cases test what they name. The unnamed-section case asserts the whole written section with Writes on an installed app. Unchanged from round one: ② Semver levelUnchanged from round one. The delta adds no export, no locale key, no route, no stored key and no component or test id that a consumer reads; ③ Boundary flags
④ Design judgment
The three places where round one found a write changing something the person did not edit are closed. What is left (N8 to N12) is narrow and can follow on the card. Implemented-by: VERDICT: PASS |
…d draft - Publish takes the draft from the layered read it already makes (the stored, untranslated draft) instead of the draft read meant for display, and publishes nothing when that draft or the form's switch cannot be read. - An unedited after-submit title stored as translations is kept when the message is cleared. - Tests: publishing an installed app's form after it was switched off, read at the package that ships it; nothing saved when the switch cannot be read; nothing published when the draft cannot be read. Claude-Session: https://claude.ai/code/session_01JQwxbWoxCrkYwcqxxENvmn Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-support-ai · session_01WGufziBCAytAzzCu3iPBFR Note: The three pillars have moved out of
SDS (now 1,715 lines) re-exports the three pillars and |
|
repo:objectstack#1 · os-warren · session_01JQwxbWoxCrkYwcqxxENvmn Closing this draft without merging, at the maintainer's direction. ADR-0159 (#36957) makes forms their own
Two small fixes exist only on this branch and are not on
The branch Generated by Claude Code |
…ack-ai#36781) <!-- claude-projects-attribution: {"github_login":"os-warren"} --> _Requested by **Warren** · [project thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ8CSSa72mrtYoeegnZzNftqp)_ Fixes objectstack-ai#36745 Clause-②: no Metadata-protocol: none ## 维护者速读 - 在 Studio 自动化里打开一个流程,标题旁那排「触发 · 状态 · 运行身份 · 版本 · 出错时」在右侧属性面板打开、位置变窄时,不再整排挤成一个字一个省略号;放不下的从后往前整项收起,鼠标悬停这一排能看到收起的内容。 - 来自你 11-23 的 Studio 评审(第 r07 项),属于界面体验缺陷修复。 - 出错的话最多是这一排显示的项目多一个或少一个,不影响流程本身和任何数据,可直接撤回。 - 无。 ## What changes `FlowMetaPills`' header variant laid its items on a one-row grid whose columns could all shrink to zero (objectui#13135), so a short meta slot (about 80 px with the property panel open) shrank every item at once, to one character each. - `ui/packages/app-shell/src/views/metadata-admin/previews/FlowPreview.tsx` - New `FlowMetaHeaderRow`: every item is laid out whole (`shrink-0`, `whitespace-nowrap`), each after its `·` separator, in a row that takes the slot's width and clips. After each render and on resize (`ResizeObserver` on the row) it measures each item's width and the row's, keeps the first N whole items, and makes the rest `invisible` + `aria-hidden` (still laid out, so still measured: they come back when the row widens). The row's `title` names each hidden item's whole `Label: value`, one per line, in row order; with nothing hidden there is no `title`. - New `fitFlowMetaItems(widths, available, floor = 2)`: as many whole items from the front as fit (half-pixel slack). Fewer than the floor (Trigger + Status) ⇒ 0: the row shows nothing. - Drop order is the row order from the end: On error, then version, then Run as. Trigger and Status are the floor. - The header `Pill` no longer truncates (`min-w-0 truncate` → `whitespace-nowrap`), and the per-pill cut measurement (`useCutText`, objectui#13135) is removed: nothing in the header can be cut any more. A shown pill keeps its own hover text (Status: the run status's reason; Trigger: the object's API name). - The designer's info bar (`variant="bar"`) is unchanged. - `ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx`: the `auto-flow-meta` wrapper goes `inline-flex` → `flex` (plus a comment line), so the row reads the meta slot's whole width rather than its own content width. - Tests: `FlowPreview.headerMetaTruncate-13135.test.tsx` is deleted (it pinned the `truncate` class this card replaces); `FlowPreview.headerMetaGiveWay-36745.test.tsx` is added. - Changeset: `@object-ui/app-shell` patch. `fitFlowMetaItems` is a module export, not on the package index. Reading taken on the card: "Keep Status and Trigger whole … hide the slot when not even one item fits". The card names On error, version and Run as as the items that drop, so Trigger + Status are read as the floor: when those two do not both fit whole, the row hides. (The other reading, dropping Status and then Trigger one by one, would drop an item the card says stays.) ## Tests - `FlowPreview.headerMetaGiveWay-36745.test.tsx`, 11 tests, widths stubbed per element (each item 120/110/80/30/60 px): - 400 px: all five shown, no row title; - 320 px: version and On error hidden, title = `v3` + `On error: …`; - 240 px: Run as hidden too, Trigger and Status stay; - 200 px (below the floor): every item hidden and `aria-hidden`, title names all five; - re-render wider: items come back; no header item carries `truncate`; - CONTROLS: a shown Status keeps its run-status hover text; the `bar` variant has no give-way row; - `fitFlowMetaItems` at the boundaries (399/400, 229/230) and fractional widths. - Ablation (`fitFlowMetaItems` returning every item regardless of width): 6 of 11 red; restored, `git diff HEAD` empty. - The test file imports `@objectstack/lint` at module top (`check:test-source-alias`: the source under test reaches its dynamic import; the load is paid at collection, not inside a clocked case). - Also run: `AutomationsPillar.tabs-12454.test.tsx`, `StudioItemHeader.statusPlace-12524.test.tsx` (they read `auto-flow-meta`): 20/20 with the new file. `pnpm --filter @object-ui/app-shell type-check`: exit 0. ## Acceptance notes Browser run on the showcase app (Studio › Automations › "Notify on Task Completed", zh-CN, 1440×900 unless named; its meta has four items, no On error). Shots are attached on the project thread (GitHub image upload is browser-only). Readings are the row's own `data-shown`, item widths and `title`: | Frame | Slot width | Items shown | Row hover text | |---|---|---|---| | Property panel open (the r07 case) | 81 px | none (Trigger 123 + Status 82 = 205 px do not fit) | 触发 / 状态 / 运行身份 / v1, one per line | | Panel closed | 441 px | all four, whole | none | | Panel closed, 1300 px viewport | 301 px | Trigger, Status, Run as | `v1` | | Panel closed, 1220 px viewport | 221 px | Trigger, Status | 运行身份: 用户 / v1 | | Panel closed, 1150 px viewport | 151 px | none | all four | No frame shows a cut or single-character item. Native `title` tooltips do not render headless, so the hover text is evidenced by the attribute. ## Verification - Two-minute check: in Studio › Automations, open a flow with the property panel closed (wide header: every item shows whole), then open the property panel: the row keeps Trigger and Status whole or hides, never single characters; hover the row to read what was dropped. <details><summary>Local gates</summary> - `node scripts/pm/dispatch-gates.mjs --commands`: 38 derived families, all run; 37 exit 0 at `9f6fc4fa`. `check:test-source-alias` exited 1 there (the module-top lint import above), fixed and re-run at `d37f9470`: exit 0. `--ran` reconciliation: `38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3)`. Results: project file `issue-36745/gate-results-d37f9470.tsv`. - `node scripts/pm/overlap-check.mjs` at `d37f9470`: `VERDICT clean exit 0` against `origin/main`, objectstack-ai#36774 and objectstack-ai#36784 (both share `StudioDesignSurface.tsx`, merge cleanly). - Every other family is CI's: read from this PR's check-runs, not re-run locally. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01JQwxbXxhLfnaEFoHNkAeGh)_ <!-- signed: repo:objectstack#1 · os-warren · session_01JQwxbXxhLfnaEFoHNkAeGh --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…k default view id (objectstack-ai#36787) <!-- claude-projects-attribution: {"github_login":"os-warren"} --> _Requested by **Warren** · [project thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ8UNMg9RsSwRntqJjhmPv5uR)_ Fixes objectstack-ai#36750 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户无感:在 Studio 打开一个还没有默认列表视图的对象时,浏览器不再记一条服务器 404 报错;面板显示和保存都不变。 - 属于 Studio 评审 9 张卡中的一张(列表视图的多余请求),替开发者清掉控制台里的假报错。 - 出错时最坏是面板对一个真实存在的默认视图显示「尚未创建」;只在元数据已加载完成时才跳过请求,可直接撤回这个 PR。 - 无。 ## What changes With no view of an object flagged default, the Studio list-view buffer edits the fallback id `OBJECT.default` (`listViewTargetOf`). Nothing is published under it until the panel's first edit creates it, yet the buffer read its published layer on every open and the server answered 404 (the client maps that to an empty envelope, but the browser logs the failed request). The draft-only guard (objectui#12508) no longer covers this since a new object is published at once. - `ObjectListViewInspector.tsx`: new `isFallbackListView(target, views)` and a `targetIsFallback` field on the hook's result. The target is the fallback when it is the default target and no key of the object's merged `listViews` (every served view item, by qualified name, via `mergeViewsIntoObjects`) nor of the package's drafted list views resolves to its id. The layered read is skipped for it when there is no draft. It is read only off an answer that can say so: the package's view drafts have answered AND `getTypeStatus('object') === 'ready'` (the registry composed with the `/meta/view` list). While loading, refetching after a publish, or under a context that reports no status, the layer is read as before. The flag is a load-effect dependency, so a view that appears once metadata lands is re-read. - `StudioCustomizeControls.tsx` + `StudioDesignSurface.tsx`: the other caller of the layered read for the same id, the Customize served-override read on a read-only base. `useServedOverride` takes `item.unpublished`; it still reads the pair's draft first, then answers `{ declaration: null, state: null, shipped: 'none' }` without the layered read, exactly what the 404 envelope produced. - Other layered-read callers checked: `authoredDraft.ts` runs only on a served draft; `ViewConfigPanel` and the runtime use real tab ids (the runtime fallback tab is `all`, not this id). ## Tests - New `ObjectListViewInspector.fallbackNoLayers-36750.test.tsx` (real hook over a real `MetadataClient`, in-memory server): fallback id sends no `/layers` and reads "not created yet"; CONTROLS: a flagged published default still reads its layer; a view held under bare `default` unflagged still reads it; while objects are `loading` the layer is read, then not again once `ready`; a context without `getTypeStatus` reads as before; `useServedOverride` with `unpublished` skips the layered read after the pair draft read, and without it still reads. - `ObjectListViewInspector.layersUnsaved-11799.test.tsx`: docblock updated to say its 404 case holds because its context reports no status. - Both suites import `@objectstack/lint` at module top (`check:test-source-alias`). ## Acceptance notes - Ablation (committed fix first, `scripts/ablation-replace.mjs`, restored to HEAD blob each time): dropping `(!draft && targetIsFallback)` from the layered-read guard turns 2 of 7 new cases red; deleting the `unpublished` early return turns 1 red. - Existing fixtures across the list-view suites serve a published `OBJECT.default` their object definition does not list. They use hand-rolled contexts without `getTypeStatus`, so they keep the old read; none was edited. - Not checked: whether the runtime ViewConfigPanel on the `all` fallback tab issues its own `/layers` 404 (different id, runtime surface). ## Verification <details><summary>Local runs on 31dfa88 (fix on e4a8007)</summary> - `vitest run` ObjectListViewInspector*, StudioDesignSurface.listView*, InterfacesPillar* : Test Files 38 passed (38), Tests 222 passed (222) (verify-lock VERDICT command-exit 0). - Two touched suites after the lint import: Test Files 2 passed, Tests 11 passed. - `pnpm --filter @object-ui/app-shell run type-check`: VERDICT command-exit 0. - `dispatch-gates.mjs --commands` derived 38 commands: all exit 0 (`check:test-source-alias` first failed on the two touched suites, fixed, re-run exit 0). - `overlap-check.mjs`: VERDICT clean (origin/main, objectstack-ai#36774, objectstack-ai#36781, objectstack-ai#36784). </details> Two-minute check: open Studio, Interfaces, pick an object that has no list view flagged default; the Network tab shows no `GET …/meta/view/OBJECT.default/layers`, and the panel shows the default view to create as before. --- _Generated by [Claude Code](https://claude.ai/code/session_01JQwxbWBvGf6TP6P9XT1tuo)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
…bjectstack-ai#36884) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBEaJzgBWzjWCNjBjkVoeRto)_ Fixes objectstack-ai#36502 repo:objectstack#3 · os-support-ai · session_01WGufzj9RY8jKV57hUTNEYg Clause-②: no Metadata-protocol: none ## 维护者速读 - Studio 顶部只剩「数据、自动化、权限、全部元数据」,首屏是「数据」;旧地址 `/studio/<包>/interfaces`(含 `?surface=` 深链)落到数据页,提示「界面的修改已经搬到应用里」并带回到应用的链接。 - 只读包(如安装来的 HotCRM)里视图、仪表盘、报表、页面的「定制」入口,从「界面」搬到「全部元数据」里该条目的页面(席位已认可),定制和「恢复包原版」照旧。限制:这类包自带的列表视图,在应用里只能另存为个人视图,要改给所有人看的版本仍需进「全部元数据」(objectstack-ai#35974 起就是如此)。 - 对外表单(objectstack-ai#36444 未合并)暂时没有可视化编辑,元数据照常可改;PR objectstack-ai#36784 需要的共用部件都保留。 - 删改合计约 3.7 万行(几乎都是删除),按规则需要您批准合并。 ## What changes The card (objectstack#36502), the maintainer's dispatch 「没关系,不等那个,现在就派」 (2026-11-24 05:17Z) and ruling record 7122806677 (the objectstack-ai#36444 dependency waived; public forms stay metadata-editable; keep what PR objectstack-ai#36784 needs). - **Studio's top nav** (`StudioDesignSurface.tsx`): the Interfaces pillar (`InterfacesPillar`, about 3,600 lines) is gone. The pillars are Data, Automations, Access, plus All metadata. A package's Studio root opens Data (`STUDIO_HOME_PILLAR`). - **Old links** (`studioInterfacesRetired.ts`, `StudioInterfacesRetiredNotice.tsx`): `/studio/<pkg>/interfaces`, with or without `?surface=`, redirects to `/studio/<pkg>/data`, keeping only `?changes=`. The Data pillar shows a one-line notice, 「界面的修改已经搬到应用里」 / "Interface edits have moved into the app.", with "Back to the app" (the same target as the header's ‹ Back to app) and Dismiss. The notice is latched when the landing arrives, so the Data pillar's own `?surface=` write and the Changes drawer dropping `?changes=` do not erase it. It goes on Dismiss or when the author switches pillar. - **Producers re-pointed**: `studioChangesLink.ts`, `packages/runtime/src/domains/mcp-authoring.ts` and `packages/cli/src/commands/meta/register.ts` print `/studio/<pkg>/data?changes=review`. The old `/interfaces?changes=review` still opens the drawer through the redirect. Console links that opened `/interfaces?surface=T:N` (`appRoute.ts#appStudioSurfacePath`, `artifactStudioPath.ts`, `metadataArea.ts`, `AiChatPage.tsx`) open the item's All-metadata page `/studio/<pkg>/metadata/<type>/<name>`, or `/data` for a built app. - **Customize on a read-only base moves to All metadata.** In the running app, the view config panel is read-only for a view a read-only package ships (objectstack#35974), and View settings' Save offers only "Save as my view". So without this, retiring the pillar would have removed the only door that customizes a shipped view, dashboard or report into `<base>.custom`. `metadataArea.ts#AREA_CUSTOMIZE_EDITOR_TYPES` grows from `dataset` to `dataset, view, dashboard, report, page`. On a read-only base those items open `StudioBundleItemEditor`, with Customize, the type's registered designer (`ViewDefaultInspector`, `DashboardDefaultInspector`, `ReportDefaultInspector`, `PageDefaultInspector`), the override chip and Restore. On a writable package they still open the generic item page. The seat accepted this route (seat note, 07:01Z), so it is not a deviation. - **Docs and skills**: `ui/packages/app-shell/README.md` (the dataset-context and reverse-bridge sections), `skills/objectstack-mcp-build/evals/draft-door-procedure.json` (the review link) and the plugin-chatbot `onDesignBuiltApp` doc example. No other user doc or skill names the Interfaces column (`git grep` over `content/docs` except releases, and over `skills/`). - **i18n**: `engine.studio.interfacesRetired.sentence`, `.backToApp` and `.dismiss` (en, zh). The old `interfaces`/nav keys stay; the dead-key gate is report-only. - **Checklist**: `studio-authoring.interfaces-create-dialogs` is retired (rev 5, with a retiredReason). `coverage.json` drops it from `app`, `page` and `report`; each still maps other items. `package-customize-restore-display` (rev 7) re-points its door to the item page. Eight more studio-authoring items, `dashboards.global-filters-rescope` and `ux-conventions.labels-over-machine-names` have their Interfaces steps re-pointed, each with a revision bump and a history row. ### Item 5 census: what was deleted and what was kept Deleted, because only the Interfaces column used it: - Source: `InterfacesPillar` (in `StudioDesignSurface.tsx`, -3,624/+66 in that file), `InterfacesNavRail.tsx`, `StudioNavItemInspector.tsx` (its `StudioPicker` moved to `StudioPicker.tsx`, which the Access pillar uses), `ObjectListViewInspector.tsx`, `ObjectListViewTitle.tsx`, `ListViewTypeSection.tsx`, `ListViewChartSection.tsx`, `ListViewBulkActionsSection.tsx`, `ListViewMoreSection.tsx`, `interfaceCreate.tsx`, `metadata-admin/previews/SourcePageProperties.tsx`, and `services/componentRegistry.ts#listAppComponents` (declared, read by nothing). - Tests: 80 files that drove only the pillar, its rail or its inspectors. About 30 more `StudioDesignSurface.*` files lost only their Interfaces cases. Pins of shared behaviour were moved, not dropped: `useNavTargetLabel.draftLabels-11862`, `AppNavCanvas.menuOrder-26979`, `studioZhPillarNames-11801`, and the kanban board's card-opens-record controls (objectui#12725/objectstack-ai#12888), now in `plugin-kanban/src/__tests__/KanbanRenderer.cardOpensRecord-12725.test.tsx`. Kept, because something else uses it or it is a shared export: - What PR objectstack-ai#36784 imports: `DataPillarHelpers`, `StudioCustomizeControls`, `StudioPillarKit`, `setup/publicForms`. Public-forms code and UI are untouched (the maintainer paused that development at 05:23Z). - `StudioCustomizeControls` (override chip, Restore, `overrideDraftBody`), now serving the All-metadata editor; `StudioItemHeader`; `studio-canvas-preview` / `StudioObjectRecordsCanvas`; `useSurfaceDeepLink`; `navSurface`, `servedNavText`; `metadataError` helpers; `STUDIO_KIND_CHIP`. - Shared nav-editing helpers with no Studio caller left, kept as exports: AppNavCanvas held-nav helpers, `nav-target` (`NAV_ENTRY_TYPES`, `navTypeAcceptsChildren`, `retypedNavEntry`), the `DraftTargetLabels` and dataset-create contexts (no provider today). Each is small; deleting them is a follow-up if nothing picks them up. - The old i18n `interfaces` / nav-inspector keys (report-only dead keys). - `ui/e2e/studio-item-header-title-width.spec.ts`: a fixture-only geometry pin of `StudioItemHeader`. Its last describe draws an "Interfaces leaf" from fixtures, so it does not depend on the pillar. ### Prerequisite cards (card item 1) objectstack-ai#36363 menu, objectstack-ai#36366 header actions, objectstack-ai#36364 add-menu-item, objectstack-ai#36370 view settings, objectstack-ai#36372 dashboard edit, objectstack-ai#36374 report edit, objectstack-ai#36425 internal forms retired, objectstack-ai#36485 header Studio links, objectstack-ai#36487 sidebar Design entry, objectstack-ai#36498 and objectstack-ai#36499 record page grouping and tabs: all closed as completed. objectstack-ai#36444 (public forms) is open; ruling 7122806677 waives it. Until it lands, public forms have no visual editor and stay metadata-editable. ### Merge note Against objectstack-ai#36784 (head 1f9f234), `overlap-check` reports one conflict: adjacent import lines at the top of `StudioDesignSurface.tsx`. objectstack-ai#36784 adds `useHref` to the `react-router-dom` line; this PR drops the now-unused `useMetadata` from the `@object-ui/react` line. Resolution: take both. Every other file merges cleanly, and origin/main (7a5ae65) merges cleanly. A later draft, objectstack-ai#36888 (the Field layout tab, objectstack-ai#36505), overlaps in `studio-authoring.json` and in two surface tests that both PRs gave the module-top `@objectstack/lint` import; whichever lands second rebases. ## Tests - New: `studioInterfacesRetired.test.ts` (target, state, encoding); `StudioDesignSurface.interfacesRetired-36502.test.tsx`, through the real surface: bare URL → Data with the notice (en, and the zh catalogue string 「界面的修改已经搬到应用里」), Back to app, `?surface=` dropped, `?changes=review` keeps the notice, the notice outlasts the Data pillar's own `?surface=` write, leaving for another pillar takes it away, Dismiss, no Interfaces in the nav, and a CONTROL (a plain arrival on Data shows nothing). `metadataArea.test.ts` and `StudioMetadataArea.routes-28561` pin the moved Customize door: view, dashboard, report and page open the editor only on a read-only package; flow and object stay on the generic page. `copilotDoors-12894` pins that an old `/interfaces?changes=review` opens the drawer on Data. - Re-pointed: every producer test, from `/interfaces?surface=` to the item page or `/data`: `appRoute`, `artifactStudioPath`, `metadataArea`, `AppHeader.*`, `PageView.*`, `SidebarAppMenu-36112`, `AiChatPage.noNavigationAfterBuild`, `notFound-26708`, `kernelReadOnly-29567`, `pillarNavGuard`, `metadataArea-28561`, `openPathObjectReaders-12811` (three rows for readers that left with the pillar). - Local: app-shell `tsc` (src and test) exit 0. Vitest on the 820 test files that touch Studio, the console routes, i18n, plugin-chatbot and plugin-kanban, under the verify lock: 8154 tests, 9 failed on the first pass, all fixed and re-run green, with the affected files re-run after each later change. `@objectstack/runtime` `mcp-authoring.test.ts` (50) and `@objectstack/cli` `register-draft.test.ts` (10) green. Full `turbo build` green (120/120). ## Acceptance notes - **CI round 1** (fixed in 8cfc5d6): `check:test-source-alias` asked 14 edited tests for the module-top `@objectstack/lint` / `@objectstack/formula` import; the spec-symbol ledger and the clickable-non-control census still listed the deleted `InterfacesNavRail.tsx` / `StudioNavItemInspector.tsx` and the retired rail's scrim; and the listed-manifests read had lost its only rejection handler with the pillar, which surfaced as unhandled 404 rejections in surface tests. All of `studio-design` re-run locally after the fix: 292 files, 2079 tests, green. - **Live e2e** (CI-shaped: workspace backend via `ui/e2e/live/ci/start-backend.sh`, console `vite build` plus `vite preview` proxying to it). `studio-customize-journey.spec.ts` now customizes `showcase_task.in_progress` on `/studio/com.example.showcase/metadata/view/showcase_task.in_progress`: Customize, then Remove Due Date in the view designer. That sends ensure 201 and a draft PUT to `package=com.example.showcase.custom&mode=draft` with the overrides block; Publish runs the pair's publish-drafts (200); the three reads serve the customized columns; the override chip appears; Restore sends two DELETEs at the pair and the shipped columns are served again. Green 4 of 4 runs. The whole `test:e2e:live:ci` allowlist: 23 passed in 1.7 min, which fits the job's two-minute budget. - **Browser, zh-CN and en** (showcase): the Studio root opens 数据 / Data, and the nav reads 数据·自动化·权限·全部元数据 / Data·Automations·Access·All metadata. An old `/interfaces?surface=view:…` lands on Data with the notice in each language; Back to the app goes to `/apps/com.example.showcase`. `/interfaces?changes=review` opens Pending changes on Data with the notice. `/data?changes=review` opens the drawer with no notice. The metadata item deep link opens the editor. All metadata on the read-only showcase also opens a dashboard, a report and a page with Customize. - **HotCRM walk** (hotcrm main 48082b7 on its published 18.6.0 backend, served by this branch's console): on Sales, the running app offers the design entries (sidebar app menu Design layout, View settings on lists, Edit on the executive dashboard, Configure tabs in the record ⋯ menu). No link on the home, list, record or custom pages points at `/interfaces`. The app menu's View in Studio opens `/studio/app.objectstack.hotcrm/data?surface=object:crm_account`. All metadata opens `crm_account.all_accounts`, `executive_dashboard`, `sales_home_page` and `contract_print_page`, each with Customize. The custom page `sales_home_page` renders. The contract print page renders at `…/crm_contract/record/<id>/page/contract_print_page`, and Print Contract filed a 224 KB PDF through this console (print engine pointed at local Chromium). I checked that the in-app entries are present; I did not re-drive the menu, view, dashboard and record-grouping writes, which are the prerequisite cards' and were walked there. No HotCRM change is needed. - **The Interfaces column's edit surface, against the card's table**: nav rail and nav-item inspector → design mode menu (objectstack-ai#36363); header actions (objectstack-ai#36366); New dashboard/report/page dialogs → design mode add-menu-item (objectstack-ai#36364); list-view and kanban inspector → View settings (objectstack-ai#36370); dashboard and report designers → in-page Edit (objectstack-ai#36372, objectstack-ai#36374); source and custom pages → no visual editor, metadata-writable (ruled). One row the table did not list is Customize on a read-only base, which now lives in All metadata (above). ## Verification Read first, by risk: `StudioDesignSurface.tsx` (the redirect `<Navigate>`, the latched `retiredOn` notice state, `PILLARS`), `metadataArea.ts#AREA_CUSTOMIZE_EDITOR_TYPES`, `studioInterfacesRetired.ts`, and `ui/e2e/live/studio-customize-journey.spec.ts` steps 1 and 2. Two-minute check: open `/studio/<a package>/interfaces?surface=page:x`. Expect the Data pillar, the notice 「界面的修改已经搬到应用里」 and a working 回到应用. Then open a view of a read-only package under All metadata and expect Customize. Governed reading (`check-governed-merges.mjs --branch`): Tier H. `skills/**` ×1 (`skills/objectstack-mcp-build/evals/draft-door-procedure.json`), and 37,094 changed lines (+1,489 / −35,605) is over the 3,000-line line. Not to be readied, queued or auto-merged by a seat. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WGufzj9RY8jKV57hUTNEYg <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzj9RY8jKV57hUTNEYg --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…nly, and arranges an installed object into its .custom pair (objectstack-ai#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 objectstack-ai#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 objectstack-ai#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 objectstack-ai#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 objectstack-ai#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 (objectstack-ai#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 objectstack-ai#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 objectstack-ai#36884 (objectstack-ai#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>
…ress changes (objectstack-ai#36973) <!-- 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 objectstack-ai#36895 Clause-②: yes (widening) Metadata-protocol: none ## 维护者速读 - 用户无感:Studio 里所有链接、跳转、AI 给出的审阅链接,地址一个字节都没变。 - 属于「Studio 重构」专题:先把所有生成 Studio 地址的地方收到一个函数,之后每张设计器卡只改一处就能切到新地址,不会出现两条跳转规则互相跳的死循环。 - 出错的表现是某个 Studio 链接打开到错的页面或打不开;本改动只换写法不换地址,可以直接撤回。 - 无。 ## What changes One builder for every Studio address, and every producer the card lists now calls it. Every address is byte-for-byte what it was before. Nothing redirects and no route changes. - **Console builder (new file):** `ui/packages/app-shell/src/views/studio-design/studioAddress.ts`. It holds `studioPath`, the one path builder, and on top of it `studioLandingPath`, `studioPackagePath`, `studioPillarPath`, `studioHomePath`, `studioItemPath`, `studioPillarItemAddress`, `studioSurfaceQuery`, the "All metadata" builders, `studioChangesReviewPath` and `studioItemReviewPath`. - The vocabulary also lives here: root, home pillar, `~org`, `~all`, `metadata`, `interfaces`, and the `changes` and `review` params. The modules that exported these before re-export them under the same names. - `STUDIO_ITEM_PILLAR` is the per-type switch. `AREA_PILLAR_FOR_TYPE`, which the area's pillar redirect reads, is now this same object. When a designer card deletes a type's row, every `studioItemPath` caller and the area redirect move together, so the two cannot loop. - **Mapping table (new file):** `studioAddressTable.ts`. It has three tables: - `STUDIO_ADDRESS_FAMILIES`: 13 address shapes. - `STUDIO_ITEM_TYPES`: `object` (with its `view`, `action` and `nav` qualifiers), `flow`, `permission`, and `owd:overview`. Each row gives today's pillar and the metadata address the type moves to. - `STUDIO_QUERY_PARAMS`: `surface`, `view`, `action`, `nav`, `changes=review`, `review=1`, `package`, `scope=environment` and `new`. Each row says whether the param is carried verbatim, rides as a qualifier, or is replaced. - **Card item 3:** the retired `/interfaces` redirect (`retiredInterfacesTarget`, landed by objectstack-ai#36884) now reads which params it keeps from this table (`STUDIO_RETIRED_INTERFACES_KEPT_PARAMS`). Its output is unchanged. - **Three `?surface=` spellings, all kept.** Producers did not agree on how to write the value, and each spelling is kept as a named option (`StudioSurfaceSpelling`): - `'component'` (`surface=object%3Aaccount`) is used by most producers. - `'name'` (`surface=object:account`) is used by `appStudioObjectPath`. - `'form'` (`URLSearchParams`, `surface=object%3Aa&action=x`) is used by `switchedOffActionPath`. - StudioDesignSurface writes the scope segment unencoded, and that is kept too, as `segmentEncoding: 'verbatim'`. - **Server shared function, located in `@objectstack/types`:** `packages/types/src/studio-review-links.ts` exports `studioChangesReviewLink` and `studioItemReviewLink`. Both server producers already depend on `@objectstack/types`, and neither may depend on the Console. `packages/cli/src/commands/meta/register.ts` and `packages/runtime/src/domains/mcp-authoring.ts` (`reviewRoutes`) now call them. The review-link text served to the AI is unchanged (pinned below). - I did not choose `@objectstack/spec`: that would add a contract-package export, and spec holds no runtime logic. - The module is named `-links`, not `-routes`, because `check:route-envelope` reads any `*-routes.ts` as a REST module. - **Producers repointed (re-measured on 3f568c1 and later):** - Card items 1–9: `appRoute.ts` ×3, `metadataArea.ts`, `setupMetadataRedirect.ts` ×3, `CommandPalette.tsx`, `studioScope.ts`, `artifactStudioPath.ts`, `AiChatPage.tsx`, `AppNoAccessEmptyState.tsx`, `RecordTabsConfig.tsx`, `DashboardInPageEditor.tsx`, `BuilderLanding.tsx`, `studioChangesLink.ts` and `switchedOffActionTargets.ts`. - Card item 10, `StudioDesignSurface.tsx`: only its four hand-built call sites are swapped (pair-base redirect, Access pillar open, `requestSurface`, pillar nav links). The edit merges cleanly with objectstack-ai#36893's split branch (`git merge-tree`, exit 0). - Card item 11: `StudioRoute.tsx` and `AppContent.tsx`. Route patterns use `STUDIO_ROOT_PATH`, and the `:packageId` landing redirect uses `STUDIO_HOME_PILLAR`, the same relative `data`. - Card item 12: the two server producers. - Card item 13: `InterfacesNavRail.tsx` is gone, as stated. - A producer that landed on main meanwhile (objectstack-ai#36933) is repointed too: `PackagesPage.tsx`'s local `studioPackagePath` now returns `studioHomePath`. - Producers the card missed, now repointed: - `studioInterfacesRetired.ts` - `metadataArea.ts`: `studioMetadataAreaPath`, `studioMetadataItemPath`, `areaLocationRedirect` - `setupMetadataStudioPath` itself - `switchedOffActionTargets.ts`: the action item path and `switchedOffActionListPath` - `studioNewPackage.ts` (`STUDIO_NEW_PACKAGE_PATH`) and `PackageSwitcher.tsx` (`STUDIO_LANDING_PATH`) - `HomePage.tsx` and `useAddAppEntries.ts` (bare `/studio`) - Line numbers moved from the card's (AiChatPage and DashboardInPageEditor). Three of the card's sites already called a helper (CommandPalette's `~org` flow, BuilderLanding's `~org` card, and RecordTabsConfig, which now calls `studioItemPath`). - **New exports from `@object-ui/app-shell`:** `STUDIO_ROOT_PATH`, `STUDIO_HOME_PILLAR`, `studioLandingPath` and `studioPackagePath`. ## Why The Studio redesign moves objects, flows and permission sets from pillar addresses to metadata addresses (`/studio/PKG/metadata/TYPE/NAME`). The area already redirects a pillar type back to its pillar. Redirecting the pillar address first would loop, so every producer has to share one builder before any designer card flips its type. ## Tests - `studioAddress.test.ts` (new) pins each builder to literal addresses: every family, all three spellings, verbatim segments, search and hash, the area, the review links, and the repointed module builders. It also checks that the table agrees with the code (`AREA_PILLAR_FOR_TYPE` is `STUDIO_ITEM_PILLAR`, item rows, param keys, family builders, and the params kept on the `/interfaces` redirect). - `studioAddress.guard.test.ts` (new) is the guard. It parses every non-test source under `ui/packages/PKG/src` and `ui/apps/APP/src` and refuses two things: - a string or template literal starting with `/studio`; - a path composed onto `STUDIO_ROOT_PATH`. - Only `studioAddress.ts` (and the table's placeholder shapes) are allowed. - It has positive controls: the walk must reach StudioDesignSurface and the console's StudioRoute, and the matcher must fire on the builder file. - `packages/types/src/studio-review-links.test.ts` (new) pins the server's two links to literals. - `packages/types/src/studio-review-links.callers.test.ts` (new, `repo` project) has two parts: - It refuses a `/studio` literal in any `packages/**` `.ts` source outside the shared module, with controls: both server producers are walked, and the matcher fires twice on the allowed file. - It holds every review link quoted in `skills/objectstack-mcp-build/evals/draft-door-procedure.json` equal to `studioChangesReviewLink` / `studioItemReviewLink` for the package, type and name that link names. The file has 7 quoted links: 5 Changes links and 2 item reviews, 3 distinct values. The skill file is not edited. - Its radius is declared: `vitest.repo-tests.json`, `CROSS_PACKAGE_TEST_INPUTS`, and the `@objectstack/types#test:repo` turbo inputs. Ci.yml's `crosspkg:` filter already covers the skills root. - Existing pins of every repointed producer stay green unchanged. That is the byte-identity proof: none of their expected literals was touched. <details><summary>Local runs (head fa0deb8, after merging origin/main 4f9a3f8)</summary> - `pnpm --dir ui exec vitest run` on the 171 test files that name a repointed producer, the package list, or the builder: `Test Files 171 passed (171)`, `Tests 1777 passed (1777)`. The full app-shell + console suite (2736 files) is CI's Test UI; it was started locally and stopped, since at two workers it did not finish in an hour. - `@objectstack/types`: - `local`, studio-review-links.test.ts: 2 passed; - `repo`, studio-review-links.callers.test.ts: 3 passed. - `@objectstack/runtime` `src/domains/mcp-authoring.test.ts`: 50 passed. - `@objectstack/cli` `--project integration src/commands/meta/register-draft.test.ts`: 10 passed. Run locally because it is the one test that pins the CLI's printed review link. - `pnpm --filter @objectstack/types typecheck` and `pnpm --filter @object-ui/app-shell type-check`: exit 0 on fa0deb8. `@objectstack/runtime` and `@objectstack/cli` `typecheck`: exit 0 on 947b96e, the pre-merge head. `@object-ui/console` `type-check` was NOT MEASURED: it needs every ui plugin's dist built, so it is left to CI's Type Check UI. - `pnpm --dir ui exec vitest run scripts/`: 172 passed, 2 skipped. `pnpm --dir ui check:new-line-citations`: 0 new. </details> ## Acceptance notes - **Two type to pillar maps exist, not one.** StudioDesignSurface keeps its own `PILLAR_FOR_SURFACE_TYPE` (identical to `STUDIO_ITEM_PILLAR` today). The Automations and Access pillars call `studioPillarItemPath(..., 'automations' | 'access', ...)` explicitly. Neither is hand-built, so the guard passes. I left them alone to keep this diff to call-site swaps that merge cleanly with objectstack-ai#36893's move-only split. The flow and permission designer cards switch those call sites, or fold the map into `STUDIO_ITEM_PILLAR`, in the same PR that flips the type. - **Unencoded scope segment.** StudioDesignSurface writes its scope segment (the decoded route param) unencoded in three places, where every other producer encodes it. This is kept byte for byte. It is not reachable with today's package-id alphabet. - **One incidental difference, outside any real address:** `studioItemPillar` looks up the type map with `hasOwnProperty`. The old `AREA_PILLAR_FOR_TYPE[type]` lookup matched `Object.prototype` members, so `/studio/PKG/metadata/constructor/x` redirected to a garbage pillar URL. It now opens the generic item page. This is pinned in `studioAddress.test.ts`. No metadata type has such a name. - **Overlap:** `overlap-check` exits 1 on two PRs. - objectstack-ai#36956 (ux-E's move-only split of StudioDesignSurface, card objectstack-ai#36893): one conflict hunk, in the import block. That PR deletes the `draftVerdict` import lines directly above the `nav-selection` import, and this PR deletes that import (its last user was the `requestSurface` call site). The resolution is to keep both deletions. All four of this PR's call sites stay in StudioDesignSurface after the split, and none is in a moved region. - objectstack-ai#36784, a draft based on an older main, conflicts with `origin/main` itself at the same single hunk (the react-router import, a line this PR does not touch): conflict count 1 with this branch and 1 with main alone. - objectstack-ai#36888 and objectstack-ai#36791 merge cleanly. ## Verification - Read first, ranked by risk: 1. the `StudioDesignSurface.tsx` hunks (four call sites, verbatim segment); 2. `metadataArea.ts` (the area's redirect now reads `STUDIO_ITEM_PILLAR`); 3. `studioAddress.ts` `studioSurfaceQuery` (the three spellings). - Two-minute check: `pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/studioAddress.test.ts packages/app-shell/src/views/studio-design/studioAddress.guard.test.ts`. Expect 2 files and all tests passing. Then add any literal beginning with `/studio` to a ui source and watch the guard name the file and line. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (spec untouched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. (CI) - [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. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzhpykmQZe1yMupC2CU --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…home (objectstack-ai#37017) <!-- claude-projects-attribution: {"github_login":"huangyiirene"} --> _Requested by **Irene** · [project thread](https://claude.ai/code/project/chan_01TJXtQ1tVD26ecLDZxFS67x?thread=cmsg_01TJXtQ1tVD26ecLDZxFS67x8Be2AAcUBhodBsvnWLd3Xs)_ Fixes objectstack-ai#36827 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户无感:只改内部测试清单里的两处文件指引。 - 为什么做:平台测试清单门禁在主干上变红,因为一个函数搬了家,清单还指向旧位置。 - 出错会怎样:只影响清单门禁,可直接撤回。 - 要你做什么:无。 ## What changes `docs/qa/platform-checklist/areas/access-security.json`, item `access-security.public-form-withdrawal-layers`: the two anchors on `anonymousFormExplicitWithdrawals` (the `verify` text's `Mechanism:` line and the mechanism list) now name `packages/spec/src/ui/anonymous-form-intake.ts#anonymousFormExplicitWithdrawals`, where the function is declared on main. Nothing else moves; the resolution rule and the checklist's meaning are untouched. No revision bump: the gate's revision/history check passes and the item's verify commands are unchanged. ## Tests `pnpm check:platform-checklist` exit 0 on head dbd3e94 (four self-tests + `check-platform-checklist: OK — 16 areas, 437 items`). ## Acceptance notes - `node scripts/pm/overlap-check.mjs`: merges cleanly with main; conflicts with draft objectstack-ai#36784 on the same file. That PR also re-points the neighbouring `anonymousFormIntakeWithdrawnIn` anchor (adjacent line), so the hunks touch adjacent lines. Whichever lands second rebases; the two-anchor text here is identical to that PR's. - Local only the checklist gate chain; the rest of the farm is CI's. ## Verification Two-minute check: `node scripts/check-platform-checklist.mjs` prints `check-platform-checklist: OK`. --- _Generated by [Claude Code](https://claude.ai/code/session_01J8VVAjMMU8pcMXmiLEMMG4)_ Co-authored-by: Claude <noreply@anthropic.com>
…pillar nav (objectstack-ai#36985) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBTuMGhLAZx29zwDrayDGZZF)_ Fixes objectstack-ai#36899 Part of objectstack-ai#36890 Clause-②: yes (widening) Metadata-protocol: none repo:objectstack#3 · os-support-ai · session_01WGufziBCAytAzzCu3iPBFR ## 维护者速读 - 建应用的人在 Studio 里,顶部那排“数据/自动化/访问/全部元数据”切换没了,换成左侧一列可折叠菜单:数据、界面、自动化、平台、访问、AI 六组,每组带数量和搜索,折叠后刷新还记得,手机上是抽屉。 - 属于“Studio 重构”这条主线(左侧菜单是后面列表页、全屏详情和设计器改造的落脚点)。 - 出问题时作者可能找不到某类元数据的入口,或折叠状态不记忆;不动任何数据,直接撤回这次改动就回到顶部切换。 - 无。 ## What changes **Studio's one navigation is now a left menu of six groups** (amended ADR-0084: Data, UI, Automation, Platform, Access, AI; zh 数据、界面、自动化、平台、访问、AI). The top pillar switcher is gone from every Studio page. - **What it lists.** Each group lists the metadata types the open package holds, by the type directory's own rule: `scopeDirectoryEntries` (new `directoryScope.ts`) is now read by both `DirectoryPage` and the menu, so the two never disagree. A group carries its type count, an entry its item count (the diagnostics sweep the directory already reads), and a search box narrows entries by label or machine name. Object, Flow and Permission Set are always listed, so an empty package can create its first one. - **Where entries go.** A type entry opens that type's list in the area (`/studio/PKG/metadata/TYPE?package=PKG`); an item of an object, flow or permission set still opens its designer through `areaItemPillarPath`, so the pillar routes stay and are reached as before. Four entries are not a type: **Organization flows** (`/studio/~org/automations`) under Automation, **Default sharing** (the Access pillar on `?surface=owd:overview`; the page itself is objectstack-ai#36905's) under Access, **Diagnostics** (`metadata/_diagnostics`) under Platform, and **Positions and permissions** (the environment catalog on `~all`) under Access. Datasource still goes to Setup (ADR-0146 D1). - **Current entry.** The open page's entry carries `aria-current="page"` and the sidebar's active state: an area page marks its type, a pillar marks the type it designs (Data marks Object, Automations marks Flow, Access marks Permission Set, Access on the OWD overview marks Default sharing). - **Collapse.** It is the app sidebar's own primitive (`SidebarProvider` / `Sidebar collapsible="offcanvas"` from `@object-ui/components`), docked below the top bar. The top bar's leading toggle hides and shows it; the state survives a reload under **Studio's own cookie `studio_menu_state`**, never the app sidebar's `sidebar_state`. Below 768 px it is a drawer that closes when an entry is chosen. `SidebarProvider` gains an optional `cookieName` prop for this (default unchanged), declared as a new shadcn local-patch family in `ui/scripts/shadcn-local-patches.mjs` with its pin. - **Group names (binding note 7127465963, first option).** The menu maps the two names itself: `studioMenuGroupLabel` (new `studioMenuGroupLabel.ts`) names the `system` group Platform / 平台 and the `security` group Access / 访问 (new keys `engine.studio.menu.groupSystem` / `groupSecurity`); the other four groups read `translateMetadataDomain`. Only the left menu's group headings use it. The shared dictionary is unchanged (System / 系统, Security / 安全): Setup's datasource pages read it for `PageShell`'s domain badge, and no other Studio heading or chip is renamed. - **Clause-② yes (widening):** the published `@object-ui/components` `SidebarProvider` gains an optional `cookieName` prop (claim amendment on objectstack-ai#36899, 7134770955). - **`~all` frame: merged into one shell.** `/studio/~all/metadata/*` is now served by the same route as a package's area (`:packageId/metadata/*` already outranked `~all/*`), and `StudioDesignSurface` draws it with no package, no package actions and no right slot, beside the same menu. The landing's frame (`StudioConsoleFrame`) now frames only the landing. `areaLocationRedirect` now sends a `~org` area URL, or `?package=~org`, to the package-less flows instead of reading `~org` as a package. - **「‹ Back to app」 (decision 5 + maintainer ruling 7127681255).** It names the current package's app, never a remembered app of another package; a recorded page of one of the package's own apps is still where it returns. A package with no app, and the org-level and cross-package entries, name the package (or the scope: Organization flows / Positions and permissions) and go to the apps home. - **变更 / 发布 stay where they are:** at the right end of the top bar, beside Cancel and Save, drawn while drafts are pending (objectstack#36511). - Kept: the save coordinator, the unsaved-work guard (a menu link that leaves asks once through the shell's link guard; the Default sharing entry, which re-enters the open Access pillar on another query, asks through the surface's own confirm and then remounts the pillar once the router holds the new query), the right slot and copilot dock, the changes panel and Publish, the writable gate and paired package, and the package-missing empty state (no menu there). - en and zh strings: `engine.studio.pillar.*` removed, `engine.studio.menu.*` added. ### Choices the card asked to state | Question | Choice | | --- | --- | | Group names | Mapped in the menu only (`studioMenuGroupLabel`): system = Platform/平台, security = Access/访问; the shared dictionary keeps System/Security | | `~all` frame | Merged into the builder's shell: one shell, one menu on every Studio page | | Cookie key | `studio_menu_state` (own key; `sidebar_state` untouched) | | 变更 / 发布 | Stay at the top bar's right end beside Cancel / Save | | Address builder (objectstack-ai#36895, PR objectstack-ai#36973) | objectstack-ai#36973 landed first (9c57bd2); main merged at c840fdd and the menu repointed at 7617f52: every `studioMenuModel.ts` link and its open-page detection now come from the `studioAddress.ts` builders, byte-identical (the menu tests pin the hrefs). No `STUDIO_ITEM_PILLAR` row and no scope-segment encoding is changed here. | ### Where the work landed outside the stated file surface - `ui/packages/components/src/ui/sidebar.tsx` and `ui/scripts/shadcn-local-patches.mjs` (the surface said "read; a new cookie key"): the provider hard-coded `sidebar_state` on every write, ⌘B included, so a second key needed the `cookieName` prop. It is a declared local patch with its pin. - `ui/packages/app-shell/src/views/metadata-admin/DirectoryPage.tsx` and new `directoryScope.ts`: the directory's listing rule moved into one helper the menu shares (item 1 says the menu reuses the directory's grouping data). - The apps home: the console has no `/apps` index route, so "back to the apps home" goes to `useHomePath()` (the `/home` launcher in Studio), which is what the console calls the apps home. - The menu's group labels carry `HIDDEN_ICON_LABEL_NOT_FOCUSABLE`, as every `SidebarGroupLabel` call site does (objectui#12795 call-site pin); the menu is offcanvas, so the classes never take effect there. ### Known regression (temporary, accepted by the seat 2026-11-24 13:41Z) - **⌘K on `~all`:** `~all` now renders inside Studio's builder shell, so the console `AppHeader` and its ⌘K command palette are no longer drawn on the `~all` leg. Studio's own ⌘K arrives with objectstack-ai#36900, which is queued next on the list side once this PR and objectstack-ai#36895 land. ## Tests - New: `studioMenuModel.test.ts` (groups, entries, links, counts, current-entry rule, search), `StudioMenu.test.tsx` (own cookie and remount, app sidebar collapse does not collapse the menu, drawer below 768 px closing on choose, aria-current, counts, search with no-match status, focus order toggle then search then entries), a sidebar `cookieName` case in `sidebar-cookie-restore.test.tsx`, the patch-family pin in `shadcn-local-patches.test.ts`, a `~org` case in `metadataArea.test.ts`, console route cases (`~all` on the builder route, the entry gate before `~org/automations`, the OWD overview and Diagnostics, no recent-package record for `~all`). - The eight surface tests that asserted `studio-pillar-nav` now assert the menu: `notFound-26708`, `accessSegment-12452`, `heldDataLeave-26705`, `heldFlowLeave-26705`, `interfacesRetired-36502`, `metadataArea-28561`, `pillarNavGuard`, `narrowHeader-12509`; `backToApp-36501` and `packageLessFlows-11553` follow decision 5. Also converted: `packageListErrorPosture` (the menu and its toggle survive a package-list failure), `homeLoop-12513` (the menu toggle is the bar's first button, Back to app the first way out after it) and `heldFlowLeave-26705` (module-top `@objectstack/lint` import, as its held-data sibling has). `studioMenuModel.test.ts` also pins the menu's own group names (en and zh) and the shared dictionary keeping System/系统 and Security/安全; `PageShell.narrowHeader-12306` is back to main's 'Security'. - E2E: `ui/e2e/studio-left-menu-36899.spec.ts`, a Chromium page bundling the real menu: docked at the left with the content beside it, off the canvas when collapsed with the content at full width, still collapsed after a reload (cookie on a real http origin), a drawer inside the viewport at 390 px. <details><summary>Local readings at 214400b, patch rounds to 7617f52</summary> - `vitest run` on the 50 touched and related files (touched tests, every test naming `translateMetadataDomain` or a `security`/`system` domain, DirectoryPage, StudioRoute, StudioBackToApp, packageLess, sidebar): `Test Files 50 passed (50)`, `Tests 450 passed (450)`, lock `VERDICT command-exit 0`. - `pnpm --dir ui exec vitest run scripts/`: `Test Files 172 passed | 2 skipped (174)`, `Tests 5130 passed | 2 skipped`, `VERDICT command-exit 0` (at b901832; the last commit touched only the e2e spec). - `type-check` of `@object-ui/components`, `@object-ui/i18n`, `@object-ui/app-shell`, `@object-ui/console` and `type-check:e2e`: `VERDICT command-exit 0` (at b901832; `type-check:e2e` re-run at 214400b). - `playwright test e2e/studio-left-menu-36899.spec.ts --project chromium`: `3 passed`. - Derived gate families (`dispatch-gates.mjs --commands`): all 18 exit 0 locally; `check:i18n-keys`, `check:i18n-drift`, `check:i18n-dead-keys`, `check:new-line-citations`, `check-nul-bytes`, `check-platform-checklist --changed-from origin/main` exit 0. - Patch round at df57661 (CI red at 214400b on "Test-source alias gate"): `heldFlowLeave-26705` now imports `@objectstack/lint` at module top, as its held-data sibling does. `node scripts/check-test-source-alias.mjs` exit 1 before, exit 0 after (`123 packages with tests scanned`); `--self-test` exit 0. - Patch round at 1f7534d (CI red at df57661 on Test UI 3/16, 4/16, 14/16): the three files at the pre-fix versions `Test Files 3 failed (3)`, `Tests 3 failed | 10 passed (13)`, `VERDICT command-exit 1`; on the fix `Test Files 3 passed (3)`, `Tests 13 passed (13)`, `VERDICT command-exit 0`. - Patch round at 0af200c (L1 REWORK 7134737804, S1 + S2): `studioMenuModel.test.ts` `Tests 11 passed (11)` plus the other 5 touched files green; `check-test-source-alias` exit 0; `@object-ui/app-shell` type-check exit 0; `check:i18n-keys` / `check:i18n-dead-keys` / `check:i18n-drift` exit 0; card 2,362 changed lines. - Merge + repoint at 7617f52 (objectstack-ai#36973 merged): conflicts in `metadataArea.ts` (main's `studioAddress` imports kept, this branch's `~org` import added) and `StudioDesignSurface.tsx` (header pillar nav stays removed; main's other `studioAddress` edits kept). `studioAddress.guard.test.ts` red at c840fdd (`Tests 1 failed | 1 passed (2)`, offender `studioMenuModel.ts:173`), green after the repoint; 20 touched/related files `Tests 166 passed (166)`; card 2,364 changed lines (+1774/−590, 37 files). </details> ## Acceptance notes - Screenshots below are the real console (`ui/apps/console` dev server, this branch) against a running server: a self-built app (created through the Studio landing's New app, `com.default.field-service`) on the showcase example server, and HotCRM (its own repo at main, `app.objectstack.hotcrm`) on its published 18.6.0 server. On HotCRM the Data pillar's rail shows "Couldn't read customizations": that is this branch's console against an older published server, not the menu. - Readings from the same runs: no `studio-pillar-nav` on the page; six groups in order; the Object entry current on the Data pillar; after collapse `data-state=collapsed`, the cookie `studio_menu_state=false` and no `sidebar_state`, still collapsed after a reload; at 390 px no docked menu until the toggle, then a 288 px drawer at the left edge. - Overlap check (`overlap-check.mjs`, final head): merges cleanly with main; textual conflicts with objectstack-ai#36973, objectstack-ai#36958 and objectstack-ai#36784 in `StudioDesignSurface.tsx` (and `metadataArea.ts` with objectstack-ai#36973), all in the header region this card replaces. Their code is not reshaped here. ### Wide (self-built app)  ### Collapsed (self-built app)  ### Narrow, 390 px drawer (self-built app)  ### Wide (HotCRM)  ### Collapsed (HotCRM)  ### Narrow, 390 px drawer (HotCRM)  ## Verification Read first, by risk: 1. `ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx`: the header and body row (menu mounted inside the provider), the `~all` branch, and the re-entry remount (`reenterPillar` plus its layout effect). 2. `ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts`: what each scope lists and where each entry goes; `studioMenuCurrentKey`. 3. `ui/packages/components/src/ui/sidebar.tsx` with `ui/scripts/shadcn-local-patches.mjs`: the `cookieName` prop and its declared patch. Two-minute check: open `/studio/PKG/data` for any package, click the toggle at the top-left, reload. Expected: the left menu stays hidden after the reload, and the app sidebar elsewhere in the console keeps its own state. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufziBCAytAzzCu3iPBFR --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…I draft gets the designers' notice and discard (objectstack-ai#37026) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBTuMGhLAZx29zwDrayDGZZF)_ Fixes objectstack-ai#36902 Clause-②: yes (widening) Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:管理员在 Studio 的通用详情页(钩子、选项集、视图等)改完点「保存」,改动立刻生效;不再有自动保存开关,也不用再点一次「发布」。 - 为什么做:Studio 重构专题里「通用详情保存即生效」这一项,让通用详情和各个设计器的保存方式一致。 - 出错会怎样:发布被拒时,页面上方写明原因,什么都不生效,页面上的修改保留可以再存;AI 留下的草稿保留并有提示,可以一键放弃;本改动可以直接撤回。 - 要你做什么:无 ## What changes Studio's generic item page (`ResourceEditPage`, every type without its own designer: hook, picklist, view, page, app, doc…) now saves the way the designers do (objectstack-ai#36511, epic decisions 1, 12, 14). 1. **Save = draft + this one item's publish.** Save writes the draft (`PUT /meta/:type/:name?mode=draft`, If-Match / If-None-Match pin and conflict dialog unchanged), then publishes that one item (`POST /meta/:type/:name/publish`) at the same `?package=` and bundle `member`. The publish is pinned to the published version the page loaded, through the existing `DraftSaveGuard.publish` (objectstack-ai#36601), so a Save over a row another editor published since opens the same conflict dialog (reload, overwrite, keep editing). The auto-save switch, its 1.5 s debounce and the `metadata-admin:autosave` browser setting are gone; the header's Publish and discard-draft buttons are gone. 2. **Create publishes after its first save** (If-None-Match `*`, then the publish). 3. **AI draft** (`draftChanges[].by` is `copilot` or `mcp`): the page shows the AI's version under the designers' `StudioAiDraftNotice`; a person's Save makes it live together with their edits; "Discard the AI's changes" drops that one item's draft at its package and member, and asks first (in the page's own dialog, objectui#13333) when the page holds unsaved edits. 4. **A person's pending draft** from before this change is marked "This item has unpublished changes" with its own Publish (pinned) and Discard for that one item. 5. **Leave guard**: ×, ‹ ›, the side menu, in-app links, reload and close ask first when the page holds unsaved edits; browser Back is not intercepted (decision 12). The seam was already in place (`chrome/unsavedEdits.ts`); this PR pins it on this page. 6. **A refused publish** shows its reason above the editor in the designers' words (`publishRefusal`, server text under Details). Nothing goes live; the draft the Save wrote is taken back when no draft was pending before, and the edits stay on the page, unsaved. A draft that was pending before (the AI's or a person's) is kept. 7. **`@object-ui/data-objectstack`: `MetadataClient.layered()` now forwards `overlayVersion`.** The client rebuilt its answer field by field and dropped it, so a publish pin read off `layered()` was always `null`. This is why the Save's publish could not be pinned; it also made the object page's objectstack-ai#36601 publish pin a no-op on a server that serves the field. Fixed in place (bounded fix: same defect class as the card's pin, mechanical, the file had no other claim, no new gate surface) and pinned in `metadata-client.layeredDraft-29793.test.ts`. **Clause-② yes (widening):** the published package's exported `MetadataLayered` type gains the optional member `overlayVersion?: string | null` (claim amendment on objectstack-ai#36902, 7137741670; L1-b (3) S1, 7137721696). New shared piece: `detailSaveAtOnce.ts` (`publishDetailSave`, `isAiDraft`). The designers' `publishSavedItem` (`studioSaveBar.tsx`) names no bundle member, so this page carries its own instead of changing that file. `StudioDesignSurface.tsx`, `DraftConflictDialog.tsx` and `studioSaveBar.tsx` are unchanged (reused as they are). ### How this relates to objectstack-ai#36726 and objectstack-ai#36350 - **objectstack-ai#36726** (open PR objectstack-ai#36958 pins the designers' publish): no shared files, either PR can land first. This card pins the generic page's own publish with the same objectstack-ai#36601 `DraftSaveGuard` API, used as it is on main. The `overlayVersion` client fix (item 7) is what makes a pin read off `layered()` effective at all, the object page's included. One sequencing item: objectstack-ai#36958 adds rule 9 to the guard (a reload over a draft that was pending before the Save keeps the conflict's pin until the author re-confirms), answered by a `beforeReload` that returns `'kept'`. On main that callback is typed to resolve to nothing (a void promise) and refuses that answer (tsc TS2345, measured), so it cannot be written here without editing `DraftConflictDialog.tsx`, which this card must not touch. Today this page is at parity with main's guard. Whichever PR lands second adds the one-line `beforeReload` for the `hadDraft` case in `publishDetailSave`. - **objectstack-ai#36350** (view-draft publish takes a draft-version precondition): left to objectstack-ai#36350. That is a change to the publish door (server / protocol), outside this card's boundary (Metadata-protocol: none). This page's publish is pinned on the published version, not on the draft version, so the window objectstack-ai#36350 describes (another writer's draft write between this Save's draft save and its publish, then published by this Save) is still open for views until objectstack-ai#36350 lands. When it does, the Save's publish can send the draft version it just received; the call site is `publishDetailSave`. ### Read first (by risk) 1. `ResourceEditPage.tsx` `doSave`: the draft save → `publishDetailSave` → refresh sequence, and the refused branch (take-back only when `hadDraft` is false). 2. `detailSaveAtOnce.ts`: the take-back on a refused or conflicted publish. 3. `metadata-client.ts` `layered()`: the two `overlayVersion` forwards. ### Two-minute check Open Studio → All metadata → any view, change its label, press Save. Expected: one `PUT …?mode=draft` and one `POST …/publish` in the network panel, the Unsaved chip clears, no "unpublished changes" line, and `GET /api/v1/meta/view/NAME` already serves the new label. ## Tests ### Acceptance run (the card's 验收 scenario, real browser, self-built stack) Backend `examples/app-showcase` (`objectstack dev --seed-admin --fresh`) and the console dev server, both built from this branch, on per-agent ports. The items are my own, authored into the showcase's customization package (`com.example.showcase.custom`): a hook, a shared option set (picklist) and two views. The backend ran with `OS_METADATA_WRITABLE=picklist`: the picklist type is not runtime-creatable by default (`NOT_CREATABLE`, its registry entry), so the option-set leg needs that operator setting. Each leg edits the label and presses Save once; the network log is the page's own requests. | Item | Before Save | Writes after Save | Live read after Save | |---|---|---|---| | hook `s36902_stamp_title` | chip `unsaved`, no request in 2.5 s | `PUT …?mode=draft&package=…custom` then `POST …/publish?package=…custom` (200) | new label served; no unpublished-changes line | | picklist `s36902_priority` | same | same pair (200) | same | | view `showcase_task.s36902_triage` | same | same pair (200) | same | <details><summary>Screenshots: hook, option set, view (unsaved, then saved and live)</summary>       </details> **AI draft.** Written through the real MCP door, not faked: an OAuth client (dynamic registration, PKCE, consent, `metadata:write`) called `save_metadata_draft` on `showcase_task.s36902_ai`; the draft read then carried `draftChanges: [{path: ["label"], by: "mcp", …}]`. - The page shows the AI's version under the notice (4). An edit then "Discard the AI's changes" asks in the page's own dialog (5); confirming sends one `DELETE …?state=draft&package=…custom`, the draft read answers 404 and the live version is back (6). - A second MCP draft, then an edit and Save: `PUT` draft + `POST …/publish` (200), the draft read answers 404, the live label is the AI's change plus the person's edit (7). - Leave guard: with an unsaved edit, × asked "You have unsaved changes. Leave this page anyway?", and Cancel stayed on the item. <details><summary>Screenshots: AI draft notice, discard, save</summary>     </details> Images: orphan branch `claude/issue-36902-screenshots` at `566b916`. ### Live e2e `LIVE_APP_URL=… LIVE_API_URL=… pnpm exec playwright test -c playwright.live.config.ts e2e/live/studio-detail-save-at-once.spec.ts e2e/live/studio-editor.spec.ts`: 3 passed (the new spec: no auto-save in 2.5 s, × asks, Save sends exactly `PUT` + `POST …/publish`, the live page has the added block, the draft read is 404, browser Back is not intercepted; `studio-editor.spec.ts`'s Add-block round trip now reads the published item after Save). ### Unit At head `09693db5c`, under the shared verify lock, one run: every test file under `metadata-admin/` plus every other ui test file that mentions publish, draft, auto-save or the detail page (338 files), then `type-check` (which compiles the test files too) of `@object-ui/data-objectstack`, `@object-ui/i18n` and `@object-ui/app-shell`. <details><summary>Readings</summary> ```text Test Files 338 passed (338) Tests 2918 passed (2918) packages/data-objectstack type-check: Done packages/i18n type-check: Done packages/app-shell type-check: Done os-verify-lock: VERDICT command-exit 0 ``` New: `ResourceEditPage.saveAtOnce-36902.test.tsx` (19 cases over the real `MetadataClient` and an in-memory server that honours If-Match / If-None-Match on the draft door and on the publish door: items 1–6, the leave guard on ×, ‹ ›, links, beforeunload, Back unguarded, create publishes, refused create). `metadata-client.layeredDraft-29793.test.ts` gains the `overlayVersion` forward on both answer shapes (served value, served null, absent). </details> ## Acceptance notes - 'Changes 1' in shots 1–3 is the AI draft of `showcase_task.s36902_ai`, written through MCP before the save leg for shots 4–7; it clears in shot 6 once that draft is discarded (not the hook: its Save sent `PUT ?mode=draft` then `POST /publish` 200). - Existing detail-page suites that waited out the auto-save or clicked the header's Publish / Discard draft now press Save and read the Save's own publish, or use the unpublished-changes line's buttons (14 files). Their doubles gained a publish that drains the draft, as the real door does; assertions that only held because a draft stayed pending after Save were rewritten to the live result. `layersUnsaved-11799`'s SAVE case now expects one `/layers` re-read: a Save publishes, so the item has a layer afterwards. - Leftover `localStorage.setItem('metadata-admin:autosave', '0')` lines in suites this PR does not otherwise touch are now no-ops; left as they are to keep the diff to the card. - The platform checklist step that says the ResourceEditPage draft auto-saves and is then published (`docs/qa/platform-checklist/areas/studio-authoring.json`, the page Add-block item) is now stale. carrier: objectstack-ai#36910 (the epic's checklist-and-docs card). - The designers' own auto-save (Data / Automations / Access pillars) is unchanged: out of this card. ## Verification <details><summary>Local gates (derived for this diff) and reconciliation</summary> - `node scripts/pm/dispatch-gates.mjs --commands`: 39 families. All 39 run locally: 38 exit 0 (`check:*` and the node scripts, re-run after the last code commit), and `pnpm --dir ui exec vitest run scripts/` under the lock at `c8a49c900` (the one later commit changes only a live e2e spec): `Test Files 172 passed | 2 skipped (174)`, VERDICT command-exit 0. - `node scripts/pm/dispatch-gates.mjs --ran FILE` (each line with its exit code): `39 derived famil(ies) accounted for — 39 run, 0 NOT-MEASURED (a DERIVED zero)`. - `node scripts/check-test-source-alias.mjs`: OK, 34 changed test files judged (the touched suites now load `@objectstack/lint` at collection, as the gate asks). - `node scripts/pm/overlap-check.mjs` before every push: `VERDICT clean exit 0` (shares only the i18n catalogues and `metadata-client.ts` with objectstack-ai#36983, objectstack-ai#36985, objectstack-ai#36784; each merges cleanly). - The rest of the farm (lint, the CI test shards, `test:repo`) is CI's; its check-runs are read on the PR. </details> Changed lines: 1,650 over 24 files (1,317 added, 333 removed), one PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufziBCAytAzzCu3iPBFR --> --------- Co-authored-by: Claude <noreply@anthropic.com>
… and items (objectstack-ai#37108) Fixes objectstack-ai#36900 Part of objectstack-ai#36890 Clause-②: no Metadata-protocol: none repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H ## 维护者速读 - 在 Studio 的任何设计页面(包括「全部元数据」跨包页)按 ⌘K / Ctrl+K,都能打开搜索面板:按左侧菜单的六组列出当前包的全部类型和每一项,选中即打开它的详情或设计器;页面上有没保存的修改时,会先问一句再走。 - 属于「Studio 重构」专题:去掉设计器左侧那一列后,作者靠 ×、‹ › 和 ⌘K 换到别的项;同时补回上一步左侧菜单改造时临时丢掉的跨包页 ⌘K。 - 出错时作者只是搜不到或打不开某一项,左侧菜单和列表照常可用;不动任何数据,直接撤回这次改动即可。 - 无。 ## What changes Head `7bbe1c54b`: 15 files, +1,679 / −92 against `main`, one PR for the card. REWORK round 1 (L1 7144125191) and its delta L1 ACCEPT (7147006586) are folded in below. `main` was merged in that round. **The command palette is mounted on every Studio design page.** `StudioDesignSurface` mounts it in its shell under its own `CommandPaletteProvider`, on a package's pillars and "All metadata" area, `~org` and `~all`. After objectstack-ai#36985 only the `/studio` landing had one, so `~all` had lost ⌘K (the hand-off's stated temporary regression); this restores it. A host that already mounts a palette above the surface keeps its own (`useCommandPaletteProviderMounted()`): the surface then mounts neither provider nor palette. - **What it lists on a package.** The left menu, group by group (`buildStudioMenu`, decision 11: Data, UI, Automation, Platform, Access, AI, under the menu's names). Each group holds the menu's own entries: each type's list, plus Organization flows, Default sharing, Diagnostics and Positions and permissions. Then come the items of every type the group lists, from the package and its `.custom` pair (ADR-0146 D3). - **Types.** The menu's own data, read once per page: `StudioMenuDataProvider` in the surface feeds both the menu and the palette (new `studioMenuData.ts`: the data hook, the context, the group icons and the entry names). The palette and the menu cannot disagree, and opening the palette re-reads neither types nor the diagnostics sweep. - **Items.** Each listed type's served list, read only while the palette is open, as its list page reads it (`include: listInclude`). The rows are kept by the list page's own rule (`scopeListRows`: the package, its pair, the type's list predicate) and named by the type's primary key. - **Customizations.** A customization item reads "Customization of PACKAGE NAME", never the pair's raw id. - **Other scopes.** On a package the palette no longer lists every package's objects and flows, because the package's own items replace them. The packages stay listed. `~org` and `~all` keep those lists and add their own menu entries. - **Where a pick opens.** Every address comes from `studioAddress.ts` (objectstack-ai#36895). An object, flow or permission set goes through `studioItemPath`, so it opens its designer today and follows each designer card's `STUDIO_ITEM_PILLAR` switch with no edit here. Any other item opens `studioMetadataItemAddress(…, ?package=OWNER)`, the address its list row links to (ADR-0048). A menu entry goes to the menu entry's own `to`. - **How it leaves (decision 12): through the shell's unsaved-edits seam (M1).** `openStudioPaletteAddress` handles another page through `confirmUnsavedLeave`. That seam holds the surface's own work and every editor that registered its own, the "All metadata" item page (`ResourceEditPage`) among them; the surface's own bit never saw that page's edits. The page already open on another query (Default sharing from the Access pillar) goes through `reenterPillar`. It asks, then remounts the pillar once the router shows the requested query (S5): the palette's own `?palette=` change comes first and no longer triggers it. The page already shown, palette keys aside, just closes the palette. - The surface's `confirmLeavePillar` now goes through the same seam, so its own header departures ask about the item page's edits too: Back to app, the retired-Interfaces notice, the other-pillar `requestSurface` and the Access opener. They had the same blind spot; it is closed here, and no defect card is owed. - **The palette stays free of Studio reads.** `CommandPalette`'s `studio` scope takes an optional `surface` (`packageScope`, `renderGroups`, `open`), documented in the app-shell README. The page draws its own groups (`StudioPaletteGroups`), so the Studio modules load with the Studio chunk, never with the console's eager closure. `@object-ui/app-shell` is private, so the new optional prop and exported types widen no published surface: `Clause-②: no`. - **N4.** `ResourceEditPage`'s fullscreen Escape now ignores an Escape a dialog above it already took (`defaultPrevented`, which Radix sets), so closing the palette over a fullscreen editor no longer also leaves fullscreen. - **Card item 1 (`advertisedShortcuts.ts`)** needs no edit. `CommandPaletteProvider` already advertises ⌘K (`useAdvertiseShortcut(OPEN_COMMAND_PALETTE_SHORTCUT)`), and it now runs on every design page. - **Card item 4 (objectstack-ai#35308)**: the studio scope searches no record, so it has no record title. Items are titled by their served metadata label, as their lists show them, and no second title rule exists. Files: - New: `studio-design/studioPaletteModel.ts` (pure: pair, items, addresses, groups, departure, `openStudioPaletteAddress`), `studio-design/StudioPaletteGroups.tsx` (reads and draws) and `studio-design/studioMenuData.ts` (the menu's shared data and vocabulary). - `StudioMenu.tsx`: it gains `StudioMenuDataProvider`, draws the shared data when a provider above holds it, and otherwise reads its own. - `StudioDesignSurface.tsx`: changes are in its shell region only: the providers, the palette mount, `confirmLeavePillar`, `reenterPillar` and `openFromPalette`. - `StudioRoute.tsx` is unchanged. No i18n key is added. - `e2e/studio-left-menu-36899.spec.ts` stubs the menu's reads where they now live. Read first, by risk: 1. `ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx`: `confirmLeavePillar` (now the seam), the `reenterPillar` latch, `openFromPalette` / `paletteSurface`, and the provider wrap. It is the only edit to a shared file beyond `StudioMenu.tsx`. 2. `ui/packages/app-shell/src/views/studio-design/studioPaletteModel.ts`: `openStudioPaletteAddress` and `studioPaletteItemsOf` over `scopeListRows`. 3. `ui/packages/app-shell/src/views/studio-design/studioMenuData.ts` with `StudioMenu.tsx`: the shared data and the menu's own-read fallback. ## Tests - `studioPaletteModel-36900.test.ts` (15 cases). It pins: - the pair; - items through `scopeListRows`: unwrapped, scoped, deduped and named by the primary key, with the list predicate applied; - pillar types following `studioItemPath` for every `STUDIO_ITEM_PILLAR` row, and other types on their area page with `?package=OWNER`; - the menu's six groups; - the leave / re-enter / stay decision; - M1 at the unit: with an editor registered, a leave asks its question (Cancel stays, OK goes), with a CONTROL that nothing registered asks nothing; re-entry hands the host the query to wait for. - `StudioPaletteGroups.surfaceScope-36900.test.tsx` (11 cases): the real `CommandPalette` + `CommandPaletteProvider` + `StudioMenuDataProvider` + `StudioPaletteGroups`, with the metadata reads doubled at the menu's own seam. It pins: - group headings and order, menu entries, and the package's and pair's items; - the list read's `include` and list predicate; - "Customization of" the package's name, with no `.custom` text shown; - no cross-package object or flow on a package; - addresses handed to `surface.open`, and matching; - "Searching…" then "No results", and a query typed before the lists answer: the arriving row is selected and Enter opens it; - no item list read until open, with its CONTROL; - `~all`. - `StudioDesignSurface.metadataArea-28561.test.tsx`: 7 new cases on the real surface. - Ctrl+K on a pillar, on `~all` and on a missing package. - **M1**: with the "All metadata" item page holding registered edits, a palette pick asks the page's question (Cancel keeps the page, OK leaves), and Back to app asks too. CONTROL: a clean page leaves at once. - **S5**: Default sharing picked on the real Access pillar shows the overview at `?surface=owd%3Aoverview`. - `ResourceEditPage.leaveGuard-13231.test.tsx` (2 new cases): **M1 on the real `ResourceEditPage`** with a dirty draft and the real palette leaving through `openStudioPaletteAddress`. Cancel keeps the page and the draft, OK leaves, and a CONTROL clean page leaves without asking. - `ResourceEditPage.detailTabs-36901.test.tsx` (1 new case): **N4**, an Escape a dialog took leaves the fullscreen and the page alone, with its CONTROL. <details><summary>Local readings, head 5e181ef / 7bbe1c5</summary> - Touched and related files at 5e181ef (new pins, StudioMenu, studioMenuModel, the address guard, all 16 `CommandPalette.*`, every console `StudioRoute*`): `Test Files 31 passed (31)`, `Tests 249 passed (249)`, lock `VERDICT command-exit 0`. 7bbe1c5 changes the e2e spec only. - All 83 `StudioDesignSurface.*.test.tsx` (at cf95fe5; later commits change no surface file): `Test Files 43 passed (43)`, `Tests 236 passed (236)` and `Test Files 40 passed (40)`, `Tests 217 passed (217)`. - `@object-ui/app-shell` `type-check` (both programs) and `type-check:e2e`: exit 0. `e2e/studio-left-menu-36899.spec.ts`, local: `3 passed`. - `pnpm --dir ui exec vitest run scripts/`: `Test Files 172 passed | 2 skipped (174)`. - Derived gate families (`dispatch-gates.mjs --commands`, 39): all exit 0 on the final tree; `--ran`: `39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN`. `check:new-line-citations` (ui): `0 new citation(s)`. eslint on the changed ui files: 0 errors, none in the new modules. - `overlap-check.mjs` before every push of the round: `VERDICT clean exit 0`. - CI at 7bbe1c5: 38 success, 13 expected skips, 0 failed. </details> <details><summary>Ablations (scripts/ablation-replace.mjs, each restored to HEAD: blob == HEAD, git diff HEAD empty)</summary> - A1, the seam dropped from the palette's leave (`confirmUnsavedLeave(() => act.navigate(to))` → `act.navigate(to)`): `Tests 3 failed | 33 passed`. The three M1 pins (real `ResourceEditPage`, surface, unit) go red. - A2, the seam dropped from `confirmLeavePillar`: `Tests 1 failed | 13 passed` (Back to app). - A3, the re-entry latch back to "the next query change": stays green (`14 passed`). Under test the palette's close and the navigation land in one render, so no pin tells the latch from the old trigger. The latch guards the ordering the code's own comment warns about: the router applying a navigation in a later render. - A4, a first-row selection added during the round: green in happy-dom and no effect live (a live probe with it removed). It was taken out again, so it is not on this head. - Round 0: the package-scope cross-package guard (`Tests 1 failed | 9 passed`) and the surface's palette mount (`Tests 3 failed | 7 passed`). </details> ## Acceptance notes - **Live walk-through, showcase leg: passed** (PR comment 7145761753). A real build, backend `--fresh`, and the Console dev server serving app-shell from `src` at this head, driven by headless Chromium as a person would. - One non-first item each of object, flow, permission set, hook and dashboard, found by label and opened at its list-row address with its label on the page. The object pick re-enters the Data page. - Ctrl+K on the cross-package catalog. - **M1** on a real item page with an unsaved edit: the pick asks once, Cancel keeps the page and the edit, Back to app asks, OK leaves. - **S5**: Default sharing from the Access page shows the overview. - **HotCRM leg: carried by objectstack-ai#36910** (the joint walk-through card); this container has no HotCRM stack. - N1: `MetadataQuickFind` on ⌘⇧M (`DirectoryPage`) is a second item finder beside ⌘K; a follow-up retires or routes it. - N2: each open of the palette on a package reads one item list per listed type (the menu's types and counts are shared and not re-read). The client shares only in-flight reads. Draft-only items are not listed. - N5: nothing inside Studio advertises ⌘K. Studio's own header draws no search trigger, and the help dialog that lists advertised shortcuts is mounted only inside apps. - N6: `useStudioMenuTypes` no longer memoizes `types`, and the provider value is a new object each render. The palette's reads key on the type names, so this costs re-renders only. - N7: while the package entry loads, the customization label briefly names the base package by its id. - N8: the changeset's English body carries the six group names in Chinese too, beside the English. - Walk observation: with zero delay between Escape and the next Ctrl+K (automated), a query typed before the lists answered left no row highlighted. With no earlier close, or with a 1 s gap, it worked every time measured. This is synthetic timing, not filed. - objectstack-ai#36784 (paused, pre-split) conflicts in `StudioDesignSurface.tsx` against `main` itself; this branch merges cleanly with `main` and objectstack-ai#37089. ## Verification Two minutes: open any package in Studio (`/studio/PKG/data`), press ⌘K (Ctrl+K), type part of a dashboard's or hook's name, and press Enter. The palette lists the six menu groups and the item; Enter opens `/studio/PKG/metadata/TYPE/NAME?package=OWNER`. Edit a field on that item page without saving, then pick another entry: the leave prompt appears first, and Cancel keeps the edit. <details><summary>Where to look in code</summary> - Leave path: `openStudioPaletteAddress` (model) and `confirmLeavePillar` / `reenterPillar` / `openFromPalette` (surface). - Groups: `StudioPaletteGroups` (reads) over `useStudioMenuData` and `buildStudioPaletteGroups` / `studioPaletteItemAddress` (pure). </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H)_ <!-- signed: repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…ddress, tabs in objectstack-ai#36513's order (objectstack-ai#37168) Fixes objectstack-ai#36904 Refs objectstack-ai#36513 (its section 一, the tab order, is delivered here; its section 二 was superseded by epic objectstack-ai#36890) Clause-②: no Metadata-protocol: none ## 维护者速读 - Studio 里点开一个对象,设计器在右侧整屏打开,有自己的地址;左上角 × 回对象列表,右上角 ‹ › 看上一个、下一个,设计器左边那一列对象列表没有了。 - 这是 Studio 改版专题里的对象设计器一张,也按之前定的把对象页签排成:记录、字段布局、验证、操作、设置、钩子、API。 - 出错时管理员会打不开或改不了对象(Studio 最常用的路径),旧链接也会落到对象列表;整张合并即可撤回。 - 这张约 4200 行(4,177 行),超过 3000 行:其中删掉的测试约 1700 行(六个整份删掉的测试文件约 1000 行,测的是左侧列表、页内新建、空包页面和实时请求,这些本卡都去掉了),改写和新增的测试约 1000 行,产品代码约 1400 行;需要您审核后合并。 ## What changes - **The object designer is full-screen on the object's address**, `/studio/PKG/metadata/object/NAME`, mounted by the "All metadata" area (`StudioMetadataArea`). The area decides it with the zone's shared designer-page helper from objectstack-ai#37089: `AREA_DESIGNER_PAGE_TYPES`, `areaItemOpensDesignerPage({ packageId, type })` and `areaDesignerItemOf(pathname, segment)`, which reads `new` as the create page, never an item. objectstack-ai#37089 landed first; this branch merged main, so the one list now holds both types, `['permission', 'object']`, and `AreaItemOpen` mounts the permission set's matrix or the object designer by type. For an object, the environment scope and `?review=1` keep the generic page, as the pillar did (`areaItemAsksGenericPage`, shared with `areaItemPillarPath`); the permission page keeps objectstack-ai#37089's behaviour and opens on any query. The header is the shared full-screen item header (`ResourceDetailHeader`): × back to the object list with the list's filter and sort, ‹ › through the list, Esc. No switcher, no "open in app" (epic decision 7). - **No left list, no in-page New.** `DataPillar` takes `objectName` and designs that one object: the object rail, its search and customization filter, the in-page 新建 dialog and the empty-package state are gone. Creating an object is the object list's 「新建」 (`MetadataListCreateDialog`, objectstack-ai#36897), which already has the OWD choice, the app-menu join and the read-only base's `.custom` landing; checked before deleting this copy. - **Tabs in objectstack-ai#36513's order**, verbatim: 记录、字段布局、验证、操作、设置、钩子、API (`objectDesignerTabs.ts`). Narrow columns fold Hooks and API into "Advanced" first (below 1200px), then the other three (below 1000px); each trigger's menu lists only what is folded at its width (`dataTabsFold.ts`). The five header icons became tabs through the shared `ItemToolTabs` (hand-off brief): References, History (audit log inside), Source (layers inside). The open tab is `?tab=` in the address, carried by ‹ ›. - **The address switch.** `object` leaves `STUDIO_ITEM_PILLAR`, so every `studioItemPath` producer opens the new address: the app's 「对象设置」 (`appStudioObjectPath`), the record page's 「配置页面」 (`recordTabsStudioPath`), ⌘K, the AI artifact link, and the switched-off action link (`?action=NAME` on the new address). `/studio/PKG/data` redirects (`dataPillarRedirect`): with `?surface=object:NAME` to that object's designer (`?action=` kept; `?view=`, `?nav=` dropped), otherwise to the object list (`?changes=review`, the server's draft-review link, kept). A `.custom` pair's old address lands on the pair's own area. An object request from the Changes sheet navigates to the object's address in the package that holds the draft (`draftScope`: on a read-only base, its `.custom` pair). - **`AreaHistoryRedirect`:** objects no longer take the designer-item exemption (`/metadata/object/NAME/history` opens the designer's History tab). The line itself stays for flows until objectstack-ai#36903; removing it now would send a flow's history to the flow pillar and lose it. - Kept as the card asks: the copilot's 「对象 · 页签」 chip and the AI-change line. The copilot read the open item only from `?surface=`, which the new address does not carry, so it now also reads it from the designer's address (`areaDesignerItemOf`, as objectstack-ai#37089 does). - Fixed on the way: a partly refused AI-drafts discard kept its message for one render only (the object re-read the discard triggers cleared `error`); it is now its own state. The retired-Interfaces notice is latched on the landing path, not the pillar, since the home is the area's object list now. ### This rework round (L1 7149684173) - **M1:** the rail-switch suite's four cases are carried onto the designer's × and › on the real surface (`StudioDesignSurface.heldDataLeave-26705`, new top-level describe): an unsaved edit that is not held asks on › and ×; an edit whose Save was refused asks; a saved edit leaves without asking; nothing pending leaves at once and sends nothing. - **S2:** the Changes-sheet object link uses `draftScope ?? packageId` (`StudioDesignSurface.tsx`), pinned in `heldDataCreate-26845` (a read-only base with a listed pair lands on the pair's address). - **S3:** `/metadata/object/X/history` opens the designer on History (`StudioMetadataArea.routes-28561`); `?tab=hooks` and `?tab=history` open those tabs, `?tab=nonsense` opens Records (`DataPillar.flatTabs-12450`). - **S4:** `copilotChangesLine-34725` asserts the partly-refused discard's message is still on screen after the object re-read. - **S5:** metadata-address cases in `studioSurfaceContext` (the object, its history address, and the create page, the list and a generic item naming nothing) and `studioSurfaceLabel-8219` (the chip shows the label only for the object the address names). - **S6:** `ui/packages/app-shell/README.md` sends an object to its designer's address; the changeset is rewritten in user terms. - **S7:** `areaItemOpensObjectDesigner` and `metadataAddressArtifact` are replaced by objectstack-ai#37089's helper (above); after objectstack-ai#37089 landed, main is merged and the list holds both types. - **N8, found on the browser walk:** an address naming no object offered it as an "Unpublished new object"; it now says "Object not found" (`objMissing`, `DataPillar.tsx`; pinned in `draftOnlyNoLayers-12508`). - **Added by seat a4-S:** the object create publishes pinned (`publishCreated`, `If-None-Match: *`), as the flow create does, so an object another writer published under the name since the check is refused, not replaced. Pinned in `MetadataListCreateDialog.pairCreate-36897`, with the in-package taken notice and its Open. - **N2, N3, N4:** stale comments corrected (`SidebarItemMenu.tsx`, `studioAddressTable.ts`, `studioInterfacesRetired.ts`, the header-label comment in `DataPillar.tsx`, which now says what the code does: the draft's label when there is one); two controls carried over (a package with no namespace previews and saves the bare identifier, in `MetadataListCreateDialog.pairCreate-36897`; a label-less draft-only object is titled by its name, in `DataPillar.draftOnlyNoLayers-12508`). **N7:** `areaDesignerItemOf` reads `/metadata/object/new` as the create page. ## Tests - New: `objectDesignerTabs.test.ts` (order word for word, address round trip, tool tabs, values that open nothing); `metadataArea.test.ts` (the designer-page helper, `dataPillarRedirect`, `areaDesignerItemOf`); `DataPillar.flatTabs-12450` rewritten for the ruled order, the two-step fold and `?tab=`. - Rehosted on the list dialog (the create's home now): the OWD default, the stored-name preview (with and without a namespace) and the taken-identifier refusal into `MetadataListCreateDialog.pairCreate-36897`; the app-menu join suite, the OWD select, the labels and the taken-identifier object block onto `MetadataListCreateDialog`. - Converted: about 60 designer and surface suites now open the object on its address (`objectName`, area routes). - Deleted, behaviour removed by this card, each with the pin that remains: `StudioDesignSurface.emptyPackage` (no in-page empty state), `StudioDesignSurface.createObjectOwd` (duplicated in `MetadataListCreateDialog.pairCreate-36897`: chosen and default `sharingModel`, `mode: 'draft'`), `DataPillar.railSwitchFlush-27511` (its four cases now on the designer's × and ›, `heldDataLeave-26705`), `DataPillar.surfaceRequest` (the pillar's own live-request apply; the surface's navigation is pinned in `heldDataCreate-26845`), `DataPillar.draftObjectLabel-11843` (the rail's label read; the header's label is pinned in `draftOnlyNoLayers-12508`, both the labelled and the label-less draft), `StudioDesignSurface.aiApplyRefresh` (the rail growing on the pulse); and the rail-only cases inside `autosaveSwitch-11232`, `celGate`, `actionDeepLink-34724`, `heldDataLeave-26705` (the rail switch case became × back to the list), `StudioRail.noMatches-26733` (Data rail), `oneSurface-28572` (pair rows on the rail). <details><summary>Local runs at a9e7bb7, the CI follow-up at 562d068, the main merges at 046762e and 64a5a2d, and the seat's additions at d09f2b3 / 2bf127d</summary> **Main merge after objectstack-ai#37185, `64a5a2d7`:** app-shell closure rebuilt (VERDICT exit 0); app-shell type-check 0 `error TS` (VERDICT exit 0); every app-shell suite naming the designer, the area, the copilot, the menu model, the permission page, the access redirect or the create dialog, plus every app-shell test objectstack-ai#37185 touched (359 files): `Test Files 359 passed (359)`, `Tests 3237 passed (3237)`, VERDICT exit 0. `dispatch-gates --commands` (39 families) all exit 0; `--ran` "39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN". Declared narrowing: `pnpm --dir ui exec vitest run scripts/` was killed by the container's memory limit at the default worker count (twice, once with nothing else running), so it ran with `--maxWorkers=2`: `Test Files 172 passed | 2 skipped (174)`, exit 0; CI runs it at its own width. `check:test-source-alias` exit 0; overlap-check: origin/main merges cleanly. **Seat additions, `d09f2b31` (code) and `2bf127d4` (changeset wording):** the create dialog's suites plus the create-adjacent surface suites (8 files): `Test Files 8 passed (8)`, `Tests 67 passed (67)`, VERDICT exit 0; app-shell type-check 0 `error TS` (VERDICT exit 0); eslint 0 errors, no warning on an added line; `check:test-source-alias`, `check:nul-bytes`, `check:cross-package-test-inputs` and `check-empty-changeset` exit 0; overlap-check: origin/main `0a1b69c0` merges cleanly. **CI at the head, `64a5a2d7`:** 62 check-runs, 47 success, 15 skipped, 0 failed. **CI at `2bf127d4`:** the same, 45 success, 13 skipped, 0 failed. **CI at `046762e5`:** 58 check-runs, 45 success, 13 skipped, 0 failed (Test UI, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Test Core, Dogfood Regression Gate, Governed Surface Queue Guard, Check Changeset, Check PR Size among the successes). **Main merge, `046762e5`** (after objectstack-ai#37089 landed; 139 files, +1,601 / −2,489 = 4,090 changed lines against the new merge base): `pnpm install`, then the app-shell dependency closure rebuilt (lock VERDICT command-exit 0); app-shell type-check 0 `error TS` (VERDICT exit 0); every app-shell suite naming the designer, the area, the copilot, the menu model, the permission page or the access redirect (258 files): `Test Files 258 passed (258)`, `Tests 2237 passed (2237)`, VERDICT exit 0; `dispatch-gates --commands` (39 families) all exit 0, `--ran` "39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN" (a derived zero); overlap-check: origin/main `8b74082f` merges cleanly. Tree of `a9e7bb72` = tree of the tested commit `3b4d4722` (`79415e13`, compared byte for byte; the commits were reworded for the trailer rule before the push, no file changed). CI follow-up, `562d0689`: Test UI (5/16) failed at `a9e7bb72` on `objectDesignerTabs.test.ts`'s order pin (this card's own test, unchanged this round): the studio namespace fetches its zh catalogue on demand, so in a worker where no earlier suite had loaded it, `t(key, 'zh-CN')` answered English. Reproduced locally by running the file alone (1 failed); fixed with the module-top `await loadStudioCatalogue('zh')` other suites use (alone: 4 passed); app-shell type-check 0 `error TS` (VERDICT exit 0); `check:test-source-alias` exit 0; overlap-check: origin/main merges cleanly. - The suites this round edits (10 files): `Test Files 10 passed (10)`, `Tests 103 passed (103)`, lock VERDICT command-exit 0 (before the not-found fix; its suite is in the broad run below). - Every app-shell suite naming `DataPillar`, `StudioDesignSurface`, `StudioMetadataArea`, `StudioAiCopilot`, `metadataArea` or a `metadata/object` address (259 files): `Test Files 259 passed (259)`, `Tests 2211 passed (2211)`, lock VERDICT command-exit 0. - `@object-ui/app-shell` type-check (src `tsc --noEmit`, then `tsconfig.test.json`): 0 `error TS`, lock VERDICT command-exit 0. eslint `--no-inline-config` on the edited files: 0 errors (40 warnings, none in a line this round added). - `dispatch-gates --commands` (39 families): all 39 exit 0; `--ran` reconciliation: "39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN", a derived zero. Re-run at `3b4d4722` after the last commits: `check:test-source-alias`, `check:cross-package-test-inputs`, `check:nul-bytes`, `check-empty-changeset`, `check-changeset-no-major`, each exit 0. - `overlap-check` before the push: origin/main merges cleanly; the sibling drafts conflict textually (Acceptance notes). Ablations, each through `scripts/ablation-replace.mjs` on committed code, restored, `git diff HEAD` empty after (the app-shell suites import the source, so no build leg): | Mutation | Turned red | |---|---| | `unsavedPillarWork` without `saveBar.dirty` (M1) | 3 of the 5 new departure cases (› and × over an unsaved edit, the refused Save); the saved-edit and nothing-pending controls stayed green | | the Changes link back on `packageId` (S2) | the read-only base's pair-address case | | objects back on the history exemption (S3) | the object history-address case | | the designer tab not seeded from `?tab=` (S3) | `?tab=hooks` and `?tab=history` | | the discard refusal back on `error` (S4) | the partly refused discard case | | the copilot's address read removed (S5) | the address cases in both copilot suites (3) | | `objMissing` always false (N8) | the not-found case | | the object create's `publishCreated` dropped (`d09f2b31`) | the pinned-publish case and the pair-create case's call shape | | the taken holder never this package (`d09f2b31`) | the in-package notice-and-Open case (a first attempt was refused by the tool as a replacement it could not count, so nothing ran; re-run with a countable replacement) | </details> ## Acceptance notes - **S8, fixed (added by seat a4-S from the objectstack-ai#37169 L1, 7152310574):** the list dialog's taken-name notice tells the two cases apart. When the package the create writes to holds the object, it reads `engine.studio.data.createTaken` (read again) and offers 「打开」, which opens that object's designer (`studioItemPath`). When the holder is elsewhere, it keeps `createTakenElsewhere` and offers no Open. The `onOpenExisting` prop has the same shape as objectstack-ai#37169's flow side. - **i18n keys:** the released `@object-ui/i18n@18.6.0` keys this PR leaves unread are kept (the optional drop from ruling 7153326968 is not taken). `Clause-②` stays `no`. - **Header shows the machine name beside the label (N4):** the designer's header is the shared full-screen item header, which shows the API name beside the label, as every Studio item page does; objectstack-ai#34794 kept it in the tooltip on the old pillar header. Kept, for one header across Studio's item pages. - **N1, for objectstack-ai#36909:** `useRequestedSurface` has no product reader left after this card; objectstack-ai#36909 (route and remnant deletion) removes it with the pillar routes. - **N2, for objectstack-ai#36909:** the retired-Interfaces redirect goes `/interfaces` → `/data` → the object list, two hops; the hop through `/data` goes when objectstack-ai#36909 retires `STUDIO_HOME_PILLAR` and the pillar routes. Only the stale comments are fixed here. - **N8, fixed:** the browser walk showed that an address naming no object did not show a refusal strip but offered the name as an "Unpublished new object" to design. It now says "Object not found" (an existing `@object-ui/i18n` string, `engine.form.objectNotFound`) under the header, whose × goes back to the list. - **For objectstack-ai#36903:** `AreaHistoryRedirect`'s designer-item exemption line now serves flows only; objectstack-ai#36903 deletes it when the flow designer moves. - **Old base address of a pair's object:** `/studio/BASE/data?surface=object:PAIR_OBJECT` (what the retired rail mirrored for an object the `.custom` pair adds) now redirects to the base's area, where that name does not resolve; the pair's own address works, and the object list and the Changes sheet link pair objects to it. - **Paused objectstack-ai#36784** (public forms, now closed): it conflicted textually with this branch on `StudioDesignSurface.tsx`, the Data pillar mount removed here. - **Main merged after objectstack-ai#37089 (objectstack-ai#36905, the permission designer) landed:** 15 files conflicted, all resolved toward both designers (the shared list, the area's mount by type, the copilot comment, the menu model's named designer types, the sharing overview's route beside the object designer's reports, and the test files' collection-time imports and pillar lists). **Main merged again after objectstack-ai#37185 landed** (`64a5a2d7`): two conflicts, each resolved by hand. `StudioDesignSurface.entryReadsOnce-11797.test.tsx` and `StudioDesignSurface.itemDraftLine-12725.test.tsx` both kept the collection-time `@object-ui/plugin-detail` import; only main's explanatory comment beside it differed, and main's comment was taken. `StudioDesignSurface.readOnlyPosture-12453.test.tsx` auto-merged and keeps both sides: this PR's designer address in `PILLARS` and objectstack-ai#37185's header-carrying fetch doubles. Sibling drafts objectstack-ai#37169 (objectstack-ai#36903, flow designer) and objectstack-ai#37166 still conflict textually; whichever lands later merges main. - Size: over 3,000 changed lines, Tier H by size (maintainer ruling recorded on epic objectstack-ai#36890, comment 7145880574). ## Verification Read first (risk order): `views/studio-design/DataPillar.tsx` (the removed rail and create, the header and tab block), `views/studio-design/StudioMetadataArea.tsx` + `metadataArea.ts` (the mount, the designer-page helper and `dataPillarRedirect`), `views/studio-design/StudioDesignSurface.tsx` (the `/data` redirect, `requestSurface` and `unsavedPillarWork`). Two-minute check: on the showcase app, open an app's 「对象设置」. Expected: the URL is `/studio/PKG/metadata/object/NAME`, the designer fills the right pane with no object column, the tabs read 记录、字段布局、验证、操作、设置、钩子、API、被引用、历史、源码; › opens the next object on the same tab; × returns to the object list. ### Browser walk (rework S1), showcase Run at `a9e7bb72` on a live stack: the showcase backend (`objectstack dev --seed-admin`, its own port and database, closure built at this head) with the Console's dev server from this branch's `ui/` source, Chromium through Playwright, signed in as the seeded admin. In this boot `com.example.showcase` is a read-only package, so the walk also covers the `.custom` pair. Every step below passed unless it says otherwise. | Step | What was done | What the browser showed | |---|---|---| | 1 | Object list, click the Account row | `/studio/com.example.showcase/metadata/object/showcase_account?package=…`; the designer fills the right pane beside the left menu, no object column; tab row Records, Field layout, Validations, Actions, Settings, (Hooks, API folded into Advanced at this width), Referenced by, History, Source; ‹ 1 / 24 › | | 2 | Advanced → Hooks, then › | `?tab=hooks`; › opened `showcase_announcement` on the same tab, `2 / 24` | | 3 | History tab | `?tab=history`, the History panel | | 4 | × | back to `/studio/com.example.showcase/metadata/object?package=…` | | 5 | Old link `/studio/PKG/data?surface=object:showcase_account&view=x&action=nope` | `/metadata/object/showcase_account?action=nope&package=…&tab=actions` (`view` dropped) | | 6 | Old home `/studio/PKG/data` | the object list | | 7 | `/metadata/object/showcase_account/history` | the designer on `?tab=history` | | 8 | Field layout → Add field "Walk Probe" (unsaved), then × | the native question "You have unsaved changes. Leave this page anyway?"; dismissed, the designer and the top bar's Save stayed. The walk's next page load was then held by the browser's leave prompt (first run: the navigation aborted while that prompt was dismissed) | | 9 | The running app's Accounts list → ⋮ → Object settings | `/studio/com.example.showcase/metadata/object/showcase_account?package=…`, the designer | | 10 | Object list → 新建 "Walk Gadget" on the read-only package | created in the pair: `/studio/com.example.showcase.custom/metadata/object/showcase_custom_walk_gadget?package=com.example.showcase.custom`, the designer open on it | | 11 | `/metadata/object/no_such_object_36904` | **first run: "Unpublished new object", offered as a new object to design.** Fixed in this round (`objMissing` in `DataPillar.tsx`, pin in `draftOnlyNoLayers-12508`); re-run: "Object not found" with the name, × in the header | | 12 | Viewport 1100px | Validations, Actions and Settings fold too: Records, Field layout, Advanced, Referenced by, History, Source | Console: 36 `Failed to load resource` errors over the whole walk; the five read were a 401 (before sign-in) and 404s. Not traced one by one, and nothing on screen failed. **HotCRM: NOT MEASURED.** Reason: this session's GitHub access is scoped to `objectstack-ai/objectstack`, so the HotCRM app (its own repository) cannot be cloned and booted here. The HotCRM leg the card names carries to objectstack-ai#36910 (the end-to-end walk-through card) as NOT MEASURED, with this reason. --- _Generated by [Claude Code](https://claude.ai/code/session_01QSeKYoFqGdRM9Qmg7M2o2B)_ <!-- signed: repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…tstack-ai#38484) Part of objectstack-ai#37087 Clause-②: yes Metadata-protocol: none Skills-docs: none — no metadata an author writes changes; the console reads and writes the `form` type card ② added. ## 维护者速读 - 用户能看到什么变化:Setup 的公开表单页看起来不变,只是改读改写表单类型;在 Studio 里打开一个表单(地址 `…/metadata/form/表单名`)就是表单设计器,能改字段、必填、分组、标题、地址和提交后的提示,存草稿再发布;控制台自己的表单页改读表单类型。表单类型暂不进 Studio 菜单(下一张 PR)。 - 为什么做:ADR-0159 把表单独立成 `form` 元数据,控制台要改读改写它,后面才能退役开发者页的公开表单页。 - 出错会怎样:最坏是某个表单在 Setup 里开关失败、或在 Studio 里存不上;设计器没有开关,保存和发布都按当时存着的开关写回,所以不会把 Setup 关掉的表单重新打开;匿名打开和提交不经这张 PR 的代码;可整体撤回。 - 要你做什么:契约审核(L2)未完成,先不用批;审核通过后席位会附审核记录请你批。 ## What changes ADR-0159 D9 for the console, card ③ PR 1 of 2 (the seat's claim 7248756424, amendment 7248849494). Every console surface here reads and writes the `form` type; the server's projection (ADR-0159 D5, completed by objectstack-ai#38453) serves an old-shape form there too. 1. **Setup → Configuration → Public forms** (`ui/packages/app-shell/src/views/setup/`): the list read is `GET /meta/form`; the row reader takes the `form` item itself (no `viewKind` filter, no `config` hop). The two layered reads, the save paths, the reset and the override save name `form`. A switch saves `authorableForm(effective)` with `sharing.enabled` set: the read's `_` keys and the old shape's `data` are left out, since `FormSchema` refuses `data`. The shipped-off judgement reads the app's own document from the `form` layered read's `code` with the spec's `formExplicitlyWithdraws` (ADR-0159 D6 rule 6). A row whose app document cannot be read (`code: null`) is shown as status unknown and offers no switch. 2. **The objectstack-ai#36784 designer becomes the `form` editor** (`studio-design/publicForm/`): `publicFormDesign.ts` reads and writes the top-level body. `PublicFormsDesigner.tsx` now holds `FormItemEditor`, which edits one form, and `FormItemPage`, registered as the `form` type's `EditPage` and `CreatePage`. It has no switch: `storedNow` reads `sharing.enabled` and `sharing.allowAnonymous` again at every save and publish, and a draft whose sharing differs is saved again before it is published. A form an installed app ships is saved as a declared override in the app's `.custom` pair. A form with no public link (one an action opens) is edited without an address. The new-name and address checks read the effective `form` list plus `form` drafts. The designer's own list and the Form-tab switch from objectstack-ai#36784 are not carried over. 3. **List columns and registration** (`formListColumns.tsx`; the `form` resource is registered in `services/builtinComponents.tsx` beside the other lazy editor pages, so `metadata-admin/registry.ts` stays free of side effects): name (shows `title` when there is no `label`), label, object, public address and status. `/meta/types` serves no list layout for `form`, so these are the client's own `listColumns`. `form` stays out of Studio's menu. 4. **`FormPage`** (`ui/apps/console/src/components/FormPage.tsx`): the internal route reads `GET /api/v1/meta/form/NAME`. The anonymous route is unchanged. 5. **Strings**: new `engine.studio.publicForms.*` and `engine.list.col.publicAddress` / `publicState` keys in `./namespaces/studio` (en, zh). This PR removes no key. Outside the claimed file surface (reported to the seat): - `ui/packages/app-shell/src/views/studio-design/StudioMetadataArea.tsx`: one branch, so that a `form` item in a package's Studio area opens `FormItemPage` with the area's `customization`, `publishNonce` and `onDraftSaved`. Only the area's surface holds a read-only base's customization. Without it, an installed app's form could not be saved as its override. - `ui/packages/app-shell/src/services/builtinComponents.tsx`: the `form` resource's registration (`listColumns`, lazy `EditPage` / `CreatePage`). The claim named `metadata-admin/registry.ts`, but a registration there makes that module side-effectful and `check-side-effects-array` refuses it; every other editor page registers here. - `ui/packages/app-shell/src/views/runtime-metadata-persistence.ts`: `RuntimeArtifactType` gains `'form'`, and a `form` save invalidates the view caches the way a `view` save does, because Setup's switch goes through `saveAndPublishInPackage('form', …)`. Read first (by risk): 1. `studio-design/publicForm/PublicFormsDesigner.tsx`, `storedNow`, `save` and `publish`: the no-switch rule. 2. `setup/publicForms.ts`, `switchPublicForm` / `authorableForm` / `markShippedOff`: the body a switch writes over an old-shape form. 3. `studio-design/publicForm/publicFormDesign.ts`, `publicFormItemOf`: what is kept, and what is dropped (`data`, `viewKind`, `config`, `_` keys). ## Tests - `publicFormDesign.test.ts` (29): the top-level body both ways; a new form passes `FormSchema.safeParse`; an old-shape projected item is written back without `data` or `_formDefinedIn`; sharing is written as read (off stays off, an unchanged address keeps the stored `publicLink`, a changed one becomes `/forms/SLUG`); a form with no public link; `isPublicFormItem`. - `PublicFormsDesigner.test.tsx` (14, the objectstack-ai#36784 tests re-pointed to the `form` shape): create, taken address and name, delete, the no-switch rule at save and at publish, the publish re-save of a draft whose sharing differs, reads that fail, a form with no public link, an old-shape save without `data`. Every write is asserted as type `form` with a body `FormSchema` accepts. - `setup/publicForms.test.ts`, `PublicFormsSetupPage.test.tsx`: the list read and both layered reads are `form`; the shipped-off judgement from the `form` layered `code`; a row whose app document cannot be read is status unknown with no switch; a switch over an old-shape row writes no `data`. - `FormPage.*` (about 30 files): the internal route reads `/meta/form/NAME`; the fixtures moved to the top-level body. - `PublicFormsDesigner.test.tsx` (+2, head `48a01c7ff7`, L2 S2): "shows the server's address refusal its own check missed (409 FORM_ADDRESS_TAKEN) as the address clash, at save and at publish" and "CONTROL: shows any other 409 as a pending draft". Ablation (the `FORM_ADDRESS_TAKEN` branch deleted): 1 failed, 15 passed, the failure is the address case (received the pending-draft sentence), the CONTROL stayed green; restored to the HEAD blob. - `FormPage.recordObject.test.tsx` (+1, L2 S3): "Log Time on a task: /meta/form/NAME is read, the form renders the record, and the submit writes it". The real `ActionRunner` runs `{type:'form', target:'showcase_task.edit'}` with record 42; FormPage reads exactly one `/api/v1/meta/form/showcase_task.edit` and no `/meta/view`, renders the record and PATCHes `/data/showcase_task/42`. ## Acceptance notes - Setup's address-clash refusal (`409 FORM_ADDRESS_TAKEN`) still shows one sentence that does not name the form holding the address: naming it needs a new key in all 11 locale files, outside this surface. Carrier: PR 2 of objectstack-ai#37087, under claim amendment 7251711074 (card item 1, "shows the refusal with both names"; L2 S1, L1 R2). - A form an action opens: checked live on head `48a01c7ff7` and pinned by a test (see Verification, L2 S3). - This PR removes no translation key, so the removed-key probe is owed by PR 2. ## Remaining `formViews` / `viewKind: 'form'` hits under `ui/` Docblocks only in `FormPage.tsx`, `recordFormNavigation.ts`, `SchemaForm.tsx`, `clientValidation.ts`, `registry.ts`, `view-item-normalize.ts`, `freeze-schema.ts` and `imported-defaults.ts`; the view editor's own form arm (`anchors.ts`, `ViewPreview.tsx`, `view-item-normalize.ts`), which still edits a `view`; `MetadataProvider.tsx`, kept on purpose for packages that still ship forms in `views:`; and the developer `PublicFormsPage`, which PR 2 retires. ## Verification - Tests on head 83c51d8: app-shell `ConditionWidget.conditionScope`, `studio-design/publicForm`, `StudioMetadataArea.*`, `views/setup` and `runtime-metadata-persistence.*`: 35 files, 458 passed. An earlier run of all of `views/metadata-admin`, `views/studio-design` and `views/setup` was red only on the conditionScope exhaustiveness check, while `form` was registered in `registry.ts`; moving the registration fixed it (the targeted run above). Also `packages/i18n` plus the console's `src/components` and the two form-page tests in `src/__tests__`: 173 files, 2618 passed, 13 skipped. - Type checks: `@object-ui/console` `type-check` exit 0 (after building its dependencies). - Gates: `dispatch-gates --commands` derived 28 families, each run and recorded; `--ran` reconciles 28 derived, 28 run, 0 NOT-MEASURED. `pnpm --dir ui exec vitest run scripts/` was killed by memory (SIGKILL, exit 1) while a build ran beside it; run again alone it exits 0, recorded as an extra line. - Dogfood (`examples/app-showcase`, `objectstack dev`, console dev server, signed in as the seeded admin): - Setup lists both showcase forms as `form` items, both on. Switching Contact off makes `GET /forms/contact-us` and its submit answer 404; switching it on again answers 200. - Studio opens the old-shape `showcase_inquiry.contact` at `/studio/com.example.showcase/metadata/form/showcase_inquiry.contact`. Removing `message` is refused (the object requires it). Adding `source` as required, removing `company` and retitling, then save and publish: the anonymous form serves the new title and fields, a submit without `source` answers `400 VALIDATION_FAILED`, with it `201`. - Off in Setup, then edited and published in Studio: the form stays off (404) and Setup still shows it off. Switched on again, it serves the newest title. - New form: the title Contact us is refused because its address is taken (confirm disabled); Demo signup is created in the app's `.custom` pair, published, and opens and accepts a submit (`201`). - Studio's `form` list shows the label/title, name, object, address and status columns. - Screenshots: `/mnt/project-files/card-37087/pr1-dogfood/` (seat 3's project files). - Patch round, head `48a01c7ff7` (L2 S2 and S3; the designer's 409 mapping, two tests, one changeset sentence): `PublicFormsDesigner.test.tsx`, `publicFormDesign.test.ts` and `FormPage.recordObject.test.tsx` 3 files, 55 passed; `@object-ui/app-shell` and `@object-ui/console` `type-check` exit 0; `pnpm --dir ui exec vitest run scripts/` 172 passed, 2 skipped. The server's refusal (`formAddressClashRefusal`, `packages/metadata-protocol/src/protocol-form-writes.ts`) carries status 409 and code `FORM_ADDRESS_TAKEN` and names the holder only in its prose, so the editor maps the code to the shipped `addressTaken` key (no structured holder for `addressTakenBy`; no key added). - Live check of a form an action opens (head `48a01c7ff7`, `examples/app-showcase`): on task "Build homepage", the header action Log Time (`showcase_log_time`, type `form`, target `showcase_task.form`) navigates to `/apps/com.example.showcase/forms/showcase_task.form?recordId=…&recordObject=showcase_task`; `GET /api/v1/meta/form/showcase_task.form` answers 200 and no `/meta/view/NAME` is read; the form renders prefilled; Submit sends `PATCH /api/v1/data/showcase_task/…` 200 and the record reads the new title. Screenshots and the network log: `/mnt/project-files/card-37087/pr1-dogfood/s3-*.png`, `s3-network.json`; the live 409 envelope: `s2-envelope-probe.txt` (project files of the seat 5 project). - Dogfood battery (`pnpm --filter @objectstack/dogfood test` under os-verify-lock, closure built as CI does, no shard, no path): head `d5581291b6` · VERDICT exit 0 · Test Files 495 passed, 3 skipped (498) · Tests 4183 passed, 68 skipped (4251) · failures: none. The head moved since by the patch round's four `ui/` files and the changeset only; none is in the dogfood closure. ## Ablation of the no-switch rule (L1-b R1, card Done-when "ablate: build the designer's save from the base's body") Measured at head `d5581291b6`, in a throwaway detached worktree, through `scripts/ablation-replace.mjs` (HEAD-blob restore with hash check), from the `ui/` root under os-verify-lock: `pnpm exec vitest run --maxWorkers=2 --reporter=verbose packages/app-shell/src/views/studio-design/publicForm/PublicFormsDesigner.test.tsx packages/app-shell/src/views/studio-design/publicForm/publicFormDesign.test.ts`. - Ablation (one line, `PublicFormsDesigner.tsx`, the single point where both `save` and `publish` read the sharing through `storedNow`): the sharing is taken from the body as it was opened, `form.base.sharing`, before the effective, draft and code layers. - Baseline: 2 files passed, 43/43 tests (14 + 29). - Ablated: 2 failed, 41 passed. Red: - "has no switch: saves and publishes the form's sharing as it is stored at that time, not as it was when the form was opened" (`PublicFormsDesigner.test.tsx:376`, `expected true to be false` on `sharing.enabled`; the save leg); - "publishes an installed app's form with the switch as stored at the app, after it was switched off" (`PublicFormsDesigner.test.tsx:425`, the publish-time re-save carrying the switched-off sharing never happened; the publish leg). - `publicFormDesign.test.ts` stayed 29/29, as expected (`publicFormItemOf` writes whatever sharing it is handed). - Restored: blob `0e7cb3887b` equals HEAD, `git diff HEAD` empty, 43/43 green again. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L9qibxQiu6MyZ2ngLJtA5Y <!-- signed: repo:objectstack#5 · os-project-manager · session_01FEkQ5nBh856nLqWBYMy29u --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Warren · project thread
Fixes #36444. This PR is the card's Studio = design half (ruling items 1–5 of #36444 (comment)). The Settings = operations half landed in #36697. It also carries #36697's round-3 follow-ups N9, N10 and N12 (record 7113373743).
Clause-②: yes (widening) — new Studio language-pack keys (
engine.studio.data.form.surface*and theengine.studio.publicForms.*block) in en and zh;@objectstack/specships a corrected docblock foranonymousFormIntakeWithdrawnIn(prose only, no export or behaviour changes)Metadata-protocol: none
维护者速读
What changes
formSurfaceControlin the Form tab's toolbar,data-form-surface). No new tab: the Data pillar keeps its seven (objectui#12450).ui/packages/app-shell/src/views/studio-design/publicForm/PublicFormsDesigner.tsx) lists the object's public forms, published and only drafted, and:<object>.<address>; a name any other view item of the environment already has (a list view such ascrm_lead.all, the record form, a draft) is refused like a used address;submitBehavior: { kind: 'thank-you' }, removed when cleared) and the address;ObjectFormfrom the sections being edited.publicFormDesign.ts, pure, unit-tested):required: truewith nodefaultValueand no default option, so a field the write path fills in (app-crm's leadstatus, defaultnew) is not held.publicFormItemOf), so the served rule (anonymousFormIntakeCandidates) still opens it at the same address. That includes the shapes the spec allows besides the plain one: a section stored without anameis matched by the same positional key the designer gave it (section_<n>, never one another section uses), so its description, columns, collapse and visibility keys stay; a field moved to another section keeps its own entry keys; a title, description, after-submit text or section label the person did not change is kept as stored, including one stored as a map of translations. No column count is written onto a section that had none.overrideDraftBody), never in the app; a new form goes into the customization package (customization.ensure());ifNoneMatch: '*'on a form with no draft).viewKind: 'form',config.sharing); no key is added. Access restrictions (password, expiry, domains) are not offered, per the ruling.publicFormShownName): its label, else its title, else its first section's label, else its key.markShippedOff, now generic over the row shape): a form its app ships withdrawn is listed "Off (its app ships it off)", never On; a form whose app document cannot be read is listed "Unknown" (review M1/S2/N5, applied to Studio).anonymousFormIntakeWithdrawnIn's docblock inpackages/spec/src/ui/anonymous-form-intake.tsnames its real callers (the anonymous form doors, the v18 organization-ownership migration, the console's Setup page) and drops the organization-scoped write door that no longer calls it. Prose only.docs/qa/platform-checklist/areas/access-security.jsonpointsanonymousFormIntakeWithdrawnInandanonymousFormExplicitWithdrawalsat their new source,packages/spec/src/ui/anonymous-form-intake.ts.Boundaries
nav_public_forms) stays as it is in this PR. Ruling item 1 says that page is upgraded into the designer; this PR builds the designer under the object (Studio → Data → an object → Form → Public forms) and does not remove, redirect or change the Developer page. Retiring it or pointing it at the designer is a follow-up for the card.Tests
ui/packages/app-shell/src/views/studio-design/publicForm/publicFormDesign.test.ts(24 cases): fillable fields (hidden, read-only, system, formula, summary, autonumber excluded;fieldsas an array); object-required fields, with a default value or default choice not held; reading a stored form (title, address, sections, required marks); writing back only what was edited, keeping every other key, dropping_decorations, the served rule still opening it at the same address; the thank-you panel written and removed; a non-thank-you submit behaviour kept; a new form's name, sections and served candidate; addresses from titles; the address rule (empty, shape, taken including switched-off forms, the form's own address); the field edits (refused removal of a required field, required kept, add once, move within and across sections, sections added, moved and removed keeping their fields); missing required fields; the preview's sections; a section stored without a name keeping every key, its field entries' keys and a moved field's keys; an unnamed section keyed apart from a section named like its place; titles, description, section labels and thank-you texts stored as translation maps kept when not edited and replaced when edited; no column count written onto a section that had none.PublicFormsDesigner.test.tsx(11 cases, rendered over a metadata client double): the list (published and drafted, not internal or another object's forms); the HotCRM edit on an installed app's form (Phone required, Title removed, new title) saved as a draft in the customization package declaring the override, then published there, the app's own package never written; the required-field refusal with its reason; a new form with four fields; a duplicate address refused with nothing saved; a named section; delete refused for the app's form and done for a writable package's; a form its app ships switched off listed as off even under an override that switches it on; a new form named like the object's list view (crm_lead.all) or record form refused, a free name accepted; the save and the publish carrying the on/off switch as stored at that time; a draft that already carries it published without a second save.ui/packages/app-shell/src/views/setup/PublicFormsSetupPage.test.tsx: the Unknown row's switch is disabled (N12).markShippedOfffrom the designer's list, or the Unknown condition from the Setup switch, each turns one case red.Acceptance notes
Live run on
examples/app-crm(objectstack dev --seed-admin --fresh) + console dev server, as the seeded admin.com.example.crmis installed read-only, so this exercised the customization path. This was run before the rebase ontomainat the Part 1 head; the code paths it walked are unchanged by the follow-ups except for the list's shipped-off mark, which is unit- and render-tested.com.example.crm.custom;GET /api/v1/forms/contact-usserves the new title and fieldscontact-usdemo-signupwith name, company, email, and phone in an "About you" section, with a thank-you messageGET /api/v1/forms/demo-signup→ 200;/f/demo-signuprenders anonymouslyScreenshots (live run, 2× scale) are in the project's shared files under
issue-36444/; they cannot be uploaded to GitHub from the cloud seat:11-studio-designer-open.png: the designer on Lead's "Contact us", with the preview.12-studio-required-refused.png: removing a required field refused, with the reason.13-studio-designer-edited.png: Phone required, Title removed, the new title.14-studio-duplicate-address.png: a used address refused.15-studio-new-form.png: "Demo signup" with its two sections.16-studio-list-after.png: the designer's list after both changes.17-anon-demo-signup.png: the new form at its anonymous address.18-setup-after-studio.png: Setup → Public forms listing both.Known: the preview's footer shows the runtime form's own Cancel and Create buttons, not the anonymous page's Submit.
Verification
Head
5e8aaa4bc0: the squashed Part 2 commit90ed3338c3, the fix commit80ebf09091and the review-fix commit5e8aaa4bc0(S1–S3 and N3 of contract review 7117275850), onmaind59d875114(which includes #36697 asc45dd80ff9).5e8aaa4bc0:80ebf09091's code (checked by swapping the two source files back); the seventh, no second save when the draft already carries the switch, guards the publish path;@object-ui/app-shelltype-check (src + tests): exit 0; ESLint on the designer folder: 0 errors;check-vi-mock-inherit,check-vi-mock-override-shape,check-new-cross-file-line-citations,check-control-bytes,check-i18n-call-site-keys,pnpm check:platform-checklist: exit 0. The derived gate list is the same 90 commands as at80ebf09091, and this commit touches only the four designer files;90ed3338c3/80ebf09091: the derived gate union (dispatch-gates --commands, 90 commands) ran 88 exit 0 on90ed3338c3; the two that did not (pnpm check:platform-checklist, stale checklist anchors;pnpm --dir ui exec vitest run scripts/, the designer test's@object-ui/plugin-formmock not spreadingimportOriginal()) were fixed in80ebf09091. CI on80ebf09091: 60 success, 10 skipped, 0 failure.peopleAssignments.navContribution.test.tsx("Position holders" heading) fails locally onmaintoo and is green in CI; not touched here.80ebf09091): 设置里新增「对外表单」:列出全部对外表单,能开关、复制地址、改字段和标题、新建(现在只能写在应用定义里) #36444 (comment)Generated by Claude Code