metacatui icon indicating copy to clipboard operation
metacatui copied to clipboard

Add look ahead to the seach field in the new data catalog view

Open yvanlebras opened this issue 1 year ago • 2 comments

Describe the bug With older versions of metacatui, the user on /data was able to serach for "Data attribute" (for example) benefiting of autocompletion / autocomplete / predictive text (not sure the good term in english sorry ;) ) so metacatui was proposing existing indexed terms (for example "Data Attribute" related term) when starting typing the term.

It seems to me this functionnality is not there any more but really important!

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://arcticdata.io/catalog/data'
  2. Then 'Data attribute'
  3. Start typing 'leng'
  4. No list of related terms

Expected behavior A list of all indexed terms starting with "leng" as "length" for example. Same using "densi"

Screenshots image

Desktop :

  • OS: [windows 11]
  • Browser [chrome]
  • Version [last]

Additional context Can be related to ongoing work / discussions with https://github.com/NCEAS/metacatui/issues/1654 and / or https://github.com/NCEAS/metacatui/issues/2035

yvanlebras avatar Apr 16 '24 07:04 yvanlebras

Thanks for making an issue for this @yvanlebras ! The arctic data centre is using the new data catalog with the Cesium map rather than the Google map. This view uses different underlying UI elements, and you're right that the search field is missing the predictive text. We should add this feature back in.

robyngit avatar Apr 23 '24 16:04 robyngit

We could use a new SolrAutocompleteView component introduced in #2502 could be used for this

robyngit avatar Sep 05 '24 20:09 robyngit