refactor(ECR-004): Synastry 再拆、Scale 测、Membership 守卫、OpenAPI 与 CI
ci / h5 (push) Canceled after 0s
ci / api (push) Canceled after 0s
ci / ess-docs (push) Canceled after 0s

压合盘贴线文件;补选答单测与 nil 守卫;对齐关键 OpenAPI schemas;加 GitHub Actions 门禁。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-05 21:06:14 +08:00
co-authored by Cursor
parent 67701d1f7b
commit 7034c92de7
22 changed files with 1317 additions and 543 deletions
+35
View File
@@ -0,0 +1,35 @@
# ECR-004
**Title:** 结构卫生跟进(Synastry 再拆 · Scale 测 · Membership 守卫 · OpenAPI · CI
**Status:** Approved
**Date:** 2026-08-05
**Change Level:** L2(结构 / 契约文档 / 工程门禁;无产品扩行为)
## Change
1. 拆分贴线合盘:`useSynastryPage` / `SynastryLanding`
2. Scale 选答交互 vitest
3. `ReportHandler` Membership nil 守卫
4. OpenAPI 补关键 schemas(对齐 `packages/types`)并挂关键 path `$ref`
5. GitHub Actions CIbuild/test H5 · API unit · ESS 文档门禁
## Forbidden
- 改公共 URL / 计分算法 / 产品文案改版
- Docker-only 本地工作流
## Acceptance Criteria
- [x] SynastryLanding / useSynastryPage ≤300 行
- [x] ScalePage.spec 覆盖选答→提交
- [x] Membership nil → 500 信封而非 panic
- [x] OpenAPI 含 Profile / GrowthReport / MembershipMe / Scale* / AskQuota 等
- [x] `.github/workflows/ci.yml` 存在
- [x] `test:h5` · star/handler 相关 go test 绿
**Status:** coding/review PASS · awaiting Human commit
## Linked
- ENGINEERING_SPEC / TASK / STATE / TEST_REPORT under ECR-004
- Successor of ECR-001 residual nits