Files
digital-psychology/docs/CODE_REVIEW/WIP-2026-08-13-sweep.md
T
jackyu66gitandCursor 89756f65b4 feat(ECR-012–016): 合规、题库、时辰刷新、头像、MBTI OEJTS 与埋点
落地输入合规、探索题库、报告日/时辰刷新、账号头像、OEJTS 量表,并补齐 H5 埋点与 Admin 漏斗;同步 ESS 工件、切至自建 Git、清理 GitHub Actions。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 01:27:58 +08:00

37 lines
1.5 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.
# CODE_REVIEW — WIP sweep 2026-08-13
**Scope:** ECR-012~016 相关实现 + 本地脏树抽检
**Verdict:** **PASS(测试)** · 无阻断级 must-fix;有 residual
## Tests
| Suite | Result |
|-------|--------|
| `go test` API unit(除 integration | **PASS** |
| `go test ./internal/integration/` | **PASS** |
| `npm run test:h5` | **PASS** 16 files / 41 tests |
| `vue-tsc --noEmit` | **PASS**typecheck + MinePage 拆分已清) |
## Hotspots
| Area | Assessment |
|------|------------|
| avatar Store/ResolveAbs | 大小/类型/UUID 文件名/拒 `..`;单测覆盖 |
| temporal refresh | GET 换日原地 UpdateContent;失败软回退 |
| daily-tips | 时辰缓存 + 异步 LLM;不阻塞 |
| scalebank + R8 H5 | slug 响应式;有结果直接展示 |
| textsafe | Check → 40060 路径存在 |
| mbti-full lock | service Locked / 40310 |
## Residual(不阻断合入判定,建议后续 ECR/L1)
1. ~~H5 typecheck~~ **已清**`@types/node` + TabBar/MatchCompare/ReportRich
2. ~~MinePage.vue 超 400 行~~ **已拆**`useMinePage` + `mine/*` + `mineCatalog`
3. **avatar** 信任 Content-Type/扩展名,未做 magic-byte 校验(常见可接受 Residual
4. **temporal** UpdateContent 失败静默返回旧报告(无 metrics)
5. Vitest 中 `router-link` stub 警告(测试噪音)
## Decision
功能回归测试 **绿**typecheck / MinePage 行数债已清。剩余 avatar magic-byte、temporal 软失败为可选 Residual。