feat(insights): rename the card stats to Token 总用量 / 总预估费用
This commit is contained in:
1 parent
ef8e1d24dd
commit
a4bbcf4f2b
2 files changed
+8
-8
No files matched your search
+6
-6
@@ -398,7 +398,7 @@ export const DICT_ZH: Record<string, string> = {
|
||||
'ov.list.search': '搜索标题 / 目录 / 最后消息…',
|
||||
'ov.list.sortLabel': '排序',
|
||||
'ov.list.sort.recent': '最近更新',
|
||||
'ov.list.sort.tokens': '团队用量',
|
||||
'ov.list.sort.tokens': 'Token 总用量',
|
||||
'ov.list.sort.context': '当前 Context',
|
||||
'ov.list.empty': '还没有会话 — 发起一轮对话后,这里会列出每个会话的上下文画像',
|
||||
'ov.list.noMatch': '没有匹配当前筛选条件的会话',
|
||||
@@ -414,8 +414,8 @@ export const DICT_ZH: Record<string, string> = {
|
||||
'ov.running': '运行中',
|
||||
'ov.current': '当前',
|
||||
'ov.card.turns': '{n} 轮 {s} 步',
|
||||
'ov.card.teamUsage': '团队用量',
|
||||
'ov.card.teamCost': '团队费用',
|
||||
'ov.card.teamUsage': 'Token 总用量',
|
||||
'ov.card.teamCost': '总预估费用',
|
||||
'ov.card.lastUser': '最后消息',
|
||||
'ov.time.now': '刚刚',
|
||||
'ov.time.m': '{n} 分钟前',
|
||||
@@ -814,7 +814,7 @@ export const DICT_EN: Record<string, string> = {
|
||||
'ov.list.search': 'Search title / path / last message…',
|
||||
'ov.list.sortLabel': 'Sort',
|
||||
'ov.list.sort.recent': 'Last updated',
|
||||
'ov.list.sort.tokens': 'Team Usage',
|
||||
'ov.list.sort.tokens': 'Total Tokens',
|
||||
'ov.list.sort.context': 'Current Context',
|
||||
'ov.list.empty': 'No sessions yet — each session’s context profile appears here once you start one',
|
||||
'ov.list.noMatch': 'No sessions match the current filters',
|
||||
@@ -830,8 +830,8 @@ export const DICT_EN: Record<string, string> = {
|
||||
'ov.running': 'Running',
|
||||
'ov.current': 'current',
|
||||
'ov.card.turns': '{n} turns · {s} steps',
|
||||
'ov.card.teamUsage': 'Team Usage',
|
||||
'ov.card.teamCost': 'Team Cost',
|
||||
'ov.card.teamUsage': 'Total Tokens',
|
||||
'ov.card.teamCost': 'Total Est. Cost',
|
||||
'ov.card.lastUser': 'Last message',
|
||||
'ov.time.now': 'just now',
|
||||
'ov.time.m': '{n}m ago',
|
||||
|
||||
@@ -52,7 +52,7 @@ describe('OverviewCard', () => {
|
||||
// The three mini stats: turns+steps lead, then the team's billed, then its cost.
|
||||
const labels = queryAll(m.container, '.lc-ov-mini-label').map(el => el.textContent)
|
||||
const values = queryAll(m.container, '.lc-ov-mini-value').map(el => el.textContent)
|
||||
assert.deepEqual(labels, ['Turns', 'Team Usage', 'Team Cost'])
|
||||
assert.deepEqual(labels, ['Turns', 'Total Tokens', 'Total Est. Cost'])
|
||||
assert.deepEqual(values, ['9 turns · 12 steps', '1.8k', '$0.02'])
|
||||
await m.unmount()
|
||||
})
|
||||
@@ -174,7 +174,7 @@ describe('OverviewCard', () => {
|
||||
const ZhCard = makeOverviewCard(makeKit('zh'))
|
||||
const m = await mount(h(ZhCard, { row: rowOf({ timeline: TIMELINE }), costLabel: '¥0.13', now: NOW, onOpen: () => {} }))
|
||||
const labels = queryAll(m.container, '.lc-ov-mini-label').map(el => el.textContent)
|
||||
assert.deepEqual(labels, ['轮次', '团队用量', '团队费用'])
|
||||
assert.deepEqual(labels, ['轮次', 'Token 总用量', '总预估费用'])
|
||||
const values = queryAll(m.container, '.lc-ov-mini-value').map(el => el.textContent)
|
||||
assert.equal(values[0], '9 轮 12 步')
|
||||
assert.equal(query(m.container, '.lc-ov-session-time').textContent, '3 小时前')
|
||||
|
||||
Reference in new issue
Block a user