-
Notifications
You must be signed in to change notification settings - Fork 962
Added search by topic following previous format. #6083
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
base: main
Are you sure you want to change the base?
Conversation
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.
cool, great idea @dadrasarmin
search2.html
Outdated
<label for="topic">Topic</label> | ||
<select class="form-control" id="topic"> | ||
<option value="Any">Any</option> | ||
<option value="Assembly">Assembly</option> |
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.
we should automatically create these options in a loop, so that when we add new topics they will be automatically supported in the search as well.
you can probably get inspiration from the _layouts/home.html file on how to do it, otherwise I can help out (but I'm away on vacation next week so may only have time after that)
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.
I can give it a try. Thanks for pointing the right place to look for inspiration. :D
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.
sure thing, hope it helps, no worries if not. We should have some better documentation for contributing to the technical framework, but never got around to it
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.
You are too kind. I wish I could work more closely with you.
Thanks to your hint at the right place and with LLMs I think I improved this PR.
There is a problem that I could spot. With the current one I get the followings as topics while they are apparently not:
- SARS-CoV2
- ELIXIR
- GMOD
- One Health
- Plants
I noticed the following topics are also missing in this implementation:
GTN FAQ
Galaxy FAQ
I did a fix. But any collection similar to "Plants" in future will have this problem. So, a smarter fix would be nice.
I noticed that I sometimes cannot find the tutorials I am looking for. Specially, there are topics that I know they exist. I thought maybe it would be nice to add a new filter button to narrow down the results of the search to a specific "Topic".
There is nothing novel in this PR. I copy-pasted almost everything from the file and changed the text. The local test works fine on my laptop. I changed the size of buttons and menus slightly so everything stays in the same line (it was all white space that I saved).