Commit graph

1301 commits

Author SHA1 Message Date
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
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
0801693218 Use CSS modules with Command
We don't really use all of these exports, but we made it so that className gets passed properly to `styles` when we do
2023-07-02 02:06:15 -07:00
a6026cc592 Add custom styles for remixed pill
This pill displays when a party is a remix. We shrunk it so it wasn't quite the size of a normal small button, and then added disabled states for if the original party was deleted
2023-07-02 02:05:42 -07:00
d38bbaef44 Add lodash.isequal
We didn't end up using it but it might come in handy in the future
2023-07-02 02:04:50 -07:00
da2d0cfc8e Remove unused code
Dependencies and components that were no longer used
2023-07-02 02:04:30 -07:00
10c1e0332e Update localizations 2023-07-02 01:54:52 -07:00
db9193531c Add prop for destructive dropdown menu items 2023-06-30 23:04:51 -07:00
ab702edb4b Don't show <img> when there is no icon 2023-06-30 23:04:36 -07:00