microbiomedata / nmdc-server

Data portal client and server for NMDC.
https://data.microbiomedata.org
Other
8 stars 0 forks source link

Gather requirements for data portal search on biosample_categories #1019

Open aclum opened 1 year ago

aclum commented 1 year ago

Is your feature request related to a problem? Please describe. We would like to be able to search by `biosample_categories on the data portal. Currently this is only an option in the API or by looking at biosample pages individually.

Describe the solution you'd like A way from the main data portal page to search by biosample_categories. This could either be added to the left hand panel faceted search or Emiley's suggestion was to replace the collection date filter with a panel with icons for each BiosampleCategoryEnum

Describe alternatives you've considered Solution TDB

Acceptance Criteria

cc @emileyfadrosh @mslarae13 @jeffbaumes @shreddd

blocked on https://github.com/microbiomedata/nmdc-schema/issues/481

aclum commented 1 year ago

Emiley's suggestion Screen Shot 2023-07-27 at 10 12 27 AM Screen Shot 2023-07-27 at 10 12 33 AM

mslarae13 commented 1 year ago

I like the collection date box. Could we just make it smaller? And do small icons next to text for the categories?

eecavanna commented 1 year ago

If we end up moving the logos to a vertically-scrolling menu accessible from the left sidebar, we could do something like this (from the MUI docs), where we show the logos where the icons are shown in this screenshot:

image

I think, in this format, even if the logos aren't coherent visually with one another, showing them this way will reduce the adverse aesthetic effects of that (compared to showing them all side by side, at their native sizes).

eecavanna commented 1 year ago

I looked at the nmdc-server web UI code and saw it uses Vuetify (not MUI). Here's something similar from the Vuetify docs:

image

This other example from the Vuetify docs (same page) shows arbitrary images being used; as opposed to vector icons:

image

jeffbaumes commented 1 year ago

Another option is to replace the collection date area but move the collection date chart to another visualization tab. Currently the sankey is alone in the Environment tab so the date chart could move there, or there could be another organization of charts.

Another question is where to put the image URLs/URIs for the various categories. It would make sense for them to be in the schema for the enumeration and pulled into the UI from there. @turbomam is there an appropriate place for these?

aclum commented 11 months ago

In the NMDC sync meeting yesterday we decided for now to just add this as a faceted search option on the left panel.

Requirements for search: allow search by 'AND' and 'OR'

There was some discussion of schema clean up so we need to discuss this a bit further. The discussion included the idea of renaming 'biosample_categories' to 'umbrella_categories'. Looking at the current slots on BiosampleCategoryEnum we may want to designate a url slot to provide a link out, this information is currently stored in the 'Meaning' slot.

aclum commented 11 months ago

@turbomam I was having trouble tracking down the range for the meaning slot.

ssarrafan commented 11 months ago

In the NMDC sync meeting yesterday we decided for now to just add this as a faceted search option on the left panel.

Requirements for search: allow search by 'AND' and 'OR'

There was some discussion of schema clean up so we need to discuss this a bit further. The discussion included the idea of renaming 'biosample_categories' to 'umbrella_categories'. Looking at the current slots on BiosampleCategoryEnum we may want to designate a url slot to provide a link out, this information is currently stored in the 'Meaning' slot.

Let me know if this is a priority for the new sprint.

aclum commented 11 months ago

Moving to backlog since this is blocked on https://github.com/microbiomedata/nmdc-schema/issues/481