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
Display message to the user if an empty search is performed #37
Comments
Why is this necessary at all? Why not just disable the the search button if the input is empty. Additionally also cancelling the form submission if user presses enter key on an empty input. |
This is just an elegant way of handling an empty search. It would be fine without it, but why not show a brief message. It doesn't have to be a modal, a paragraph tag that is shown for a brief period of time would be fine. |
Does this issue still require help? I'd be glad to take it. Thanks ! |
Go for it. Thank you
…On Sat, Mar 23, 2019, 19:11 Pablo Rosas ***@***.***> wrote:
Does this issue still require help? I'd be glad to take it. Thanks !
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhO7wGtej6RA2zJENXJFwhMLLN7FvwbOks5vZsK3gaJpZM4biV5Z>
.
|
I've implemented a preliminary on my branch, here is a giphy recording: modal on empty search bar, please let me know if you can see the recording, thank you ! |
i'm not sure how the overall project will react, but i've added modal from bootstrap. meaning, i had to add bootstrap based on the documentation from Modal API - React-Bootstrap, in specific, the documentation points towards adding the dependency. on my local machine this was a quick fix, Steps:
|
@PabloRosas17: When you get the chance can you take a look at #42 code review? |
@bonbon12 I don't think a tooltip is appropriate for this issue. |
* implement alert box for empty search * Add in react-bootstrap Alert component to display flash for 2 seconds with user-friendly message stating search input is required. * update setTimeout to 1500ms Closes #37
Currently, if nothing is entered in the search input, and the user presses enter or clicks the button to search, a search is not performed. This behavior is fine. However, a message should be displayed that tells the user that the search bar cannot be empty.
This can be a modal that pops up, or a paragraph or heading tag that is hidden, and then is displayed for maybe 3 or seconds. The message should say something like "Search cannot be empty" or "Please enter a search term", or something similar.
The text was updated successfully, but these errors were encountered: