16c9446eb5
Fix title for untitled auth parties
2022-03-04 16:03:15 -08:00
f2e281938a
Add magna summons to list of upgraded art summons
2022-03-04 15:55:19 -08:00
cd53394a7f
Fix meta tags
2022-03-04 14:57:21 -08:00
8f8138950c
Remove logs
2022-03-04 09:34:30 -08:00
0f0c99e8bf
Fix issues with storing access token after signup
2022-03-04 09:09:52 -08:00
98f93406b7
Update SignupModal to be in line with LoginModal updates
2022-03-04 08:36:07 -08:00
4ab41fcc08
Hotfix signup and login buttons
2022-03-04 08:25:58 -08:00
d6695d195c
Added og tags
2022-03-04 07:55:36 -08:00
1da152cbcc
Fix title for new teams
2022-03-04 07:31:02 -08:00
2b7c95419d
FilterBar h1 color tweak
2022-03-04 07:11:42 -08:00
e078e9baed
Set cookies and state after changing user settings
2022-03-04 07:02:20 -08:00
ea24777eb7
Missed some cookies references
2022-03-04 06:34:05 -08:00
f9eec04201
Implemented Linkify in PartyDetails
2022-03-04 06:31:44 -08:00
0ff255d71e
Changed how cookies are stored
...
We now have an account object and user object. Account stores critical information, where User is cosmetic/settings.
2022-03-04 06:31:21 -08:00
00b2521d19
Update index.scss
2022-03-04 05:58:10 -08:00
3d5e7ab7ff
Small design polishing on FilterBar
2022-03-04 05:57:30 -08:00
102be62a7f
Hacky first pass at titles
...
Hacky because the titles for some pages don't load until the data comes in, which takes a second. There's gotta be a better way.
2022-03-04 05:54:16 -08:00
f965e22c89
Merge branch 'main' of github.com:jedmund/hensei-web
2022-03-04 05:38:32 -08:00
b67961b2a3
Fix build errors
...
I always forget something
2022-03-04 05:38:29 -08:00
42e328a4d4
Add profile picture to HeaderMenu for auth users
2022-03-04 05:31:38 -08:00
a186fab73c
Adds a COMING SOON tag to Guides
...
We won't get this done anytime soon
2022-03-04 05:18:07 -08:00
4e701572ab
Adds AccountModal component
2022-03-04 05:17:54 -08:00
053522a81d
Fixes editable bug on /new after logout
2022-03-04 05:17:39 -08:00
7e5b90a6c7
Use the user's stored profile picture in content
...
Also adds styles!
2022-03-04 05:17:23 -08:00
6b999106b5
Hit user info endpoint after login in LoginModal
2022-03-04 05:16:39 -08:00
65da50aa88
Disable class for now
2022-03-04 00:59:55 -08:00
d89070156d
Fix styling post-hovercard
2022-03-04 00:59:31 -08:00
e58210a8f1
Add hovercard sides and a static width to hovercards
2022-03-04 00:49:52 -08:00
8e66dd1b4f
Missed renaming a Button property
2022-03-04 00:37:59 -08:00
d5ac0ba6d7
Add Summon and Character hovercards
2022-03-04 00:33:21 -08:00
f950543c96
Add and implement WeaponHovercard component
2022-03-04 00:16:58 -08:00
be60319f98
Refactor Button component
2022-03-04 00:16:53 -08:00
f384adcc09
Fix double scale bug
2022-03-03 21:06:52 -08:00
f1397ce847
Make WeaponKeyDropdown controlled
...
I don't have time to waste figuring out state bullshit and this works
2022-03-03 20:45:34 -08:00
5899e82cdc
Enable button always if there is no AX value
2022-03-03 18:00:24 -08:00
25bf58da2b
Merge pull request #20 from jedmund/weapon-mods
...
Add the ability to add modifications to grid weapons
2022-03-03 16:58:15 -08:00
242c61c200
Fix typescript build errors
2022-03-03 16:58:04 -08:00
8fe270adb5
Added the last bit of client validation
2022-03-03 16:12:28 -08:00
e9546293dc
Add form validation for AxSelect
...
We're not done yet, there's still some weird behaviors and a case we haven't properly checked (if second AX skill has a value but first AX skill doesn't)
2022-03-03 15:27:31 -08:00
9b39299a3a
Update index.scss
2022-03-03 03:14:03 -08:00
47ff412c2b
Change the weapon's image for null element weapons
2022-03-03 03:14:00 -08:00
a161a1b63a
Modify which weapon series trigger the hover button
2022-03-03 03:13:48 -08:00
adebca255e
Remove logs
2022-03-03 03:13:35 -08:00
4b2c354d53
Update segmented control for null weapons
...
This uses the GridWeapon element to modify the party's segmented control color, if possible
2022-03-03 03:13:20 -08:00
43cc0de232
Added WeaponModal component
...
This uses AxSelect, ElementToggle and WeaponKeyDropdown to let users modify their weapons.
2022-03-03 03:11:20 -08:00
657026e8b5
Remove cookies/headers
...
We don't make any auth'd calls here
2022-03-03 03:10:56 -08:00
1d0c242429
Add AxSelect component and API call
2022-03-03 03:10:37 -08:00
97fb9420db
Add onValueChange hook to send data up
2022-03-03 03:10:25 -08:00
01db78c422
Add WeaponKeyDropdown component and API method
2022-03-03 03:09:12 -08:00
ff65b6e281
Fix party name and description not actually displaying
2022-03-01 19:54:39 -08:00
b46bafa5f7
Add a modal for modifying weapons
2022-03-01 19:53:54 -08:00
869547dc93
Add settings icon to Button
2022-03-01 19:53:40 -08:00
815f3c6b28
Added ElementToggle component
...
A segmented control for selecting an element
2022-03-01 19:53:23 -08:00
7cae5eebfe
Display button on moddable weapons
2022-03-01 19:53:08 -08:00
538e61bc12
Remove ProfileHeader component
2022-03-01 13:03:14 -08:00
cd0ac1e01f
Fix missing Edit info button on /new
2022-03-01 01:22:24 -08:00
1c34803578
Added a smooth loading transition + FilterBar on parties
2022-03-01 01:11:32 -08:00
953cd01f49
Fix unauth party creation
...
There was a bug where unauth users could not add more than one item to a grid before it went read-only. This fixes that bug and ensures that permissions are set properly so no one can edit other people's grids.
2022-03-01 00:19:35 -08:00
29f20ec33c
Update CharacterResult
...
same shit
2022-02-28 18:24:54 -08:00
5c1d19aceb
Small variable updates
2022-02-28 18:22:19 -08:00
57973c39cc
Fix SummonResult
...
Fix styles and add UncapIndicator
2022-02-28 18:22:10 -08:00
44a92ef1aa
Update WeaponResult
...
Update styling, add UncapIndicator
2022-02-28 18:17:30 -08:00
67bd3e8c73
Make some props optional for read-only
2022-02-28 18:17:04 -08:00
f16c53ed16
Further SearchModal styling
2022-02-28 18:16:53 -08:00
d66bdc07f6
Fix SearchModal styling
...
Brings it more in line with other modals
2022-02-28 17:44:27 -08:00
f3d2ff9662
Implement new LoginModal in HeaderMenu
2022-02-28 16:40:48 -08:00
1c7e602464
Refactor and redesign LoginModal
2022-02-28 16:40:16 -08:00
35cf0ee369
Rework signup method and open/close behavior
2022-02-28 16:03:34 -08:00
0e3aacfbb0
Refactor validation in SignupModal
2022-02-28 15:00:32 -08:00
829146f1bd
Redesign Signup Modal
2022-02-28 14:16:04 -08:00
d656ba7eba
Fix logout state bug
...
Logging out didn't reset state, so the HeaderMenu still displayed the logged in menu
2022-02-28 13:30:26 -08:00
ec7b080ad9
Remove logs
2022-02-28 12:59:37 -08:00
82c38705d1
Fix useEffect looping in Party
2022-02-28 12:58:38 -08:00
0fa993161b
Remove flatRaids state
2022-02-28 12:52:11 -08:00
af7d40f6e3
Move organizeRaids into useCallback hook
2022-02-28 12:51:48 -08:00
13ddd2131a
Fix useEffect looping in RaidDropdown
2022-02-28 11:57:02 -08:00
ad1472dfbb
Fix (some) warnings and errors
...
I always forget to `npm run build` before pushing a PR
2022-02-28 01:09:43 -08:00
69aa0ec528
Update state when saving/unsaving
2022-02-28 01:02:28 -08:00
bf3007f85e
Update GridRep to accommodate save button
2022-02-28 01:02:17 -08:00
4998072475
Implement IconOnly button type
2022-02-28 01:01:33 -08:00
7131f484a6
Fix styles
2022-02-28 01:01:17 -08:00
60ec49de1d
Add page to display all saved parties
2022-02-27 22:32:35 -08:00
a2afcc6b4d
Add button for saving and hook up to API
2022-02-27 22:32:14 -08:00
770a8c0ec2
Remove log
2022-02-27 22:31:53 -08:00
ca1529b723
Fix top right button spacing
2022-02-27 22:31:43 -08:00
6f78730a69
Add saved state for button
2022-02-27 22:31:30 -08:00
99f2a65cf8
Save favorited/user when fetching party data
2022-02-27 22:31:16 -08:00
5f1bee26cf
Refactor some endpoints
2022-02-27 22:30:00 -08:00
a0db0bd93c
Implement changing images based on uncap level
2022-02-27 17:09:00 -08:00
8ce10c43b1
Fix build errors
2022-02-27 00:42:45 -08:00
a9f14c8a38
Add an optional All option to raid select
2022-02-27 00:39:37 -08:00
bf85f9d99c
Reset the state when a new party is loaded
2022-02-27 00:39:04 -08:00
7d663a0979
Implement FilterBar component
2022-02-27 00:38:06 -08:00
557a5795e0
Ensure bottom nav only shows on party pages
2022-02-27 00:37:58 -08:00
5a337003df
Update GridRep to optionally display the username
2022-02-27 00:37:44 -08:00
3ded388ffa
Move generic select style to globals
2022-02-27 00:36:59 -08:00
52e9b07edc
Move font-small to font-tiny and add 13px size
2022-02-27 00:36:21 -08:00
23ff979e83
Add typing to the object grids and match new API
2022-02-27 00:35:41 -08:00
0c19d9c929
Remove log
2022-02-26 20:38:51 -08:00
0aee5d30d0
Fixed a dumb editable bug
2022-02-26 20:37:53 -08:00
999b3a3e91
Renamed grey-10 to grey-40
2022-02-26 19:51:22 -08:00
d76c7fa03a
Disable rendering of search modal in read-only mode
2022-02-26 19:03:46 -08:00
f66063b273
Grids shouldn't send API calls if a grid isn't editable
2022-02-26 18:58:16 -08:00
2a4fcfa957
Remove logs
2022-02-26 18:34:02 -08:00
687c4efd26
Fix empty slots in GridRep
2022-02-26 18:33:03 -08:00
47ba267d5b
Fix errors in building
2022-02-26 18:15:42 -08:00
2a148db4c3
Fix styling for GridReps and add new information
2022-02-26 17:46:32 -08:00
ea37cf6a79
Fix style conflict
2022-02-26 17:46:13 -08:00
8e5b414cce
Created ProfileHeader component
2022-02-26 17:46:05 -08:00
aae67b08af
Add hooks to send data back to the server
2022-02-26 15:55:45 -08:00
45ef4e569b
Add flat raid list and callbacks
...
The flat raid list is so that we can quickly find which raid was selected, since otherwise they're in option groups
2022-02-26 15:55:20 -08:00
68a6e037f2
Cleanup
2022-02-26 15:53:46 -08:00
ed59762c71
Add value prop
2022-02-24 18:19:21 -08:00
32f864baa6
Implement read-only and editable views for party details
2022-02-24 18:19:15 -08:00
7df3da2d34
Add raid dropdown component
2022-02-24 18:18:56 -08:00
7e6e1209dd
Add active prop
2022-02-24 18:18:39 -08:00
f9857eb772
Add components for textareas and text limited fields
2022-02-24 18:18:28 -08:00
e00a07d10c
Various styling fixes and adjustments
2022-02-24 18:15:08 -08:00
f0cf09dc31
Remove user-generated details
...
This goes somewhere else
2022-02-24 18:14:32 -08:00
0a096e9dc0
Store party details in state when data is fetched
2022-02-23 19:23:31 -08:00
45c133f450
Change the sent param for the extra toggle
2022-02-23 19:23:19 -08:00
9a5c2835d5
Add destroy logic
2022-02-23 16:43:08 -08:00
c88e9be025
Final updates removing context and replacing with state
2022-02-23 16:13:28 -08:00
a6b222000c
Remove references to React context and replace with state where necessary
2022-02-23 15:59:46 -08:00
d688ade570
Fix tap targets in header menu
2022-02-23 15:16:31 -08:00
06eef3c248
Fix a small bug where party was not editable in state
2022-02-23 15:04:25 -08:00
514ed28cfc
Clean state when New button is pressed
2022-02-23 14:52:44 -08:00
bbe78566ad
Update existing instances of state to use appState
2022-02-23 14:52:35 -08:00
1a52439150
Extra toggle should be switchable on empty grids
2022-02-23 14:28:48 -08:00
fd5cc3a395
Remove unused prop from Button
2022-02-23 14:19:30 -08:00
7e7100cecf
Update index.tsx
2022-02-23 14:14:06 -08:00
1ece2d89f8
Fix AboutModal styling and element nesting
2022-02-23 14:14:03 -08:00
f76d28b5f0
Update SearchModal to use new keys
2022-02-23 13:58:11 -08:00
36f4766620
Update CharacterGrid tree to use state management and new keys
2022-02-23 13:57:58 -08:00
2909da98eb
Rename unique canonical keys to generic object
2022-02-23 13:57:38 -08:00
99a2474cbb
Update SummonGrid tree to use state management goodness
2022-02-23 02:50:17 -08:00
b284bf1f81
Small syntax updates
2022-02-23 02:35:49 -08:00
bc93565dc5
Remove unused methods and props from WeaponGrid tree
2022-02-23 02:05:07 -08:00
9b505f5e20
Implement state management for Weapon grid
...
Summon and Character will be next. I didn't really pay attention to code cleanliness, so I'll try to do a pass before merging the PR
2022-02-23 01:51:58 -08:00
2e36a0455d
Fix typo
2022-02-23 01:51:17 -08:00
54422255c3
Fix syntax error
2022-02-23 01:51:08 -08:00
8678692a40
Update index.tsx
2022-02-04 23:10:45 -08:00
5f1be4679e
Implement Radix's Dialog component for the About modal.
...
Probably still want to spend some time making this look nice/wordsmithing the copy later.
2022-02-04 22:50:13 -08:00
679710efc3
Implement Radix's Alert dialog for deleting teams
...
We didn't implement the method for actually doing the deleting yet, though
2022-02-04 20:43:02 -08:00
2140208530
Added BottomHeader for new features
...
Previous Header was split into a base Header component and TopHeader.
2022-02-04 18:22:57 -08:00
e8876d3b90
Slight update adding Button type
...
Previous type prop renamed to icon
2022-02-04 18:22:30 -08:00
194b1c5ff3
Remove GridType definitions in favor of the shared one
2022-02-04 18:21:37 -08:00
cface6a107
Save extra state to server
2022-02-04 14:47:34 -08:00
b42bef99fe
Fix bug with uncap levels on Summons and Characters
2022-02-04 02:11:05 -08:00
5bd6ac4bc7
HeaderMenu z-index too low
2022-02-04 00:57:16 -08:00
be90172fad
We have to pass around the slug as well
2022-02-04 00:55:58 -08:00
2bf1c75364
Add id to context so state can be shared across tabs
2022-02-04 00:46:17 -08:00
be6656f9e9
Final cleanup, removing old methods and moving Context around
2022-02-04 00:15:27 -08:00
a5f64b6dbe
Refactored CharacterGrid to pull its own data
2022-02-03 23:51:23 -08:00
ef13369550
Refactored SummonGrid to pull its own data
2022-02-03 23:51:13 -08:00
46feb6895d
Refactored WeaponGrid to pull its own data
2022-02-03 23:51:04 -08:00
e605e96fee
Update buttons and header menu styles
2022-02-03 19:50:48 -08:00
8df60c0e1d
Fix some bugs with SCSS nesting
2022-02-03 19:50:26 -08:00
5d27509148
Update the element when the weapon swaps
...
This is still broken, we have to rewrite some API calls to fix it.
2022-02-03 19:50:06 -08:00
a21a66c8ae
Move PartyContext to Party component
2022-02-03 19:46:26 -08:00
b6153a959c
Change order of uncap indicators and weapon name
2022-02-03 19:44:55 -08:00
4f5a80bd6b
Fix proportion of CharacterUnit
2022-02-03 19:44:32 -08:00
db642371b7
Add support for tinting segmented control with party element
2022-02-03 01:58:36 -08:00
8b1f41b0cd
Resolve naming conflict with ToggleSwitch style
2022-02-03 01:18:40 -08:00
9f6cd27bce
Update default style for PartySegmentedControl
2022-02-03 01:18:18 -08:00
2277a1eff9
Redesign and add styles for element-tinted control
2022-02-03 01:08:55 -08:00
4737b430a1
Add proper scoping
2022-02-03 01:08:40 -08:00
1344b43bee
Update size/color of plus icons in grids; replace values with vars
2022-02-03 00:42:33 -08:00
adf450f612
Fix WeaponUnit hover bug
2022-02-03 00:28:33 -08:00
2384058674
Add new icons
2022-02-03 00:26:51 -08:00
d3da38b6c4
Small refactoring
2022-02-03 00:15:42 -08:00
6ea13cad82
Make SummonGrid responsive
2022-02-03 00:10:15 -08:00
bbc97d8e55
Make CharacterGrid responsive
2022-02-02 23:58:01 -08:00
d5332ccee5
Make WeaponGrid responsive
2022-02-02 23:39:06 -08:00
f9eba3d857
Fix Menu authenticated status
2022-02-02 21:42:36 -08:00
50d2d814eb
Fixing bugs
2022-02-02 20:57:51 -08:00
7ff4ee0a8f
Update index.tsx
2022-02-02 20:54:03 -08:00
4fb2fd16b8
Fix optimistic UI and prevent saving identical uncap values
2022-02-02 20:36:22 -08:00
8f77794262
Update index.tsx
2022-02-02 19:37:28 -08:00
11e1a81ada
Fix extra switch
2022-02-02 19:28:47 -08:00
8192f1d0ce
Update index.tsx
2022-02-02 19:08:48 -08:00
ecfc62900d
Trading working uncap indicators for working party creation
...
We start storing the party ID here so that we know (and can come to know) when we are working with an existing party.
Updating the weapon grid based on `weapons` the state vs `props.weapons` makes saving items to a party work properly.
Unfortunately, it sends us back to square one with debouncing the uncap indicators.
2022-02-02 19:07:10 -08:00
065c198e67
Fix uncap indicator optimistic ui update bug
2022-02-02 18:43:55 -08:00
827473ee5a
Refactor object grids to handle business logic instead of Party
2022-02-02 16:54:14 -08:00
44966fe8fe
Add interactive uncap indicators for summons
2022-02-01 15:50:06 -08:00
36ddc6e506
Breaking out the imageClickHandler was breaking things so I reverted
2022-02-01 14:32:13 -08:00
4f0844c378
Cleanup and refactoring
2022-02-01 14:19:44 -08:00
41f6dcb615
Fix uncap level display bug
...
This bug was caused primarily by us using the wrong key in the type definition.
2022-02-01 14:15:38 -08:00
39549f0b94
Move debounce to WeaponGrid
2022-02-01 11:40:06 -08:00
ca42f4b718
Add hover states for stars
...
These aren't quite right yet
2022-02-01 05:51:15 -08:00
d1962a5cfa
Fix incorrect references
2022-02-01 05:30:52 -08:00
67d5ada594
Add variables for the hover scale effects
2022-02-01 05:29:03 -08:00
dd974fde2e
WIP: Use debounce to intelligently send uncap level to server
...
We are using debounce to send the uncap level to the server without making a ton of requests if the user is feeling clicky.
This is a WIP because it doesn't send to the server yet. I'm having issues setting the correct initial state from the props.
2022-02-01 05:07:52 -08:00
7a50c4bce5
Pass down GridWeapon instead of Weapon
...
Previously, we stripped the Weapon out of the GridWeapon for simplicity. However, now that we need to display and manipulate data on the GridWeapon (unique data), we need to pass that down instead.
2022-02-01 05:06:27 -08:00
e70a7afab7
Pull weapon uncap level from server
2022-02-01 01:47:27 -08:00
a471a494bc
Remove img so background-image works
2022-02-01 01:47:05 -08:00
c18c594d05
Allow user to set uncap level
...
doesn't save to server yet
2022-02-01 01:03:31 -08:00
928273a836
Adjust hover transforms
...
It was too aggressive
2022-02-01 01:03:31 -08:00
e2ff4fd432
Implement new stars
2022-02-01 01:03:31 -08:00
b2daead1d5
Update WeaponUnit
...
Flips text and uncap stars and makes the modal click target the image instead of the whole unit
2022-02-01 01:03:31 -08:00
de96600122
Add a new password rule
...
Password cannot contain username
2022-02-01 00:43:10 -08:00
f1b50fe051
Make new dictionary to make React render on setState
2022-02-01 00:42:49 -08:00
305f0e1f88
Refactor SignupModal
2022-02-01 00:20:04 -08:00
f81d8b46b8
Resolve warning about unauth state
2022-01-31 23:46:25 -08:00
df99c2fca7
Remove unused import
2022-01-31 23:43:59 -08:00
887b7db197
Remove App component
...
We don't need this anymore
2022-01-31 23:34:38 -08:00
48a8ebe3d8
Update index.tsx
2022-01-31 23:34:38 -08:00
df33b02e1a
Use context to determine which navigation to show
2022-01-31 23:34:38 -08:00
1e8a72028d
Re-enable some links
2022-01-31 23:34:38 -08:00
77a3b1b8ad
Add context when logging in
2022-01-31 23:34:38 -08:00
2d4302c0cb
Only show Extra toggle when editable
2022-01-31 23:34:38 -08:00
06f698d1e1
Update Header scss
2022-01-31 23:34:38 -08:00
dcfa961a3f
Fix logout and add context support
2022-01-31 23:34:38 -08:00
b0fca8138c
Use context to conditionally show Delete button in Header
2022-01-31 23:34:38 -08:00
e02c55665e
Convert to Next Router
2022-01-31 23:34:38 -08:00
fcd544536d
Create app-wide layout with Header
2022-01-31 23:34:38 -08:00
5f5c6a98e0
Move label directory to add them to repo
2022-01-31 23:34:20 -08:00
e046b0ef42
Fix bug with saving unauth grids
2022-01-30 03:09:29 -08:00
d56bdb58f8
Fix bug with mainhand position
2022-01-30 03:09:20 -08:00
9b81706902
Update index.tsx
2022-01-30 02:47:08 -08:00
ccb98de069
Update path for item images
...
So we can use a CDN on prod
2022-01-30 02:32:10 -08:00
9073f4262f
Fix fieldset fixes
2022-01-29 18:27:29 -08:00
f2085c8344
Fix more ESLint warnings
2022-01-29 18:22:22 -08:00
97a55e843c
Add empty alt tags for decorative images
2022-01-29 18:13:49 -08:00
cc34cfff7c
Units only fire onClick if editable
2022-01-28 23:12:37 -08:00
3bdb048f28
Move SearchModal to WeaponGrid
2022-01-28 23:10:21 -08:00
df9a91cf96
Move SearchModal to SummonGrid
2022-01-28 22:58:00 -08:00
b08ac89f9b
Fix reference to user ID
2022-01-28 21:27:29 -08:00
9e0a1219d5
Add exclusion for Characters
...
Users should not be able to add multiple characters of the same name to multiple positions.
2022-01-25 16:49:14 -08:00
907d9f05e4
Lift SearchModal out of CharacterUnit
2022-01-25 14:27:48 -08:00
e95f45caa6
Fix character images URL
2022-01-25 14:27:01 -08:00
7a649f0fae
Refactor SearchModal
2022-01-25 12:18:27 -08:00
1122abcab4
Fix broken images on GridRep
2022-01-25 12:17:57 -08:00
307c2ecbb6
Clean up modal structure
2022-01-25 01:35:56 -08:00
471b61b2c0
Clean up font-size
...
We'll have to change this to rems in the future, but at least we're just changing variables
2022-01-25 01:35:39 -08:00
1094922869
Revert to handling SVGs as components
2022-01-24 23:16:49 -08:00
67d93703d2
Remove next/Image declarations
...
We aren't using it
2022-01-24 22:26:12 -08:00
51a14a5a54
Fix alt text for items
2022-01-24 22:22:02 -08:00
728803d9c5
Migrate to Next.js
2022-01-24 21:54:50 -08:00