Commit Graph

27 Commits

Author SHA1 Message Date
AI Clinical Dev Team
cc3323b795 docs: add quick start guide (START-BEGIN.md) 2025-10-10 21:15:45 +08:00
AI Clinical Dev Team
96d9783242 fix: create mock user to resolve FK constraint issue
Issues fixed:
1. Frontend port is 3000 (not 5173)
2. Projects API returns 500 due to missing user
3. Foreign key constraint violation on projects_user_id_fkey

Solutions:
- Created create-mock-user.ts script
- Added user-mock-001 to database
- Created startup guide (娴嬭瘯鍜屽惎鍔?md)
- Created one-click launcher (涓€閿惎鍔?bat)
- Created diagnostic tool (璇婃柇闂.bat)

New files:
- backend/src/scripts/create-mock-user.ts
- 娴嬭瘯鍜屽惎鍔?md
- 涓€閿惎鍔?bat
- 璇婃柇闂.bat
2025-10-10 21:15:04 +08:00
AI Clinical Dev Team
e11bb3fb5e docs: Day 14-17 completion summary and milestone 1 completed 2025-10-10 20:54:38 +08:00
AI Clinical Dev Team
84bf1c86ab feat: Day 14-17 - Frontend Chat Interface completed
Frontend:
- Create MessageList component with streaming animation
- Create MessageInput component with @knowledge base support
- Create ModelSelector component (DeepSeek/Qwen/Gemini)
- Implement conversationApi with SSE streaming
- Update AgentChatPage integrate all components
- Add Markdown rendering (react-markdown + remark-gfm)
- Add code highlighting (react-syntax-highlighter)
- Add vite-env.d.ts for environment variables

Features:
- Real-time streaming output with cursor animation
- Markdown and code block rendering
- Model switching (DeepSeek-V3, Qwen3-72B, Gemini Pro)
- @Knowledge base selector (UI ready)
- Auto-scroll to bottom
- Shift+Enter for new line, Enter to send
- Beautiful message bubble design

Build: Frontend build successfully (7.94s, 1.9MB)

New Files:
- components/chat/MessageList.tsx (170 lines)
- components/chat/MessageList.css (150 lines)
- components/chat/MessageInput.tsx (145 lines)
- components/chat/MessageInput.css (60 lines)
- components/chat/ModelSelector.tsx (110 lines)
- components/chat/ModelSelector.css (35 lines)
- api/conversationApi.ts (170 lines)
- src/vite-env.d.ts (9 lines)

Total: ~850 lines of new code
2025-10-10 20:52:30 +08:00
AI Clinical Dev Team
8bd2b4fc54 fix: rename QWEN_API_KEY to DASHSCOPE_API_KEY for accuracy 2025-10-10 20:44:04 +08:00
AI Clinical Dev Team
8afff23995 docs: Day 12-13 completion summary and milestone update 2025-10-10 20:33:18 +08:00
AI Clinical Dev Team
702e42febb docs: Day 10-11 completion summary and milestone update
- Create Day10-11-Agent Configuration System completion document
- Update development milestone, mark Day 10-11 as completed
- Update overall progress: Milestone 1 reached 80%
- Document detailed agent config features and API endpoints
2025-10-10 20:17:44 +08:00
AI Clinical Dev Team
864a0b1906 feat: Day 10-11 - Agent Configuration System completed
Backend:
- Create agents.yaml config file with 12 agents definition
- Create Prompt templates for topic-evaluation agent
- Implement agentService.ts for loading and managing agent configs
- Create agentController.ts with CRUD operations
- Create agent routes (GET /agents, /agents/:id, etc.)
- Register agent routes in main server

Frontend:
- Create agentApi.ts service module
- Update AgentChatPage to dynamically load agent config from API
- Add loading state and error handling
- Display agent details (description, category, model)

