Commit graph

778 commits

Author SHA1 Message Date
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
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
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
2e2f22d36f Move slideRight animation into Toast component 2023-07-02 02:44:07 -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
33d0d9f6e4 Fix visual bugs in GridRep
* Fixes the mainhand height not always being full height when the container was being responsively resized
* Adjusts the color of empty grid rectangles for dark and light mode and when being hovered over
2023-07-02 02:27:34 -07:00
83d7d6df15 Update FilterModal
* Adds a notice alerting users that filters on profiles and the saved page do not persist
* Exposes `persistFilters` prop that will be passed to FilterBar and used to determine if the notice should be displayed
* Autofocuses the first select on the page
2023-07-02 02:26:09 -07:00
01b51f2829 Update FilterModal
* Fixes spacing of interactive elements in FilterBar so they don't stretch according to content anymore
* Adds new `persistFilters` prop that determines whether the FilterBar should persist any filters to the user's cookies
* Uses defaultFilterset prop to populate the default filter set instead of importing the actual "default filter set" and using it directly
2023-07-02 02:24:59 -07:00
48d451d136 Update ErrorSection styles 2023-07-02 02:23:32 -07:00
b8b3f2fffb Fix placeholder text and formatting
This fixes Textarea's placeholder text to be consistent with Input, as well as allows us to use new lines in the placeholder
2023-07-02 02:23:23 -07:00
3a684abf57 Fixes bug with SliderTablefield control
This fixes a bug where the SliderTableField's slider was not changing the input's value.

We essentially let the parent component control the value so the component is only ever reading from props, instead of using its stored state as a display.
2023-07-02 02:23:00 -07:00
f9a8d1db5c Passes along the autoFocus prop to Select
This passes along the autoFocus prop to the root Select component, and exposes it in SelectTableField
2023-07-02 02:21:31 -07:00
730bf0eac5 Hide text overflow in trigger
The Popover trigger (specifically for RaidCombobox) would stretch or break lines when given a long value. This makes it so that the text will always stay on one line and hide its overflow with an ellipsis if necessary
2023-07-02 02:20:43 -07:00
9f890ae253 Update Input
* Add fieldsetClasses prop
* Fallback to an empty string if value is undefined
* Fix focus ring to be consistent with our other custom focus rings
* Fix placeholder color
2023-07-02 02:19:47 -07:00
e8d1da58d5 Update DurationInput and remove old classes 2023-07-02 02:18:46 -07:00
d57b0fed23 Give visual focus state to close button 2023-07-02 02:18:06 -07:00
619eff2ad7 Revert Command changes
This seems to rely on these specific styles and it works, so we'll leave it alone for now.
2023-07-02 02:17:51 -07:00
9dd3260761 Update DialogContent
* Shrunk max-height to 60vh, and remove it for search
* Added an explicit width, as using min/max-width interferes with the contentEditable div in EditPartyModal
* Added custom styles for EditPartyModal
* Removed unused styles
2023-07-02 02:07:55 -07:00