-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Search on category select without JavaScript #2740
Conversation
After some quick tests:
|
eb468a3
to
e38b846
Compare
I've seen in your PR, that you were highlighting the clicked button with a square border (https://github.com/searxng/searxng/pull/1414/files#diff-4f244eec7a4a314e8d7e0f7d65ea91ba85afdf13035e202b8aaf9f27a1397dfbR79), however I think it's looking better if the new selection is underlined like the current selected page. I've been trying to not highlight the previously selected category anymore when a new one is chosen, however I couldn't make it work unfortunately since we would need |
Should we just do the |
Is it a mess to use So the UX is degraded only when JS is disable on FF : in this case, the users will know that page is loading. |
Sounds like a good idea, I'll see if I can make that work tomorrow :) |
I don't know if |
I think it's easier to use When we use |
e38b846
to
766f896
Compare
We're now doing what you suggested above, seems to be working very well! I've tested this on Firefox and Chromium (both on Desktop), it would be great if you can test some other browsers you might use if you want to just to make sure. |
766f896
to
e28debd
Compare
e28debd
to
2bef194
Compare
Co-authored-by: Alexandre Flament <alex@al-f.net>
2bef194
to
711c3d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works like a charm :)
FYI: I had to rebase to solve a conflict in the static build files.
@Bnyro @dalf since we merged this PR the "search on language select" does no longer work .. same with "time-range" and "safe-search" select .. all three drop down boxes do no longer trigger a new search .. do you have a clue what the reason could be / maybe the solution is quite simple, I just don't see it yet .. |
Hmm, that's strange, I'll look into that later. |
There is a tsunami of changes that I can't cope with. EDIT: changes = all the PRs these last days. |
|
Small addendum to searxng#2740; search_on_category_select is now no longer a plugin. Related: searxng#2740 (comment) Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
thanks .. with that hint it was easy to fix --> #2817
If I address @dalf, please do not feel obliged ... no need to answer in a short time ... each as he has time and desire .. @Bnyro point me in the right direction .. everything is fine 👍 |
Awesome 🎉 |
Small addendum to #2740; search_on_category_select is now no longer a plugin. Related: #2740 (comment) Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
@Bnyro @dalf if you have time for; can you explain with a few words how it works to send a form: A. with "search on category select" enabled we have one active category I have some problems to understand how it works / may first read my comment on: I don't expect a long description, just a short hint about the trick, which I don't understand at the moment. |
* update search.less from upstream => see > searxng/searxng#2740
What does this PR do?
Why is this change important?
SearXNG have two modes to pick the categories:
The HTML always use checkboxes and labels --> some Javascript send the query in the first mode when the user clicks on a category.
This creates to UX issues:
This PR intends to fix that.
How to test this PR locally?
Related issues
closes #1414
closes #2709
(the description has been taken from #2709 by @dalf and extended with additional info)