feat(pkb): Complete PKB module frontend migration with V3 design

Summary:
- Implement PKB Dashboard and Workspace pages based on V3 prototype
- Add single-layer header with integrated Tab navigation
- Implement 3 work modes: Full Text, Deep Read, Batch Processing
- Integrate Ant Design X Chat component for AI conversations
- Create BatchModeComplete with template selection and document processing
- Add compact work mode selector with dropdown design

Backend:
- Migrate PKB controllers and services to /modules/pkb structure
- Register v2 API routes at /api/v2/pkb/knowledge
- Maintain dual API routes for backward compatibility

Technical details:
- Use Zustand for state management
- Handle SSE streaming responses for AI chat
- Support document selection for Deep Read mode
- Implement batch processing with progress tracking

Known issues:
- Batch processing API integration pending
- Knowledge assets page navigation needs optimization

Status: Frontend functional, pending refinement
This commit is contained in:
2026-01-06 22:15:42 +08:00
parent b31255031e
commit 5a17d096a7
226 changed files with 14899 additions and 224 deletions

View File

@@ -677,3 +677,7 @@ private async processMessageAsync(xmlData: any) {
- v1.0 (2026-01-04): 初始版本Phase 1.5完成

View File

@@ -1071,3 +1071,7 @@ async function testIntegration() {

View File

@@ -212,3 +212,7 @@ Content-Type: application/json

View File

@@ -632,3 +632,7 @@ REDCap API: exportRecords success { recordCount: 1 }
**✅ 部署状态**: 已部署到开发环境

View File

@@ -638,3 +638,7 @@ backend/src/modules/iit-manager/

View File

@@ -788,3 +788,7 @@ CREATE TABLE iit_schema.wechat_tokens (

View File

@@ -545,3 +545,7 @@ Day 3 的开发工作虽然遇到了多个技术问题,但最终成功完成

View File

@@ -312,3 +312,7 @@ AI: "出生日期2017-01-04

View File

@@ -256,3 +256,7 @@ Day 4: REDCap EMWebhook推送← 作为增强,而非核心

View File

@@ -670,3 +670,7 @@ const answer = `根据研究方案[1]和CRF表格[2],纳入标准包括:
- v1.0 (2026-01-04): 初始版本Phase 1.5完成后整理