feat(iit): V3.2 data consistency + project isolation + admin config redesign + Chinese labels
Summary: - Refactor timeline API to read from qc_field_status (SSOT) instead of qc_logs - Add field-issues paginated API with severity/dimension/recordId filters - Add LEFT JOIN field_metadata + qc_event_status for Chinese display names - Implement per-project ChatOrchestrator cache and SessionMemory isolation - Redesign admin IIT config tabs (REDCap -> Fields -> KB -> Rules -> Members) - Add AI-powered QC rule generation (D3 programmatic + D1/D5/D6 LLM-based) - Add clickable warning/critical detail Modal in ReportsPage - Auto-dispatch eQuery after batch QC via DailyQcOrchestrator - Update module status documentation to v3.2 Backend changes: - iitQcCockpitController: rewrite getTimeline from qc_field_status, add getFieldIssues - iitQcCockpitRoutes: add field-issues route - ChatOrchestrator: per-projectId cached instances - SessionMemory: keyed by userId::projectId - WechatCallbackController: resolve projectId from iitUserMapping - iitRuleSuggestionService: dimension-based suggest + generateD3Rules - iitBatchController: call DailyQcOrchestrator after batch QC Frontend changes: - AiStreamPage: adapt to new timeline structure with dimension tags - ReportsPage: clickable stats cards with issue detail Modal - IitProjectDetailPage: reorder tabs, add AI rule generation UI - iitProjectApi: add TimelineIssue, FieldIssueItem types and APIs Status: TypeScript compilation verified, no new lint errors Made-with: Cursor
This commit is contained in:
@@ -43,7 +43,7 @@ const MODULES = [
|
||||
},
|
||||
{
|
||||
code: 'IIT',
|
||||
name: 'IIT管理',
|
||||
name: 'CRA质控',
|
||||
description: 'IIT项目管理系统,支持REDCap集成和项目协作',
|
||||
icon: 'ProjectOutlined',
|
||||
is_active: true,
|
||||
@@ -73,6 +73,22 @@ const MODULES = [
|
||||
is_active: true,
|
||||
sort_order: 8,
|
||||
},
|
||||
{
|
||||
code: 'RM',
|
||||
name: '研究管理',
|
||||
description: '研究项目管理系统,支持项目全流程管理',
|
||||
icon: 'ProjectOutlined',
|
||||
is_active: true,
|
||||
sort_order: 9,
|
||||
},
|
||||
{
|
||||
code: 'AIA_PROTOCOL',
|
||||
name: '全流程研究方案制定',
|
||||
description: 'AI问答模块内的Protocol Agent功能,可按用户/租户独立配置开关',
|
||||
icon: 'ExperimentOutlined',
|
||||
is_active: true,
|
||||
sort_order: 100,
|
||||
},
|
||||
];
|
||||
|
||||
async function main() {
|
||||
|
||||
Reference in New Issue
Block a user