From 9ab8b8de0e704bbdd8a962970f28ad2458752df8 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 3 Dec 2026 23:09:50 +0000 Subject: [PATCH 1/3] =?UTF-8?q?fix(ui):=20rename=20the=20design=20mode=20d?= =?UTF-8?q?oor=20and=20bar=20back=20to=20=E8=AE=BE=E8=AE=A1=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=20/=20Design=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_016WV4cypQd6ZDPDmXL5MaWR --- .changeset/design-mode-name.md | 9 ++++++++ content/docs/ui/actions.mdx | 2 +- ui/packages/app-shell/README.md | 2 +- .../src/console/AppNoAccessEmptyState.tsx | 2 +- .../app-shell/src/layout/ConsoleLayout.tsx | 2 +- .../app-shell/src/layout/DesignModeBar.tsx | 4 ++-- .../app-shell/src/layout/SidebarAppMenu.tsx | 10 ++++----- .../__tests__/DesignModeMenu-36363.test.tsx | 2 +- .../__tests__/SidebarAppMenu-36112.test.tsx | 22 +++++++++---------- ...ifiedSidebar.hiddenCollapse-35062.test.tsx | 8 +++---- .../__tests__/designMode-36362.test.tsx | 10 ++++----- .../app-shell/src/layout/designMode.tsx | 8 +++---- .../__tests__/RecordTabsConfig-36499.test.tsx | 4 ++-- ui/packages/i18n/src/locales/ar.ts | 10 ++++----- ui/packages/i18n/src/locales/de.ts | 10 ++++----- ui/packages/i18n/src/locales/en.ts | 8 +++---- ui/packages/i18n/src/locales/es.ts | 10 ++++----- ui/packages/i18n/src/locales/fr.ts | 10 ++++----- ui/packages/i18n/src/locales/ja.ts | 10 ++++----- ui/packages/i18n/src/locales/ko.ts | 10 ++++----- ui/packages/i18n/src/locales/pt-BR.ts | 10 ++++----- ui/packages/i18n/src/locales/ru.ts | 10 ++++----- ui/packages/i18n/src/locales/zh-Hans.ts | 14 ++++++------ ui/packages/i18n/src/locales/zh-Hant.ts | 14 ++++++------ ui/packages/i18n/src/namespaces/studio/en.ts | 4 ++-- ui/packages/i18n/src/namespaces/studio/zh.ts | 4 ++-- 26 files changed, 109 insertions(+), 100 deletions(-) create mode 100644 .changeset/design-mode-name.md diff --git a/.changeset/design-mode-name.md b/.changeset/design-mode-name.md new file mode 100644 index 00000000000..5c497879e82 --- /dev/null +++ b/.changeset/design-mode-name.md @@ -0,0 +1,9 @@ +--- +'@object-ui/app-shell': patch +'@object-ui/i18n': patch +--- + +Clause-②: no +Metadata-protocol: none + +fix(console): the app menu's door into the design mode and the mode's bar read 「设计模式」 / "Design mode" again (renamed back from 「设计布局」 / "Design layout"), as do the strings that name the mode. The 「编辑应用」 / 「在 Studio 中查看」 row is unchanged. diff --git a/content/docs/ui/actions.mdx b/content/docs/ui/actions.mdx index e61397d846a..04f80e8ad13 100644 --- a/content/docs/ui/actions.mdx +++ b/content/docs/ui/actions.mdx @@ -440,7 +440,7 @@ ObjectSchema.create({ built-in the scope does not have and a built-in in `more`. `os validate`, `os build` and `os lint` also refuse a name that is no action of the object, or one the scope does not place. - An administrator sets the same arms in the running app: the app name at the top of - the sidebar, then 「Design layout」 in its menu, then 「Header buttons」 at the end of the + the sidebar, then 「Design mode」 in its menu, then 「Header buttons」 at the end of the page header. Only the arm changed is saved. For an installed object it is saved as this environment's customization, the `object_extension` of the base's paired `.custom` package, whose arm replaces the diff --git a/ui/packages/app-shell/README.md b/ui/packages/app-shell/README.md index cdc4ecfb11c..fc8b4d2f00d 100644 --- a/ui/packages/app-shell/README.md +++ b/ui/packages/app-shell/README.md @@ -651,7 +651,7 @@ words "Open {app} in Studio" (ADR-0146 D5) instead of the pencil. From 768 px up, where no top bar is drawn, the sidebar's app menu carries the same entry on the same target and posture (`useAppStudioEntry`): "Edit app" behind a pencil, or "View in Studio" behind an eye for a read-only package. -Beside it, "Design layout" turns on the shell's design mode, which edits the +Beside it, "Design mode" turns on the shell's design mode, which edits the app's layout (its menu, header pins and page arrangement) in place; the mode's bar carries the same name. diff --git a/ui/packages/app-shell/src/console/AppNoAccessEmptyState.tsx b/ui/packages/app-shell/src/console/AppNoAccessEmptyState.tsx index 44896354599..2e7903e7caf 100644 --- a/ui/packages/app-shell/src/console/AppNoAccessEmptyState.tsx +++ b/ui/packages/app-shell/src/console/AppNoAccessEmptyState.tsx @@ -151,7 +151,7 @@ export function AppNoAccessEmptyState({ app, setupPath, reason = 'no-navigation' defaultValue: '{{app}} has nothing in its menu yet', })} description={t('empty.appMenuEmptyDescription', { - defaultValue: 'Create objects for this app in App Studio and they join its menu, or add entries in Design layout.', + defaultValue: 'Create objects for this app in App Studio and they join its menu, or add entries in Design mode.', })} action={