Skip to content

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dadrasarmin
Copy link
Contributor

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).

Copy link
Member

@shiltemann shiltemann left a 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>
Copy link
Member

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)

Copy link
Contributor Author

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

Copy link
Member

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

Copy link
Contributor Author

@dadrasarmin dadrasarmin May 15, 2025

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:

  1. SARS-CoV2
  2. ELIXIR
  3. GMOD
  4. One Health
  5. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants