Skip to content

Sprint/1#3

Merged
kooksee merged 16 commits into
masterfrom
sprint/1
Apr 30, 2026
Merged

Sprint/1#3
kooksee merged 16 commits into
masterfrom
sprint/1

Conversation

@kooksee
Copy link
Copy Markdown
Collaborator

@kooksee kooksee commented Apr 30, 2026

Summary by CodeRabbit

发布说明

  • 新功能

    • 新增思维导图笔记视图模式,支持文档大纲的可视化展示与交互导航
    • 支持标题点击折叠/展开,改进文档阅读体验
    • 增强图表渲染错误处理,失败时支持重试操作
  • 文档

    • 新增中文完整文档:README、架构设计、功能清单、快速上手指南
    • 新增项目声明(NOTICE)文件
  • bug修复

    • 修复反向链接导航行为
  • 测试

    • 新增及改进单元测试覆盖

kooksee and others added 16 commits April 30, 2026 11:11
@kooksee kooksee merged commit c19d8c8 into master Apr 30, 2026
1 of 4 checks passed
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 30, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 89f99c8d-20f5-4486-b600-31fd923cf3d9

📥 Commits

Reviewing files that changed from the base of the PR and between e9b1b92 and 6e6be4b.

📒 Files selected for processing (23)
  • NOTICE
  • README.md
  • docs/architecture.md
  • docs/design.md
  • docs/global-search.md
  • docs/markdown-capabilities.md
  • docs/quick-start-visual.md
  • frontend/src/App.tsx
  • frontend/src/components/BacklinksPanel.tsx
  • frontend/src/components/DocumentMindmapPanel.tsx
  • frontend/src/components/MarkdownViewer.test.tsx
  • frontend/src/components/MarkdownViewer.tsx
  • frontend/src/components/MermaidBlock.test.tsx
  • frontend/src/components/MindmapToggle.test.tsx
  • frontend/src/components/MindmapToggle.tsx
  • frontend/src/components/OutlineNotebookPanel.tsx
  • frontend/src/components/OutlineTreeView.tsx
  • frontend/src/components/PlantUmlBlock.test.tsx
  • frontend/src/components/SvgBobBlock.test.tsx
  • frontend/src/utils/documentMindmap.test.ts
  • frontend/src/utils/documentMindmap.ts
  • frontend/src/utils/notebookOutline.test.ts
  • frontend/src/utils/notebookOutline.ts

概览

此变更引入笔记本视图模式(可视化大纲和思维导图),添加中文本地化文档和许可说明,新增前端思维导图组件与大纲编辑工具库,完善了系统架构和功能设计文档。

变更说明

开发集群/文件 变更摘要
许可证和国际化
NOTICE, README.md
新增NOTICE文件记录上游项目属性;README全量翻译为中文包括功能说明、使用文档和参数表。
系统设计文档
docs/architecture.md, docs/design.md, docs/markdown-capabilities.md
新增架构与设计文档,阐述后端Go+前端React分发、请求时序、文件持久化、API清单、功能清单与安全边界。
快速入门与功能文档
docs/global-search.md, docs/quick-start-visual.md
新增可视化快速上手指南;全量中文化全文搜索文档的参与者名称和交互标签。
笔记本视图UI核心
frontend/src/App.tsx, frontend/src/components/MindmapToggle.*, frontend/src/components/DocumentMindmapPanel.tsx, frontend/src/components/OutlineNotebookPanel.tsx
实现笔记本视图模式,新增思维导图切换按钮、AntV G6思维导图渲染组件、支持大纲折叠的笔记本面板;App增加notebook布局模式。
Markdown增强与交互
frontend/src/components/MarkdownViewer.tsx, frontend/src/components/MarkdownViewer.test.tsx, frontend/src/components/OutlineTreeView.tsx
MarkdownViewer新增标题折叠、图表错误处理与PlantUML重试功能;OutlineTreeView添加嵌入模式与文件选择回调;新增完整测试覆盖。
链接导航修复
frontend/src/components/BacklinksPanel.tsx
同组回链改用window.location.assign替代pushState,确保可靠导航。
图表渲染测试
frontend/src/components/MermaidBlock.test.tsx, frontend/src/components/PlantUmlBlock.test.tsx, frontend/src/components/SvgBobBlock.test.tsx
Mermaid/PlantUML/SvgBob测试新增错误消息验证与超时/重试场景覆盖。
UI组件测试新增
frontend/src/components/MindmapToggle.test.tsx
新增MindmapToggle组件按钮渲染与可访问性属性测试。
笔记本大纲工具库
frontend/src/utils/notebookOutline.ts, frontend/src/utils/notebookOutline.test.ts
新增完整大纲编辑工具库:项目增删改、缩进调整、折叠计算、拖拽排序、批量操作,含173行全面测试。
文档思维导图工具库
frontend/src/utils/documentMindmap.ts, frontend/src/utils/documentMindmap.test.ts
新增从标题构建嵌套树、Mermaid思维导图语法生成、图表节点构建的工具函数,包含单元测试验证。

代码审查工作量估计

🎯 3 (中等复杂) | ⏱️ ~30 分钟

庆祝诗

🐰 笔记本模式闪闪亮,
思维导图绘梦想,
大纲折叠显精巧,
工具库函数齐完善,
中文文档润笔下,
代码质量稳步上!

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch sprint/1

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant