fix: restore the workspace brand subtitle
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 标题下方的“智能工作台”副标题,使品牌区域的信息层级更加完整。
This commit is contained in:
@@ -1336,7 +1336,7 @@ describe('App', () => {
|
|||||||
/你好,我是 GoodBuddy。你可以直接向我提问、添加本地文件/u
|
/你好,我是 GoodBuddy。你可以直接向我提问、添加本地文件/u
|
||||||
)
|
)
|
||||||
).toBeInTheDocument()
|
).toBeInTheDocument()
|
||||||
expect(screen.queryByText('桌面工作区')).not.toBeInTheDocument()
|
expect(screen.getByText('智能工作台')).toBeInTheDocument()
|
||||||
expect(screen.queryByText('GOODBUDDY 工作台')).not.toBeInTheDocument()
|
expect(screen.queryByText('GOODBUDDY 工作台')).not.toBeInTheDocument()
|
||||||
expect(
|
expect(
|
||||||
document.querySelector('.composer__runtime-toolbar')
|
document.querySelector('.composer__runtime-toolbar')
|
||||||
|
|||||||
@@ -7916,6 +7916,7 @@ function App(): React.JSX.Element {
|
|||||||
</div>
|
</div>
|
||||||
<div className="brand__copy">
|
<div className="brand__copy">
|
||||||
<strong>GoodBuddy</strong>
|
<strong>GoodBuddy</strong>
|
||||||
|
<span>{t('brand.subtitle')}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,9 @@ import type { TranslationShape } from '../../resource-types'
|
|||||||
import type { app as chineseApp } from '../zh-CN/app'
|
import type { app as chineseApp } from '../zh-CN/app'
|
||||||
|
|
||||||
export const app = {
|
export const app = {
|
||||||
|
brand: {
|
||||||
|
subtitle: 'Intelligent Workspace'
|
||||||
|
},
|
||||||
notifications: {
|
notifications: {
|
||||||
success: 'Success',
|
success: 'Success',
|
||||||
error: 'Error',
|
error: 'Error',
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
export const app = {
|
export const app = {
|
||||||
|
brand: {
|
||||||
|
subtitle: '智能工作台'
|
||||||
|
},
|
||||||
notifications: {
|
notifications: {
|
||||||
success: '成功',
|
success: '成功',
|
||||||
error: '错误',
|
error: '错误',
|
||||||
|
|||||||
Reference in New Issue
Block a user