refactor(asl): ASL frontend architecture refactoring with left navigation
- feat: Create ASLLayout component with 7-module left navigation - feat: Implement Title Screening Settings page with optimized PICOS layout - feat: Add placeholder pages for Workbench and Results - fix: Fix nested routing structure for React Router v6 - fix: Resolve Spin component warning in MainLayout - fix: Add QueryClientProvider to App.tsx - style: Optimize PICOS form layout (P+I left, C+O+S right) - style: Align Inclusion/Exclusion criteria side-by-side - docs: Add architecture refactoring and routing fix reports Ref: Week 2 Frontend Development Scope: ASL module MVP - Title Abstract Screening
This commit is contained in:
@@ -184,16 +184,23 @@ PostgreSQL 15 + Prisma 6.17.0
|
||||
|
||||
#### **M1.2 - 后端API搭建**(Week 1, Day 2-3)
|
||||
|
||||
> **⭐ 前置条件(2025-11-16 更新)**:平台已提供基础设施服务
|
||||
> **说明**:存储、日志、异步任务等服务已在平台级实现(`backend/src/common/`),ASL模块可直接使用
|
||||
> **参考文档**:[平台基础设施规划](../../../09-架构实施/04-平台基础设施规划.md)
|
||||
> **⭐ 前置条件(2025-11-17 更新)**:平台基础设施已完成实施 ✅
|
||||
> **完成状态**:8个核心模块,100%测试通过
|
||||
> **完成报告**:[平台基础设施实施完成报告](../../../08-项目管理/03-每周计划/2025-11-17-平台基础设施实施完成报告.md)
|
||||
> **使用指南**:[backend/src/common/README.md](../../../../backend/src/common/README.md)
|
||||
|
||||
**平台已提供服务(无需ASL模块实现)**:
|
||||
- ✅ 存储服务:`import { storage } from '@/common/storage'` - 文件上传下载
|
||||
- ✅ 日志系统:`import { logger } from '@/common/logging'` - 标准化日志
|
||||
- ✅ 异步任务:`import { jobQueue } from '@/common/jobs'` - 长时间任务处理
|
||||
- ✅ 缓存服务:`import { cache } from '@/common/cache'` - 分布式缓存
|
||||
- ✅ 数据库:`import { prisma } from '@/config/database'` - 全局Prisma实例
|
||||
**平台已提供的8个核心模块(无需ASL模块实现)**:
|
||||
|
||||
| # | 模块 | 路径 | 使用方式 | 说明 |
|
||||
|---|------|------|---------|------|
|
||||
| 1 | **存储服务** | `common/storage/` | `import { storage } from '@/common/storage'` | 文件上传下载(本地/OSS切换) |
|
||||
| 2 | **日志系统** | `common/logging/` | `import { logger } from '@/common/logging'` | 结构化JSON日志 |
|
||||
| 3 | **缓存服务** | `common/cache/` | `import { cache } from '@/common/cache'` | 内存/Redis缓存 |
|
||||
| 4 | **异步任务** | `common/jobs/` | `import { jobQueue } from '@/common/jobs'` | 长时间任务处理 |
|
||||
| 5 | **健康检查** | `common/health/` | `import { registerHealthRoutes } from '@/common/health'` | SAE健康检查 |
|
||||
| 6 | **监控指标** | `common/monitoring/` | `import { Metrics } from '@/common/monitoring'` | 性能监控和告警 |
|
||||
| 7 | **数据库连接池** | `config/database.ts` | `import { prisma } from '@/config/database'` | 全局Prisma实例 |
|
||||
| 8 | **环境配置** | `config/env.ts` | `import { env } from '@/config/env'` | 统一配置管理 |
|
||||
|
||||
**任务**:
|
||||
- [ ] 创建 `backend/src/modules/asl/` 目录结构
|
||||
@@ -239,7 +246,7 @@ PostgreSQL 15 + Prisma 6.17.0
|
||||
- ✅ ASL后端目录结构完整
|
||||
- ✅ API路由注册成功
|
||||
- ✅ 核心API可调用(Postman测试通过)
|
||||
- ✅ 正常使用平台服务(storage/logger/jobs等)
|
||||
- ✅ 正常使用平台服务(storage/logger/cache/jobQueue/prisma等8个模块)
|
||||
|
||||
---
|
||||
|
||||
@@ -547,6 +554,7 @@ PostgreSQL 15 + Prisma 6.17.0
|
||||
---
|
||||
|
||||
**更新日志**:
|
||||
- 2025-11-18: V3.1 更新,补充平台基础设施完成状态(8个核心模块)
|
||||
- 2025-11-16: V3.0 重写,基于真实架构(Frontend-v2 + Backend增量演进 + 10个Schema)
|
||||
- 2025-11-16: V2.0 重写,基于三阶段路线图详细规划里程碑
|
||||
- 2025-10-29: V1.0 创建,初始版本
|
||||
|
||||
Reference in New Issue
Block a user