Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Improve form interaction and code organization in supa_email_auth component #106

Merged
merged 2 commits into from
Jul 10, 2024

Commits on Jul 10, 2024

  1. feat: Improve form interaction and code organization in supa_email_au…

    …th component
    
    - Automatically submit form on Enter key press for email and password fields.
    - Introduced focus management to ensure email field is focused on validation failure.
    - Enabled autovalidate mode for email and password fields to provide immediate feedback.
    - Reorganized button press handlers into separate methods `_signInSignUp` and `_passwordRecovery`.
    - Improved code readability and maintainability by refactoring and reorganizing logic.
    
    Changes:
      - Added FocusNode for email field.
      - Implemented onFieldSubmitted for automatic form submission.
      - Enabled AutovalidateMode.onUserInteraction for immediate validation feedback.
      - Moved sign-in/sign-up and password recovery logic into dedicated methods.
    henry2man committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    c9adcdd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6181863 View commit details
    Browse the repository at this point in the history