Commit graph

894 commits

Author SHA1 Message Date
f0ba0d5eb3 Don't switch tabs when creating a party
We changed the method in the New route to use the Next.js Router, which is causing us to navigate to the Party route and causing issues. This change makes it so that users stay on the same tab when they reach their destination.
2023-01-30 23:09:37 -08:00
c7c410bd2a Add localizations 2023-01-30 04:33:47 -08:00
a5c03f10cb Add localization for Your Profile 2023-01-30 04:29:20 -08:00
cec4aa22e6 Add NPC profile picture to other pages 2023-01-30 04:26:03 -08:00
a5a5143bd6 Add username and anonymous profile picture 2023-01-30 04:22:47 -08:00
a1da2f408b Change color for tokens when "Off" 2023-01-30 04:15:05 -08:00
5c79905437 Escape apostrophes 2023-01-30 03:57:07 -08:00
39dba09ced Add 2022-02-06 update log 2023-01-30 03:36:59 -08:00
4f0a49b114 Add support for R characters 2023-01-30 01:34:09 -08:00
1a53e34290 Always run npm run build 2023-01-29 23:43:24 -08:00
05df606ea4 Don't POST if the user is adding the same weapon to a position 2023-01-29 23:36:57 -08:00
fa6b312f06 Move storeGridWeapon to after conflict deletion
Otherwise, we delete what we just stored
2023-01-29 23:36:37 -08:00
44c0e96474 Proper equality 2023-01-29 23:36:21 -08:00
84bd51cae0 Fix missing dependency error
Forgot to remove this
2023-01-29 23:03:59 -08:00
3548da4b15 Add a tooltip to the Copy URL button
We aren't doing the hovercard in the design right now, so this is fine
2023-01-29 23:00:42 -08:00
3b297e426d Fix uncap indicator in hovercards
We mistakenly removed `width` when we wanted to set `min-width`
2023-01-29 22:56:44 -08:00
3d7726918e Add perpetuity to hovercard portrait 2023-01-29 22:49:58 -08:00
2ef1863637 Use Buttons instead of <a> 2023-01-29 22:19:42 -08:00
0a5f0458c2 Remove width on uncap stars for ULB 2023-01-29 22:19:15 -08:00
cefa859f4a Rearrange so that hovercard clicks dont trigger search 2023-01-29 22:19:07 -08:00
0495c7c8f7 Add character mod data to hovercard 2023-01-29 21:00:25 -08:00
d9ed728276 Add weapon awakenings to hovercard 2023-01-29 19:25:24 -08:00
7e7d89b01d Make custom Hovercard component and migrate 2023-01-29 18:30:38 -08:00
b3ec6a5d08 Fix job dropdown not showing jobs
This was happening due to a combination of the useEffect not being updated properly in the New route and the state being completely reset when cleaned in the new route, including values that should persist.
2023-01-29 16:20:14 -08:00
25362d81df Remove unused state 2023-01-29 16:14:53 -08:00
2a202bb60d Don't allow selecting skill without selecting job 2023-01-29 02:11:07 -08:00
e603ee1bdb Remove unnecessary router updates 2023-01-28 23:16:30 -08:00
69a1b461f7 Cleanup 2023-01-28 23:15:48 -08:00
4e6fb19fb0 Subscribe to router and reset state on change 2023-01-28 23:12:06 -08:00
7d4fc7b6ac Fix blue links 2023-01-28 22:55:26 -08:00
820f873916 Remove commented lines 2023-01-28 22:23:23 -08:00
1bc8aafac0 Fix dropdown menu width again 2023-01-28 22:23:10 -08:00
3f545a681e Header title will update on save 2023-01-28 22:20:55 -08:00
e598adae85 Fix party details grid CSS
Somehow, an extra grid-template-columns got in there. I'm sure this will haunt me in the future.
2023-01-28 22:11:23 -08:00
f04e3a8ffe
Merge pull request #190 from jedmund/fix-double-overlay
Fix double overlay on Selects
2023-01-28 21:52:34 -08:00
ff3b6af7af Fix double overlay on selects in modals
Selects now take an optional property `overlayVisible` that if false, doesn't render visual elements of its overlay.
2023-01-28 21:49:58 -08:00
6bc887c95b Add altText prop to Toast
We changed things so we could insert React elements into the content field.
2023-01-28 21:29:22 -08:00
8c480810b9 Fix menu width for desktop 2023-01-28 21:25:43 -08:00
23353dd65e Don't allow copying on new party page 2023-01-28 21:15:15 -08:00
cd6e58da18 Show toast when remix button clicked 2023-01-28 21:09:24 -08:00
e6019ecf86 Fix spacing
* Header menu width
* Width of weapon grid
* PartyDetails button
2023-01-28 20:46:01 -08:00
95ee4bd1c7 Fixes for edit mode on Parties 2023-01-28 20:34:55 -08:00
654a40117c Add colors to tokens for CA, FA and Auto Guard 2023-01-28 20:34:47 -08:00
672a227a08 Rename variable 2023-01-28 20:34:12 -08:00
35a5f92eb2 Show destructive button styles on mobile w/o hover 2023-01-28 20:33:56 -08:00
d613cf8af0 Fix alert width on mobile 2023-01-28 20:33:13 -08:00
a4a5ccf33f Fix button placement in mobile size 2023-01-28 19:52:09 -08:00
f11e45b801 Add text to Remix button 2023-01-28 19:18:39 -08:00
78ffdcc1a5 More phone and tablet fixes
This isn't perfect, but good enough for now
2023-01-28 19:02:12 -08:00
da09a739f6 Fix remixes view on phones 2023-01-28 18:52:10 -08:00
c930bc348b Refactor new and extract NewHead 2023-01-28 18:15:25 -08:00
01af39fdfe Refactor saved and extract SavedHead 2023-01-28 18:07:26 -08:00
73de22cbbc Refactor teams and extract TeamsHead 2023-01-28 18:00:34 -08:00
9e3f15c286 Refactor [username] and extract ProfileHead 2023-01-28 17:58:12 -08:00
337808a922 Fix ErrorSection maxWidth 2023-01-28 17:43:02 -08:00
96763defc3 Fix ErrorSection text replacement 2023-01-28 17:42:54 -08:00
5cf6d3fff3 Refactor [party] page
This is a blueprint for all the other pages
2023-01-28 17:20:44 -08:00
6f51e21b58 Don't show Header context when there is an error 2023-01-28 16:46:48 -08:00
4916660027 Add ErrorSection component
This lets us render errors gracefully
2023-01-28 16:28:23 -08:00
3d4e73675f Fix assignment for new avatar object structure 2023-01-28 03:56:42 -08:00
d8936c8320 Add function name 2023-01-28 03:56:30 -08:00
b580b3ddaf Remove redundant values 2023-01-28 03:56:22 -08:00
4d1b3fbb71 Remove HeaderMenu component 2023-01-28 03:53:53 -08:00
a7e3718a7e
Merge branch 'staging' into fix-job-errors 2023-01-28 03:52:58 -08:00
5fa36e6f05
Merge pull request #177 from jedmund/fix-avatar
Fix avatar not changing in Header when changed
2023-01-28 03:51:57 -08:00
2e88a8696d
Merge pull request #176 from jedmund/fix-delete
Fixes bug with item deletion
2023-01-28 03:51:39 -08:00
f293f92e23
Merge pull request #175 from jedmund/remix
Implement remixes
2023-01-28 03:51:31 -08:00
7893c4c3a1 Call onOpenChange when saving AccountModal 2023-01-28 03:49:24 -08:00
93755dfda4 Update avatar implementation 2023-01-28 03:37:00 -08:00
ba5244bc3b Don't show header title on non-party pages 2023-01-28 02:49:14 -08:00
f3886c3ce8 Set remove alert to close when removing an item 2023-01-28 02:44:20 -08:00
da43f80099 Fix optional error 2023-01-28 02:42:39 -08:00
89e1709994 Fix styles for remixed teams 2023-01-28 00:58:21 -08:00
3d71ad1d8b Add localizations 2023-01-28 00:51:32 -08:00
ea8fd7a423 Add tooltip over remix icon 2023-01-28 00:45:02 -08:00
2172647282 Add generic Tooltip component 2023-01-28 00:44:51 -08:00
9a6e333e9e Add link back to source party 2023-01-28 00:26:30 -08:00
86b48f52c1 Add source party to Party definition 2023-01-28 00:26:23 -08:00
522be622ab Display remixes on parties 2023-01-28 00:01:30 -08:00
0b3861e03e Update Party type and state 2023-01-27 23:47:31 -08:00
534d608171 Add localizations 2023-01-27 23:44:41 -08:00
f2a1d80bf2 Add Remix button 2023-01-27 23:11:33 -08:00
c224184dee Fix how we handle state
- New route will reset state instead of it happening when the "New" button is clicked
- Added key to <React.Fragment> in party and new pages to force it to rerun getServerSideProps
2023-01-27 23:11:25 -08:00
f68785fa3a Add shortcode to party state object 2023-01-27 23:08:46 -08:00
49c463d402 Add Remix icon and button 2023-01-27 22:51:45 -08:00
0901fbf21d Change how we handle modals 2023-01-27 22:41:43 -08:00
1337668152 Remove console logs 2023-01-27 22:13:29 -08:00
6c76053e15 Fixed link to new party 2023-01-27 22:12:35 -08:00
ab928f4429 Add modal for network errors 2023-01-27 21:59:56 -08:00
6da5a4f320 Add toast on copy link
It animates in and out too
2023-01-27 21:35:08 -08:00
191f4447d5 Fix save button states 2023-01-27 20:50:56 -08:00
0bbd0278a1 Move copy function and remove copy button 2023-01-27 20:39:57 -08:00
199b02b0cc Fix unauth menu 2023-01-27 20:36:45 -08:00
fa1bf57964 Implement new header design (so far) 2023-01-27 20:30:39 -08:00
ceb87a8016 Add wrapper for Radix DropdownMenu 2023-01-27 20:30:00 -08:00
1baf8d3b06 Add support for left and right button accessories 2023-01-27 20:29:32 -08:00
2534728785 Extract capitalizeFirstLetter into util 2023-01-27 20:28:44 -08:00
f85874d962 Add clearer selected state 2023-01-27 11:40:39 -08:00
c5c08b6a78 Fix bug with api response 2023-01-26 02:42:14 -08:00
c4a32ab639 Make button light up while popover is open 2023-01-26 02:28:06 -08:00