Commit graph

678 commits

Author SHA1 Message Date
c5500a38a8 Fix styles for combobox input 2023-06-16 17:16:24 -07:00
2d6dff88ff Implement in FilterBar 2023-06-16 16:23:04 -07:00
112b8ad76e Change selects to be poppers for consistency
We can't make the new Raid combobox appear over the input like the macOS behavior, so we change all selects to be normal popper behavior
2023-06-16 16:22:26 -07:00
7afd445952 Add translation for "Selected" text 2023-06-16 16:21:11 -07:00
1d06303b93 Refactor accessibility code 2023-06-16 16:18:44 -07:00
3693124043 Style updates 2023-06-16 16:18:01 -07:00
044d7bebee Make combobox keyboard accessible 2023-06-16 06:20:19 -07:00
10e53b2b83 Further refactoring of RaidCombobox 2023-06-06 08:50:48 -07:00
f96d78770a ChatGPT helped me refactor RaidCombobox 2023-06-06 08:32:28 -07:00
121b75f63a Add clear button to Combobox input
* It only shows up when there is text in the input
* Clicking it clears the text in the input
* It uses CharLimitedFieldset's classes
2023-06-05 21:01:24 -07:00
2908c33b2c Update CharLimitedFieldset class name 2023-06-05 21:00:54 -07:00
f85e3ac85e Update side offset for Popover 2023-06-05 21:00:43 -07:00
42cc3b4f92 Add small shadow to Tooltip 2023-06-05 20:25:34 -07:00
659967f710 Replace RaidDropdown with RaidCombobox 2023-06-05 20:25:27 -07:00
d622d79f19 Add RaidCombobox and RaidItem components
* RaidCombobox combines Popover and Command to create an experience where users can browse through raids by section, search them and sort them.
* RaidItem is effectively a copy-paste of SelectItem using CommandItem, adding some raid-specific styles and elements
2023-06-05 20:24:26 -07:00
f8d2ccd012 Add Command component
The Command component is a wrapper over CMDK's Command component. Pretty much every object in that library is wrapped here. We will use this for the guts of our combobox.
2023-06-05 20:22:41 -07:00
07e43f4309 Add Popover component
* Popover is a wrapper of Radix's Popover component that we will use to wrap the combobox.
* Move styles that were in PopoverContent.scss to Popover.scss
2023-06-05 20:21:35 -07:00
6a7cfb230d Remove raid prop from Party 2023-06-05 20:20:34 -07:00
106b2b8ee4 Update Select component
* data-placeholder style should match only if true
* Adjust corner radius to match cards instead of inputs
* Fix classNames call in SelectItem
2023-06-05 20:20:23 -07:00
4e63a6593b Update SegmentedControl component
* Add className and blended properties
* Segment gets flex-grow
2023-06-05 20:19:10 -07:00
2eea7a84e7 Rename Arrow.svg to Chevron.svg
Also added a new Arrow.svg with a stem
2023-06-05 20:16:39 -07:00
2f5b1582cd Update types
Added RaidGroup and updated Raid, then updated dependent types and objects
2023-06-05 20:14:30 -07:00
e5e135703f Move read only buttons to PartyHeader
Also broke up tokens and made them easier to render
2023-04-20 02:34:18 -07:00
4403079733 Display guidebook validation error 2023-04-19 04:01:46 -07:00
bf77a4ffc7 Add support for removing guidebooks 2023-04-19 04:01:22 -07:00
59d264f3c3 Change to 1-indexing for guidebooks 2023-04-19 03:57:19 -07:00
aa904b4754 Properly determine when extra container should display 2023-04-19 01:15:42 -07:00
0d5c99c4e2 Fix dependency 2023-04-19 00:52:29 -07:00
8dbdd9fe49 Update styles 2023-04-19 00:36:40 -07:00
c793fdb6a9 Implement searching for/adding guidebooks to party 2023-04-19 00:36:32 -07:00
926e892b51 Remove old dependencies and props 2023-04-19 00:35:21 -07:00
662c2b0d5d Remove extra switch 2023-04-19 00:32:54 -07:00
f2ba8ddbea Implement GuidebooksGrid in WeaponGrid 2023-04-19 00:30:53 -07:00
a60630cdf1 Add Empty class to weapons when unit is unfilled 2023-04-19 00:30:08 -07:00
c152436df3 Visual adjustments to summon grid 2023-04-19 00:29:10 -07:00
76aadfbc15 Added GuidebooksGrid and GuidebookUnit
These are the display components for Guidebooks in the WeaponGrid
2023-04-19 00:27:39 -07:00
ba52ba4fb0 Move ExtraWeapons to ExtraWeaponsGrid
And put it in ExtraContainer
2023-04-19 00:25:41 -07:00
f6bc76e1d1 Add ExtraContainer
This is the purple container that will contain additional weapons and sephira guidebooks
2023-04-19 00:23:35 -07:00
f948c25e28 Indicate if a dialog is scrollable
We had broken paging in the infinite scroll component. Turning off "scrolling" at the dialog levels fixes it without adding scrollbars in environments that persistently show them
2023-04-19 00:21:35 -07:00
440157a4ba Small fixes for weapon grid 2023-04-16 04:18:42 -07:00
68349da1e7 Remove duplicated code
This is description and remix code that is still in `PartyDetails`
2023-04-16 04:03:36 -07:00
f8df3a2a49 Began refactoring PartyDetails into several files
* PartyHeader will live at the top, above the new segmented control
* PartyDetails stays below, only showing remixed teams and the description
* PartyDropdown handles the new ... menu
2023-04-16 03:54:07 -07:00
ef5fd20497 Added an alert for when remixing teams 2023-04-16 03:52:10 -07:00
c365f857b0 Extract delete team alert into a file
Also, to support this:
* Added `Destructive` class to Button
* Added `primaryActionClassName` prop to Alert
2023-04-16 03:51:55 -07:00
7c3f03f20e Extract URL copied and Remixed toasts into files 2023-04-16 03:50:35 -07:00
b8d4529f21 Modify PartySegmentedControl to use RepSegments
This will not work on mobile yet, where it should gracefully degrade to a normal SegmentedControl with only text
2023-04-16 03:50:12 -07:00
1c09a5cc9c Added RepSegment
This is a Character, Weapon or Summon rep wrapped with an input and label for use in a SegmentedControl
2023-04-16 03:49:21 -07:00
bad870a546 Add reps for grid objects
These reps act like the existing PartyRep except for Characters and Summons, as well as a new component just for Weapons.

They only render the grid of objects and nothing else.

Eventually PartyRep will use WeaponRep
2023-04-16 03:48:47 -07:00
c3f74130ea Move UpdateToast to toasts folder 2023-04-16 03:47:30 -07:00
13ee49809e Reduce size of tokens 2023-04-16 03:47:07 -07:00