feat: 重构项目心跳数据结构并实现项目列表API

- 新增统一项目列表Redis键和迁移工具
- 实现GET /api/projects端点获取项目列表
- 实现POST /api/projects/migrate端点支持数据迁移
- 更新前端ProjectSelector组件使用真实项目数据
- 扩展projectStore状态管理
- 更新相关文档和OpenSpec规范
- 添加测试用例验证新功能
This commit is contained in:
2026-01-13 19:45:05 +08:00
parent 19e65d78dc
commit 282f7268ed
66 changed files with 4378 additions and 456 deletions

View File

@@ -1,9 +1,11 @@
# Change: Add Console UI
## Why
需要为BLS Project Console添加一个现代化的控制台界面支持项目选择、命令输入、日志显示和调试信息展示等功能。
## What Changes
- 添加了项目选择组件,支持项目搜索和筛选
- 添加了控制台组件,支持命令输入和日志显示
- 添加了调试区域组件,支持调试信息的展示和筛选
@@ -11,5 +13,6 @@
- 实现了控制台日志管理限制最多1000条记录
## Impact
- Affected specs: specs/logging/spec.md, specs/command/spec.md
- Affected code: src/frontend/components/, src/frontend/views/, src/frontend/router/
- Affected code: src/frontend/components/, src/frontend/views/, src/frontend/router/

View File

@@ -1,4 +1,5 @@
## 1. Implementation
- [x] 1.1 Create ProjectSelector component for project selection
- [x] 1.2 Create Console component for command input and log display
- [x] 1.3 Create DebugArea component for debugging information display
@@ -10,6 +11,7 @@
- [x] 1.9 Implement console log management with 1000 record limit
## 2. Urgent Fixes
- [x] 2.1 Update openspec documentation with all changes
- [x] 2.2 Fix scrolling issues in the page
- [x] 2.3 Optimize ProjectSelector by removing filter section