Skip to content

Feature/auth recovery#35

Merged
soorq merged 15 commits intodevfrom
feature/auth-recovery
Apr 29, 2026
Merged

Feature/auth recovery#35
soorq merged 15 commits intodevfrom
feature/auth-recovery

Conversation

@kapitulin24
Copy link
Copy Markdown
Contributor

Summary

  • Перенесена доменная логика auth и user в слой entities, а otp-form — в features, чтобы выровнять архитектуру и границы ответственности.
  • Реализован полный multi-step flow восстановления пароля (email -> code -> new password) и обновлены связанные страницы авторизации.
  • MainPage и остальные auth-страницы переведены на единые API-утилиты и централизованную обработку ошибок форм.
  • В shared унифицированы API-слой, схемы валидации, токены, интерсепторы и набор UI/utility-компонентов для повторного использования.
  • Дополнительно обновлены инфраструктурные части (Docker/CI/workflows) и структура монорепы для более стабильной сборки и проверки.

Why

  • Уменьшаем связность между страницами и бизнес-логикой.
  • Упрощаем поддержку auth/recovery сценариев.
  • Делаем обработку ошибок и работу с API предсказуемой во всех формах.
  • Подготавливаем кодовую базу к дальнейшему расширению без дублирования.

Test plan

  • pnpm lint
  • pnpm test
  • pnpm typecheck
  • Проверить signin/signup happy-path и ошибки валидации
  • Проверить forgot-password flow: email, code verification, password reset
  • Проверить навигацию с MainPage для авторизованного/неавторизованного состояния
  • Проверить sign-out и поведение защищенных страниц после выхода

@kapitulin24 kapitulin24 requested a review from soorq April 28, 2026 17:02
Comment thread src/entities/auth/model/schemas/fields/email-schema.ts Outdated
Comment thread src/entities/auth/model/schemas/fields/password-schema.ts Outdated
Comment thread src/entities/auth/model/schemas/sign-in-schema.ts Outdated
Comment thread src/entities/user/model/services/update-user-config.ts Outdated
Comment thread src/pages/forgot-password/ui/EmailForm.tsx Outdated
Comment thread src/pages/forgot-password/ui/PasswordForm.tsx Outdated
Comment thread src/shared/api/errors/error-utils.ts Outdated
Comment thread src/shared/api/schemas/global-error-schema.ts Outdated
Comment thread src/entities/auth/model/services/reset-password-verify.ts Outdated
Comment thread src/entities/auth/model/schemas/sign-in-schema.ts Outdated
@kapitulin24 kapitulin24 requested a review from soorq April 29, 2026 01:40
@soorq soorq merged commit 5001811 into dev Apr 29, 2026
1 check passed
@soorq soorq deleted the feature/auth-recovery branch April 29, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants