-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Feature Request: Clearing Search #121
Comments
Hey, @ACPK. Thanks for the feedback! I like the "clicking an (X)" option. I'm not sure I understand how the "deleting the text" option would work - could you give some detail there? Right now, if you delete the search term and hit enter, it'll also clear the search. |
@Graysonwright - "Deleting the text" would use autocomplete. With autocomplete (I should have mentioned this originally), the params are automatically updated when you add or remove characters. Example (see the default white page you get on Google when you remove ThoughtBot):
User case:
|
oh, alright. Automatically searching for the user would be a bit tricky - we would need to reload part of the page while keeping the search bar there. I imagine we could do this with turbolinks, but I'm hesitant to introduce that level of complexity. We would need to be careful that the interaction isn't confusing for people who aren't expecting it, and it would require making a bunch of server requests for each search. I think an "X" will be the easiest and most effective way to solve this. |
@Graysonwright - For now, I agree. Want to do a PR or I can work on it later this week? |
Closes #121. Problem: Users cannot clear their search unless they re-submit the search with an empty field, or click on the resource link in the navigation bar. Solution: Add a button for clearing out the search field and going back to showing all resources.
Closes #121. Problem: Users cannot clear their search unless they re-submit the search with an empty field, or click on the resource link in the navigation bar. Solution: Add a button for clearing out the search field and going back to showing all resources.
Closes #121. Problem: Users cannot clear their search unless they re-submit the search with an empty field, or click on the resource link in the navigation bar. Solution: Add a button for clearing out the search field and going back to showing all resources.
Closes #121. Problem: Users cannot clear their search unless they re-submit the search with an empty field, or click on the resource link in the navigation bar. Solution: Add a button for clearing out the search field and going back to showing all resources.
Closes thoughtbot#121. Problem: Users cannot clear their search unless they re-submit the search with an empty field, or click on the resource link in the navigation bar. Solution: Add a button for clearing out the search field and going back to showing all resources.
I'd love to be able to easily the clear search by (1) deleting the text or (2) clicking an (X). As of right now, a user needs to click the page link in the navbar or remove the params for the URL. The former is my preferred method, but let me know what you think.
The text was updated successfully, but these errors were encountered: