Riverscapes / riverscapes-gatsby-theme

The theme for all Gatsby Riverscapes sites
https://riverscapes.github.io/riverscapes-gatsby-theme/
1 stars 1 forks source link

New Filterable data widget #23

Open MattReimer opened 1 month ago

MattReimer commented 1 month ago

We need a tool listing widget written in React that is integrated into the Gatsby Riverscapes theme.

Related to:

Here's what we have right now:

The Design:

Screenshot 2024-07-11 at 9 51 08 AM

Assumptions and guidance:

Out of scope:

Resources:

MattReimer commented 1 month ago

Couple of added things we talked about:

philipbaileynar commented 1 month ago

My first attempt to use this looks excellent. See graphic below.

Change Requests

  1. Can we try 2 tools across the flex grid please? Three makes it a little crowded and most names are truncated with ellipses. If it's possible to shrink the width of the filters a TINY bit that would be great (but not so they start word wrapping).
  2. Remove the header words "Explore Applications". Let the hosting page add a header.
  3. Can we replace the "Purpose" filter with a "Tool Grade" filter. The JSON object key will be "grade".
  4. Can we add a filter for "Extent". The JSON key will be extent.
  5. Here's the big one... Some of the filters are ordinal not nominal. This is hard because the filter values come from the data themselves and so you don't know their intrinsic order... The best suggestion that I can provide is perhaps to have an initial ORDERED list of values in the component. Then tally occurrences of them as you read the data. Finally append at end any other occurrences found in the data but not the original initial list. The ordinal filters are "Tool Grade" and "Extent" and "Resolution".
Screenshot 2024-07-25 at 3 11 09 PM