Kanban:修复已归档任务显示与计数#619
Open
hanzckernel wants to merge 1 commit intoEKKOLearnAI:mainfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
已归档任务现在通过显式 archived 路径进入看板列表和统计。
Fixes #601
为什么
用户在会话里可以查到已归档任务,但看板页的“已归档”列和数量一直显示为 0。根因是普通任务列表和统计只覆盖默认 active 输出,已归档任务需要额外走
--archived路径。这次只修这个显示/计数问题,不把其他任务操作能力混进来。
改动
includeArchived=true参数。includeArchived。list --archived。by_status.archived和total,避免普通 stats 漏算。验证
已通过:
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结果:
说明
main,没有依赖或合入 Kanban:补齐任务操作链路,明确能力边界 #615。status=archived查询不足以覆盖这个场景。