ccmbioinfo / osmp

One-Sided Matching Portal
6 stars 1 forks source link

React: Allow users to fetch additional gene hits beyond the current default of 10 #316

Closed themisteryang closed 2 years ago

themisteryang commented 2 years ago

Currently, for the gene search autocomplete, OSMP is only querying for the first ten matching gene hits from the mygene.info gene query service (the default when no value is provided to the size query parameter) with no option to allow the user to fetch additional gene hits.

This PR addresses this issue by adding a button to the gene autocomplete selectable list that allows users to fetch ten additional gene hits at a time.

When there are additional gene hits to fetch:

Screen Shot 2022-08-17 at 3 17 09 PM

When all genes hits have been fetched:

Screen Shot 2022-08-17 at 3 18 50 PM

Closes #313