Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 13 additions & 0 deletions .changeset/37566-app-studio-display-name.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@objectstack/platform-objects': patch
'@object-ui/i18n': patch
---

feat(studio): the Studio app is named 应用搭建 in a Chinese interface and App Studio in every other

Clause-②: no
Metadata-protocol: none

Display text only (ADR-0084, the position amendment): the Studio app's label is now "App Studio" (`STUDIO_APP.label`), its `zh-CN` translation 应用搭建 and its `zh-Hant` translation 應用搭建; every other locale pack, which kept the English product name, now reads "App Studio". Each pack's recorded source hash for the label moves with it, so the translations are served rather than replaced by the English source. The console's `console.studio.title` (the Studio crumb, and the key the Studio brand reads) follows in all eleven UI packs.

Unchanged: the app's name `studio`, the `/studio` address, permission names such as `studio.access`, and every package and API name. Sentences that mention Studio elsewhere in the UI are not reworded by this change.
2 changes: 1 addition & 1 deletion packages/platform-objects/src/apps/studio.app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import type { App } from '@objectstack/spec/ui';

export const STUDIO_APP: App = {
name: 'studio',
label: 'Studio',
label: 'App Studio',
description: 'Metadata workbench for developers, analysts, and implementers',
icon: 'hammer',
active: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const arSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_connector_connections.label': '949e9a8fd25c3d57',
'apps.setup.navigation.nav_slack.label': 'c3c9e181e8c74b22',
'apps.setup.navigation.nav_oauth_apps.label': '1b26cce61a4c10eb',
'apps.studio.label': '5aaaaea2294ee893',
'apps.studio.label': '479a1bf587b5965e',
'apps.studio.description': 'c026a5795933995d',
'apps.studio.navigation.group_overview.label': 'eebdbe1cc7b59cdf',
'apps.studio.navigation.nav_app_builder.label': '128446e7650210e7',
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-objects/src/apps/translations/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const ar: TranslationData = {
},
},
studio: {
label: 'Studio',
label: 'App Studio',
description: 'منضدة عمل البيانات الوصفية للمطوّرين والمحللين والمنفّذين',
navigation: {
group_overview: { label: 'نظرة عامة' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const deSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_connector_connections.label': '949e9a8fd25c3d57',
'apps.setup.navigation.nav_slack.label': 'c3c9e181e8c74b22',
'apps.setup.navigation.nav_oauth_apps.label': '1b26cce61a4c10eb',
'apps.studio.label': '5aaaaea2294ee893',
'apps.studio.label': '479a1bf587b5965e',
'apps.studio.description': 'c026a5795933995d',
'apps.studio.navigation.group_overview.label': 'eebdbe1cc7b59cdf',
'apps.studio.navigation.nav_app_builder.label': '128446e7650210e7',
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-objects/src/apps/translations/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const de: TranslationData = {
},
},
studio: {
label: 'Studio',
label: 'App Studio',
description: 'Metadaten-Werkbank für Entwickler, Analysten und Implementierer',
navigation: {
group_overview: { label: 'Übersicht' },
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-objects/src/apps/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export const en: TranslationData = {
},
},
studio: {
label: 'Studio',
label: 'App Studio',
description: 'Metadata workbench for developers, analysts, and implementers',
navigation: {
group_overview: { label: 'Overview' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const esESSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_http_deliveries.label': '340f81dc6ea64987',
'apps.setup.navigation.nav_datasources.label': '2f0648ce23158e6f',
'apps.setup.navigation.nav_oauth_apps.label': '1b26cce61a4c10eb',
'apps.studio.label': '5aaaaea2294ee893',
'apps.studio.label': '479a1bf587b5965e',
'apps.studio.description': 'c026a5795933995d',
'apps.studio.navigation.group_overview.label': 'eebdbe1cc7b59cdf',
'apps.studio.navigation.nav_app_builder.label': '128446e7650210e7',
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-objects/src/apps/translations/es-ES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const esES: TranslationData = {
},
},
studio: {
label: 'Studio',
label: 'App Studio',
description: 'Banco de trabajo de metadatos para desarrolladores, analistas e implementadores',
navigation: {
group_overview: { label: 'Resumen' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const frSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_connector_connections.label': '949e9a8fd25c3d57',
'apps.setup.navigation.nav_slack.label': 'c3c9e181e8c74b22',
'apps.setup.navigation.nav_oauth_apps.label': '1b26cce61a4c10eb',
'apps.studio.label': '5aaaaea2294ee893',
'apps.studio.label': '479a1bf587b5965e',
'apps.studio.description': 'c026a5795933995d',
'apps.studio.navigation.group_overview.label': 'eebdbe1cc7b59cdf',
'apps.studio.navigation.nav_app_builder.label': '128446e7650210e7',
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-objects/src/apps/translations/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const fr: TranslationData = {
},
},
studio: {
label: 'Studio',
label: 'App Studio',
description: 'Atelier de métadonnées pour les développeurs, les analystes et les intégrateurs',
navigation: {
group_overview: { label: 'Aperçu' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const jaJPSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_http_deliveries.label': '340f81dc6ea64987',
'apps.setup.navigation.nav_datasources.label': '2f0648ce23158e6f',
'apps.setup.navigation.nav_oauth_apps.label': '1b26cce61a4c10eb',
'apps.studio.label': '5aaaaea2294ee893',
'apps.studio.label': '479a1bf587b5965e',
'apps.studio.description': 'c026a5795933995d',
'apps.studio.navigation.group_overview.label': 'eebdbe1cc7b59cdf',
'apps.studio.navigation.nav_app_builder.label': '128446e7650210e7',
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-objects/src/apps/translations/ja-JP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const jaJP: TranslationData = {
},
},
studio: {
label: 'Studio',
label: 'App Studio',
description: '開発者・アナリスト・実装担当者向けのメタデータワークベンチ',
navigation: {
group_overview: { label: '概要' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const koSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_connector_connections.label': '949e9a8fd25c3d57',
'apps.setup.navigation.nav_slack.label': 'c3c9e181e8c74b22',
'apps.setup.navigation.nav_oauth_apps.label': '1b26cce61a4c10eb',
'apps.studio.label': '5aaaaea2294ee893',
'apps.studio.label': '479a1bf587b5965e',
'apps.studio.description': 'c026a5795933995d',
'apps.studio.navigation.group_overview.label': 'eebdbe1cc7b59cdf',
'apps.studio.navigation.nav_app_builder.label': '128446e7650210e7',
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-objects/src/apps/translations/ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const ko: TranslationData = {
},
},
studio: {
label: 'Studio',
label: 'App Studio',
description: '개발자, 분석가, 구현 담당자를 위한 메타데이터 작업대',
navigation: {
group_overview: { label: '개요' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const ptBRSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_connector_connections.label': '949e9a8fd25c3d57',
'apps.setup.navigation.nav_slack.label': 'c3c9e181e8c74b22',
'apps.setup.navigation.nav_oauth_apps.label': '1b26cce61a4c10eb',
'apps.studio.label': '5aaaaea2294ee893',
'apps.studio.label': '479a1bf587b5965e',
'apps.studio.description': 'c026a5795933995d',
'apps.studio.navigation.group_overview.label': 'eebdbe1cc7b59cdf',
'apps.studio.navigation.nav_app_builder.label': '128446e7650210e7',
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-objects/src/apps/translations/pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const ptBR: TranslationData = {
},
},
studio: {
label: 'Studio',
label: 'App Studio',
description: 'Ateliê de metadados para desenvolvedores, analistas e integradores',
navigation: {
group_overview: { label: 'Visão geral' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const ruSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_connector_connections.label': '949e9a8fd25c3d57',
'apps.setup.navigation.nav_slack.label': 'c3c9e181e8c74b22',
'apps.setup.navigation.nav_oauth_apps.label': '1b26cce61a4c10eb',
'apps.studio.label': '5aaaaea2294ee893',
'apps.studio.label': '479a1bf587b5965e',
'apps.studio.description': 'c026a5795933995d',
'apps.studio.navigation.group_overview.label': 'eebdbe1cc7b59cdf',
'apps.studio.navigation.nav_app_builder.label': '128446e7650210e7',
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-objects/src/apps/translations/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const ru: TranslationData = {
},
},
studio: {
label: 'Studio',
label: 'App Studio',
description: 'Мастерская метаданных для разработчиков, аналитиков и интеграторов',
navigation: {
group_overview: { label: 'Обзор' },
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
//
// The Studio app's display name (ADR-0084, the 2026-11-26 position amendment):
// a Chinese interface reads 应用搭建 and every other interface App Studio. Only
// display text moved — the app's name, its `/studio` address and every
// identifier stay `studio`.
//
// The served bundle is what is judged here, not the hand-authored pack: a
// translation whose recorded source hash disagrees with the current `en` source
// is replaced by that source on the way out (`withSourceFallback`), so a
// re-translated label whose digest was not re-recorded would serve the English
// name in the Chinese UI while every pack still read correctly.

import { describe, expect, it } from 'vitest';
import { STUDIO_APP } from '../studio.app.js';
import { SetupAppTranslations } from './setup.translation.js';

const CHINESE: Readonly<Record<string, string>> = {
'zh-CN': '应用搭建',
'zh-Hant': '應用搭建',
};

describe('Studio app display name', () => {
it('keeps the identifier and renames only the label', () => {
expect(STUDIO_APP.name).toBe('studio');
expect(STUDIO_APP.label).toBe('App Studio');
});

it.each(Object.keys(SetupAppTranslations))('serves the ruled name in %s', (locale) => {
const served = SetupAppTranslations[locale]?.apps?.studio?.label;
expect(served).toBe(CHINESE[locale] ?? 'App Studio');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const zhCNSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_http_deliveries.label': '340f81dc6ea64987',
'apps.setup.navigation.nav_datasources.label': '2f0648ce23158e6f',
'apps.setup.navigation.nav_oauth_apps.label': '1b26cce61a4c10eb',
'apps.studio.label': '5aaaaea2294ee893',
'apps.studio.label': '479a1bf587b5965e',
'apps.studio.description': 'c026a5795933995d',
'apps.studio.navigation.group_overview.label': 'eebdbe1cc7b59cdf',
'apps.studio.navigation.nav_app_builder.label': '128446e7650210e7',
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-objects/src/apps/translations/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const zhCN: TranslationData = {
},
},
studio: {
label: 'Studio',
label: '应用搭建',
description: '面向开发者、分析师与实施者的元数据工作台',
navigation: {
group_overview: { label: '总览' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const zhHantSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_connector_connections.label': '949e9a8fd25c3d57',
'apps.setup.navigation.nav_slack.label': 'c3c9e181e8c74b22',
'apps.setup.navigation.nav_oauth_apps.label': '1b26cce61a4c10eb',
'apps.studio.label': '5aaaaea2294ee893',
'apps.studio.label': '479a1bf587b5965e',
'apps.studio.description': 'c026a5795933995d',
'apps.studio.navigation.group_overview.label': 'eebdbe1cc7b59cdf',
'apps.studio.navigation.nav_app_builder.label': '128446e7650210e7',
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-objects/src/apps/translations/zh-Hant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const zhHant: TranslationData = {
},
},
studio: {
label: 'Studio',
label: '應用搭建',
description: '供開發者、分析師與導入人員使用的中繼資料工作台',
navigation: {
group_overview: { label: '總覽' },
Expand Down
2 changes: 1 addition & 1 deletion ui/packages/app-shell/src/layout/AppHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ export function AppHeader({
// ADR-0146 D5 — the read-only entry's words: 「Open {app} in Studio」, the
// app switcher's row text, named for the app the bar is in.
const viewInStudioText = t('topbar.openAppInStudio', {
defaultValue: 'Open {{app}} in Studio',
defaultValue: 'Open {{app}} in App Studio',
app: currentApp ? appLabel(currentApp) : (appName ?? ''),
});

Expand Down
4 changes: 2 additions & 2 deletions ui/packages/app-shell/src/layout/AppSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,11 @@ export function AppSwitcher({
<span className="flex-1 truncate">
{studioPosture === 'view'
? t('layout.appSwitcher.openAppInStudio', {
defaultValue: 'Open {{app}} in Studio',
defaultValue: 'Open {{app}} in App Studio',
app: appLabelText,
})
: t('layout.appSwitcher.editAppInStudio', {
defaultValue: 'Edit {{app}} in Studio',
defaultValue: 'Edit {{app}} in App Studio',
app: appLabelText,
})}
</span>
Expand Down
2 changes: 1 addition & 1 deletion ui/packages/app-shell/src/layout/SidebarAppMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function StudioAppItem({ entry }: { entry: StudioEntry }) {
</span>
<span className="flex-1 truncate">
{view
? t('topbar.viewInStudio', { defaultValue: 'View in Studio' })
? t('topbar.viewInStudio', { defaultValue: 'View in App Studio' })
: t('topbar.editApp', { defaultValue: 'Edit app' })}
</span>
</Link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ describe('the app bar\'s Edit app follows the owning package\'s posture (objectu
mountAt(HOTCRM_ROUTE);
await settle();
// ADR-0146 D5 — the eye is named for the app: 「Open {app} in Studio」.
expect(screen.getByRole('link', { name: 'Open CRM in Studio' })).toHaveAttribute('href', HOTCRM_VIEW);
expect(screen.getByRole('link', { name: 'Open CRM in App Studio' })).toHaveAttribute('href', HOTCRM_VIEW);
});

it('CONTROL — the pencil for a writable package, deep-linked, and the switcher row to the same target', async () => {
Expand Down Expand Up @@ -387,7 +387,7 @@ describe('the read-only entry draws WITH its text, named for the app (objectstac
const entry = screen.getByTestId('app-view-in-studio-button');
const words = entry.querySelector('[data-slot="view-in-studio-text"]');
expect(words).not.toBeNull();
expect(words).toHaveTextContent(/^Open CRM in Studio$/);
expect(words).toHaveTextContent(/^Open CRM in App Studio$/);
expect(words).not.toHaveClass('sr-only');
expect(entry.querySelector('svg')).not.toBeNull();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ describe('the dropdown ends with the way back to Home and the admin Studio row (
const last = rows[rows.length - 1];
const studio = menu().getByTestId('app-switcher-edit-in-studio');
expect(last).toContainElement(studio);
expect(studio).toHaveTextContent('Edit HotCRM in Studio');
expect(studio).toHaveTextContent('Edit HotCRM in App Studio');
expect(studio).toHaveAttribute('href', '/studio/com.acme.hotcrm/data');
// The way back to Home sits right before it (no Setup app in this list).
expect(rows[rows.length - 2]).toContainElement(menu().getByTestId('app-switcher-home'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ describe('the Studio row follows the top bar\'s posture (#27356 row 12)', () =>
renderSwitcher('hotcrm', PATH, 'view');
const row = menu().getByTestId('app-switcher-view-in-studio');
expect(row).toHaveAttribute('href', PATH);
expect(row).toHaveTextContent('Open HotCRM in Studio');
expect(row).toHaveTextContent('Open HotCRM in App Studio');
expect(row.querySelector('svg.lucide-eye')).not.toBeNull();
expect(menu().queryByTestId('app-switcher-edit-in-studio')).not.toBeInTheDocument();
});

it('CONTROL — edit keeps 「Edit APP in Studio」 with the pencil (the first case above passes no posture and reads the same row)', () => {
renderSwitcher('hotcrm', PATH, 'edit');
expect(menu().getByTestId('app-switcher-edit-in-studio')).toHaveTextContent('Edit HotCRM in Studio');
expect(menu().getByTestId('app-switcher-edit-in-studio')).toHaveTextContent('Edit HotCRM in App Studio');
expect(menu().getByTestId('app-switcher-edit-in-studio').querySelector('svg.lucide-pencil')).not.toBeNull();
expect(menu().queryByTestId('app-switcher-view-in-studio')).not.toBeInTheDocument();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ describe('the group carries no 「Edit app」 and no 「Open APP in Studio」 (o
expect(within(group).queryByTestId('shell-page-actions-view-app')).toBeNull();
expect(within(group).queryByRole('button', { name: 'Edit app' })).toBeNull();
expect(within(group).queryByRole('link', { name: 'Edit app' })).toBeNull();
expect(within(group).queryByRole('link', { name: 'Open Cloud in Studio' })).toBeNull();
expect(within(group).queryByRole('link', { name: 'Open Cloud in App Studio' })).toBeNull();
expect(within(group).getByTestId('shell-page-actions-help')).toBeInTheDocument();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* objectstack#36758 — the design mode edits the layout only, so its door reads
* 「Design layout」 (zh 「设计布局」), the bar's own word; 「Edit app」 beside
* it opens this app's package in Studio on the app switcher's target and
* posture, and reads 「View in Studio」 (zh 「在 Studio 中查看」) for an
* posture, and reads 「View in App Studio」 (zh 「在应用搭建中查看」) for an
* installed (read-only) package. Real subject added: the built-in en and
* zh-Hans packs, for the words.
*
Expand Down Expand Up @@ -224,7 +224,7 @@ describe('the sidebar app menu only switches apps (objectstack#36112)', () => {
it('offers no way home and no 「All apps」; a member gets no Studio entry', () => {
apps = [CRM, SERVICE, SETUP];
renderMenu('crm');
for (const text of ['Back to home', 'All apps', 'Edit app', 'View in Studio', 'Edit CRM in Studio', 'Open CRM in Studio']) {
for (const text of ['Back to home', 'All apps', 'Edit app', 'View in App Studio', 'Edit CRM in App Studio', 'Open CRM in App Studio']) {
expect(menu().queryByText(text)).toBeNull();
}
});
Expand Down Expand Up @@ -497,7 +497,7 @@ describe('「Edit app」 in the app menu opens this app in Studio (objectstack#3
expect(editInStudio()).toBeNull();
const item = viewInStudio();
expect(item).not.toBeNull();
expect(item).toHaveTextContent(/^View in Studio$/);
expect(item).toHaveTextContent(/^View in App Studio$/);
expect(item!.querySelector('svg.lucide-eye')).not.toBeNull();
expect(item).toHaveAttribute('href', '/studio/com.acme.crm/metadata/object/crm_lead');
});
Expand Down Expand Up @@ -532,11 +532,11 @@ describe('the words: the door and the bar share one name (objectstack#36758)', (
const EN = builtInLocales.en as unknown as Pack;
const ZH = builtInLocales['zh-Hans'] as unknown as Pack;

it('zh-Hans: 「设计布局」 for the door and the bar, 「编辑应用」 and 「在 Studio 中查看」 for Studio', () => {
it('zh-Hans: 「设计布局」 for the door and the bar, 「编辑应用」 and 「在应用搭建中查看」 for Studio', () => {
expect(ZH.topbar.designLayout).toBe('设计布局');
expect(ZH.designMode.title).toBe('设计布局');
expect(ZH.topbar.editApp).toBe('编辑应用');
expect(ZH.topbar.viewInStudio).toBe('在 Studio 中查看');
expect(ZH.topbar.viewInStudio).toBe('在应用搭建中查看');
});

it('every built-in pack names the door as its bar', () => {
Expand Down Expand Up @@ -659,7 +659,7 @@ describe('the docs portal\'s head names no app and only switches apps (objectsta
for (const id of ['sidebar-app-menu-design-layout', 'sidebar-app-menu-edit-app', 'sidebar-app-menu-view-in-studio']) {
expect(portalMenu().queryByTestId(id), id).toBeNull();
}
for (const text of ['Design layout', 'Edit app', 'View in Studio']) expect(portalMenu().queryByText(text)).toBeNull();
for (const text of ['Design layout', 'Edit app', 'View in App Studio']) expect(portalMenu().queryByText(text)).toBeNull();
});

it('control: a member gets the list and no 「Add app」', () => {
Expand Down
Loading
Loading