feat: update authentication logic and improve UI components #66
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several updates to modernize the application, improve state management, and enhance code quality. Key changes include migrating to Riverpod 3.0, refactoring the authentication state management, fixing a typo in an authentication failure class, and restructuring tasks to include subtasks for better organization.
State Management Improvements:
hooks_riverpod
dependency and refactoring providers and widgets for robust state management (.taskmaster/tasks/task_001.txt
, .taskmaster/tasks/task_001.txtR1-R11).authStateControllerProvider
usingNotifierProvider
for improved state management (lib/application/authentication/auth_state_controller.dart
, lib/application/authentication/auth_state_controller.dartR11-R14).AuthStateController
to simplify methods, improve error handling, and reduce redundancy by introducing helper methods like_updateEmail
and_updatePassword
(lib/application/authentication/auth_state_controller.dart
, lib/application/authentication/auth_state_controller.dartL22-L105).Code Quality Enhancements:
AuthFailures
class, renamingInavalidEmailAndPasswordCombination
toInvalidEmailAndPasswordCombination
for consistency and correctness (lib/domain/authentication/auth_failures.dart
, [1];lib/domain/authentication/auth_failures.freezed.dart
, [2] [3] [4].auth_states.freezed.dart
file by adjusting line breaks and indentation (lib/application/authentication/auth_states.freezed.dart
, [1] [2] [3].Task Management Updates:
tasks.json
for better organization and tracking of progress, such as refactoring the domain, application, services, and UI layers (.taskmaster/tasks/tasks.json
, .taskmaster/tasks/tasks.jsonL27-R87).UI Modernization:
.taskmaster/tasks/task_002.txt
, .taskmaster/tasks/task_002.txtR1-R11).home
property toLoginPage
(lib/app.dart
, lib/app.dartL29-R32).These changes collectively improve the application's maintainability, user experience, and overall code quality.