重构(knowledge-pipeline): Knowledge / Dashboard 二级导航更名为 Pipeline 全链路对齐 - #482
Closed
ThreeFish-AI wants to merge 1 commit into
Closed
重构(knowledge-pipeline): Knowledge / Dashboard 二级导航更名为 Pipeline 全链路对齐#482ThreeFish-AI wants to merge 1 commit into
ThreeFish-AI wants to merge 1 commit into
Conversation
…全链路对齐; Knowledge 模块二级 tab "Dashboard" 是泛化容器名,与同模块兄弟 (Knowledge Base / Knowledge Graph / Catalog / Wiki / Documents / APIs,均为领域名词) 命名风格不一致; 该页面主轴是 Pipeline Runs 列表 + 指标 + Alerts,命名与功能事实漂移。本次全栈 一次性改名,无 backward-compat alias (遵循 AGENTS.md "Single Source of Truth")。 后端契约 - schemas.py: DashboardResponse → PipelineSummaryResponse - api.py: GET /knowledge/dashboard get_dashboard() → GET /knowledge/pipeline get_pipeline_summary() 前端调用链 - features/knowledge/utils/knowledge-api.ts: KnowledgeDashboard 类型 → KnowledgePipelineSummary; fetchDashboard() → fetchPipelineSummary(); URL /api/knowledge/dashboard → /api/knowledge/pipeline - features/knowledge/index.ts: re-export 同步 目录搬迁与导航 - app/api/knowledge/dashboard/ → pipeline/ (git mv 保留历史) - app/knowledge/dashboard/ → pipeline/ (git mv 保留历史) - 删除 app/knowledge/pipelines/page.tsx 旧 redirect 占位 - KnowledgeNav.tsx NAV_ITEMS: dashboard 项 → pipeline + Pipeline 标签 - 页面组件 KnowledgeDashboardPage → KnowledgePipelinePage; title="Dashboard" → title="Pipeline",描述同步 测试与视觉快照 - tests/unit/knowledge/DashboardPage.test.tsx git mv 为 PipelinePage.test.tsx + 内部 KnowledgeDashboardPage / fetchDashboardMock / primeDashboardMock / DEFAULT_DASHBOARD 全量改名 - KnowledgeNav.test.tsx 路由 + 断言改名 - tests/helpers/knowledge.ts mock helper 改名 - E2E smoke.spec.ts: route mock / goto / toHaveScreenshot 文件名 / 局部变量改名 - 视觉快照 PNG git mv 为新文件名 (截图区域只取 Pipeline Runs panel,文案不变, 基线视觉一致) 文档 - docs/user-guide.md: 路由表 + 章节标题改名;删除已不存在的 /knowledge/pipelines 旧 redirect 行 - docs/knowledges.md: Knowledge API 描述同步 - docs/issue.md: 新增 ISSUE-078 档案 - CHANGELOG.md: 顶部新增改名条目 严格不动 - Memory /api/memory/dashboard (语义合理) - Interface Dashboard tab (Admin/Models 总览) - docs/issue.md / CHANGELOG.md 历史条目里的旧路径引用 (档案性质) - fetchPipelines / KnowledgePipelinesPayload / PipelineRunRecord / PipelineRunCard 等 runs 维度概念 (正交不变) 验证 - pnpm typecheck / pnpm lint 通过 - 18/18 单元测试通过 (PipelinePage.test.tsx 17 例 + KnowledgeNav.test.tsx 1 例) - ruff check 通过;后端 5/5 API 测试通过 详见 docs/issue.md ISSUE-078。 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
ThreeFish-AI
added a commit
that referenced
this pull request
Jul 5, 2026
…-2026-4372 处置) (#1057) * fix(deps): ts-deepmerge 补丁地板至 8.0.0 修复 GHSA-87mf-gv2c-c62c (#481); 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com> * fix(negentropy): pydantic-settings 升 2.14.2 + joserfc>=1.6.7 补丁地板修复 #482/#488; 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com> * fix(cognizes): joserfc/msgpack/python-socketio/python-engineio 补丁地板修复 #483/#486/#487/#490/#491; 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com> * docs(perceives): ISSUE-092 增补 CVE-2026-4372 威胁模型;transformers 钉 4.x + dismiss #492(marker 5.x 不兼容实测); 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
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.
背景
Knowledge 模块二级 tab
Knowledge Base / Knowledge Graph / Catalog / Wiki / Documents / APIs / Dashboard中只有Dashboard是泛化容器名,与同模块兄弟 (均为领域名词) 命名风格不一致;该页面主轴是 Pipeline Runs 列表 + 指标 + Alerts,命名与功能事实漂移。本 PR 全栈一次性改名为Pipeline,无 backward-compat alias (遵循 AGENTS.md "Single Source of Truth")。变更摘要
后端契约
schemas.py:DashboardResponse→PipelineSummaryResponseapi.py:GET /knowledge/dashboard get_dashboard()→GET /knowledge/pipeline get_pipeline_summary()前端调用链
features/knowledge/utils/knowledge-api.ts:KnowledgeDashboard类型 →KnowledgePipelineSummary;fetchDashboard()→fetchPipelineSummary();URL/api/knowledge/dashboard→/api/knowledge/pipelinefeatures/knowledge/index.ts: re-export 同步目录搬迁与导航
app/api/knowledge/dashboard/→pipeline/(git mv 保留历史)app/knowledge/dashboard/→pipeline/(git mv 保留历史)app/knowledge/pipelines/page.tsx旧 redirect 占位KnowledgeNav.tsxNAV_ITEMS: dashboard 项 →pipeline+Pipeline标签KnowledgeDashboardPage→KnowledgePipelinePage,title="Dashboard"→title="Pipeline"测试与视觉快照
tests/unit/knowledge/DashboardPage.test.tsxgit mv 为PipelinePage.test.tsx+ 内部 mock / fixture 全量改名KnowledgeNav.test.tsx路由 + 断言改名tests/helpers/knowledge.tsmock helper 改名smoke.spec.ts: route mock / goto /toHaveScreenshot文件名 / 局部变量改名git mv为新文件名 (截图区域只取 Pipeline Runs panel,文案不变,基线视觉一致)文档
docs/user-guide.md: 路由表 + 章节标题改名;删除已不存在的/knowledge/pipelines旧 redirect 行docs/knowledges.md: Knowledge API 描述同步docs/issue.md: 新增 ISSUE-078 档案CHANGELOG.md: 顶部新增改名条目严格不动
/api/memory/dashboard(语义合理)Dashboardtab (Admin/Models 总览)docs/issue.md/CHANGELOG.md历史条目里的旧路径引用 (档案性质)fetchPipelines/KnowledgePipelinesPayload/PipelineRunRecord/PipelineRunCard等 runs 维度概念 (正交不变)验证
pnpm typecheck通过pnpm lint通过PipelinePage.test.tsx17 例 +KnowledgeNav.test.tsx1 例)ruff check src/negentropy/knowledge/通过test_api_pipelines.py5/5 通过MemoryDashboardResponse与 docs 历史档案)测试计划
pnpm typecheck && pnpm lint && pnpm testuv run pytest tests/unit_tests/smoke -g "Knowledge Pipeline"视觉基线匹配/knowledge/pipeline应正常渲染;/knowledge/dashboard返回 404关联
详见
docs/issue.mdISSUE-078。🤖 Generated with Claude Code, CodeX, Gemini