dev-manager-tauri/.blueprint/modules/blueprint-view.md
lanrtop 0cdaa3678c feat: add Blueprint feature to ProjectCard and commands
- Introduced BlueprintModal in ProjectCard for project blueprint visualization.
- Added state management for displaying the BlueprintModal.
- Implemented Blueprint-related interfaces and functions in commands.ts for handling blueprint data.
2026-04-02 19:12:53 +09:00

48 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: blueprint-view
name: 蓝图可视化
status: in_progress
progress: 10
---
## 概述
读取项目 .blueprint/ 目录中的 manifest.yaml 和 modules/*.md用 React Flow 渲染项目全景架构图。点击模块节点展示详情和任务卡列表。
## 任务卡
### ✅ .blueprint/ 数据结构设计
- status: done
- files: .blueprint/manifest.yaml, .blueprint/CONVENTIONS.md
定义 manifest.yaml 格式、模块文件格式、任务卡格式、CONVENTIONS 规则。
### 📋 蓝图读取 Command
- status: todo
- complexity: M
- files: src-tauri/src/commands/blueprint.rs (待创建)
- acceptance: 实现 get_blueprint tauri command读取指定项目路径下的 .blueprint/manifest.yaml 和 modules/*.md解析后返回结构化数据
### 📋 React Flow 节点图渲染
- status: todo
- complexity: L
- files: src/components/dashboard/BlueprintModal.tsx (待创建)
- depends: blueprint-reader
- acceptance: 将 manifest.yaml 的 modules 渲染为自定义节点带状态色标、进度条edges 渲染为连线areas 渲染为分组背景
### 📋 模块详情面板
- status: todo
- complexity: M
- files: src/components/dashboard/BlueprintModal.tsx
- depends: blueprint-reader
- acceptance: 点击节点后在底部/侧边展示模块描述和任务卡列表,任务卡按状态分组显示
### 📋 项目卡片蓝图入口
- status: todo
- complexity: S
- files: src/components/dashboard/ProjectCard.tsx
- acceptance: 项目卡片新增「蓝图」按钮,点击打开 BlueprintModal检测到无 .blueprint/ 时显示引导提示
### 💭 统计汇总条
- status: concept
- notes: 模态框顶部展示项目完成度统计条(已完成 X / 进行中 X / 规划中 X / 构思中 X