stac-nb icon indicating copy to clipboard operation
stac-nb copied to clipboard

Collection filtering

Open aazuspan opened this issue 2 years ago • 3 comments

Hey @darrenwiens, what do you think about having a text box in the Common tab that filters collections by ID, to help navigate big STACs? Whenever the filter text is changed, the collection list would update to only include matching collections.

I threw together a quick working demo below, mostly to make sure it was possible with ipywidgets before I suggested it.

If you like the idea I'm happy to make a PR. If not, no worries!

stacnb_filter

aazuspan avatar Apr 24 '22 06:04 aazuspan

Sorry for the delay, I like the idea for this added functionality!

The other inputs (Collection(s), Limit, and ID(s)) all act on the query, but the new filter acts on Collection(s). Is there a way to group Collection(s) together with Filter to make it more clear from a UX perspective?

darrenwiens avatar Oct 22 '22 17:10 darrenwiens

Good point, I played around with some changes to try and make it clearer that the filter doesn't affect the query.

  1. Changed Filter to 🔍 so it feels less like a query input.
  2. Added # selected so you can tell the filter input doesn't select anything.
  3. Divided into Collections and Items sections.

demo with headers

# 3 might be overkill, but I figured I'd throw some options your way.

aazuspan avatar Oct 29 '22 21:10 aazuspan

That looks awesome! Happy to review a PR.

darrenwiens avatar Nov 01 '22 16:11 darrenwiens