mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-11-09 20:07:43 +08:00
fix(ui-goal): tell an inactive goal from a paused one in Chinese
The Chinese GoalBar used 已暂停的目标 both for a durably paused goal and for an active goal whose automatic continuation is disarmed, the state every active goal has after a restart. Users could not tell whether a goal had been paused. The disarmed label now reads 待继续的目标; paused goals keep 已暂停的目标. Refs #7757
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
/** Simplified Chinese dictionary (the key-set source of truth). */
|
||||
export const zh = {
|
||||
'phase.active': '进行中的目标',
|
||||
'phase.active.disarmed': '已暂停的目标',
|
||||
'phase.active.disarmed': '待继续的目标',
|
||||
'phase.paused': '已暂停的目标',
|
||||
'phase.blocked': '受阻的目标',
|
||||
'objective.aria': '目标内容',
|
||||
|
||||
@@ -379,7 +379,7 @@ describe('GoalDock adapter', () => {
|
||||
const t = makeTranslate(zh, commonZh)
|
||||
const props = { useProjection, useGoalActivation, ...actions, t } as unknown as Parameters<typeof GoalDock>[0]
|
||||
const rendered = render(<GoalDock {...props} />)
|
||||
expect(rendered.getByText('已暂停的目标')).toBeTruthy()
|
||||
expect(rendered.getByText('待继续的目标')).toBeTruthy()
|
||||
expect(screen.getByRole('button', { name: '恢复目标' })).toBeTruthy()
|
||||
expect(rendered.queryByRole('button', { name: '暂停目标' })).toBeNull()
|
||||
})
|
||||
|
||||
@@ -153,10 +153,11 @@ describe('GoalBar', () => {
|
||||
expect(actions.onPause).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
|
||||
it('active disarmed goal: "已暂停的目标" with a resume action instead of pause', () => {
|
||||
it('active disarmed goal: "待继续的目标" with a resume action instead of pause', () => {
|
||||
const actions = makeActions()
|
||||
render(<GoalBar goal={makeGoal()} activation="disarmed" {...actions} t={t} />)
|
||||
expect(screen.getByText('已暂停的目标')).toBeTruthy()
|
||||
expect(screen.getByText('待继续的目标')).toBeTruthy()
|
||||
expect(screen.queryByText('已暂停的目标')).toBeNull()
|
||||
fireEvent.click(screen.getByRole('button', { name: '恢复目标' }))
|
||||
expect(actions.onResume).toHaveBeenCalledTimes(1)
|
||||
expect(screen.queryByRole('button', { name: '暂停目标' })).toBeNull()
|
||||
|
||||
Reference in New Issue
Block a user