Commit graph

875 commits

Author SHA1 Message Date
271ec17202 Add Toast component 2023-01-24 18:52:00 -08:00
9a3d833092 Persist and recall accessory from server 2023-01-24 02:39:04 -08:00
bef9c2b286 Add JobAccessoryPopover
This opens, closes, and saves the value but it doesn't persist to the server yet. Not a responsive component yet.
2023-01-24 02:07:54 -08:00
075e4d52d7 Update PopoverContent
* Add PopoverContentProps
* Set sideOffset as default prop
* Add class name to arrow
2023-01-24 02:07:27 -08:00
a082c392ef Move padding to PopoverContent 2023-01-24 02:06:38 -08:00
6f32c975ce Extracted display of Job image into a component 2023-01-23 22:08:38 -08:00
a4cc331f5e Use proper URL for job icons
Before we were linking to local icons, but these will live on S3
2023-01-23 15:09:34 -08:00
968970b332 Fix errors from props on HTML elements 2023-01-23 02:46:58 -08:00
a3cb1ff7b6 Fix build errors 2023-01-22 23:30:11 -08:00
ac325db3c4 Fix alignment and padding 2023-01-22 22:51:13 -08:00
d5dda428cf Add job to read-only display 2023-01-22 22:48:50 -08:00
fefcd91290 Display icons in dropdown and trigger 2023-01-22 22:45:23 -08:00
814a25d005 Unify and finalize optimistic UI updates 2023-01-22 21:05:19 -08:00
971f04e88f Add XLB suffix for summons 2023-01-22 21:00:24 -08:00
274b5d0872 Remove outline 2023-01-22 20:54:35 -08:00
5bb5652aef Wire up API call to callback for summons 2023-01-22 20:54:30 -08:00
4b3fae1fe4 Remove unused code 2023-01-22 20:43:04 -08:00
882f80e220 Fix level display 2023-01-22 20:42:58 -08:00
c55f6f9708 Enable TranscendencePopover for summons 2023-01-22 20:35:46 -08:00
dd76827995 Updated optimistic UI reverting 2023-01-22 20:35:32 -08:00
9d50c7ae39 Add new props to UncapIndicator 2023-01-22 20:35:18 -08:00
99d3c646c0 Add update code for summons 2023-01-22 20:35:07 -08:00
fbc6f27b7f Remove unused code 2023-01-22 20:34:48 -08:00
e62e5bffa3 Remove dead styles 2023-01-22 19:51:50 -08:00
69edb2c770 Add animation 2023-01-22 19:51:29 -08:00
7876f0d9a7 Add RadixPopover and refactor TranscendencePopover 2023-01-22 19:27:04 -08:00
eb8183fe29 Improve tabIndex on CharacterGrid 2023-01-22 16:33:49 -08:00
c9ae4cd90b Read-only TranscendenceStar and optimistic updates 2023-01-22 16:10:15 -08:00
d7e39f3912 Send transcendence stage back to server 2023-01-22 14:41:09 -08:00
1f21e9d808 Added TranscendencePopover
This popover is the UI that lets you set an item's transcendence
2023-01-22 14:40:57 -08:00
9c757c2c5b Add TranscendenceStar and TranscendenceFragment
`TranscendenceStar` is a new star capable of displaying `TranscendenceFragment`s depending on the `GridCharacter` stage
2023-01-22 14:40:21 -08:00
4f7d18904f Add perpetuity control to CharacterUnit
This involved moving the code to update a GridCharacter to the CharacterUnit from CharacterModal
2023-01-21 20:20:25 -08:00
3ce7145ec4 Add handleSummonResponse 2023-01-21 19:12:54 -08:00
b912a7ae8f Implement deleting summons 2023-01-21 15:40:42 -08:00
bd11685295 Merge branch 'scroll-indicator' into summon-renewal 2023-01-21 15:30:56 -08:00
ee7ab8fd13
Merge branch 'fix-dialogs' into scroll-indicator 2023-01-21 15:30:30 -08:00
48866865eb Fix validation on open change in WeaponModal 2023-01-21 15:28:28 -08:00
0efe7f2386 Merge branch 'scroll-indicator' into summon-renewal 2023-01-21 15:19:06 -08:00
4bb625934b Remove hardcoded height from dialog
Causing issues of course
2023-01-21 15:18:43 -08:00
ddee38e37c Refactor SummonUnit and add alert and contextmenu 2023-01-21 15:18:01 -08:00
89908777a2 Add backdrop-filter for Overlay and animate 2023-01-21 09:42:50 -08:00
da1bca2c05 Fix auth modals 2023-01-21 08:37:11 -08:00
1ee55cc1c2 Fix delete party alert and redirect to profile on delete 2023-01-21 08:21:43 -08:00
0678856b43 Fix Conflict modals and make scrollable 2023-01-21 07:56:25 -08:00
acadbc3eea "Fix" extra scroll on AccountModal
This is definitely a "fix" because I have no idea why it was misbehaving in the first place
2023-01-21 07:42:41 -08:00
b271aa0923 Add footer ref for WeaponModal 2023-01-21 07:29:28 -08:00
66df6f9f74 Update SearchModal to use new scroll tech 2023-01-21 07:09:41 -08:00
7ad9032e86 Fix shadows for static and mod modals 2023-01-21 06:04:40 -08:00
c9315ab397 Fix spacing at bottom of ChangelogModal 2023-01-21 03:43:18 -08:00
baeaf4f73d Implement shadow on DialogHeader in static modals 2023-01-21 03:42:29 -08:00
16ed034b16 Fix spacing in AboutModal 2023-01-21 03:40:30 -08:00
6bc34af434 Fix and update Changelog and About modals 2023-01-21 00:10:41 -08:00
41d22c59a5 Fix Roadmap modal 2023-01-20 22:33:40 -08:00
0e3d5c08f8 Add max-width to DialogContent 2023-01-20 22:26:20 -08:00
a18c4d88bb Toggle locked for uncontrolled dialogs 2023-01-20 22:26:11 -08:00
82d1d7550a Fix styles for AccountModal 2023-01-20 21:53:45 -08:00
cd3d96d36f Add conditional for earring values 2023-01-20 21:50:27 -08:00
a4d6321d64 Update DialogContent styles 2023-01-20 21:49:55 -08:00
cdb85120de Update Dialog to be controlled 2023-01-20 21:49:43 -08:00
24c2ee950f Update SearchModal to be controlled 2023-01-20 21:49:16 -08:00
cc7051fc8f Implement removing Characters and Weapons 2023-01-20 21:39:03 -08:00
23c520f549 Fix Alert buttons and sizing 2023-01-20 21:11:53 -08:00
efcd2ea47c Add variables for timing 2023-01-20 21:05:23 -08:00
3417eab46e Add translations 2023-01-20 20:46:54 -08:00
54d67260c9 Fix party title when Untitled 2023-01-20 20:42:13 -08:00
2be23b5ea0 Add context menu to WeaponUnit
Also refactored and organized WeaponUnit and CharacterUnit
2023-01-20 20:38:44 -08:00
d4e598e36b Make button disappear and handle context menu states 2023-01-20 19:40:27 -08:00
6023f9ab6a Fix AwakeningSelect component
It was completely broken for weapons. We managed to fix the problem by refactoring how data is sent to SelectWithInput but I fear the root error is still there.

