peppa/openspec/changes/archive/2026-11-17-pep-204-superadmin-merge-accounts/tasks.md
peppa-bot 75a3deda21 PEP-204: суперадмин объединяет учётки одного человека
Экран «Объединить учётки» с подтверждением, подсказки на «Пользователях»,
защита (сама с собой, разные ИИН, суперадмин — отдельная отметка),
журнал users_merged и одно сообщение владельцу.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 22:45:44 +05:00

14 lines
804 B
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.

## 1. Ядро
- [x] 1.1 `mergePlan`, `mergeAccounts`, `mergeHints`, `canLogIn` в `core/account-merge.ts`
- [x] 1.2 `mergeUserInto(…, { identities })` — перенос eGov и Google
- [x] 1.3 Журнал `users_merged` и одно сообщение владельцу
## 2. Веб
- [x] 2.1 «Пользователи»: метка, кнопка «Объединить с <логин>?», выбор «Объединить с…»
- [x] 2.2 Экран `/users/merge` и `mergeAccountsAction`
## 3. Проверка
- [x] 3.1 Тест `account-merge.test.ts`; тексты ru/kk/en; `pnpm lint`, typecheck
- [x] 3.2 Проверка в браузере на копии живой базы
- [ ] 3.3 После выкатки: объединить 7601978 → 7601978-2 и Dana → dana.myrzatai