refactor(ECR-001): Phase F types/sdk 对齐并拆分超标 H5 页

抽出 OpenAPI DTO;将 Ask/Report/Profile/Star 等 8 页拆到 ≤400 行,并修 ScaleSummary、fortuneKey、Scale 选答与单测。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-05 18:19:34 +08:00
co-authored by Cursor
parent 19d3cd5945
commit e735aa43e3
64 changed files with 6198 additions and 4157 deletions
+44
View File
@@ -0,0 +1,44 @@
# Test Report — ECR-001 Phase F + H5 splits
## ECR
ECR-001 Phase F · H5 page splits(超标页)
## Change Level
L2(结构 · 无产品行为变更意图)
## Cases
- [x] Phase F`packages/types` 补齐 OpenAPI/SDK DTO`packages/sdk` 引用 types
- [x] H5 拆分(均 ≤400 行):StarProfile / Report / Profile / Ask / Relation / Scale / ImageCard / LifeRhythm
- [x] 抽离 `components/{star,report,profile,ask,relation,scale,imagecard,rhythm}/` + `composables/use*Page.ts`
- [x] 单测对齐现 UIAskPage / StarProfilePage / MembershipPage
- [x] `npm run build:h5` PASS
- [x] `npm run test:h5` PASS15 files / 35 tests
## Page line countspost-split
| Page | Lines |
|------|------:|
| StarProfilePage | 175 |
| ReportPage | 165 |
| ProfilePage | 152 |
| AskPage | 59 |
| RelationPage | 117 |
| ScalePage | 134 |
| ImageCardPage | 96 |
| LifeRhythmPage | 100 |
## Command
```bash
npm run build:h5
npm run test:h5
python scripts/ess-validate.py --phase coding --ecr ECR-001
```
## Residual Risk
- 拆分后部分子组件仍可能接近 400 行上限,后续可再切
- MembershipPage 未在本轮拆分(未超标或未纳入本 TASK)
- `router-link` 在 Relation 单测中有 Vue warn(既有 stub 缺口,非回归阻断)
## Gate
- [x] Phase F + H5 超标页拆分落地
- [ ] Reviewer / Human commit