feat: add CI unit test, /api/health, Dockerfile HEALTHCHECK, bundle-analyzer

This commit is contained in:
SpecialX
2026-07-07 20:23:03 +08:00
parent 415dde9122
commit dbb124bf17
7 changed files with 244 additions and 14 deletions

View File

@@ -22,9 +22,10 @@
### TD-P1-001: noUncheckedIndexedAccess 全量修复
- **状态**: 计划在 P2 阶段实施
- **状态**: 已评估419 个错误,推迟到独立迭代
- **影响**: 开启 `noUncheckedIndexedAccess` 后,所有数组/对象索引访问返回 `T | undefined`,需要全量修复类型错误
- **预估工作量**: 涉及大量文件,需要逐个添加类型守卫或非空断言
- **评估结果**: 2026-07-07 评估,开启后产生 419 个 tsc 错误,主要涉及 `array[0]``array[index]``Object.keys()[i]` 等模式
- **建议**: 独立迭代逐步修复,按模块分批进行(优先修复 data-access 层,再修复 actions 层,最后修复组件层)
- **关联**: tsconfig.json
### TD-P1-002: CI 缺少 Unit test 阶段