diff --git a/ui/packages/app-shell/src/views/studio-design/StudioAreaAppOpen-36906.test.tsx b/ui/packages/app-shell/src/views/studio-design/StudioAreaAppOpen-36906.test.tsx
index 2575181b2b0..d3cc5e102d1 100644
--- a/ui/packages/app-shell/src/views/studio-design/StudioAreaAppOpen-36906.test.tsx
+++ b/ui/packages/app-shell/src/views/studio-design/StudioAreaAppOpen-36906.test.tsx
@@ -4,6 +4,8 @@
* objectstack#36906 — a dashboard or a report opened from a Studio list opens
* in its app's edit state; the report list's New opens the app's new-report
* page; with no app, the generic item page (or the area's own create).
+ * objectstack#36907 — the dashboard list's New opens the app in its design
+ * mode, the 「Add menu item」 picker on its dashboards.
*
* Through the real `StudioMetadataArea` and its routes, with the metadata
* pages stubbed to their names and the metadata client answering the
@@ -14,11 +16,15 @@
* - the Studio address is replaced, so Back from the app page skips it;
* - which opens keep the generic item page (a tab, the draft review, no app,
* the cross-package leg, any other type, an item with no published version);
- * - a read-only base: its own rows open in its app, a pair row keeps the
- * generic page, and its report New opens the app page only where the pair
- * door is open;
- * - a dashboard made by the area's own create opens in its app, and Back
- * from there lands on the list, not on an empty create page.
+ * - a read-only base: its own rows open in its app, a pair row opens in the
+ * base's app (objectstack#37237: the pair publishes no app of its own),
+ * and its report New opens the app page only where the pair door is open;
+ * - a dashboard made by the area's own create (on a phone, where the
+ * dashboard New has no design mode to open) opens in its app, and Back
+ * from there lands on the list, not on an empty create page;
+ * - the dashboard New (objectstack#36907): the app's root with the arrival
+ * that enters the design mode, decision 6 and the pair leg picking the
+ * app; no app or a phone, the area's own create; the report New unchanged.
*/
import '@testing-library/jest-dom/vitest';
@@ -118,8 +124,13 @@ beforeEach(() => {
afterEach(() => {
cleanup();
resetAppReturnPageForTests();
+ Object.defineProperty(window, 'innerWidth', { configurable: true, writable: true, value: DESKTOP_WIDTH });
});
+/** jsdom's window width, a desktop's; a phone is under 768 px (`usePhoneViewport`). */
+const DESKTOP_WIDTH = window.innerWidth;
+const phoneWidth = () => Object.defineProperty(window, 'innerWidth', { configurable: true, writable: true, value: 390 });
+
/** The app page the area hands over to: its address, its landing and how it was reached; and the browser's Back. */
function AppPage() {
const { pathname, search, state } = useLocation();
@@ -244,14 +255,10 @@ describe("the report list's New opens the app's new-report page (objectstack#369
expect(studioOf(opened.at)).toBe(`/studio/${PKG}/metadata/report?package=${PKG}`);
});
- it('with no app to open, the area creates as before; a dashboard New is not this card', async () => {
+ it('with no app to open, the area creates as before', async () => {
apps.byPackage.set(PKG, []);
mount(`/studio/${PKG}/metadata/report/new?package=${PKG}`);
expect((await screen.findByTestId('area-page')).getAttribute('data-page')).toBe('create');
- cleanup();
- apps.byPackage.set(PKG, [{ name: 'crm_app' }]);
- mount(`/studio/${PKG}/metadata/dashboard/new?package=${PKG}`);
- expect((await screen.findByTestId('area-page')).getAttribute('data-page')).toBe('create');
});
});
@@ -274,7 +281,9 @@ describe('an item with no published version keeps the generic item page (objects
expect(screen.queryByTestId('app-page')).toBeNull();
});
- it("a dashboard made by the area's create opens in its app, and Back from there lands on the list", async () => {
+ it("a dashboard made by the area's create (a phone's) opens in its app, and Back from there lands on the list", async () => {
+ // objectstack#36907 — elsewhere a dashboard's New opens the app's design mode.
+ phoneWidth();
const list = `/studio/${PKG}/metadata/dashboard?package=${PKG}`;
mount(`/studio/${PKG}/metadata/dashboard/new?package=${PKG}`, [list]);
fireEvent.click(await screen.findByText('save the new item'));
@@ -416,3 +425,110 @@ describe("a customization pair's dashboard or report opens in its base's app (ob
expect(apps.listCalls).toEqual([['app', { packageId: PAIR }]]);
});
});
+
+describe("the dashboard list's New opens the app's design mode on its dashboards (objectstack#36907)", () => {
+ const LIST = `/studio/${PKG}/metadata/dashboard?package=${PKG}`;
+ const entersDesignMode = (studioReturn: string) => ({ designModeAddDashboard: { studioReturn } });
+
+ it("opens the app's root with the arrival that enters the mode; the address carries no mode, and Back lands on the list", async () => {
+ mount(`/studio/${PKG}/metadata/dashboard/new?package=${PKG}&q=ops`, [LIST]);
+ const opened = await appPage();
+ // One app in the package: its address is the package id (ADR-0048 option A).
+ expect(opened.at).toBe(`/apps/${PKG}`);
+ expect(opened.state).toEqual(entersDesignMode(`${LIST}&q=ops`));
+ expect(opened.how).toBe('REPLACE');
+ expect(apps.listCalls).toEqual([['app', { packageId: PKG }]]);
+ expect(itemReads.calls).toEqual([]);
+ fireEvent.click(screen.getByText('back'));
+ expect((await screen.findByTestId('area-page')).getAttribute('data-page')).toBe('list');
+ });
+
+ it('the app is picked by decision 6: the remembered app among the package apps, else the first', async () => {
+ apps.byPackage.set(PKG, [{ name: 'sales' }, { name: 'service' }]);
+ rememberAppReturnPage({ path: '/apps/service/home', app: 'service', label: 'Service' });
+ mount(`/studio/${PKG}/metadata/dashboard/new?package=${PKG}`);
+ expect((await appPage()).at).toBe('/apps/service');
+ cleanup();
+ resetAppReturnPageForTests();
+ mount(`/studio/${PKG}/metadata/dashboard/new?package=${PKG}`);
+ expect((await appPage()).at).toBe('/apps/sales');
+ });
+
+ it("with no app to open, the area's own create; on a phone too, with no app read", async () => {
+ apps.byPackage.set(PKG, []);
+ mount(`/studio/${PKG}/metadata/dashboard/new?package=${PKG}`);
+ expect((await screen.findByTestId('area-page')).getAttribute('data-page')).toBe('create');
+ expect(screen.queryByTestId('app-page')).toBeNull();
+ cleanup();
+ apps.byPackage.set(PKG, [{ name: 'crm_app' }]);
+ apps.listCalls = [];
+ phoneWidth();
+ mount(`/studio/${PKG}/metadata/dashboard/new?package=${PKG}`);
+ expect((await screen.findByTestId('area-page')).getAttribute('data-page')).toBe('create');
+ expect(apps.listCalls).toEqual([]);
+ });
+
+ describe('a read-only base and its pair', () => {
+ const BASE = 'com.example.hr';
+ const PAIR = `${BASE}.custom`;
+ const customizationOf = (walled: boolean) =>
+ ({ base: BASE, baseLabel: 'HR', basedOn: null, walled, pairId: null, ensure: async () => PAIR, ensurePackage: vi.fn() }) as any;
+
+ beforeEach(() => {
+ listed.value.set(BASE, { id: BASE, name: 'HR', writable: false, manifest: {} });
+ listed.value.set(PAIR, { id: PAIR, name: 'HR (customizations)', writable: true, manifest: {} });
+ apps.byPackage.set(BASE, [{ name: 'hr_app', label: 'HR' }]);
+ });
+
+ function mountBase(url: string, customization: unknown) {
+ return render(
+
+
+ } />
+ } />
+
+ ,
+ );
+ }
+
+ it("a base's New opens the base's app (what the mode saves goes to the pair); walled, it goes back to the list", async () => {
+ mountBase(`/studio/${BASE}/metadata/dashboard/new?package=${BASE}`, customizationOf(false));
+ const opened = await appPage();
+ expect(opened.at).toBe(`/apps/${BASE}`);
+ expect(opened.state).toEqual(entersDesignMode(`/studio/${BASE}/metadata/dashboard?package=${BASE}`));
+ cleanup();
+ apps.listCalls = [];
+ mountBase(`/studio/${BASE}/metadata/dashboard/new?package=${BASE}`, customizationOf(true));
+ expect((await screen.findByTestId('area-page')).getAttribute('data-page')).toBe('list');
+ expect(apps.listCalls).toEqual([]);
+ });
+
+ it("the pair leg: a pair's New, the pair publishing no app, opens its base's app, one read more", async () => {
+ mount(`/studio/${PAIR}/metadata/dashboard/new?package=${PAIR}`);
+ const opened = await appPage();
+ expect(opened.at).toBe(`/apps/${BASE}`);
+ expect(opened.state).toEqual(entersDesignMode(`/studio/${PAIR}/metadata/dashboard?package=${PAIR}`));
+ expect(apps.listCalls).toEqual([
+ ['app', { packageId: PAIR }],
+ ['app', { packageId: BASE }],
+ ]);
+ });
+
+ it("the pair leg picks among the base's apps by decision 6; a base with no app, the area's own create", async () => {
+ apps.byPackage.set(BASE, [{ name: 'hr_people' }, { name: 'hr_reports' }]);
+ rememberAppReturnPage({ path: '/apps/hr_reports/home', app: 'hr_reports', label: 'HR Reports' });
+ mount(`/studio/${PAIR}/metadata/dashboard/new?package=${PAIR}`);
+ expect((await appPage()).at).toBe('/apps/hr_reports');
+ cleanup();
+ apps.byPackage.set(BASE, []);
+ mount(`/studio/${PAIR}/metadata/dashboard/new?package=${PAIR}`);
+ expect((await screen.findByTestId('area-page')).getAttribute('data-page')).toBe('create');
+ });
+
+ it("CONTROL — a pair's report New keeps the area's own create: the pair leg is the dashboard New's alone", async () => {
+ mount(`/studio/${PAIR}/metadata/report/new?package=${PAIR}`);
+ expect((await screen.findByTestId('area-page')).getAttribute('data-page')).toBe('create');
+ expect(apps.listCalls).toEqual([['app', { packageId: PAIR }]]);
+ });
+ });
+});
diff --git a/ui/packages/app-shell/src/views/studio-design/StudioAreaAppOpen.tsx b/ui/packages/app-shell/src/views/studio-design/StudioAreaAppOpen.tsx
index e440f262c51..6e6aef9a2fe 100644
--- a/ui/packages/app-shell/src/views/studio-design/StudioAreaAppOpen.tsx
+++ b/ui/packages/app-shell/src/views/studio-design/StudioAreaAppOpen.tsx
@@ -2,9 +2,12 @@
/**
* A dashboard or a report opened from a Studio list opens in the app's own
- * edit state (objectstack#36906, epic #36890), and a report's New opens the
- * app's new-report page (decision 13). This component is the one step between
- * the two places:
+ * edit state (objectstack#36906, epic #36890), a report's New opens the
+ * app's new-report page (decision 13), and a dashboard's New opens the app in
+ * its design mode, the 「Add menu item」 picker open on its dashboards
+ * (objectstack#36907, the maintainer's 「新建跳到设计模式加菜单」: a dashboard
+ * is made where it hangs in a menu, objectstack#36359). This component is the
+ * one step between the two places:
*
* 1. It reads the open package's published apps and, when the author came
* from an app outside the package, that app's menu. A dashboard or a
@@ -12,16 +15,26 @@
* of its own reads its base's apps instead, one read more: the pair has
* no surface of its own (ADR-0146 D3), and the base's app is the one that
* shows the pair's items.
- * 2. It picks the app (decision 6, `studioAppEditSegment`), by the same rule
- * over the base's apps on the pair leg.
+ * A dashboard's New of such a pair takes the same leg; a report's New
+ * does not (it keeps the area's own create there).
+ * 2. It picks the app (decision 6, `studioAppEditSegment`; for a New,
+ * `studioAppCreateSegment`), by the same rule over the base's apps on the
+ * pair leg.
* 3. It replaces the Studio address with the app's. A dashboard or a report
* carries its arrival in the navigation state, so the page opens the
* dashboard's edit state or the report's builder as its Edit does, and
* the address carries the Studio list (`?studio=`, decision 15), so the
- * page's × goes back to the list, after a reload too.
+ * page's × goes back to the list, after a reload too. A dashboard's New
+ * opens the app's root with the arrival that enters the design mode
+ * (`designModeAddDashboardArrival`), which carries the list instead: the
+ * dashboard created there opens with it in its address
+ * (`DesignModeMenu`). The mode has no address, so neither has the list
+ * before then.
*
* With no app to open in, it renders `fallback`: the generic item page, or
- * the area's own create (decision 3). So does an item with no published
+ * the area's own create (decision 3). So does a dashboard's New on a phone,
+ * where the design mode is never on; the list offers no such New there, nor
+ * with no app ({@link useStudioDashboardNew}). So does an item with no published
* version (a draft only, such as an AI draft or a create whose publish was
* refused): the app page reads the published world, so it would answer
* 「not found」, and the generic item page is the one that opens the draft.
@@ -36,8 +49,9 @@
import * as React from 'react';
import { Navigate, useLocation } from 'react-router-dom';
-import { readAppReturnPage } from '../../utils/appReturnPage.js';
-import { dashboardEditArrival } from '../../layout/designModeArrival.js';
+import { readAppReturnPage, type AppReturnPage } from '../../utils/appReturnPage.js';
+import { usePhoneViewport } from '../../hooks/usePhoneViewport.js';
+import { dashboardEditArrival, designModeAddDashboardArrival } from '../../layout/designModeArrival.js';
import { reportBuilderArrival } from '../reportBuilderArrival.js';
import { useMetadataClient } from '../metadata-admin/useMetadata.js';
import { ITEM_ONLY_PARAMS, detailListHref } from '../metadata-admin/ResourceDetailHeader.js';
@@ -46,6 +60,7 @@ import { t, useMetadataLocale } from '../metadata-admin/i18n.js';
import { withStudioReturn } from './studioAddress.js';
import { customizationPairBaseOf } from './StudioRailCustomizations.js';
import {
+ appHomePath,
appItemPath,
appNewReportPath,
isStudioAppEditType,
@@ -56,10 +71,93 @@ import {
type StudioAppTarget,
} from './studioAppEdit.js';
-/** What opens in the app: an item's page, or the new-report page. */
-export type StudioAreaAppTarget = { kind: 'item'; type: StudioAppEditType; name: string } | { kind: 'new-report' };
+/**
+ * What opens in the app: an item's page, the new-report page, or the app in
+ * its design mode with the 「Add menu item」 picker on its dashboards.
+ */
+export type StudioAreaAppTarget =
+ | { kind: 'item'; type: StudioAppEditType; name: string }
+ | { kind: 'new-report' }
+ | { kind: 'new-dashboard' };
+
+type Answer = { to: string; state: Record
| null } | 'fallback';
+
+type MetadataClientLike = ReturnType;
+
+/**
+ * The published apps that an item, or a New, of `packageId` opens in, and
+ * the package they are of: the package's own, or, on the pair leg
+ * (`pairLeg`), for a customization pair (`.custom`) with no published
+ * app of its own, its base's, one read more. A failed read is no app.
+ */
+export async function readStudioTargetApps(
+ client: MetadataClientLike,
+ packageId: string,
+ pairLeg: boolean,
+ cancelled: () => boolean = () => false,
+): Promise<{ appPackageId: string; apps: StudioAppTarget[] }> {
+ const readApps = async (scope: string): Promise => {
+ try {
+ const listed = (await client.list('app', { packageId: scope })) as Array>;
+ return (listed || [])
+ .filter((a) => typeof a?.name === 'string' && a.name)
+ .map((a) => ({ name: String(a.name), label: (a.label ?? a.name) as StudioAppTarget['label'] }));
+ } catch {
+ return [];
+ }
+ };
+ const apps = await readApps(packageId);
+ const pairBase = pairLeg && apps.length === 0 ? customizationPairBaseOf(packageId) : null;
+ if (pairBase === null || cancelled()) return { appPackageId: packageId, apps };
+ return { appPackageId: pairBase, apps: await readApps(pairBase) };
+}
-type Answer = { to: string; state: Record | null } | 'fallback';
+/** The app segment a dashboard's New opens in (decision 6, the pair leg too), or `null`. */
+async function readNewDashboardSegment(
+ client: MetadataClientLike,
+ packageId: string,
+ remembered: AppReturnPage | null,
+ cancelled: () => boolean = () => false,
+): Promise {
+ const { appPackageId, apps } = await readStudioTargetApps(client, packageId, true, cancelled);
+ return studioAppCreateSegment({ packageId: appPackageId, apps, remembered });
+}
+
+/**
+ * Whether a Studio dashboard list offers its 「New」 (objectstack#36907): the
+ * New opens an app's design mode, so it is offered only where one opens.
+ *
+ * - `'off'`: not asked (`packageId` is `null`: not a dashboard list of a
+ * package, or one that offers no create at all);
+ * - `'pending'`: the package's apps are being read; no New yet;
+ * - `'phone'`: a phone, where the design mode is never on; no New;
+ * - `'no-app'`: no app to open (decision 6 picks none, the pair leg
+ * included); no New, and the list says why;
+ * - `'offered'`: the New is offered, and opens the app `StudioAreaAppOpen`
+ * picks by the same reads.
+ */
+export type StudioDashboardNew = 'off' | 'pending' | 'phone' | 'no-app' | 'offered';
+
+export function useStudioDashboardNew(packageId: string | null): StudioDashboardNew {
+ const client = useMetadataClient();
+ const phone = usePhoneViewport();
+ const [read, setRead] = React.useState<{ packageId: string; segment: string | null } | null>(null);
+ const asked = packageId !== null && !phone;
+ React.useEffect(() => {
+ if (!asked || packageId === null) return undefined;
+ let cancelled = false;
+ void readNewDashboardSegment(client, packageId, readAppReturnPage(), () => cancelled).then((segment) => {
+ if (!cancelled) setRead({ packageId, segment });
+ });
+ return () => {
+ cancelled = true;
+ };
+ }, [asked, packageId, client]);
+ if (packageId === null) return 'off';
+ if (phone) return 'phone';
+ if (!read || read.packageId !== packageId) return 'pending';
+ return read.segment ? 'offered' : 'no-app';
+}
export function StudioAreaAppOpen({
packageId,
@@ -74,6 +172,7 @@ export function StudioAreaAppOpen({
}): React.ReactElement {
const client = useMetadataClient();
const locale = useMetadataLocale();
+ const phone = usePhoneViewport();
const { pathname, search } = useLocation();
// Read once per open, as the back link reads it: nothing in Studio is an app page.
const [remembered] = React.useState(readAppReturnPage);
@@ -85,6 +184,24 @@ export function StudioAreaAppOpen({
let cancelled = false;
const type: StudioAppEditType = target.kind === 'item' ? target.type : 'report';
const name = target.kind === 'item' ? target.name : '';
+ const opened = openedAt.current;
+ const list = detailListHref(opened.pathname, new URLSearchParams(opened.search));
+ // objectstack#36907 — a dashboard's New: the app's root, with the
+ // design mode entered and its picker open on its dashboards. Never on a
+ // phone, where the mode is never on.
+ if (target.kind === 'new-dashboard') {
+ if (phone) {
+ setAnswer('fallback');
+ return undefined;
+ }
+ void readNewDashboardSegment(client, packageId, remembered, () => cancelled).then((segment) => {
+ if (cancelled) return;
+ setAnswer(segment ? { to: appHomePath(segment), state: designModeAddDashboardArrival(list) } : 'fallback');
+ });
+ return () => {
+ cancelled = true;
+ };
+ }
void (async () => {
// An item the app cannot show (no published version, or the read
// failed) keeps the generic item page.
@@ -101,26 +218,9 @@ export function StudioAreaAppOpen({
return;
}
}
- const readApps = async (scope: string): Promise => {
- try {
- const listed = (await client.list('app', { packageId: scope })) as Array>;
- return (listed || [])
- .filter((a) => typeof a?.name === 'string' && a.name)
- .map((a) => ({ name: String(a.name), label: (a.label ?? a.name) as StudioAppTarget['label'] }));
- } catch {
- return [];
- }
- };
// The package whose apps the item opens in: the open package, or, for
// an item of a pair with no app of its own, the pair's base.
- let appPackageId = packageId;
- let apps = await readApps(packageId);
- const pairBase = target.kind === 'item' && apps.length === 0 ? customizationPairBaseOf(packageId) : null;
- if (pairBase !== null) {
- if (cancelled) return;
- appPackageId = pairBase;
- apps = await readApps(pairBase);
- }
+ const { appPackageId, apps } = await readStudioTargetApps(client, packageId, target.kind === 'item', () => cancelled);
// The remembered app's own menu counts only for an item, and only when
// the app is not one of the package's: the package's own apps win first.
let rememberedMenu: unknown;
@@ -141,8 +241,6 @@ export function StudioAreaAppOpen({
setAnswer('fallback');
return;
}
- const opened = openedAt.current;
- const list = detailListHref(opened.pathname, new URLSearchParams(opened.search));
if (target.kind === 'item') {
setAnswer({
to: withStudioReturn(appItemPath(segment, type, name), list),
diff --git a/ui/packages/app-shell/src/views/studio-design/StudioMetadataArea.tsx b/ui/packages/app-shell/src/views/studio-design/StudioMetadataArea.tsx
index 997eb4d8106..7205f34fe4a 100644
--- a/ui/packages/app-shell/src/views/studio-design/StudioMetadataArea.tsx
+++ b/ui/packages/app-shell/src/views/studio-design/StudioMetadataArea.tsx
@@ -323,6 +323,17 @@ function AreaCreate({ customization }: { customization: StudioBaseCustomization
} />
);
}
+ // objectstack#36907 — a dashboard is made in its app's design mode, in the
+ // 「Add menu item」 picker, so it hangs in a menu (objectstack#36359): the
+ // app opens with the mode entered and the picker on its dashboards. What
+ // the mode saves goes to the package, or a read-only base's pair. With no
+ // app to open, or on a phone, the area's own create, as for a report; the
+ // list offers no New in either case (`useStudioDashboardNew`).
+ if (type === 'dashboard' && host?.packageId && (!host.readOnly || host.pairCreate)) {
+ return (
+ } />
+ );
+ }
return ;
}
diff --git a/ui/packages/app-shell/src/views/studio-design/studioAppEdit.ts b/ui/packages/app-shell/src/views/studio-design/studioAppEdit.ts
index dabc1008cb5..b682c36a12d 100644
--- a/ui/packages/app-shell/src/views/studio-design/studioAppEdit.ts
+++ b/ui/packages/app-shell/src/views/studio-design/studioAppEdit.ts
@@ -110,8 +110,9 @@ export function studioAppEditSegment({
}
/**
- * The app segment that a new report opens in (decision 13), or `null` when
- * there is none. A new report has no menu entry yet, so this is
+ * The app segment that a new report opens in (decision 13), or a new
+ * dashboard (objectstack#36907, in the app's design mode), or `null` when
+ * there is none. A new item has no menu entry yet, so this is
* {@link studioAppEditSegment} without the menu half of rule 1.
*/
export function studioAppCreateSegment({
@@ -143,6 +144,15 @@ export function appItemPath(segment: string, type: StudioAppEditType, name: stri
return `/apps/${encodeURIComponent(segment)}/${type}/${encodeURIComponent(name)}`;
}
+/**
+ * The app's root, `/apps/`, where a new dashboard is made
+ * (objectstack#36907): the app opens its landing, with the design mode
+ * entered by the arrival the address never carries (`designModeAddDashboardArrival`).
+ */
+export function appHomePath(segment: string): string {
+ return `/apps/${encodeURIComponent(segment)}`;
+}
+
/** The app's new-report page, `/apps//reports/new` (decision 13). */
export function appNewReportPath(segment: string): string {
return `/apps/${encodeURIComponent(segment)}/reports/new`;
diff --git a/ui/packages/i18n/src/namespaces/studio/en.ts b/ui/packages/i18n/src/namespaces/studio/en.ts
index 1b5e9a52bf8..1e33237a83d 100644
--- a/ui/packages/i18n/src/namespaces/studio/en.ts
+++ b/ui/packages/i18n/src/namespaces/studio/en.ts
@@ -4087,6 +4087,9 @@ const STUDIO_EN: Record = {
'engine.list.emptyType': 'No {type} items registered',
'engine.list.emptyQuery': 'No matches for "{query}"',
'engine.list.createHint': 'Click "New" above to create the first {type}.',
+ // objectstack#36907 — a Studio dashboard list's New opens an app's design mode.
+ 'engine.list.dashboardNewNoApp':
+ 'A new dashboard is made in an app\'s design mode, so that it hangs in a menu. This package has no app to make it in.',
'engine.list.readOnlyHint':
'This type is read-only — instances are defined by code artifacts in packages.',
// objectui#7611 — the environment scope (Setup catalog). See `catalog-scope.ts`.
diff --git a/ui/packages/i18n/src/namespaces/studio/zh.ts b/ui/packages/i18n/src/namespaces/studio/zh.ts
index ca132b30608..ff28c738b27 100644
--- a/ui/packages/i18n/src/namespaces/studio/zh.ts
+++ b/ui/packages/i18n/src/namespaces/studio/zh.ts
@@ -3623,6 +3623,8 @@ const STUDIO_ZH: Record = {
'engine.list.emptyType': '暂无 {type} 条目',
'engine.list.emptyQuery': '没有匹配 "{query}" 的结果',
'engine.list.createHint': '点击上方"新建"创建第一个 {type}。',
+ // objectstack#36907 — a Studio dashboard list's New opens an app's design mode.
+ 'engine.list.dashboardNewNoApp': '新仪表盘在应用的设计模式中创建,这样它会挂在菜单上。这个包没有可以创建它的应用。',
'engine.list.readOnlyHint': '此类型为只读 — 实例由包内的代码工件定义。',
'engine.catalog.col.active': '启用',
'engine.catalog.status.all': '全部',