Commit graph

57 commits

Author SHA1 Message Date
968ae5c41e
Deploy advanced filters (#297)
* Added avatars

* Added content from the 2023/03/22 update (#287)

* Added avatars (#286)

* Added localizations

* Added update, changed CSS

* Add logic for showing Lucifer uncap and 250 art

* Added items from 2023/03 Legfest and 2023/03/30 update (#290)

* Added avatars (#286)

* Deploy #287 (#288)

* Added avatars

* Added content from the 2023/03/22 update (#287)

* Added avatars (#286)

* Added localizations

* Added update, changed CSS

* Add logic for showing Lucifer uncap and 250 art

* Added new weapon series

* Added updates

* Missed items (#291)

* Added avatars (#286)

* Deploy #287 (#288)

* Added avatars

* Added content from the 2023/03/22 update (#287)

* Added avatars (#286)

* Added localizations

* Added update, changed CSS

* Add logic for showing Lucifer uncap and 250 art

* Added new weapon series

* Added updates

* Add more items

* Added World Series to weapon series empty state (#293)

* Push 2023/03 updates to main (#292)

* Added avatars

* Added content from the 2023/03/22 update (#287)

* Added avatars (#286)

* Added localizations

* Added update, changed CSS

* Add logic for showing Lucifer uncap and 250 art

* Added items from 2023/03 Legfest and 2023/03/30 update (#290)

* Added avatars (#286)

* Deploy #287 (#288)

* Added avatars

* Added content from the 2023/03/22 update (#287)

* Added avatars (#286)

* Added localizations

* Added update, changed CSS

* Add logic for showing Lucifer uncap and 250 art

* Added new weapon series

* Added updates

* Missed items (#291)

* Added avatars (#286)

* Deploy #287 (#288)

* Added avatars

* Added content from the 2023/03/22 update (#287)

* Added avatars (#286)

* Added localizations

* Added update, changed CSS

* Add logic for showing Lucifer uncap and 250 art

* Added new weapon series

* Added updates

* Add more items

* Added items from 2023/03 Legfest and 2023/03/30 update (#290)

* Added avatars (#286)

* Deploy #287 (#288)

* Added avatars

* Added content from the 2023/03/22 update (#287)

* Added avatars (#286)

* Added localizations

* Added update, changed CSS

* Add logic for showing Lucifer uncap and 250 art

* Added new weapon series

* Added updates

* Missed items (#291)

* Added avatars (#286)

* Deploy #287 (#288)

* Added avatars

* Added content from the 2023/03/22 update (#287)

* Added avatars (#286)

* Added localizations

* Added update, changed CSS

* Add logic for showing Lucifer uncap and 250 art

* Added new weapon series

* Added updates

* Add more items

* Add World series to empty state

* Added items from 2023/03 Legfest and 2023/03/30 update (#290)

* Added avatars (#286)

* Deploy #287 (#288)

* Added avatars

* Added content from the 2023/03/22 update (#287)

* Added avatars (#286)

* Added localizations

* Added update, changed CSS

* Add logic for showing Lucifer uncap and 250 art

* Added new weapon series

* Added updates

* Missed items (#291)

* Added avatars (#286)

* Deploy #287 (#288)

* Added avatars

* Added content from the 2023/03/22 update (#287)

* Added avatars (#286)

* Added localizations

* Added update, changed CSS

* Add logic for showing Lucifer uncap and 250 art

* Added new weapon series

* Added updates

* Add more items

* Enables advanced filters in collections (#289)

* Add skeleton of FilterModal

* Install react-slider from Radix

* Move AccountModal styles to more generic place

* Make generic TableField and move styles

This is so we have a base for other table rows that use different interactive elements

* Implement custom Slider component

This inherits from Radix's Slider

* Implement SliderTableField

* Implemented SwitchTableField

* Change enabled switch color

* Implement InputTableField

* Update modal skeleton

* Added localizations for Advanced filters

* Update styles for various components

Added some new colors and fixed spacing

* Added value reporting and fixed a cycle error

* Added default values, clearing filters, etc

* Default values
* Ability to clear filters
* Receiving values from components

* Fix maximum cycle depth exceeded error

* Update TableFields to not error

Also optional value is required

* Create FilterSet.d.ts

* 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

* Add new localizations

* Change types and add default filterset object

* Add fast-deep-equal package

* Change value in table fields

* Input table fields need to be able to be empty
* Slider table fields should default to 0 if value isn't provided

* Set width of Select in table field in Filter dialog

* Add style for filter button with filters active

* 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)

* Populate values from defaultFilterSet

* 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.

* Remove default filterset

This was moved to a utils/ file

* Propagate filters from modal

This updates how we handle filter propagation to accommodate the advanced ones. The icon lights up when filters are active.

* Implement advanced filters on Teams page

* Add skeleton of FilterModal

* Make generic TableField and move styles

This is so we have a base for other table rows that use different interactive elements

* Implement custom Slider component

This inherits from Radix's Slider

* Implement SliderTableField

* Implemented SwitchTableField

* Implement InputTableField

* Update modal skeleton

* Added localizations for Advanced filters

* Update styles for various components

Added some new colors and fixed spacing

* Added value reporting and fixed a cycle error

* Added default values, clearing filters, etc

* Default values
* Ability to clear filters
* Receiving values from components

* Fix maximum cycle depth exceeded error

* Update TableFields to not error

Also optional value is required

* Create FilterSet.d.ts

* 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

* Add new localizations

* Change types and add default filterset object

* Change value in table fields

* Input table fields need to be able to be empty
* Slider table fields should default to 0 if value isn't provided

* Set width of Select in table field in Filter dialog

* Add style for filter button with filters active

* 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)

* Populate values from defaultFilterSet

* 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.

* Remove default filterset

This was moved to a utils/ file

* Propagate filters from modal

This updates how we handle filter propagation to accommodate the advanced ones. The icon lights up when filters are active.

* GridRep adjustments

* Properly unset mainhand when cells get reused and the new team doesnt have one
* Slightly better styling to make the grid more correct

* Fix bad merge

* Add advanced filter support to saved and profile pages

* Fix auto guard text

* Ensure fetchTeams callback is updated with filters

* Add auto guard icon to GridRep

* Disable max buttons and turns

* Fix build errors
2023-04-09 19:40:15 -07:00
bd838305e6
Bug fixes and content updates (#270)
* Fix character hovercard z-index

* Allow unauth users to edit their remixed parties

* Adds ultimate_mastery and renamed master_level to defs

* Add granblue_id to weapon keys

* Add granblue_id to AX skills

* Add granblue_id to data-granblue-id

* Added bugfixes to update notes

* Fix types where ItemSelect is used

These need an empty `granblue_id`
2023-03-17 01:35:49 -07:00
c7e0836202
February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
4784a8113f Make everything in DetailsObject optional 2023-01-08 01:31:43 -08:00
ad72bcdcf9 Rollback GranblueCookie changes 2023-01-03 23:28:36 -08:00
dd062aff8d Fix language switch in logged-out menu 2023-01-03 22:55:36 -08:00
54dd3feba7 Add new fields to parties
I forgot to commit
2023-01-03 18:06:27 -08:00
eac805106a Fix AX references 2023-01-02 21:40:27 -08:00
0fb30e0ac5 Implement retrieveCookie
retrieveCookie fetches and parses cookies. This util should help us further reduce places where we're extracting and parsing with cookies in the business logic
2022-12-27 17:16:21 -08:00
af09e89af1 Rename cosmos → cosmic 2022-12-26 05:17:24 -08:00
c49e930861 Add theme to state and cookies 2022-12-25 16:04:01 -08:00
ea02474bd2 Add slug to WeaponKey type 2022-12-24 01:07:16 -08:00
79ec308366 Add slugs to axData 2022-12-23 22:26:25 -08:00
f7d233cd4d Add awakening fields to types 2022-12-23 18:39:48 -08:00
247d2a466a Clean up setServerSideProps
Here we extracted the common methods used in pages into utils and included them, getting rid of a lot of duplicate code in the process.
2022-12-22 21:43:09 -08:00
adc987201e Update profile and filter bar 2022-12-22 00:46:13 -08:00
e8843699c7 Remove trailing semicolons 2022-12-05 17:54:46 -08:00
efa864fb80 Run prettier on src 2022-12-04 07:19:31 -08:00
70ca827e5f Fix an error with ambient declaration 2022-12-03 18:59:48 -08:00
12f54c1e02 Add base_job to Job type 2022-12-03 16:40:09 -08:00
ca4b2e9149 Add JobSkillObject and 0th index 2022-12-01 05:35:27 -08:00
0096a49a07 Added jobSkills to data structures 2022-12-01 01:45:31 -08:00
73944becf4 Add type alias for searchable objects 2022-11-30 05:19:43 -08:00
235f36814f Fix name of color attribute on JobSkill 2022-11-29 00:58:48 -08:00
5598e72463 Add JobSkill type 2022-11-27 18:55:51 -08:00
b71bb09723 Fix linting errors 2022-11-19 20:48:05 -08:00
e2dcdbaf37 Add character_id property to Character 2022-11-19 06:36:47 -08:00
5a797f0d14 Fix party details
* Populate from SSR
* Hide button to edit empty anonymous grids
2022-11-16 05:47:30 -08:00
94c885513d Update spacing 2022-11-16 05:17:46 -08:00
0c1fc9c1a1 Add AccountCookie and UserCookie types 2022-11-15 04:43:35 -08:00
e369981981 Add MC gender to account state and User type 2022-04-10 13:24:58 -07:00
d7cb459f99 Add Job type and JobGroups array 2022-04-04 23:42:22 -07:00
5048433e53 Cleanup 2022-03-14 16:47:18 -07:00
b1170a8e87 Add new types, states and value stores 2022-03-11 01:15:11 -08:00
1d98f13dee Query param filters work on Teams page 2022-03-07 17:54:24 -08:00
1365e4c95c Get query states working on teams page
This changes the URL to show query params for our three filters, making it easy for people to link to very specific subsets of raids.
2022-03-07 02:43:21 -08:00
5ea57f0e07 Rename canonical types to use "ja" instead of "jp" 2022-03-04 18:22:00 -08:00
cb7624d7a5 Add new types to User interface and state 2022-03-04 05:15:49 -08:00
242c61c200 Fix typescript build errors 2022-03-03 16:58:04 -08:00
9cef2ce89f Add element, ax and weapon_keys to GridWeapon type 2022-03-03 03:08:11 -08:00
97091050fd Make series not optional in Weapon type 2022-03-03 03:08:00 -08:00
a8544610dc Create SimpleAxSkill.d.ts 2022-03-03 03:07:47 -08:00
6d0227c6b7 Create AxSkill.d.ts 2022-03-03 03:07:44 -08:00
66ebab74ab Create WeaponKey.d.ts 2022-03-03 03:07:40 -08:00
dc18fb1975 Add series, ax to Weapon type 2022-03-01 19:52:24 -08:00
b78994b68c Add saved state and user to Party object 2022-02-27 22:30:43 -08:00
3b4b8ecc1a Add User and Party types 2022-02-27 00:35:05 -08:00
f778fd2cf8 Add element to Raid type 2022-02-24 18:13:47 -08:00
b68cca53a7 Create Raid.d.ts 2022-02-23 19:22:56 -08:00
2909da98eb Rename unique canonical keys to generic object 2022-02-23 13:57:38 -08:00