Skip to content

Kanban:修复已归档任务显示与计数#619

Open
hanzckernel wants to merge 1 commit intoEKKOLearnAI:mainfrom
hanzckernel:fix/kanban-archived-count-main
Open

Kanban:修复已归档任务显示与计数#619
hanzckernel wants to merge 1 commit intoEKKOLearnAI:mainfrom
hanzckernel:fix/kanban-archived-count-main

Conversation

@hanzckernel
Copy link
Copy Markdown
Collaborator

已归档任务现在通过显式 archived 路径进入看板列表和统计。

Fixes #601

为什么

用户在会话里可以查到已归档任务,但看板页的“已归档”列和数量一直显示为 0。根因是普通任务列表和统计只覆盖默认 active 输出,已归档任务需要额外走 --archived 路径。

这次只修这个显示/计数问题,不把其他任务操作能力混进来。

改动

  • 任务列表请求增加 includeArchived=true 参数。
  • 看板 store 拉取任务时显式包含已归档任务,让“已归档”列能拿到真实数据。
  • server controller 透传 includeArchived
  • server 调用 Hermes Kanban CLI 时使用 list --archived
  • 统计接口额外读取已归档任务,并合并 by_status.archivedtotal,避免普通 stats 漏算。
  • 补 client/server 回归测试,覆盖参数透传、CLI 参数和统计合并。

验证

已通过:

git diff --check
npm test -- tests/client/kanban-api.test.ts tests/client/kanban-store.test.ts tests/client/kanban-view.test.ts tests/client/kanban-task-drawer.test.ts tests/server/hermes-kanban-service.test.ts tests/server/kanban-controller.test.ts tests/server/kanban-routes.test.ts
npm run build

结果:

  • Kanban targeted tests:7 files / 35 tests passed
  • build / typecheck:passed
  • independent review:passed,无 blocker

说明

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Kanban 已归档任务没有显示

1 participant