Commit graph

16 commits

Author SHA1 Message Date
401506dcf8 Swap to using selects for some boolean fields
Charge Attack, Full Auto, and Auto Guard are not boolean values since the user can select (and the default should be) to show both on and off values. We swap to using a SelectTableField here to represent this difference.

We also added logic for Full Auto and Auto Guard fields since they are tied together in some cases (you can't show Auto Guard teams that have Full Auto disabled)
2023-03-21 19:33:22 -07:00
9769c43e6b Set width of Select in table field in Filter dialog 2023-03-21 19:33:03 -07:00
88e830dd78 Send filtersets to FilterModal
This sends the default filterset and the user's filterset to the filter modal.

The default filterset is used when resetting all filters. The users filterset is used so that it is populated with the user's values when they open the modal
2023-03-21 19:33:03 -07:00
d2c40c1d0d Added default values, clearing filters, etc
* Default values
* Ability to clear filters
* Receiving values from components
2023-03-21 19:31:02 -07:00
a62db832eb Update styles for various components
Added some new colors and fixed spacing
2023-03-21 19:29:31 -07:00
e4eb90aff1 Update modal skeleton 2023-03-21 19:28:39 -07:00
e3bdf820b4 Add skeleton of FilterModal 2023-03-21 19:25:11 -07:00
b4464be30c Update how we save and propagate filters
We save filterset in a local state, because the FilterBar will send it down to us from cookies.

We then set each individual property from that filter set.

We set inputs to have a placeholder, as max buttons and max turns could not be set (null). Then, we only send those fields when they have a value provided by the user.
2023-03-21 19:20:05 -07:00
3a2504a70e Populate values from defaultFilterSet 2023-03-21 19:20:05 -07:00
a6cde5ebcd Swap to using selects for some boolean fields
Charge Attack, Full Auto, and Auto Guard are not boolean values since the user can select (and the default should be) to show both on and off values. We swap to using a SelectTableField here to represent this difference.

We also added logic for Full Auto and Auto Guard fields since they are tied together in some cases (you can't show Auto Guard teams that have Full Auto disabled)
2023-03-21 19:20:05 -07:00
d4e70d9807 Set width of Select in table field in Filter dialog 2023-03-21 19:20:05 -07:00
591b16c880 Send filtersets to FilterModal
This sends the default filterset and the user's filterset to the filter modal.

The default filterset is used when resetting all filters. The users filterset is used so that it is populated with the user's values when they open the modal
2023-03-21 19:20:05 -07:00
bc4c870d72 Added default values, clearing filters, etc
* Default values
* Ability to clear filters
* Receiving values from components
2023-03-21 19:20:05 -07:00
87390bc07c Update styles for various components
Added some new colors and fixed spacing
2023-03-21 19:20:05 -07:00
5900672089 Update modal skeleton 2023-03-21 19:20:05 -07:00
ef1f8e83d8 Add skeleton of FilterModal 2023-03-21 19:20:05 -07:00