Match player selection
When a match is created, players can be chosen as follows:
- Team 1
- Player one
- Player two (if doubles match)
- Team 2
- Player three
- Player four (if doubles match)
If the match is set to a singles match, players two and four are hidden from view.
Dropdown Search field
In the future, if there are too many players to choose from, having a searchable dropdown field is going to be super valuable.
The select2 package looked good, and I had implemented and pushed it into production.
However this was premature as it caused some bugs:
- Setting match combination to a singles match didn't hide player two and four from the form
- The width of the dropdown fields became inconsistent.
Solution
I've rolled back the implementation of select2 dropdown fields.
I'll continue testing how to implement it properly before I push it through to production again.
It's a good lesson to conduct more thorough testing before pushing changes to production.