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

Improve Frontend User Experience #5

Open
datavorous opened this issue Sep 4, 2024 · 0 comments
Open

Improve Frontend User Experience #5

datavorous opened this issue Sep 4, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@datavorous
Copy link
Owner

1. Form Validation

The current form setup only enforces minimum values without any client-side error handling. To improve the user experience, implement JavaScript validation that provides immediate feedback if the input is incorrect.

2. JavaScript Error Handling

The error handling in the fetch request currently only logs errors to the console. This could be improved by providing user-facing feedback if something goes wrong with the request. Add error messages that are displayed directly on the form.

3. Security Considerations

The code prevents the default action for the F12 key, but other shortcuts like Ctrl+Shift+I are still allowed. Expand the prevention logic to include other common shortcuts that open developer tools.

4. Form Data Handling

Currently, FormData is sent directly with the fetch request without any prior validation. It's important to sanitize and validate this data before sending it to the server to avoid potential security issues.

5. Interactive Form UX

The form fields and buttons could be more interactive by adding focus states and hover effects. Using Tailwind CSS, you can easily enhance the user experience by adding these states to the form elements.

@datavorous datavorous added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant