SawyerHood/animal-crossing-catch

Search / filter

tills13 opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
I'd like to be able to search or filter items in the grid.

Describe the solution you'd like
No need to go beyond simple string matching.

e.g. "blue" would match "Bluegill" and "Blue Marlin"
e.g. "blue m" would only match "Blue Marlin"
e.g. "pond" would match all fish catchable in the pond

Describe alternatives you've considered
Browser search is OK but I'd like the grid to filter to only the items that match the query.

Implementation wise, we could just filter the card before rendering them.

appState.rightNow.filter(currentFilter).map(catchableMapper)

I think this is a super useful feature and a request that I've gotten on some FB groups