We also cleaned the component up a bit.
2023-01-20 19:29:07 -08:00
39940abf9f Fix saving awakening types and levels 2023-01-20 18:21:51 -08:00
e6c52c43b2 Fix error when opening character w/o over mastery 2023-01-20 17:39:04 -08:00
a06047232f Fix styles for Auth modals 2023-01-19 10:25:17 -08:00
6777804f57 Rename SelectWithSelect
This is only used for ExtendedMastery and is hardcoded for ItemSkill types
2023-01-19 08:12:35 -08:00
ea15696bae Enable saving to server 2023-01-19 08:01:35 -08:00
094ae4d7f9 Add new dependencies 2023-01-19 07:30:20 -08:00
07ce2d9cf5 Add headerClasses 2023-01-19 07:29:21 -08:00
2837eccc05 Refactor GridCharacterObject type 2023-01-19 07:29:09 -08:00
94bdd24900 Rename openChange 2023-01-19 07:28:56 -08:00
f2584459f7 Wire up switch for perpetuity 2023-01-19 07:27:45 -08:00
d9551a3e8e Receive and set character mod data 2023-01-19 07:27:21 -08:00
1d5822a0ab Add header changes to Weapon and Character modals 2023-01-19 07:26:37 -08:00
78744d663b Refactor props key out of WeaponSelect 2023-01-19 07:25:54 -08:00
6064d726ce Fix infinite loop in SelectWithSelect 2023-01-19 07:25:19 -08:00
6f3c7d2a03 Remove unused dependency 2023-01-15 15:21:47 -08:00
a8fb489911 Fix styles after Dialog extraction 2023-01-15 10:44:24 -08:00
acbc2da09d Show no_job string in read-only section 2023-01-15 10:37:51 -08:00
1bb16db205 Lock scrolling body when Dialog is open 2023-01-15 10:36:38 -08:00
b4f217071f Extract Dialog into its own component 2023-01-15 10:36:20 -08:00
26a30ad89c Add switch and styling for perpetuity rings 2023-01-14 19:22:21 -08:00
dd8f1906e8 Tightly couple ATK and HP values 2023-01-14 18:59:34 -08:00
9041683a6c Default awakening should be 1 2023-01-14 17:50:39 -08:00
9891cf4a46 Remove unused code 2023-01-14 17:50:31 -08:00
4f5c790d7d Add image to character modal 2023-01-14 17:43:59 -08:00
559f18764b Merge branch 'party-url-query' into character-mods 2023-01-14 12:40:52 -08:00
f0d6f1f8a4 Implement query param switching
Adding /characters, /weapons, or /summons will direct you to that tab by default, with /weapons as the default.

