Commit graph

1321 commits

Author SHA1 Message Date
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
476003d97a Update localizations 2023-07-02 02:39:45 -07:00
87e83928d6 Add tab management to pages
Tab management was previously handled by `Party` but things are smoother and less flicker-y if we handle them on the pages themselves
2023-07-02 02:39:26 -07:00
14b265f5e8 Add missing localization for "Loading..." 2023-07-02 02:38:16 -07:00
c5cef9393d Implement filter changes
User profiles and saved teams won't use a user's filter cookies or persist filters anymore
2023-07-02 02:38:03 -07:00
aa66651079 Update styles for extra weapon units 2023-07-02 02:37:05 -07:00
eb7b26c5b9 Don't show quick summon icon on subaura summons 2023-07-02 02:36:28 -07:00
b1af862d79 Add class to fieldset instead of input 2023-07-02 02:36:13 -07:00
e4ad92d630 Fix raid keyboard navigation
* We added a plain "raid" style that our keyboard navigation code can hook onto, so that you can navigate the RaidCombobox raid list with the up and down arrow keys
* Fixed the raid item background color when hovering or focused
* Removed unused code
2023-07-02 02:35:53 -07:00
faf4eb9943 Add missing localization 2023-07-02 02:34:30 -07:00
862747ed4a Update PartyHeader
* Fixes the display of numeric properties (button count, turn count, chain count)
* Refactors remixed pill/button so that it displays a message if the original party was deleted
2023-07-02 02:34:09 -07:00
422f1b7818 Add functionality to PartyFooter buttons
The "Edit info" and "Remix" buttons now have their proper functionality in PartyFooter, matching how they behave in PartyHeader
2023-07-02 02:33:18 -07:00
f14e90acfc Update Party component
* Moves tab state management to the parent to prevent flickering and re-rendering
* Fixes local ID saving so that unauth users can make parties again
* Fixes the saving and display of numeric values (button count, chain count, turn count)
2023-07-02 02:32:35 -07:00
7db02886fa Update EditPartyModal
* Directly adds shadow code from DialogHeader since this dialog behaves slightly differently. In the future, we'd like to reconcile this so that the code only appears once
* Changes rendering functions to be properties
* Add DialogHeader and DialogFooter
* Implement Textarea component instead of raw textarea
* Removed unused code
2023-07-02 02:30:59 -07:00
d194b54836 Remove unused code 2023-07-02 02:27:47 -07:00