fix: use Latin activity node labels

This commit is contained in:
mesalogo
2026-08-15 18:06:03 +08:00
parent 67d30d9e21
commit 5f1ae7727a
3 changed files with 25 additions and 7 deletions
+20
View File
@@ -398,6 +398,26 @@ describe('ActivityPanel', () => {
expect(
within(timeline).getAllByText('GoodBuddy').length
).toBeGreaterThan(0)
expect(
within(
screen.getByRole('button', { name: /用户,任务/u })
).getByText('U')
).toBeInTheDocument()
expect(
within(
screen.getByRole('button', { name: /活动 2,工具/u })
).getByText('T')
).toBeInTheDocument()
expect(
within(
screen.getByRole('button', { name: /研究专家,子专家/u })
).getByText('S')
).toBeInTheDocument()
expect(
within(
screen.getByRole('button', { name: /GoodBuddy,结果/u })
).getByText('G')
).toBeInTheDocument()
expect(within(timeline).getByText('项目:项目甲')).toBeInTheDocument()
expect(
within(timeline).getByText(
+1 -3
View File
@@ -381,9 +381,7 @@ export function ActivityPanel({
return {
kind: 'subagent',
name: record.title,
abbreviation:
Array.from(record.title.trim())[0] ??
t('timeline.nodes.subagent')
abbreviation: t('timeline.nodes.subagent')
}
}
if (record.kind === 'tool') {
@@ -92,11 +92,11 @@ export const activity = {
approval: '审批'
},
nodes: {
user: '用',
user: 'U',
assistant: 'G',
tool: '工',
approval: '审',
subagent: '专'
tool: 'T',
approval: 'A',
subagent: 'S'
}
},
empty: {