Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
e927bc6
wip(studio): object designer fixed on one object, tabs in the address
claude Nov 24, 2026
0ac0cc0
wip(studio): mount the object designer on its metadata address; redir…
claude Nov 24, 2026
7417c31
wip(studio): pin the object designer's tab order, address and redirect
claude Nov 24, 2026
8945c75
Merge remote-tracking branch 'origin/main' into claude/issue-36904-ob…
claude Nov 24, 2026
10e3094
test(studio): rehost the object create pins on the list dialog; give …
claude Nov 24, 2026
1aa1494
test(studio): the designer's header, tab order and action link on the…
claude Nov 24, 2026
2398bdc
fix(studio): a discard's refusal outlives the re-read it asks for; te…
claude Nov 24, 2026
12940d0
test(studio): surface suites open the object designer on its address;…
claude Nov 24, 2026
0e3a9a2
test(studio): convert the pair, retired-Interfaces, not-found and cop…
claude Nov 24, 2026
0482902
fix(studio): the copilot names the item a metadata address opens; tes…
claude Nov 24, 2026
2ac0235
test(studio): the pair suite uses the real area; the live journey ope…
claude Nov 24, 2026
5790a82
chore(studio): drop imports the trimmed suites no longer use
claude Nov 24, 2026
dd7e129
test(studio): pay the lazy loads at collection in the suites this car…
claude Nov 24, 2026
e1a2904
test(studio): the area mounts the object designer on its address; rev…
claude Nov 25, 2026
ae16a82
Merge remote-tracking branch 'origin/main' into claude/issue-36904-ob…
claude Nov 25, 2026
efd179c
test(studio): CI follow-ups — collection-time detail-surface load, su…
claude Nov 25, 2026
a9e7bb7
fix(studio): rework round on the object designer's address
claude Nov 25, 2026
562d068
test(studio): load the zh catalogue at collection in the tab-order pin
claude Nov 25, 2026
046762e
Merge origin/main into claude/issue-36904-object-designer-fullscreen
claude Nov 25, 2026
d09f2b3
fix(studio): the object create publishes pinned; a name this package …
claude Nov 25, 2026
2bf127d
docs(changeset): the create dialog's Open on a taken identifier, in u…
claude Nov 25, 2026
64a5a2d
Merge origin/main (#37185) into claude/issue-36904-object-designer-fu…
claude Nov 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/36904-object-designer-fullscreen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
'@object-ui/app-shell': patch
---

feat(studio): an object opens its designer full-screen, on its own address

Clause-②: no
Metadata-protocol: none

Studio redesign (epic #36890), the object designer's card (#36904); it also delivers #36513's tab order.

- **One object, one page.** Opening an object in Studio opens its designer full-screen beside the left menu, with its own address you can bookmark or share. × goes back to the object list with its filter and sort as you left them, ‹ › open the previous and next object in that list, and Esc closes. The designer no longer has its own column of objects or its own 「新建」 button: you pick another object from the list, and you create one with the object list's 「新建」, which keeps the organization-wide default sharing choice, the option to add the object to the app's menu, and, on a read-only package, the save into its customization package. If the identifier you pick is already used by an object in that package, the dialog says so and offers to open it.
- **Tabs in a fixed order.** Records, Field layout, Validations, Actions, Settings, Hooks, API; when the page is narrow, Hooks and API fold into "Advanced" first, then Validations, Actions and Settings. References, History (with the audit log) and Source (with the layer comparison) are now tabs after them, in place of the five header icons. The tab you are on is part of the page's address, so refreshing, sharing the link or moving to the next object keeps it.
- **Old links still work.** A bookmark or link to an object in Studio's old Data screen opens that object's designer; a link to the Data screen itself opens the package's object list, and the review link for unpublished changes still opens that review. The app's 「对象设置」, the record page's 「配置页面」, the command palette, links in AI replies and the link to a switched-off action all open the new page.
- **Fixed on the way:** when discarding the AI's unpublished changes partly fails, the message saying which items could not be discarded now stays on the page instead of disappearing at once. A link to an object that does not exist (a deleted object's bookmark, a mistyped link) now says the object was not found, instead of offering it as a new object to design.
3 changes: 2 additions & 1 deletion ui/e2e/live/studio-customize-journey.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ test('a read-only base is customized, restored and extended through Studio, and
});

