Donkie / Spoolman

Keep track of your inventory of 3D-printer filament spools.
MIT License
757 stars 77 forks source link

Make list filter need full match instead of partial #367

Closed TomW1605 closed 1 month ago

TomW1605 commented 2 months ago

Is your feature request related to a problem? Please describe. when you filter by material and have a bunch of sub types (PLA+, PLA Pro, PLA Silk, etc) and a main type (PLA), if you filter by just the main type you also get all the sub types because they

Describe the solution you'd like when you filter it should requier an exact match not just a containes

Describe alternatives you've considered only way i can think of is to make the base filament something like "PLA (Normal)" but that is not a good solution and takes a lot of room on labels

Additional context Add any other context or screenshots about the feature request here.

TomW1605 commented 2 months ago

i had a look at the code and it looks like this filtering is being done server side via the API. since i doubt you want to change how the api returns would an option be to add a flag to the querry for if it should be an exact match? that way existing queries would not change but if you add a tick box to the ui (either on the list page or as a setting) it could add the flag and get the exact filter results instead