Clicking the segmented controller replaces the URL with the corresponding path, but doesn't push the navigation stack
2023-01-14 12:23:03 -08:00
21f5ab8825 Removed unused and redundant code 2023-01-14 12:22:15 -08:00
7532455364 Merge branch 'main' into character-mods 2023-01-08 05:53:48 -08:00
bd1f6ccb98 Refactor createParty to allow creating anything first 2023-01-08 01:32:09 -08:00
c0cdb91178 Remove visible from props to remove error 2023-01-08 01:31:56 -08:00
018aaefa81 Fix SummonUnit showing + over image 2023-01-07 23:28:06 -08:00
5de556b367 Create teams when arbitrary details are changed
These teams have no weapons and won't show up anywhere but the user's profile. We should probably clean out completely empty teams every once in a while with a CRON job.
2023-01-07 23:25:55 -08:00
4a219378c7 Fix bug with party name 2023-01-07 22:59:26 -08:00
3595899233 Add new layout and styles for roadmap modal 2023-01-06 04:24:35 -08:00
d070aea762 Fix padding on input to match other interactive elements 2023-01-06 03:13:37 -08:00
40e218deb2 Make modal open on ContextMenuItem select 2023-01-06 03:04:41 -08:00
12a01ef31d Make onOpenChange optional 2023-01-06 03:04:17 -08:00
bab9488913 Update CharacterModal
* Update localization keys
* Remove unneeded dependencies and calls
* Store received values (WIP)
2023-01-06 03:03:58 -08:00
ad07e9b727 Receive and send ring values (WIP) 2023-01-06 03:02:14 -08:00
a428a69ec7 Fix styles (make wider, text-align right) 2023-01-06 03:01:48 -08:00
db7a008c6f Remove onOpenChange and open states
We don't need it right now
2023-01-06 03:01:33 -08:00
b218fd61fa Add extra ItemSkill properties on empty awakening
Even though it doesn't really need them
2023-01-06 02:59:29 -08:00
6541dff12e Fix primary button, add overlay, allow ReactNode msg 2023-01-06 02:58:59 -08:00
39f79bfbc6 Update Alert styles
* Proper z-index with overlay
* Slightly themed with background-color variable (more to come)
* Make strong actually make things bold
* Proper styling on buttons container
2023-01-06 02:58:45 -08:00
1206c1978f Add WIP RingSelect
doesn't send data yet
2023-01-06 00:49:41 -08:00
21465b5dea Add style for hidden selects 2023-01-06 00:49:24 -08:00
45d77b0522 Hardcode sizing of the pair of inputs, which sucks but is necessary for now 2023-01-06 00:49:12 -08:00
0860e7d694 Implement SelectWithSelect
A table item with a select on the left and a select on the right
2023-01-06 00:46:34 -08:00
8ed97c55fe Convert to use SelectWithInput 2023-01-05 20:49:17 -08:00
d7ab348e4b Fix bad import after moving data files 2023-01-05 20:49:03 -08:00
1206290ede Add support for disabled selects 2023-01-05 20:48:53 -08:00
55c99cda58 Bug fix: Plus icon is a higher z-index than summon image 2023-01-05 20:48:37 -08:00
0f30c73964 Implement SelectWithInput
We keep making this pattern so lets standardize it
2023-01-05 20:46:50 -08:00
5b6c6b4521 Move various files from /utils to /data 2023-01-05 02:13:51 -08:00
61c7341ee3 Implement CharacterModal
Need sub-components
2023-01-04 23:31:49 -08:00
6cd55e9166 Add ContextMenu to CharacterUnit with placeholders 2023-01-04 22:33:30 -08:00
d4029942e5 Disable selecting the character image 2023-01-04 22:32:26 -08:00
726c0608c4 Add new class for hovering buttons 2023-01-04 22:32:26 -08:00
ed0c821227 Add ContextMenu and ContextMenuItem 2023-01-04 22:31:01 -08:00
573deaa2c2 Different approach to getting locale cookie 2023-01-03 23:19:13 -08:00
dc99c9b525 Fix positioning of thumb in switch
We were using translateX to move the switch and animate it with transform, but the page refreshes immediately after you tap it so it doesn't matter.
2023-01-03 23:10:08 -08:00
9b1dd4452f Bump Token size because yoey is needy 2023-01-03 20:01:57 -08:00
8a60326e39 Update index.scss 2023-01-03 19:58:14 -08:00
8a600f967a Change raid color in GridRep 2023-01-03 19:53:29 -08:00
ac865d7a26 Fix colors in GridRep and add to detailsWithUsername 2023-01-03 19:41:31 -08:00
56c4842e82 Add full auto tag to GridRep 2023-01-03 19:24:37 -08:00
54dd3feba7 Add new fields to parties
I forgot to commit
2023-01-03 18:06:27 -08:00
ec2c2755be Fix more type errors 2023-01-02 21:43:57 -08:00
787abd8e85 Reset conflict on close for character conflict modal 2023-01-02 21:41:07 -08:00
eac805106a Fix AX references 2023-01-02 21:40:27 -08:00
9d5d67601c Use Dialog in ConflictModals 2023-01-02 21:31:18 -08:00
56524d847a Reset conflict modal after close 2023-01-02 21:29:13 -08:00
3b670032c3 Fix z-index on entity units to fix hovercards 2023-01-02 06:53:20 -08:00
0303915ef1 Add z-index to hovercard 2023-01-02 14:40:22 +00:00
42f2dcead7
Change classes for hovercards and their content 2023-01-02 06:36:53 -08:00
31dcebd6db Make subaura summons consistent 2023-01-02 05:46:53 -08:00
5c7e7fbb57 Fix summons and extra summons 2023-01-02 05:44:53 -08:00
60879b24f5 Move placeholders to directory 2023-01-02 05:44:45 -08:00
562d52a626 Small fixes to Character CSS
* Constrain to $grid-width
* Fix spacing between breakpoints
2023-01-02 05:14:03 -08:00
44209c82af Update ExtraWeapons 2023-01-02 05:10:10 -08:00
ed00f43af3 Fix empty state for weapons 2023-01-02 04:51:41 -08:00
feb3b6c2ca Smaller updates to responsive character CSS grid 2023-01-02 04:28:13 -08:00
36fe175f8f Make responsive updates to weapon grid CSS 2023-01-02 04:20:20 -08:00
ff5e9ce5c0 Update regex to support Youtube short URLs
Mya just had to go and fucking use the short URLs and break embedding
2023-01-02 02:35:39 -08:00
7bb14409a7
Merge pull request #110 from jedmund/update-youtube-regex
Update regex to support Youtube short URLs
2023-01-02 02:20:04 -08:00
e48f0a4289 Update regex to support Youtube short URLs 2023-01-02 02:19:09 -08:00
3e32871107 Also prevent updating uncap stars on Character/Summon grids 2023-01-02 02:08:01 -08:00
d3c2c6846b Add key to weapon series group elements 2023-01-02 02:05:56 -08:00
e0c809867e Use string for visible 2023-01-02 02:04:08 -08:00
dae06b9087 Intermediate fix for CheckedState
I don't really know how to handle this lol
2023-01-02 02:03:58 -08:00
b5a7302cba Update components to fix NextJs errors 2023-01-02 01:47:34 -08:00
821ef4c41b Passing javascript true to DOM element 2023-01-02 00:53:57 -08:00
ba6c45d551 Fix job image rendering
* Only render when job selected
* Render localized name as alt string
2023-01-02 00:52:26 -08:00
55e2938d76 Fix JobSkill filter not working 2022-12-30 07:03:49 -08:00
71b99091ea Fix hover color for job skill placeholder 2022-12-30 07:02:13 -08:00
2348c049d6 Fix optional error when checking job 2022-12-30 07:00:41 -08:00
59bc9e6b89 Fix awakening select display of input 2022-12-30 06:59:49 -08:00
a12b0383ef Don't show weapon mod button if weapon has no id 2022-12-30 06:12:29 -08:00
bc76df5054 Make all dialogs min-width 2022-12-30 06:12:12 -08:00
758ee4dae4 Fix tablet sizing for JobSection 2022-12-30 05:48:26 -08:00
18208a95b7 Fix empty state for Job dropdown 2022-12-30 05:48:17 -08:00
c574e5e845 Add min-width to SearchDialog 2022-12-30 05:40:52 -08:00
1e820f184e Force reload after logout
This is a much easier and foolproof way to ensure that people can't edit their grid after logging out.
2022-12-30 05:23:44 -08:00
ba025b8fd8 Set user token after login and signup 2022-12-30 05:19:12 -08:00
18a998b1ed Remove logs and unused dependencies 2022-12-30 05:18:40 -08:00
8c952a57f5 Condense createParty into one method call 2022-12-30 05:18:14 -08:00
7580e544fe Lock down unauth authentication
Fixes #97
2022-12-30 03:52:21 -08:00
ab81b70b13 Fix line wrapping and linkify URLs again 2022-12-29 03:24:41 -08:00
d1ec67d021 Fix null element on GridRep 2022-12-28 23:39:54 -08:00
406b3c1b44 Fix GridRep sizing in GridCollection 2022-12-28 23:24:19 -08:00
5e8939cddf Make GridRep more consistent
The mainhand is still slightly taller than the 9 grid weapons but this will do for now
2022-12-28 23:15:09 -08:00
df795ad9a3 Move import 2022-12-28 22:38:43 -08:00
4d2f433f6c Remove headers 2022-12-28 22:38:33 -08:00
8c199b847e SearchModal CSS updates for mobile 2022-12-28 22:38:20 -08:00
92b21dc0cf JobSection updates
* Make Job preview full width
* Use smaller layout on tablets and phones
2022-12-28 22:37:59 -08:00
001dbc55f1 Don't re-align segmented control 2022-12-28 22:37:32 -08:00
f8b2c6d61c Use new Overlay component 2022-12-28 22:37:21 -08:00
968f0f3f43 Fix z-index to work with new Overlay component 2022-12-28 22:37:14 -08:00
6ef884b784 Fix character unit sizing 2022-12-28 22:37:01 -08:00
bd0e66a986 Remove logs 2022-12-28 22:18:27 -08:00
7e1c65a862 Fix CharacterGrid 2022-12-28 22:18:02 -08:00
7bc872644a Add keys to SearchFilters 2022-12-28 22:03:12 -08:00
7eb129f01b Remove stuff from LoginModal 2022-12-28 21:51:44 -08:00
84aa355ad8 Add phantom overlay to Selects to prevent background touches
https://github.com/radix-ui/primitives/issues/1658
2022-12-28 21:47:28 -08:00
2c2a9dd65d CSS updates for modals (except search) 2022-12-28 17:37:55 -08:00
f4cc93d415 Fix the build 2022-12-28 01:48:26 -08:00
c2bb0c23f5 LoginModal fixes
Add error message for invalid credentials
2022-12-28 01:35:58 -08:00
8c32753183 Add Disinfect to credits 2022-12-28 00:53:16 -08:00
ace2e08db2 Hotfix for LoginModal to see whats wrong 2022-12-28 00:36:42 -08:00
edf261b802 Remove headers params from api calls 2022-12-27 19:21:55 -08:00
47f6a5c1bd Make GridRep flexible 2022-12-27 19:18:59 -08:00
82e93de7fc Further improve menu toggling
You should be able to dismiss the menu by clicking the button again. Now you can.
2022-12-27 17:43:15 -08:00