落地 synastry/star/ask API 与 H5 页面,补齐 cece-frontend-re complete-design 证据文档,并加入 Android 模拟器截图抓取脚本。 Co-authored-by: Cursor <cursoragent@cursor.com>
2.2 KiB
2.2 KiB
P1 Status(对照 Definition of Done)
当前标签:P1 Complete
判定依据:.ai/definition-of-done.md §9
P1 必做(feature-map):用户档案 · 性格探索/个人画像 · 人格测评 · 关系理解 · AI 问答 · 成长报告深度版 · 会员系统
不含: 陪伴深化、星象性格/身心节律/意象卡片(P2)、真支付网关。
Review Report
- Feature: P1 必做全集收口
- Scope label: P1 Complete
- Architecture: PASS — handler → service → repository;引擎独立包
- API: PASS —
proto/openapi.yaml覆盖主路径;统一信封 - Security: PASS — detail 服务端按 Membership/DeepAccess 裁剪;归属校验
- Test (L0/L1/L2/L3): PASS
- L0:
go test ./...·npm run build:h5 - L1: portrait / relation / scale / ask / analytics / scaleDraft
- L2:
internal/integration— Portrait / Relation / Membership / Ask - L3: Playwright
e2e/portrait-main-path.spec.ts
- L0:
- Frontend states (L/E/E/N): PASS — 主路径页具备加载/空/错/正常;付费墙 Locked
- Documentation: PASS — Feature Spec 层 + P1 走查 + lexicon
- Environment: PASS —
commands.md本机 Go/Vite + compose.dev 仅 DB - Known Issues:
- 支付为 mock(P1 接受)
- 陪伴为节气壳(P2,不挡 P1)
- GA 需配置
VITE_GA_MEASUREMENT_ID才上报 - Ask 无 key 时规则引擎降级
本轮收口变更
| 项 | 结果 |
|---|---|
| Feature Spec 门禁 | 已接入;P1 Spec Active |
| 埋点最小集 | analytics Spec + track |
| 探索测试草稿恢复 | scaleDraft localStorage |
| L0–L3 | 全绿(收口时) |
P2 设计队列:feature-spec/P2-BACKLOG.md
本地启动 / 复验
cp apps/api/config.example.yaml apps/api/config.local.yaml
# 可选:deepseek.api_key · apps/user-h5/.env.local 中 VITE_GA_MEASUREMENT_ID
npm run deps:up
cd apps/api && go run ./cmd/server
npm run dev:h5
npm run test:api
npm run test:api:integration
npm run test:h5
npm run build:h5 && npm run test:e2e
验收路径:首页画像 → 深度版 → 分享 → 关系 → 会员 → 问答 → 探索(含刷新恢复)→ 我的成长报告