OpenViking icon indicating copy to clipboard operation
OpenViking copied to clipboard

[Bug]: Pending labels differ between task rows and filters / 任务行与筛选项的等待状态文案不一致

Open viafcccy opened this issue 2 months ago • 0 comments

Issue Origin

Observed or reproduced in a real environment

Bug Description

English After #4825, task statuses and status-filtered requests correctly follow the API, but pending rows still use a separate language branch: Queued in English and 队首等待中 in Chinese. The status filter and existing translation resources use Pending / 等待中. The same API state therefore has inconsistent labels within /studio/tasks.

中文 #4825 已修复任务状态和状态筛选请求。剩余问题是等待中行标签仍单独按语言分支显示:英文 Queued、中文“队首等待中”;状态筛选项及已有翻译资源则使用 Pending / “等待中”。同一个 API 状态在 /studio/tasks 内显示不一致。

Steps to Reproduce

English

  1. Supply the tasks endpoint with 12 distinct running records and 2 distinct pending records.
  2. Open /studio/tasks, select Pending, and compare the selected filter with the two row labels.
  3. Switch between English and Simplified Chinese and repeat.

中文

  1. 为任务接口提供 12 条运行中、2 条等待中记录,每条使用不同资源 ID。
  2. 打开 /studio/tasks,选择等待中,对比筛选项和两条记录的状态标签。
  3. 切换英文和简体中文后重复检查。

Expected Behavior

Use the existing tasksPage.status.pending translation consistently: Pending / “等待中”. Preserve API statuses, filtered counts and route lazy loading. / 统一使用已有 tasksPage.status.pending 翻译:Pending / “等待中”;保留 API 状态、筛选后的计数与路由懒加载。

Actual Behavior

Rows display Queued / “队首等待中” while the filter displays Pending / “等待中”. / 行标签与状态筛选项使用不同文案。

Minimal Reproducible Example


Error Logs


OpenViking Version

main @ 7eed9adf753afcc7b83189967f2e48d32007093e (after #4825 / #4825 合入后)

Python Version

N/A: frontend reproduction / 不适用:前端复现

Operating System

macOS

Model Backend

None

Additional Context

Reproduced using the actual Task Center component with controlled task responses and the repository's English/Chinese translation resources. / 使用真实任务中心组件、受控任务响应和仓库中英文翻译资源复现。

macOS; Node.js 24.19.0; Vitest/jsdom with the real route component and translations. The regression fails in both languages before the fix. / macOS、Node.js 24.19.0;Vitest/jsdom 加载真实路由组件和翻译资源,修改前中英文回归均失败。Python/model workers are not required for this frontend reproduction. / 此前端复现无需 Python 或模型工作进程。

Follow-up to the maintainer's request in #4823: reuse the localized pending label, remove the unused status helper, and add page-level regression coverage using a test entry point that preserves code splitting. / 对应维护者在 #4823 中建议的增量改进:复用等待中翻译、删除未使用的状态辅助函数,并在保留代码拆分的前提下补充页面级回归覆盖。

viafcccy avatar Sep 09 '26 07:09 viafcccy