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( expect(
within(timeline).getAllByText('GoodBuddy').length within(timeline).getAllByText('GoodBuddy').length
).toBeGreaterThan(0) ).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('项目:项目甲')).toBeInTheDocument()
expect( expect(
within(timeline).getByText( within(timeline).getByText(
+1 -3
View File
@@ -381,9 +381,7 @@ export function ActivityPanel({
return { return {
kind: 'subagent', kind: 'subagent',
name: record.title, name: record.title,
abbreviation: abbreviation: t('timeline.nodes.subagent')
Array.from(record.title.trim())[0] ??
t('timeline.nodes.subagent')
} }
} }
if (record.kind === 'tool') { if (record.kind === 'tool') {
@@ -92,11 +92,11 @@ export const activity = {
approval: '审批' approval: '审批'
}, },
nodes: { nodes: {
user: '', user: 'U',
assistant: 'G', assistant: 'G',
tool: '', tool: 'T',
approval: '', approval: 'A',
subagent: '' subagent: 'S'
} }
}, },
empty: { empty: {