Closed othbcq closed 1 day ago
Failed conditions
12.2% Duplication on New Code (required ≤ 3%)
I am closing this PR as it aligns with the issue I recently closed, which was too large in scope and included multiple functionalities. To better manage the development and tracking, I have split the implementation into three separate issues:
I will create smaller, focused PRs for each of these functionalities corresponding to their respective issues. This will improve clarity, maintainability, and reviewability for each feature. Closing this PR in favor of the new approach.
This PR adds the complete implementation of login, registration, and password reset functionalities, including UI, ViewModels, repositories, and tests. The navigation flow has also been updated to integrate these features. Below is a summary:
Changes:
Login Feature:
LoginScreen
: Email/password input fields with navigation to password reset.LoginViewModel
: Handles state and Firebase interactions.LoginRepositoryFirestore
: Implements Firebase-based authentication.Register Feature:
RegisterScreen
: Email/password fields for new user registration.RegisterViewModel
: Manages registration logic and state.RegisterRepositoryFirestore
: Handles Firebase-based user creation.Password Reset Feature:
PasswordResetScreen
: Allows users to send reset emails.PasswordResetViewModel
: Handles state and repository calls.PasswordResetRepositoryFirestore
: Integrates with Firebase for reset emails.Navigation Updates:
NavigationActions
andMainActivity
.Sign-In Refactor:
SignIn
composable with login, register, and password reset navigation buttons.