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