抽出 OpenAPI DTO;将 Ask/Report/Profile/Star 等 8 页拆到 ≤400 行,并修 ScaleSummary、fortuneKey、Scale 选答与单测。 Co-authored-by: Cursor <cursoragent@cursor.com>
1.3 KiB
1.3 KiB
Test Report — ECR-001 Phase F + H5 splits
ECR
ECR-001 Phase F · H5 page splits(超标页)
Change Level
L2(结构 · 无产品行为变更意图)
Cases
- Phase F:
packages/types补齐 OpenAPI/SDK DTO;packages/sdk引用 types - H5 拆分(均 ≤400 行):StarProfile / Report / Profile / Ask / Relation / Scale / ImageCard / LifeRhythm
- 抽离
components/{star,report,profile,ask,relation,scale,imagecard,rhythm}/+composables/use*Page.ts - 单测对齐现 UI:AskPage / StarProfilePage / MembershipPage
npm run build:h5PASSnpm run test:h5PASS(15 files / 35 tests)
Page line counts(post-split)
| Page | Lines |
|---|---|
| StarProfilePage | 175 |
| ReportPage | 165 |
| ProfilePage | 152 |
| AskPage | 59 |
| RelationPage | 117 |
| ScalePage | 134 |
| ImageCardPage | 96 |
| LifeRhythmPage | 100 |
Command
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
- Phase F + H5 超标页拆分落地
- Reviewer / Human commit