MohamedDanis / opnhub

https://opnhub.vercel.app
15 stars 11 forks source link

Search button does not handle invalid language input #1

Closed VanshChitransh closed 1 month ago

VanshChitransh commented 1 month ago

Description: When using the search functionality on the platform, if an invalid or incorrect language name is entered (such as "Random"), the search button remains active, and no error or feedback is provided to inform the user about the invalid input. This may cause confusion for users who expect a result, even when the input is incorrect.

Steps to Reproduce: Go to the search bar. Enter a language name that is not valid or mistyped (e.g., "Random"). Click the search button.

Expected Behavior: The system should disable the search button for invalid language input or display an error message prompting the user to correct the input.

Actual Behavior: The search button remains active and clickable without providing any feedback to the user regarding the incorrect input.

Screenshots: Screenshot from 2024-09-29 22-53-49 Screenshot from 2024-09-29 22-53-54

Incorrect Input: Random

Suggested Fix: Implement input validation for correct language names. Disable the search button or provide a feedback message until a valid language is entered.

Environment: Browser: (e.g., Chrome 117) Operating System: (e.g., Ubuntu 22.04)

VanshChitransh commented 1 month ago

@MohamedDanis I would love to work on this issue, please assign it to me.

Sauhard74 commented 1 month ago

hey can i work on this issue? it seems easy yet a very important feature so I believe I can contribute and make the app better

MohamedDanis commented 1 month ago

@VanshChitransh Please create a branch with your name and make a pr after completing

MohamedDanis commented 1 month ago

@Sauhard74 already assigned to other, please check for another issues. Thank you

imkeanserna commented 1 month ago

@MohamedDanis so sorry i pushed the code to solve this issue in my PR #21, i forgot to remove it! i think the issue is solved now.

MohamedDanis commented 1 month ago

I don't get you ? @imkurosaki

imkeanserna commented 1 month ago

I mean this issue is solved in my PR #21 image

VanshChitransh commented 1 month ago

@MohamedDanis @imkurosaki is the issue still there?

MohamedDanis commented 1 month ago

there is a new issue, you can work on that