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

1.3 KiB
Raw Blame History

Test Report — ECR-001 Phase F + H5 splits

ECR

ECR-001 Phase F · H5 page splits(超标页)

Change Level

L2(结构 · 无产品行为变更意图)

Cases

  • Phase Fpackages/types 补齐 OpenAPI/SDK DTOpackages/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
  • 单测对齐现 UIAskPage / StarProfilePage / MembershipPage
  • npm run build:h5 PASS
  • 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

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