fix: use Latin activity node labels
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user