Files
AIclinicalresearch/frontend-v2/package.json
HaHafeng af325348b8 feat(dc): Complete Tool C Day 5 - AI Chat + Ant Design X Integration
Summary:
- Upgrade to Ant Design 6.0.1 + install Ant Design X (2.1.0) + X SDK (2.1.0)
- Develop frontend common capability layer: Chat component library (~968 lines)
  * ChatContainer.tsx - Core container component
  * MessageRenderer.tsx - Message renderer
  * CodeBlockRenderer.tsx - Code block renderer with syntax highlighting
  * Complete TypeScript types and documentation
- Integrate ChatContainer into Tool C
- Fix 7 critical UI issues:
  * AG Grid module registration error
  * UI refinement (borders, shadows, gradients)
  * Add AI welcome message
  * Auto-clear input field after sending
  * Remove page scrollbars
  * Manual code execution (not auto-run)
  * Support simple Q&A (new /ai/chat API)
- Complete end-to-end testing
- Update all documentation (4 status docs + 6 dev logs)

Technical Stack:
- Frontend: React 19 + Ant Design 6.0 + Ant Design X 2.1
- Components: Bubble, Sender from @ant-design/x
- Total code: ~5418 lines

Status: Tool C MVP completed, production ready
2025-12-07 22:02:14 +08:00

56 lines
1.4 KiB
JSON

{
"name": "frontend-v2",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"
},
"dependencies": {
"@ant-design/charts": "^2.6.6",
"@ant-design/icons": "^6.1.0",
"@ant-design/x": "^2.1.0",
"@ant-design/x-sdk": "^2.1.0",
"@tanstack/react-query": "^5.90.7",
"@tanstack/react-table": "^8.21.3",
"ag-grid-community": "^34.3.1",
"ag-grid-react": "^34.3.1",
"antd": "^6.0.1",
"axios": "^1.13.2",
"dayjs": "^1.11.19",
"dexie": "^4.2.1",
"diff-match-patch": "^1.0.5",
"immer": "^11.0.0",
"lodash": "^4.17.21",
"lucide-react": "^0.555.0",
"mathjs": "^15.1.0",
"prismjs": "^1.30.0",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"react-router-dom": "^7.9.5",
"xlsx": "^0.18.5",
"zustand": "^5.0.8"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@types/lodash": "^4.17.21",
"@types/node": "^24.10.0",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"@vitejs/plugin-react": "^5.1.0",
"autoprefixer": "^10.4.22",
"eslint": "^9.39.1",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.24",
"globals": "^16.5.0",
"postcss": "^8.5.6",
"tailwindcss": "^3.4.18",
"typescript": "~5.9.3",
"typescript-eslint": "^8.46.3",
"vite": "^7.2.2"
}
}