stac-nb
stac-nb copied to clipboard
Collection filtering
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!
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?
Good point, I played around with some changes to try and make it clearer that the filter doesn't affect the query.
- Changed
Filter
to 🔍 so it feels less like a query input. - Added
# selected
so you can tell the filter input doesn't select anything. - Divided into
Collections
andItems
sections.
# 3 might be overkill, but I figured I'd throw some options your way.
That looks awesome! Happy to review a PR.