Repository navigation
Commit 3f568c1
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
- .changeset
- docs/qa/platform-checklist
- areas
- packages
- cli/src/commands/meta
- runtime/src/domains
- skills/objectstack-mcp-build/evals
- ui
- e2e/live
- packages
- app-shell
- src
- __tests__
- console
- __tests__
- ai
- __tests__
- hooks
- layout
- __tests__
- services
- utils
- __tests__
- views
- __tests__
- metadata-admin
- previews
- studio-design
- components/src/__tests__
- i18n/src/namespaces/studio
- plugin-chatbot/src
- plugin-kanban/src/__tests__
- scripts/__tests__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
703 | | - | |
| 703 | + | |
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
714 | | - | |
| 714 | + | |
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
| |||
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
843 | | - | |
| 843 | + | |
| 844 | + | |
844 | 845 | | |
845 | 846 | | |
846 | 847 | | |
| |||
0 commit comments