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: {