Commit graph

871 commits

Author SHA1 Message Date
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
c41dafbeeb More CSS fixes 2023-01-26 02:25:52 -08:00
4c3d8360a0 Implement localizations 2023-01-26 02:25:46 -08:00
387b02d9ff Sort of fix CSS for JobAccessoryPopover
This still isn't exactly what we want, but it works on mobile so it's good enough
2023-01-26 01:30:56 -08:00
18901c954b Conditionally show icon 2023-01-26 01:29:53 -08:00
7692ec0a0b Icons use fill and not stroke now 2023-01-26 01:29:45 -08:00
749ed4a7c3 Merge branch 'staging' into shields-manabelly 2023-01-25 23:56:47 -08:00
0b59f529c7 Fix Layout bug 2023-01-25 23:25:30 -08:00
392aaa76f4 Fix destination of Learn more button 2023-01-25 22:52:49 -08:00
d489a67a22 Set cookie properly on toast dismissal 2023-01-25 22:46:27 -08:00
8f55069a02 Remove static modals 2023-01-25 22:34:38 -08:00
a7151d5035 Migrate modals in HeaderMenu to pages 2023-01-25 22:33:55 -08:00
660ad41d4e Show/hide toast logic 2023-01-25 22:19:18 -08:00
7d98b0a003 Rename "Changelog" to "Updates" 2023-01-25 14:51:07 -08:00
2718942321 Move static page modals to a standalone page
This will make it easier to whisk people here in notices
2023-01-25 14:33:53 -08:00
cefec18880 Fix cookies expiring after browser restarts
We never added expirations :)
2023-01-24 21:42:14 -08:00
6ec5bc3230 Add UpdateToast for testing 2023-01-24 21:23:02 -08:00
dca5a541a3 Refined base toast styles 2023-01-24 21:22:49 -08:00
5c2c61eeda Add ToastProvider and ToastViewport 2023-01-24 21:22:34 -08:00
f6d0cd7089 WIP: Toast for updates 2023-01-24 18:52:12 -08:00
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