Build: Both frontend and backend build successfully
2025-10-10 20:13:08 +08:00
AI Clinical Dev Team
59522eaab7 docs: Day 8-9 completion summary and milestone update 2025-10-10 19:41:16 +08:00
AI Clinical Dev Team
b72167f73e feat: Day 8-9 - Project Management API completed
Backend:
- Create project routes (GET, POST, PUT, DELETE)
- Implement projectController with CRUD operations
- Create projectService for database operations
- Add validation middleware for request validation
- Update Prisma schema (add background, researchType, deletedAt fields)
- Implement soft delete for projects

Frontend:
- Create projectApi service module
- Update useProjectStore with fetchProjects and loading state
- Connect ProjectSelector to real API with loading indicator
- Connect CreateProjectDialog to real API with error handling
- Connect EditProjectDialog to real API with loading state
- Add comprehensive error handling and user feedback

Build: Both frontend and backend build successfully
2025-10-10 19:38:49 +08:00
AI Clinical Dev Team
e9e19064e2 docs: update Day 7 summary and milestone progress 2025-10-10 17:57:10 +08:00
AI Clinical Dev Team
fef8feb9db feat(frontend): Day 7 - frontend complete layout finished 2025-10-10 17:52:47 +08:00
AI Clinical Dev Team
df20300190 docs: add README navigation optimization summary 2025-10-10 17:45:47 +08:00
AI Clinical Dev Team
6f451757f2 docs: optimize README navigation links 2025-10-10 17:44:15 +08:00
AI Clinical Dev Team
6fd15a14e0 docs(frontend): improve README documentation with detailed description of 12 agents 2025-10-10 17:37:55 +08:00
AI Clinical Dev Team
0805042e11 fix(frontend): update names of 12 agents
Update agent names according to PRD document:
1. Topic Evaluation Agent
2. Scientific Question Organizing Agent
3. PICOS Construction Agent
4. Observation Indicator Design Agent
5. CRF Development Agent
6. Sample Size Calculation Agent
7. Clinical Research Protocol Writing Agent
8. Paper Polishing Agent
9. Paper Translation Agent
10. Methodology Review Agent
11. Journal Methodology Review Agent
12. Journal Manuscript Review Agent

Updated files:
- MainLayout.tsx
- HomePage.tsx
- AgentPage.tsx
- frontend/README.md
2025-10-10 17:31:21 +08:00
AI Clinical Dev Team
63e2b79b7a docs: Day 6 complete summary and update milestone 2025-10-10 17:24:17 +08:00
AI Clinical Dev Team
f7a500bc79 feat(frontend): Day 6 - frontend basic architecture completed 2025-10-10 17:22:37 +08:00
AI Clinical Dev Team
0db54b2d31 docs: Day 4-5 complete summary and ready for Day 6 2025-10-10 17:09:43 +08:00
AI Clinical Dev Team
10e33a1c2d docs: update Dify deployment status - postpone to later, start Day 6 2025-10-10 17:08:09 +08:00
AI Clinical Dev Team
5184269c91 docs: add Dify deployment status report and update milestone 2025-10-10 16:28:57 +08:00
AI Clinical Dev Team
529c4d6496 docs: add quick start guide 2025-10-10 15:58:14 +08:00
AI Clinical Dev Team
92b0096588 docs: update Day 5 completion status to development milestone 2025-10-10 15:57:18 +08:00
AI Clinical Dev Team
39e14cfb97 feat(backend): Day 5 - backend basic architecture setup completed 2025-10-10 15:56:45 +08:00
AI Clinical Dev Team
1fac0b5cbf docs(day4): add Day 4 completion summary 2025-10-10 15:17:39 +08:00
AI Clinical Dev Team
fa5b8b48ec feat(day4): complete environment setup - Docker services started successfully 2025-10-10 15:16:50 +08:00
AI Clinical Dev Team
bdc7de8043 chore: project initialization - Day 4 environment setup 2025-10-10 15:14:54 +08:00