Commit graph

1223 commits

Author SHA1 Message Date
61f32d8537 Merge branch 'staging' into raid-select 2023-06-16 18:56:41 -07:00
9c449b72c2 Merge branch 'staging' of github.com:jedmund/hensei-web into staging 2023-06-16 18:51:09 -07:00
d765b00120
Redesigned team navigation (#310)
* Add ellipsis icon

* Reduce size of tokens

* Move UpdateToast to toasts folder

* Update variables.scss

* 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

* Added RepSegment

This is a Character, Weapon or Summon rep wrapped with an input and label for use in a SegmentedControl

* Modify PartySegmentedControl to use RepSegments

This will not work on mobile yet, where it should gracefully degrade to a normal SegmentedControl with only text

* Extract URL copied and Remixed toasts into files

* Extract delete team alert into a file

Also, to support this:
* Added `Destructive` class to Button
* Added `primaryActionClassName` prop to Alert

* Added an alert for when remixing teams

* 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

* Remove duplicated code

This is description and remix code that is still in `PartyDetails`

* Small fixes for weapon grid

* Add placeholder image for guidebooks

* Add localizations

* Add Guidebook type and update other types

* Update gitignore

Don't commit guidebook images

* 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

* Add ExtraContainer

This is the purple container that will contain additional weapons and sephira guidebooks

* Move ExtraWeapons to ExtraWeaponsGrid

And put it in ExtraContainer

* Added GuidebooksGrid and GuidebookUnit

These are the display components for Guidebooks in the WeaponGrid

* Visual adjustments to summon grid

* Add Empty class to weapons when unit is unfilled

* Implement GuidebooksGrid in WeaponGrid

* Remove extra switch

* Remove old dependencies and props

* Implement searching for/adding guidebooks to party

* Update styles

* Fix dependency

* Properly determine when extra container should display

* Change to 1-indexing for guidebooks

* Add support for removing guidebooks

* Display guidebook validation error

* Move read only buttons to PartyHeader

Also broke up tokens and made them easier to render

* Add guidebooks to DetailsObject

* Remove preview when on mobile sizes
2023-06-16 18:49:55 -07:00
1bb077715c Increase height slightly 2023-06-16 18:23:41 -07:00
984075e621 Add farming raid option 2023-06-16 18:23:34 -07:00
7ddd14e335 Fix some mobile styles 2023-06-16 17:52:54 -07:00
865ee880d0 Merge branch 'party-revamp' into raid-select 2023-06-16 17:43:28 -07:00
ffc46f3b41 Remove preview when on mobile sizes 2023-06-16 17:37:40 -07:00
9337b46045 Update index.scss 2023-06-16 17:21:27 -07:00
c1bcfe62c5 Remove RaidDropdown component 2023-06-16 17:17:10 -07:00
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
eee0624c92 Set raid groups on teams page 2023-06-16 16:22:42 -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
363148599a
Deploy content update (#309)
* Update the updates page with new items (#306)

* Add Nier and Estarriola uncaps (#308)

* Update the updates page with new items (#306) (#307)

* Update .gitignore

* Add Nier and Estarriola uncaps

* Fix uncaps treated as new characters
2023-06-08 12:21:00 -07:00
f7c895d0ca
Merge branch 'main' into staging 2023-06-08 12:20:52 -07:00
b6895b61a8
Add Nier and Estarriola uncaps (#308)
* Update the updates page with new items (#306) (#307)

* Update .gitignore

* Add Nier and Estarriola uncaps

* Fix uncaps treated as new characters
2023-06-08 12:19:39 -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
436bec07b5 Updates themes and variables 2023-06-05 20:24:35 -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
c9014913db Add api call for raidGroups and update pages
Pages fetch raids and store them in the app state. We needed to update this to pull raid groups instead
2023-06-05 20:18:17 -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
4bb8fc5df3 Update dependencies
* Update react and react-dom to at least 18.0.0
* Install cmdk
2023-06-05 20:15:23 -07:00
2f5b1582cd Update types
Added RaidGroup and updated Raid, then updated dependent types and objects
2023-06-05 20:14:30 -07:00
321ddf0dc0 Update and reorganize localization files 2023-06-05 20:13:46 -07:00
d5525da7a7 Update .gitignore 2023-06-05 03:30:04 -07:00
9ab9520ac9 Add raid placeholder string to locale 2023-06-05 03:29:40 -07:00
d2cb881640
Update the updates page with new items (#306) (#307) 2023-05-31 03:26:11 -07:00
8398112065
Update the updates page with new items (#306) 2023-05-31 03:25:45 -07:00
715fa021de Add guidebooks to DetailsObject 2023-04-20 02:34:54 -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