fix(settings): gender is set only in the people archive; drop the 个人资料 duplicate (BUG-1119)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N4f2nya58RoRu4yEmJgRGE
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
3177ffe61d
commit
3e29b697db
@@ -14935,3 +14935,16 @@
|
||||
- 防复发:新增或修改迁移的轮次,交付前必须在真实 PostgreSQL 上跑 `database-*` 测试;无 Docker 时用同样的本机替身(方法见 PROGRESS-compliance-launch-20260930)。触发器函数跨表复用时不得直接引用只存在于某一张表的列。
|
||||
- 相关记录:TASK / PROGRESS-account-deletion-20260930、PROGRESS-compliance-launch-20260930
|
||||
- 修复版本:分支 `codex/compliance-launch-20260930`
|
||||
|
||||
## BUG-1119 | 本人性别有两个入口:设置 →「个人资料」与星盘档案编辑表单
|
||||
|
||||
- 状态:resolved(代码 + 回归测试;待部署)
|
||||
- 首次发现 / 最近更新:2026-09-30 / 2026-09-30
|
||||
- 影响面:`frontend/src/components/profile-panel.tsx`(`OwnerGenderSection`)、`frontend/src/hooks/use-profile-onboarding.ts::persistGender`。
|
||||
- 现象:产品反馈「性别应该在档案里设置而不是在个人资料的账户里设置」——账户设置里出现性别单选,与星盘档案里的编辑表单重复。
|
||||
- 根因:性别选填(2026-09-27)上线时档案里本人不能编辑,个人资料是本人唯一入口;BUG-1081(09-28)让本人在档案可编辑并带性别后,个人资料那一处没有撤掉。
|
||||
- 修复:删除个人资料里的性别区与首页 hook 的 `persistGender`、`withSavedGender`;本人性别只经档案编辑表单保存(`saveSelfGender`,单字段 PATCH 不变)。
|
||||
- 验证:`profile-gender-ui-20260927.test.tsx` 同名用例改为断言个人资料无性别单选、档案走 `saveSelfGender`(三栏注释);前端全量 4,470 条,失败 24 条与基线逐条相同;tsc 0、lint 0 error。
|
||||
- 防复发:同一字段新增编辑入口时,同一轮撤掉旧入口并在 DESIGN 标明唯一入口。
|
||||
- 相关记录:BUG-1081、TASK-consult-gender-optional-20260927
|
||||
- 修复版本:分支 `codex/gender-archive-only-20260930`
|
||||
|
||||
Reference in New Issue
Block a user