imperfectandcompany / Imperfect-Gamers-Site-Store

Our robust community site integrating Steam for enhanced user interactions and data management, powered by Remix with Tailwind CSS for optimistic, responsive UI. Features CI/CD with GitHub Actions and Docker for seamless deployment and maintenance.
https://store.imperfectgamers.org/
Other
0 stars 0 forks source link

Add Asynchronous Username Validation and Dynamic Button Behavior #65

Closed cheesea3 closed 1 month ago

cheesea3 commented 1 month ago

This pull request introduces fixes to the username input validation logic within our application's user form. It leverages a a different version of our custom React hook, useInput, to manage input states and validation more efficiently. The primary goal is to ensure usernames meet our specified criteria: 3-20 alphanumeric characters or underscores.

Changes:

Technical Details:

Test Plan:

  1. Input Validation: Ensure that the username input rejects entries that do not conform to the regex pattern. Test with edge cases like minimal length, maximal length, and invalid characters.
  2. UI Feedback: Check the yellow pulsing effect during typing and ensure it transitions correctly to either green (valid) or red (invalid) upon completion.
  3. Accessibility Checks: Verify that screen readers correctly read out error messages associated with the input field using the aria-describedby attribute. #3 CURRENTLY PENDING UNTIL OTHER PRIORITIES FINISHED