Files
digital-psychology/docs/TEST_REPORT/ECR-001-phaseF-h5.md
T
jackyu66gitandCursor e735aa43e3 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>
2026-08-05 18:19:34 +08:00

45 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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