Commit graph

1335 commits

Author SHA1 Message Date
8bdce71c7b Fix Nextjs build errors 2023-07-04 00:36:30 -07:00
e22183fa63 Fix styles for when a collection has no teams 2023-07-04 00:29:07 -07:00
a064cfa67c Fix page navigation when filtering collections
There was a bug that kept page navigation from working properly when filtering. Things would load multiple times, or load the wrong thing, or not navigate properly. That should all be fixed now.
2023-07-04 00:28:05 -07:00
acbb10d458 Refactor Header and add logout confirmation 2023-07-03 22:13:05 -07:00
c6bdc376bf Fix padding so focus ring isn't cut off 2023-07-03 21:55:25 -07:00
a72f6ac7a9 Show AX section in WeaponHovercard
Was testing truthy/falsy which meant id 0 made it not display
2023-07-03 21:54:08 -07:00
9b098a15d8 Fix more raid color stuff
This should be it for real this time
2023-07-03 21:53:47 -07:00
a54f1b4c46 Fix weapon element logic
We had broken null weapons changing sprites when the element was changed, and the change detection was also broken. Some more stringent logic checks fixed both.
2023-07-03 21:25:28 -07:00
88b795cbd3 Small cleanup of parseInt 2023-07-03 21:24:32 -07:00
a1c22acaaf Don't show icon for balanced character awakening
Also, remove old CSS
2023-07-03 21:03:47 -07:00
4cf87e8fdb Use new element variables
* h5 in globals
* Buttons
2023-07-03 21:03:32 -07:00
8b74bb873b Fix awakening modification check
Awakening wasn't being set when the modal loaded, so it was testing the gridWeapon value against undefined
2023-07-03 20:58:10 -07:00
2994d16d49 Fix footer shadows for all other modals
Also removes default box-shadow and border-top
2023-07-03 20:53:53 -07:00
c7311a4e03 Fix footer shadow in EditPartyModal 2023-07-03 20:50:44 -07:00
fa0720a549 Fix how description is tested for changes 2023-07-03 20:17:08 -07:00
6ff0258f60 Add confirmation alert to Edit Party modal 2023-07-03 20:12:57 -07:00
102ac3e1d1 Update elemental colors
This makes elemental accent colors themed more consistently
2023-07-03 19:47:02 -07:00
2c4d9b1ab5 Make things that should be bound, bound 2023-07-03 19:22:45 -07:00
c35f954048 Set grid weapon element when downloaded 2023-07-03 19:07:56 -07:00
932dfe231f Update WeaponModal to incorporate latest changes
* Adds unsaved changes alert
* Updates to use refactored WeaponKeySelect
* Moves api code to parent via a updateWeapon prop
* Updates to use DialogHeader and DialogFooter
* Makes rendering functions into constants
2023-07-03 19:07:25 -07:00
c60b9887e3 Update weapon should happen in WeaponUnit
Previously, this happened in WeaponModal. It happens in CharacterUnit on that end, so this change brings us in line with how we're doing things elsewhere
2023-07-03 19:06:11 -07:00
fab8ab260c Update AxSelect for CSS modules 2023-07-03 19:05:20 -07:00
c65b2597aa Refactor WeaponKeySelect
No longer makes an API call for each instantiation—instead we use the weapon keys downloaded on the server
2023-07-03 19:05:05 -07:00
ad2b70e819 Update ElementToggle to use CSS modules 2023-07-03 19:04:04 -07:00
1b4c7ea588 Increase spacing of range mod style 2023-07-03 19:03:52 -07:00
7b465f6d5d Localize unsaved changes alert 2023-07-03 19:03:40 -07:00
e8a346cc71 Add unsaved changes localizations 2023-07-03 19:03:22 -07:00
5a40ff89d0 Move GridWeaponObject to types 2023-07-03 19:03:06 -07:00
15aa61731c Reset values when the dialog is closed
The way we handle state means that we will keep old, unsaved values around if we don't do this
2023-07-03 02:17:05 -07:00
0b21bf768a Update CharacterModal
* Adapts styles for CSS modules
* Adds an alert if the user tries to close a dialog with changes without saving
* Uses constants instead of functions for rendering helpers
* Fixes validation
2023-07-02 16:27:16 -07:00
2cd6513aa4 Add extra modifier styles to Input/Select 2023-07-02 16:26:20 -07:00
1f26b0afc8 Fix SelectWithInput styles and functionality
* Adapts styles for CSS modules
* Add name to errors
* Properly sends validity
2023-07-02 16:26:05 -07:00
1c805e3f88 Fix AwakeningSelectWithInput styles and functionality
* Adapts styles for CSS modules
* Properly sends validity
* Reordered errors
2023-07-02 16:25:31 -07:00
0b42582434 Normalize 1-index for over mastery 2023-07-02 16:23:06 -07:00
38bd603e16 Fix RingSelect styles and functionality
* Updates styles for CSS modules
* Updates for normalized 1-index object
* Properly falls back to 0 value if value is not set
2023-07-02 16:21:14 -07:00
1aec85fb3e Fix ExtendedMasterySelect styles 2023-07-02 16:19:56 -07:00
f7b3139abf Normalize over mastery object
The over mastery object was sometimes 0-index, sometimes 1-index. This normalizes it to be 1-indexed, even though that is a little silly. I think this is the lesser amount of work though, since normalizing against 0-index might require API changes
2023-07-02 16:19:19 -07:00
09f6f7ddd1 Add missing localization for earring errors 2023-07-02 16:18:21 -07:00
c763a81e21 Alert overlays should display over modals
We were using the same Overlay with no changes, so alerts would display over modals without an overlay behind them
2023-07-02 16:18:13 -07:00
e43ecb2c00 Fix character conflict modal only appearing once
We weren't changing the modal open state to false
2023-07-02 03:31:30 -07:00
37ca90a18c Fix conflict CSS
Was accidentally adding it to a declaration that was setting min-height instead of max-height
2023-07-02 03:31:13 -07:00
102e7e57b3 Add keys to conflict buttons 2023-07-02 03:30:36 -07:00
fba1a6dfde Update styles for conflict modals
* The actual styles for these were in DialogContent and had been deleted, so we fetched them from a previous commit
* Conflict modals get added to the exception that gives them a taller max height
* We can probably combine the meat of these into a ConflictDiagram component
2023-07-02 03:19:03 -07:00
ecff0b569f Remove keyframes.scss from globals 2023-07-02 02:47:57 -07:00
b9b61ba37b Remove keyframes.scss
Unfortunately, CSS modules makes it unreasonably difficult to have a central repository of CSS animations and reuse them, so we have copied these into the stylesheets of components that use them.
2023-07-02 02:45:04 -07:00
2e2f22d36f Move slideRight animation into Toast component 2023-07-02 02:44:07 -07:00
973418ad45 Change NotFound to be a class instead of ID 2023-07-02 02:42:25 -07:00
c1294e99cd Add a bunch of new colors and theme variables
* Notice variables for FilterModal
* Unit background variables for GridRep
* An array of accent yellow colors
* Modified disabled button values in dark theme
* Modified extra purple text color in dark theme
2023-07-02 02:42:13 -07:00
a9aa498ab6 Add permissive filter set
This is the default filter set on user profiles and the saved teams page
2023-07-02 02:41:07 -07:00
125d0e62c3 Extract createLocalId into a util
We extracted createLocalId into a method outside of the new page. Now, it can be used as a fallback when fetching the local ID if that local ID doesn't exist yet
2023-07-02 02:40:51 -07:00