CptToucan / waryes

BSD 3-Clause "New" or "Revised" License
7 stars 4 forks source link

feat: improve landing page unit search and improve ux of unit comparison input #21

Closed izohek closed 1 year ago

izohek commented 1 year ago

This PR attempts to improve unit searching functionality on the main landing page as well as on the unit comparison page.

On all unit searches a custom filter method has been added to ignore punctuation in the unit names and in the search inputs. This means you can search for f-16s with either "f16" or "f-16".

On the multiselect combo box found on the unit comparison screen the custom filtering also comes with another additional benefit: selecting a unit will no longer clear the current search. So you can enter "f16" and select all f16s without having to enter f16 every time. Search terms are reset when the dropdown has been closed. If you wanted to compare all f16s to all mig29s you type f16 once, click all the f16s, type mig29 once and select all the m29s and you're done.

Needs a second set of eyes before deployment.