From 618e505b8b17f3630053738152b822d766592ba5 Mon Sep 17 00:00:00 2001 From: mesalogo Date: Thu, 27 Aug 2026 10:30:15 +0800 Subject: [PATCH] fix: restore the workspace brand subtitle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The primary sidebar showed only the GoodBuddy name after its supporting brand line was removed. It now displays the localized “智能工作台” / “Intelligent Workspace” subtitle beneath the product name again. Release note: 恢复左上角 GoodBuddy 标题下方的“智能工作台”副标题,使品牌区域的信息层级更加完整。 --- src/renderer/src/App.test.tsx | 2 +- src/renderer/src/App.tsx | 1 + src/renderer/src/i18n/locales/en-US/app.ts | 3 +++ src/renderer/src/i18n/locales/zh-CN/app.ts | 3 +++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/App.test.tsx b/src/renderer/src/App.test.tsx index f215bfef..492dbb56 100644 --- a/src/renderer/src/App.test.tsx +++ b/src/renderer/src/App.test.tsx @@ -1336,7 +1336,7 @@ describe('App', () => { /你好,我是 GoodBuddy。你可以直接向我提问、添加本地文件/u ) ).toBeInTheDocument() - expect(screen.queryByText('桌面工作区')).not.toBeInTheDocument() + expect(screen.getByText('智能工作台')).toBeInTheDocument() expect(screen.queryByText('GOODBUDDY 工作台')).not.toBeInTheDocument() expect( document.querySelector('.composer__runtime-toolbar') diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index e2241ad8..660d283d 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -7916,6 +7916,7 @@ function App(): React.JSX.Element {
GoodBuddy + {t('brand.subtitle')}
diff --git a/src/renderer/src/i18n/locales/en-US/app.ts b/src/renderer/src/i18n/locales/en-US/app.ts index 0e2dc8cd..ea8d40de 100644 --- a/src/renderer/src/i18n/locales/en-US/app.ts +++ b/src/renderer/src/i18n/locales/en-US/app.ts @@ -2,6 +2,9 @@ import type { TranslationShape } from '../../resource-types' import type { app as chineseApp } from '../zh-CN/app' export const app = { + brand: { + subtitle: 'Intelligent Workspace' + }, notifications: { success: 'Success', error: 'Error', diff --git a/src/renderer/src/i18n/locales/zh-CN/app.ts b/src/renderer/src/i18n/locales/zh-CN/app.ts index a6ec3450..86aba833 100644 --- a/src/renderer/src/i18n/locales/zh-CN/app.ts +++ b/src/renderer/src/i18n/locales/zh-CN/app.ts @@ -1,4 +1,7 @@ export const app = { + brand: { + subtitle: '智能工作台' + }, notifications: { success: '成功', error: '错误',