Skip to content

Commit 3f568c1

Browse files
fix(studio): retire Studio's Interfaces column (objectstack#36502) (#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 #36502 repo:objectstack#3 · os-support-ai · session_01WGufzj9RY8jKV57hUTNEYg Clause-②: no Metadata-protocol: none ## 维护者速读 - Studio 顶部只剩「数据、自动化、权限、全部元数据」,首屏是「数据」;旧地址 `/studio/<包>/interfaces`(含 `?surface=` 深链)落到数据页,提示「界面的修改已经搬到应用里」并带回到应用的链接。 - 只读包(如安装来的 HotCRM)里视图、仪表盘、报表、页面的「定制」入口,从「界面」搬到「全部元数据」里该条目的页面(席位已认可),定制和「恢复包原版」照旧。限制:这类包自带的列表视图,在应用里只能另存为个人视图,要改给所有人看的版本仍需进「全部元数据」(#35974 起就是如此)。 - 对外表单(#36444 未合并)暂时没有可视化编辑,元数据照常可改;PR #36784 需要的共用部件都保留。 - 删改合计约 3.7 万行(几乎都是删除),按规则需要您批准合并。 ## What changes The card (objectstack#36502), the maintainer's dispatch 「没关系,不等那个,现在就派」 (2026-11-24 05:17Z) and ruling record 7122806677 (the #36444 dependency waived; public forms stay metadata-editable; keep what PR #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/#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 #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) #36363 menu, #36366 header actions, #36364 add-menu-item, #36370 view settings, #36372 dashboard edit, #36374 report edit, #36425 internal forms retired, #36485 header Studio links, #36487 sidebar Design entry, #36498 and #36499 record page grouping and tabs: all closed as completed. #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 #36784 (head 1f9f234), `overlap-check` reports one conflict: adjacent import lines at the top of `StudioDesignSurface.tsx`. #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, #36888 (the Field layout tab, #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 (#36363); header actions (#36366); New dashboard/report/page dialogs → design mode add-menu-item (#36364); list-view and kanban inspector → View settings (#36370); dashboard and report designers → in-page Edit (#36372, #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>
1 parent 13f5466 commit 3f568c1

178 files changed

Lines changed: 1538 additions & 35609 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@objectstack/runtime': patch
3+
'@objectstack/cli': patch
4+
'@object-ui/i18n': patch
5+
'@object-ui/plugin-chatbot': patch
6+
---
7+
8+
fix(studio): Studio's Interfaces column is retired; its old links land on the Studio home and its Changes links open from the Data pillar
9+
10+
Clause-②: no
11+
Metadata-protocol: none
12+
13+
objectstack#36502. Menus, header actions, list views, dashboards, reports and record pages are designed in the running app. Studio keeps Data, Automations, Access and All metadata, and every view, dashboard, report and page stays readable and editable as metadata on its All-metadata item page. No metadata type, key or stored shape changes.
14+
15+
- **Old links still open.** `/studio/<package>/interfaces`, with or without a `?surface=` deep link, lands on the package's Data pillar and says once, there, "Interface edits have moved into the app" (「界面的修改已经搬到应用里」) with a link back to the app. A `?changes=review` request travels with it.
16+
- **`@objectstack/runtime`, `@objectstack/cli`.** The review link the MCP authoring tools and `os meta register --draft` print is `/studio/<package>/data?changes=review` (it was `/studio/<package>/interfaces?changes=review`, which still works through the redirect).
17+
- **`@object-ui/i18n`.** Adds `engine.studio.interfacesRetired.sentence`, `.backToApp` and `.dismiss` (en, zh).
18+
- **`@object-ui/plugin-chatbot`.** The `onDesignBuiltApp` doc example names the Data route.
19+
- The console's "Edit in Studio" links for a dashboard, page, report or view open its All-metadata item page.
20+
- **Customize moves with them.** On a read-only base, a view, dashboard, report or page is customized on its All-metadata item page, in the type's designer, into the base's pair (`<base>.custom`), with the override mark and "Restore package original" as before. It was the Interfaces column's header.

‎docs/qa/platform-checklist/areas/dashboards.json‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@
700700
"title": "Dashboard-level dateRange + global filters re-scope every bound widget through its OWN field mapping; opted-out widgets stay fixed; and the Studio widget inspector AUTHORS those filterBindings",
701701
"since": "v16",
702702
"status": "active",
703-
"revision": 6,
703+
"revision": 7,
704704
"priority": "P1",
705705
"surface": "browser",
706706
"personas": [
@@ -711,7 +711,7 @@
711711
"requires": [
712712
"the Revenue Pulse dashboard (showcase_revenue_pulse) — the framework#2501 acceptance fixture: one dateRange (default field issued_on) + one region filter (default field region) driving invoice AND account widgets, account widgets re-mapping via filterBindings (dateRange→signed_on, region→sales_region), one KPI opted out of both (filterBindings false) as the all-time reference",
713713
"seeded accounts spread across sales_region amer/emea/apac with signed_on dates (src/data/seed/index.ts)",
714-
"for D2 and D3 a SCRATCH dashboard, because no stock dashboard serves either leg (QA run #23163 scored both on runtime scratch dashboards): D2's Studio authoring round-trip needs a dashboard in a WRITABLE package to publish into — create a scratch package (POST /api/v1/packages with the body {id, name, version: '0.1.0', type: 'app'}: the manifest is strict, so a `label` key is refused as unrecognized, and `type` is required) and author the dashboard there, since the showcase package is read-only in Studio — AND author an app in that package whose navigation carries the dashboard (PUT /api/v1/meta/app/NAME?package=PKG): the Studio Interfaces pillar IS the app navigation tree (objectui app-shell StudioDesignSurface.tsx: \"Interfaces: the real App navigation tree\"), so a package with no app shows no dashboard to select (QA run #24573); D3's dataset-sourced option half needs a globalFilter whose options come from `optionsFrom` ({object, valueField, labelField} — GlobalFilterOptionsFromSchema in packages/spec/src/ui/dashboard.zod.ts), which NO stock dashboard declares (Revenue Pulse's region filter lists static options). D3's {value,label} render half still reads on Revenue Pulse. A scratch dashboard that carries Revenue Pulse's global filters gives each account-bound widget a filterBindings for them (e.g. dateRange→signed_on, region: false) before its first save: a widget the issued_on / region defaults cannot reach is refused 422 dashboard-filter-field-unknown. Delete the scratch package at teardown"
714+
"for D2 and D3 a SCRATCH dashboard, because no stock dashboard serves either leg (QA run #23163 scored both on runtime scratch dashboards): D2's Studio authoring round-trip needs a dashboard in a WRITABLE package to publish into — create a scratch package (POST /api/v1/packages with the body {id, name, version: '0.1.0', type: 'app'}: the manifest is strict, so a `label` key is refused as unrecognized, and `type` is required) and author the dashboard there, since the showcase package is read-only in Studio — AND author an app in that package whose navigation carries the dashboard (PUT /api/v1/meta/app/NAME?package=PKG), so the dashboard opens in the running app, where its design mode is the authoring door since Studio's Interfaces pillar (which reached a dashboard only through an app's navigation, QA run #24573) retired with #36502; D3's dataset-sourced option half needs a globalFilter whose options come from `optionsFrom` ({object, valueField, labelField} — GlobalFilterOptionsFromSchema in packages/spec/src/ui/dashboard.zod.ts), which NO stock dashboard declares (Revenue Pulse's region filter lists static options). D3's {value,label} render half still reads on Revenue Pulse. A scratch dashboard that carries Revenue Pulse's global filters gives each account-bound widget a filterBindings for them (e.g. dateRange→signed_on, region: false) before its first save: a widget the issued_on / region defaults cannot reach is refused 422 dashboard-filter-field-unknown. Delete the scratch package at teardown"
715715
]
716716
},
717717
"steps": [
@@ -840,7 +840,8 @@
840840
"date": "2026-11-15",
841841
"change": "fixtures.requires[2] names the scratch package body POST /api/v1/packages takes ({id, name, version, type}; 'label' is refused) and the filterBindings a scratch dashboard needs before its first save (else 422 dashboard-filter-field-unknown) (QA run #33853, comment 6894307378; ledger 6896511848 of #33761 row 71). No clause changed. Read at base bc6b7ffd",
842842
"ref": "#34016"
843-
}
843+
},
844+
{ "revision": 7, "date": "2026-11-24", "change": "fixtures.requires[2]: D2's authoring door is the running app's design mode, since Studio's Interfaces pillar retired with #36502; the app that carries the dashboard stays, now to open it in the app. No clause changed", "ref": "#36502" }
844845
]
845846
},
846847
{

0 commit comments

Comments
 (0)