Skip to content

AutocompleteFilter component

JSP Genesys makes use of autocompleters for various fields that can be autocompleted: holder institute code, genus, etc.

image

Implement a new AutocompleteFilter component based on StringArrFilter (because it's the same kind of logic) that can be used for holder.code and taxa.genus filters. Text typed into the field should call the API for suggestions and render the term label and count, but use the term code in the filter.

New API endpoints need to be added to AccessionController (or a new controller?) that will accept the search text and the currently applied filters.

@mborodenko There are existing /json controllers that handle this.

Edited by Matija Obreza
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information