await test.step(`Add ${FIELD.name}: an extension in the pair, served on the base object`, async () => {
await page.goto(`/studio/${BASE}/data?surface=${encodeURIComponent(`object:${OBJECT}`)}`);
// objectstack#36904 — the object designer, on the object's own address.
await page.goto(`/studio/${BASE}/metadata/object/${encodeURIComponent(OBJECT)}`);
await page.getByTestId('data-object-header').getByRole('button', { name: 'Field layout', exact: true }).click();
await page.getByTestId('data-form-add-extension-field').click();
await page.getByTestId('add-field-label-input').fill(FIELD.label);
Expand Down
10 changes: 6 additions & 4 deletions ui/packages/app-shell/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -635,10 +635,12 @@ dashboard, page, or report — it opens that item's page in Studio's "All
metadata" area (`/studio/:packageId/metadata/<type>/<name>`), where it is read
and edited as metadata; interfaces themselves are designed in the running app,
since objectstack#36502 retired Studio's Interfaces pillar. On an object route
it opens that object in the Data pillar
(`/studio/:packageId/data?surface=object:<name>`), and at the app root the
package's Data tab (`/studio/:packageId/data`). An old
`/studio/:packageId/interfaces` link lands on the Data tab with a one-line
it opens that object's designer full-screen on its own address
(`/studio/:packageId/metadata/object/<name>`, objectstack#36904), and at the
app root the package's Studio home, which lands on the package's object list
(`/studio/:packageId/metadata/object`; the retired Data pillar's
`/studio/:packageId/data` redirects there). An old
`/studio/:packageId/interfaces` link lands on the object list with a one-line
notice that interface editing moved into the app.
The route-type → surface-type decision lives in `appStudioRoutePath`. It is the
reverse of the builder's "Open app" bridge (ADR-0080): the entry only renders
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
* metadata cache is a hand-rolled `MetadataCtx` value that counts its reads.
*/

// Paid at collection, not inside a case's clock (check:test-source-alias).
import '@objectstack/lint';
import '@object-ui/plugin-detail';
import * as React from 'react';
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
import { render, fireEvent, waitFor, cleanup, screen } from '@testing-library/react';
Expand Down Expand Up @@ -203,7 +206,7 @@ describe('the palette in the `studio` scope lists the Studio, not an app (object
mountStudio();
await studioListed();
pick('studio-object Account ');
await waitFor(() => expect(locationNow()).toBe('/studio/com.acme.crm/data?surface=object%3Acrm_account'));
await waitFor(() => expect(locationNow()).toBe('/studio/com.acme.crm/metadata/object/crm_account'));
});

it("opens a packaged flow in its package's Automations pillar, on that flow", async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import { artifactStudioPath } from '../artifactStudioPath';
describe('artifactStudioPath', () => {
const pkg = 'app.rmpe';

it('object → Data pillar with an object surface', () => {
it("object → the object designer's address (objectstack#36904)", () => {
expect(artifactStudioPath(pkg, { type: 'object', name: 'rmpe_customer' })).toBe(
'/studio/app.rmpe/data?surface=object%3Armpe_customer',
'/studio/app.rmpe/metadata/object/rmpe_customer',
);
});

Expand Down
3 changes: 2 additions & 1 deletion ui/packages/app-shell/src/layout/SidebarItemMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ import { confirmUnsavedLeave } from '../chrome/unsavedEdits.js';

/**
* Where Object settings takes an object of `app` (objectstack#36487): the
* object in Studio's Data surface (`surface=object:NAME`), through the
* object's designer in Studio, full-screen on its own address
* (`/studio/PKG/metadata/object/NAME`, objectstack#36904), through the
* derivation the app bar's Studio entry reads on the object's list,
* `appStudioObjectPath` (objectui#12520). `null` when the app has no owning
* package Studio can open, or names no object, so the entry hides as the app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ describe('「Edit app」 in the app menu opens this app in Studio (objectstack#3
expect(item).toHaveTextContent(/^Edit app$/);
expect(item!.querySelector('svg.lucide-pencil')).not.toBeNull();
// The app switcher's target: the object route opens the package's Data tab on that object.
expect(item).toHaveAttribute('href', '/studio/com.acme.crm/data?surface=object:crm_lead');
expect(item).toHaveAttribute('href', '/studio/com.acme.crm/metadata/object/crm_lead');
expect(viewInStudio()).toBeNull();
});

Expand All @@ -419,7 +419,7 @@ describe('「Edit app」 in the app menu opens this app in Studio (objectstack#3
expect(item).not.toBeNull();
expect(item).toHaveTextContent(/^View in Studio$/);
expect(item!.querySelector('svg.lucide-eye')).not.toBeNull();
expect(item).toHaveAttribute('href', '/studio/com.acme.crm/data?surface=object:crm_lead');
expect(item).toHaveAttribute('href', '/studio/com.acme.crm/metadata/object/crm_lead');
});

it('it is drawn with no shell holding the design mode: its gate is Studio\'s, not the mode\'s', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ describe('SidebarItemMenu: what each entry does (objectui#12427)', () => {
await openMenu();
fireEvent.click(screen.getByRole('menuitem', { name: 'Object settings' }));
await waitFor(() =>
expect(screen.getByTestId('where')).toHaveTextContent('/studio/com.acme.crm/data?surface=object:crm_lead'),
expect(screen.getByTestId('where')).toHaveTextContent('/studio/com.acme.crm/metadata/object/crm_lead'),
);
});

Expand Down Expand Up @@ -248,7 +248,7 @@ describe('SidebarItemMenu: right-click (objectui#12427)', () => {

describe('sidebarItemDesignPath: only an object entry has a Studio entry (objectui#12520, objectstack#36487)', () => {
it('an object entry opens its object in the Data surface', () => {
expect(sidebarItemDesignPath(LEADS, APP)).toBe('/studio/com.acme.crm/data?surface=object:crm_lead');
expect(sidebarItemDesignPath(LEADS, APP)).toBe('/studio/com.acme.crm/metadata/object/crm_lead');
});

it('a dashboard, page or report entry has none: each is edited on its own page', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import { registerUnsavedEdits } from '../../chrome/unsavedEdits';
const BASE_PATH = '/apps/crm';
const APP = { name: 'crm', _packageId: 'com.acme.crm' };
const LEADS = { id: 'nav_leads', type: 'object', objectName: 'crm_lead', label: 'Leads' } as NavigationItem;
const STUDIO = '/studio/com.acme.crm/data?surface=object:crm_lead';
const STUDIO = '/studio/com.acme.crm/metadata/object/crm_lead';
const QUESTION = 'You have unsaved changes. Are you sure you want to leave?';

function Where() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ afterEach(() => {
describe('a navigation entry\'s Object settings opens what the app bar\'s Edit app opens (objectui#12520)', () => {
it('an object entry: the Data surface for the object, the bar\'s path on the object\'s list', async () => {
const appBar = await appBarEditAppPath(entryRoute(LEADS, CRM));
expect(appBar).toBe('/studio/com.acme.crm/data?surface=object:crm_lead');
expect(appBar).toBe('/studio/com.acme.crm/metadata/object/crm_lead');
expect(sidebarItemDesignPath(LEADS, CRM)).toBe(appBar);
});

Expand All @@ -249,7 +249,7 @@ describe('a favorite\'s Object settings opens what the app bar\'s Edit app opens
it('an object favorite matches the bar on the favorite\'s own route', async () => {
const fav = favorite('object:crm_lead', '/apps/com.acme.crm/crm_lead');
const appBar = await appBarEditAppPath(fav.href);
expect(appBar).toBe('/studio/com.acme.crm/data?surface=object:crm_lead');
expect(appBar).toBe('/studio/com.acme.crm/metadata/object/crm_lead');
expect(favoriteDesignPath(fav, APPS)).toBe(appBar);
});

Expand All @@ -261,7 +261,7 @@ describe('a favorite\'s Object settings opens what the app bar\'s Edit app opens
it('a favorite starred in another app resolves in that app\'s package, not the one the sidebar is in', async () => {
const fav = favorite('object:sales_quote', '/apps/com.acme.sales/sales_quote');
const appBar = await appBarEditAppPath(fav.href);
expect(appBar).toBe('/studio/com.acme.sales/data?surface=object:sales_quote');
expect(appBar).toBe('/studio/com.acme.sales/metadata/object/sales_quote');
expect(favoriteDesignPath(fav, APPS)).toBe(appBar);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ describe('UnifiedSidebar: Object settings opens the Studio surface the app bar o
await openMenu('Leads');
fireEvent.click(screen.getByRole('menuitem', { name: 'Object settings' }));
await waitFor(() =>
expect(screen.getByTestId('where')).toHaveTextContent('/studio/com.acme.crm/data?surface=object:crm_lead'),
expect(screen.getByTestId('where')).toHaveTextContent('/studio/com.acme.crm/metadata/object/crm_lead'),
);
});

Expand All @@ -356,7 +356,7 @@ describe('UnifiedSidebar: Object settings opens the Studio surface the app bar o
expect(await openMenu('Quotes')).toEqual(['Remove from favorites', 'Open in new tab', 'Copy link', 'Object settings']);
fireEvent.click(screen.getByRole('menuitem', { name: 'Object settings' }));
await waitFor(() =>
expect(screen.getByTestId('where')).toHaveTextContent('/studio/com.acme.sales/data?surface=object:sales_quote'),
expect(screen.getByTestId('where')).toHaveTextContent('/studio/com.acme.sales/metadata/object/sales_quote'),
);
});

Expand Down
13 changes: 6 additions & 7 deletions ui/packages/app-shell/src/utils/__tests__/appRoute.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,14 +317,13 @@ describe('appStudioSurfacePath', () => {
describe('appStudioObjectPath', () => {
const crm = { name: 'crm', _packageId: 'com.acme.crm' };

it('deep-links to the object surface in the Data pillar', () => {
expect(appStudioObjectPath(crm, true, 'showcase_task')).toBe(
'/studio/com.acme.crm/data?surface=object:showcase_task',
);
// objectstack#36904 — the object designer on its metadata address.
it("deep-links to the object's designer", () => {
expect(appStudioObjectPath(crm, true, 'showcase_task')).toBe('/studio/com.acme.crm/metadata/object/showcase_task');
});
it('URL-encodes the package id and the object name', () => {
expect(appStudioObjectPath({ _packageId: 'com.acme/crm' }, true, 'my object')).toBe(
'/studio/com.acme%2Fcrm/data?surface=object:my%20object',
'/studio/com.acme%2Fcrm/metadata/object/my%20object',
);
});
it('returns null for non-admins', () => {
Expand Down Expand Up @@ -370,11 +369,11 @@ describe('appStudioRoutePath', () => {
it('deep-links an object route (routeType is the object name) to its Data-pillar surface', () => {
// The fix: an object records page now opens THAT object, not the generic Data tab.
expect(appStudioRoutePath(crm, true, { type: 'showcase_task', name: undefined })).toBe(
'/studio/com.acme.crm/data?surface=object:showcase_task',
'/studio/com.acme.crm/metadata/object/showcase_task',
);
// A record-detail route (name='record') still keys off the object route type.
expect(appStudioRoutePath(crm, true, { type: 'account', name: 'record' })).toBe(
'/studio/com.acme.crm/data?surface=object:account',
'/studio/com.acme.crm/metadata/object/account',
);
});

Expand Down
20 changes: 7 additions & 13 deletions ui/packages/app-shell/src/utils/appRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,16 +292,12 @@ export function appStudioSurfacePath(
}

/**
* Deep-link from a running app straight to a specific **object's** design
* surface in Studio's Data pillar — e.g. viewing the `account` records page
* opens `/studio/:packageId/data?surface=object:account`, which the Data
* pillar's `?surface=` restore honors (see `DataPillar` in
* `StudioDesignSurface`). Same admin/package guards as
* {@link appStudioDesignPath}; returns null when the object name is missing so
* the caller can fall back to the plain Data tab.
*
* The `surface` param value is `object:<name>`; only the name is
* percent-encoded (`object` is a fixed keyword).
* Deep-link from a running app straight to a specific **object's** designer
* in Studio — e.g. viewing the `account` records page opens
* `/studio/:packageId/metadata/object/account`, the object designer
* full-screen on its own address (objectstack#36904). Same admin/package
* guards as {@link appStudioDesignPath}; returns null when the object name is
* missing so the caller can fall back.
*/
export function appStudioObjectPath(
app: AppRouteLike | null | undefined,
Expand All @@ -312,9 +308,7 @@ export function appStudioObjectPath(
const packageId = studioPackageId(app);
if (!packageId) return null;
if (!objectName) return null;
// The `'name'` spelling (`object:` as written, the name encoded), as this
// bridge has always spelled it.
return studioItemPath(packageId, 'object', objectName, { spelling: 'name' });
return studioItemPath(packageId, 'object', objectName);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion ui/packages/app-shell/src/views/RecordTabsConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function objectPackageId(objectDef: RecordTabsObjectDef | null | undefine
*/
export type RecordTabsMode = 'own' | 'pair';

/** Where 「Adjust field groups」 goes: the object in Studio's Data pillar. */
/** Where 「Adjust field groups」 goes: the object's designer in Studio. */
export function recordTabsStudioPath(objectDef: RecordTabsObjectDef | null | undefined): string | null {
const packageId = objectPackageId(objectDef);
const name = objectDef?.name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ describe('「Configure tabs」 (objectstack#36499)', () => {
const shown = Array.from(editor.querySelectorAll('[data-record-tabs-tab]')).map((el) => el.getAttribute('data-record-tabs-tab'));
expect(shown).toEqual(['contact.account', 'task.account', 'sys_approval_request', 'sys_activity']);
expect(screen.getByTestId('record-tabs-hidden').querySelector('[data-record-tabs-hidden-tab="case.account"]')).not.toBeNull();
expect(screen.getByTestId('record-tabs-field-groups')).toHaveAttribute('href', expect.stringContaining('/studio/app.crm/data'));
expect(screen.getByTestId('record-tabs-field-groups')).toHaveAttribute('href', expect.stringContaining('/studio/app.crm/metadata/object/'));
});

it("another package's list is drawn fixed after the object's own tabs: no move, hide or rename", async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,6 @@ describe('the folded list menu leads with Object settings (objectstack#36487)',

confirm.mockReturnValue(true);
act(() => entry.onClick());
expect(where()).toBe('/studio/com.example.my_base/data?surface=object:account');
expect(where()).toBe('/studio/com.example.my_base/metadata/object/account');
});
});
Loading
Loading