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

@@ -559,6 +559,10 @@ df['creatinine'] = pd.to_numeric(df['creatinine'], errors='coerce')

View File

@@ -974,6 +974,10 @@ export const aiController = new AIController();

View File

@@ -1308,6 +1308,10 @@ npm install react-markdown

View File

@@ -216,6 +216,10 @@ FMA___基线 | FMA___1个月 | FMA___2个月

View File

@@ -374,6 +374,10 @@ formula = "FMA总分0-100 / 100"

View File

@@ -208,6 +208,10 @@ async handleFillnaMice(request, reply) {

View File

@@ -180,6 +180,10 @@ method: 'mean' | 'median' | 'mode' | 'constant' | 'ffill' | 'bfill'

View File

@@ -631,6 +631,10 @@ import { logger } from '../../../../common/logging/index.js';

View File

@@ -434,6 +434,10 @@ import { ChatContainer } from '@/shared/components/Chat';

View File

@@ -344,6 +344,10 @@ const initialMessages = defaultMessages.length > 0 ? defaultMessages : [{

View File

@@ -632,6 +632,10 @@ http://localhost:5173/data-cleaning/tool-c

View File

@@ -420,6 +420,10 @@ Docs: docs/03-业务模块/DC-数据清洗整理/06-开发记录/DC模块重建

View File

@@ -293,6 +293,10 @@ ConflictDetectionService // 冲突检测(字段级对比)

View File

@@ -457,6 +457,10 @@ Tool B后端代码**100%复用**了平台通用能力层,无任何重复开发

View File

@@ -234,6 +234,10 @@ $ node scripts/check-dc-tables.mjs

View File

@@ -467,6 +467,10 @@ ${fields.map((f, i) => `${i + 1}. ${f.name}${f.desc}`).join('\n')}