c43bd5c8f1
Use utils/organizeRaids
2022-12-22 23:34:47 -08:00
247d2a466a
Clean up setServerSideProps
...
Here we extracted the common methods used in pages into utils and included them, getting rid of a lot of duplicate code in the process.
2022-12-22 21:43:09 -08:00
a98585a334
Implement setUserToken util function
...
This function sets axios's default headers to be included before all queries.
We need to call `setUserToken` in _app.tsx so that the defaults are set before every client-side call, and we also need to call it in every instance of `setServerSideProps`.
As a result, wherever we use `getCookies` and construct a `headers` object, we can remove it. Right now, we've only removed it on the top-level pages.
2022-12-22 21:41:38 -08:00
9de459b958
Update useQueryState to use history and shallow routing
2022-12-22 21:32:57 -08:00
55a292529f
Update saved teams
2022-12-22 00:57:18 -08:00
45aa8c38ab
Update all teams
2022-12-22 00:55:36 -08:00
adc987201e
Update profile and filter bar
2022-12-22 00:46:13 -08:00
caf2bca38f
List of raids no longer has root keys
2022-12-22 00:09:50 -08:00
0b021629d7
Fix select colors in FilterBar
2022-12-06 15:54:39 -08:00
e155aa72dd
Remove semicolons and #Content wrapper
2022-12-05 17:55:19 -08:00
e8843699c7
Remove trailing semicolons
2022-12-05 17:54:46 -08:00
846df09e46
Add ThemeProvider
2022-12-04 08:26:48 -08:00
efa864fb80
Run prettier on src
2022-12-04 07:19:31 -08:00
c307fcb18f
Remove logs
2022-12-01 02:00:58 -08:00
cbbad53e09
Fix typo that broke job persistence
2022-11-30 09:00:50 -08:00
c599a8352a
Fetch and store the jobs and skills in app state
2022-11-27 20:24:47 -08:00
4f11f88c0f
Fix more linter errors
2022-11-19 20:50:39 -08:00
21b86e4239
Fix various API and rendering bugs
2022-11-16 07:04:39 -08:00
c05f86d012
Merge branch 'main' of github.com:jedmund/hensei-web
2022-11-16 06:15:23 -08:00
14d34ff4df
Add SSR fetching of raids to new page
2022-11-16 06:15:19 -08:00
602c883edd
Add explicit type
2022-11-16 05:16:07 -08:00
0257b99007
Unify API call with other collectioin pages
2022-11-16 05:15:55 -08:00
86656e1bff
Move to use useDidMountEffect
2022-11-16 05:15:39 -08:00
513dc8d847
Updated saved to use SSR
2022-11-16 05:15:12 -08:00
9674a56ccc
Update teams to use SSR
2022-11-16 03:55:13 -08:00
bb8f28a05d
Update user profile to use SSR
...
Filters and scrolling work, as well as navigating directly to filtered results
2022-11-16 02:34:49 -08:00
cdf25a42bf
Update party page for SSR
2022-11-15 04:44:45 -08:00
5d274a8336
Add typing to cookieData
2022-11-15 04:43:26 -08:00
84a7ca7733
Update to store authorized state in _app
2022-11-15 04:16:02 -08:00
752e468c4b
Remove unused cookie code from _app
2022-11-15 03:46:25 -08:00
364481e3ac
Fix various type errors from npm build
2022-04-10 13:31:13 -07:00
34c93af273
Add infinite scrolling to collections
2022-03-21 03:53:03 -07:00
fa73a4bd7d
Query params work on Saved and Profile pages
2022-03-07 18:14:05 -08:00
1d98f13dee
Query param filters work on Teams page
2022-03-07 17:54:24 -08:00
1365e4c95c
Get query states working on teams page
...
This changes the URL to show query params for our three filters, making it easy for people to link to very specific subsets of raids.
2022-03-07 02:43:21 -08:00
42ac5d7dc1
Lazily fixing build errors
2022-03-06 02:15:36 -08:00
5a184ed8aa
Localized saved teams
2022-03-05 14:01:57 -08:00
9e3ab298e8
Profile wasn't properly localizing
2022-03-05 13:54:14 -08:00
62edc6ca5c
Add appWithTranslation HOC to pages
2022-03-04 17:56:17 -08:00
cd53394a7f
Fix meta tags
2022-03-04 14:57:21 -08:00
9715b165e5
Escape characters properly
2022-03-04 08:05:18 -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
a8f9610ec8
Actually fixing that bug this time
2022-03-04 06:52:10 -08:00
54d34fed12
Unauth users were unable to view collections
2022-03-04 06:44:41 -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
46e17f7172
Remove title from [party]
2022-03-04 06:03:14 -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
7e5b90a6c7
Use the user's stored profile picture in content
...
Also adds styles!
2022-03-04 05:17:23 -08:00
0d09c0adf8
Delete hello.ts
2022-03-01 19:52:27 -08:00
538e61bc12
Remove ProfileHeader component
2022-03-01 13:03:14 -08:00
ffd95779b9
Implement filters on profiles
2022-03-01 02:19:18 -08:00
44c2c46da8
Add scroll handler
2022-03-01 01:14:25 -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
1805bd6e6f
Fix Teams page
2022-02-28 19:26:32 -08:00
26fa33c4a7
Don't query until we have a username
2022-02-28 13:15:14 -08:00
ec7b080ad9
Remove logs
2022-02-28 12:59:37 -08:00
dc78720d66
Fix useEffect looping in saved
2022-02-28 12:49:38 -08:00
42e0f3aebd
Extract api error handling into a method
2022-02-28 12:49:21 -08:00
0f843c8e19
Fix useEffect looping in teams
2022-02-28 12:41:01 -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
a1f9f41567
Implement saving/unsaving on collection pages
2022-02-28 01:02:47 -08:00
60ec49de1d
Add page to display all saved parties
2022-02-27 22:32:35 -08:00
4a2c57ee47
Implement Teams page
2022-02-27 00:39:45 -08:00
0139b66e2e
Change sort to base on created_at
2022-02-27 00:37:16 -08:00
3b4b8ecc1a
Add User and Party types
2022-02-27 00:35:05 -08:00
ddcf7dc58f
Add redesigned components and info to Profile page
2022-02-26 17:46:52 -08:00
68a6e037f2
Cleanup
2022-02-26 15:53:46 -08:00
1d82bc5055
Insert account info into state when the app first loads
2022-02-23 16:12:45 -08:00
a6b222000c
Remove references to React context and replace with state where necessary
2022-02-23 15:59:46 -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
789104cb76
Update index.tsx
2022-02-04 00:17:33 -08:00
be6656f9e9
Final cleanup, removing old methods and moving Context around
2022-02-04 00:15:27 -08:00
a21a66c8ae
Move PartyContext to Party component
2022-02-03 19:46:26 -08:00
db642371b7
Add support for tinting segmented control with party element
2022-02-03 01:58:36 -08:00
50d2d814eb
Fixing bugs
2022-02-02 20:57:51 -08:00
30d5e68fe5
Merge pull request #4 from jedmund/uncap-indicator
...
Implement interactive uncap indicators
2022-02-02 20:39:45 -08:00
f482b34429
Remove extra prop
2022-02-02 18:41:44 -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
b01b4c55a2
Don't send a request if the shortcode is still undefined
2022-02-01 05:10:16 -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
47c51b97f7
Update [username].tsx
2022-01-31 23:56:54 -08:00
e45aa5cb24
Fix routing for profiles
2022-01-31 23:39:32 -08:00
09c543a089
Rename [slug] to [party]
...
Less ambiguous
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
55d037f6f4
Added a context to track logged-in and editable state
2022-01-31 23:34:38 -08:00
d5343293cb
Move PartyRoute to a Next.js page
2022-01-31 23:34:38 -08:00
f9874c270e
Move NewRoute to a Next.js page
2022-01-31 23:34:38 -08:00
86432df4f5
Remove old index page
2022-01-31 23:34:38 -08:00
374e19b007
Add cookies and Layout to index page
2022-01-31 23:34:38 -08:00
67d93703d2
Remove next/Image declarations
...
We aren't using it
2022-01-24 22:26:12 -08:00
728803d9c5
Migrate to Next.js
2022-01-24 21:54:50 -08:00