SawyerHood / animal-crossing-catch

Site to keep track of your critters in Animal Crossing
https://ac-catch.com
MIT License
58 stars 18 forks source link

Search / filter #2

Open tills13 opened 4 years ago

tills13 commented 4 years ago

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)

SawyerHood commented 4 years ago

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