oczki / Pyszny-Filtr

Allows filtering liked and disliked ingredients on Pyszne.pl
MIT License
2 stars 0 forks source link

Change text inputs to clickable table #1

Open oczki opened 5 years ago

oczki commented 5 years ago

Instead of using text inputs, maybe a clean table with ingredients and yes/no buttons should be used?

+-------------------------------------------------+
|  Wybierz składniki do filtrowania:              |
|                                                 |
|  cebula               [ chcę ] [ nie chcę ]     |
|  boczek               [ CHCĘ ] [ nie chcę ]  x  |
|  jalapeño             [ chcę ] [ NIE CHCĘ ]  x  |
|  kurczak              [ chcę ] [ nie chcę ]     |
|  wołowina             [ chcę ] [ NIE CHCĘ ]  x  |
|  ...                                            |
+-------------------------------------------------+

I imagine some pre-search for existing ingredients should be performed before offering this table. Look through the descriptions and match with known ones, and prepare regexes to filter out by. Sounds fun.

oczki commented 5 years ago

Don't forget to show how many items were filtered.

oczki commented 4 years ago

Also consider grouping by type: meat (boczek, kurczak, wołowina...), veggies, fruits, and put the unassigned ones into some "other" category.