2ff6588030
Refactor node packages to yarn workspaces & ditch next.js for CRA. ( #161 )
...
* chore: restructure project into yarn workspaces, remove next
* fix tests, remove webapp from terraform
* remove more ui deployment bits
* remove pages, fix FUNDING.yml
* remove isomorphism
* remove next providers
* fix linting issues
* feat: start basis of new web ui system on CRA
* chore: move types to @roleypoly/types package
* chore: move src/common/utils to @roleypoly/misc-utils
* chore: remove roleypoly/ path remappers
* chore: renmove vercel config
* chore: re-add worker-types to api package
* chore: fix type linting scope for api
* fix(web): craco should include all of packages dir
* fix(ci): change api webpack path for wrangler
* chore: remove GAR actions from CI
* chore: update codeql job
* chore: test better github dar matcher in lint-staged
2021-03-12 18:04:49 -05:00
6392722a6f
fix: server-setup template index.ts missed content
2021-01-12 21:15:29 -05:00
8299c548ba
feat: add server-setup page
2021-01-12 20:57:11 -05:00
d70eb44963
chore: remove stylelint processor
2020-12-23 19:15:35 -05:00
1495500f2b
fix(API): highest role position was incorrectly calculated starting from the highest instead of the lowest. fixes #97
2020-12-21 22:09:05 -05:00
7363b4d359
fix(RolePicker): make sure getInitialProps always returns
...
Signed-off-by: Katalina Okano <git@kat.cafe>
2020-12-21 05:17:02 -05:00
7f031bb960
chore: prefix un-consumed router.replace() calls with void
...
Signed-off-by: Katalina Okano <git@kat.cafe>
2020-12-21 05:10:57 -05:00
779095386d
feat(auth/login): Login page will set a sessionStorage redirect flag when given an ?r= ID
...
Also adds HTML titles
Signed-off-by: Katalina Okano <git@kat.cafe>
2020-12-21 05:10:25 -05:00
25ce18b911
feat(UI): new-session machinery will redirect to known URL if given in sessionStorage
...
Signed-off-by: Katalina Okano <git@kat.cafe>
2020-12-21 05:09:02 -05:00
9699c313f9
chore: fix logout link -- broke layout, will investigate
...
Signed-off-by: Katalina Okano <git@kat.cafe>
2020-12-21 05:07:51 -05:00
d11e29d4f5
chore: remove PreauthSecretCode
...
Signed-off-by: Katalina Okano <git@kat.cafe>
2020-12-21 05:04:44 -05:00
91c27f6b9a
fix(utils): apiFetch should tolerate missing authentication
...
Signed-off-by: Katalina Okano <git@kat.cafe>
2020-12-21 05:04:12 -05:00
6d8f40e30e
feat(RolePicker): when not authed, redirect to /auth/login?r=id
...
Signed-off-by: Katalina Okano <git@kat.cafe>
2020-12-21 05:03:38 -05:00
52a8dcdf76
chore: change guild member cache identity to be suffixed with /roles as there is an expected change schema change
2020-12-21 03:58:08 -05:00
89d23cb214
fix(ServerListingCard): remove unreachable return in permission tag
2020-12-19 20:48:22 -05:00
83f3269b06
chore(ServerListingCard): fix stylelint issue
2020-12-19 20:15:32 -05:00
cc592a9da1
fix(RolePicker): wrap Reset/Submit in a div to fix positioning
...
Signed-off-by: Katalina Okano <git@kat.cafe>
2020-12-19 20:12:50 -05:00
c1b9153bf4
chore(get-picker-data): make prettier format respond
...
Signed-off-by: Katalina Okano <git@kat.cafe>
2020-12-19 20:12:05 -05:00
455632d72d
chore(Breakpoints): remove extraneous comment
...
Signed-off-by: Katalina Okano <git@kat.cafe>
2020-12-19 20:11:29 -05:00
d61f5ae59e
feat(AppShell): add option to disable my guilds popover
2020-12-19 20:10:57 -05:00
e758c09fbf
feat(UI): add initial server picker
2020-12-19 20:10:23 -05:00
d4e8e8330a
fix(Role): better role name color mapping
2020-12-19 15:04:45 -05:00
b7f82593df
fix(RolePicker): prevent render of hidden categories
2020-12-18 21:03:40 -05:00
95dad8effa
fix(Masthead): authed masthead should do index as /servers not /dashboard
2020-12-18 21:03:15 -05:00
4159622226
fix(PickerCategory): sort roles by position
2020-12-18 21:02:41 -05:00
51ae64e664
chore: add placeholder /servers with appshell
2020-12-18 21:02:07 -05:00
0e33aa8112
chore: getGuild should use enum authType
2020-12-18 21:01:39 -05:00
1a59972398
feat: support updating roles ( closes #83 )
2020-12-18 19:56:10 -05:00
2976b35505
chore(api): re-add roleypoly creation gated by root
2020-12-18 13:17:49 -05:00
034466f447
chore: rip out roleypoly server data seeder
2020-12-18 00:43:34 -05:00
ee7ac47bc2
chore: fix failing tests
2020-12-18 00:18:32 -05:00
e4e4bb9024
feat(UI): add role picker, auth helpers, refactor for viability
2020-12-18 00:14:30 -05:00
3fe3cfc21f
feat: support logout flow ( closes #85 )
2020-12-17 17:58:46 -05:00
447876be32
chore: remove mustAuthenticate from get-session
2020-12-17 16:54:56 -05:00
bb0987cab9
chore: remove get-slug commented code
2020-12-17 16:54:37 -05:00
041fe49b05
fix(api): define auth token type as enum, export userAgent and use when discordFetch isn't
2020-12-17 16:46:58 -05:00
55c2f8615c
chore(worker-emulator): fix some QoL issues
2020-12-17 16:15:04 -05:00
89fbb01142
feat(api): add revoke-session
2020-12-17 16:14:27 -05:00
b7921a830a
fix(api): login-callback may have null user in rare cases
2020-12-17 15:01:40 -05:00
823a99b4eb
fix(api): prevent creation of Response objects outside of request time
2020-12-17 14:23:23 -05:00
9c935f2847
chore: remove unused go code
2020-12-15 21:39:27 -05:00
0b384bfe5c
feat(api): add get-picker-data; refactor fully away from old gRPC datatypes
2020-12-15 21:33:26 -05:00
6d1037f25e
fix(types): permissions to string/bigint to prevent int scalability concerns
2020-12-15 15:54:39 -05:00
c55ce3b828
feat(api): add get-slug
2020-12-15 15:29:25 -05:00
a85c4d5ddd
add withSession, cacheLayer, and userAgent to discordFetch
2020-12-14 14:43:22 -05:00
12d8e99513
inject fetch into KV emu
2020-12-14 14:10:24 -05:00
22cbde52dd
init to fetch guild slug
2020-12-13 22:06:27 -05:00
e25b9c96c6
fix KV emulation ttl
2020-12-13 21:58:55 -05:00
8fe3d1dcf2
change KV emulation to leveldb, remove redis
2020-12-13 21:30:55 -05:00
a44983b088
chore: add cloudflare worker emulator and supporting bits. now fully offline!
2020-12-11 21:09:55 -05:00