Commit graph

45 commits

Author SHA1 Message Date
a682ade1d3 add terms and privacy 2022-10-21 10:19:15 -04:00
0836d548b2 add an instant cache refresh to the editor 2022-02-04 11:59:11 -05:00
140f9d566b debounce session fetch as it literally ddoses cloudflare 2022-02-01 21:05:48 -05:00
fcaf3af875 only finish auth flow when user is actually authenticated 2022-02-01 20:39:43 -05:00
e0a0d1d87a uncacheGuild a second time, prospective fix for state desync 2022-02-01 17:16:56 -05:00
7ba0b6316e makes login use location.href instead of navigate() 2022-02-01 00:45:24 -05:00
872e9b8734 fix new-session tests, remove newly unused param 2022-02-01 00:25:36 -05:00
1cb04c8b5a update login flow to prevent session leakage 2022-01-31 23:32:41 -05:00
3291f9aacc
big overhaul (#474)
* miniflare init

* feat(api): add tests

* chore: more tests, almost 100%

* add sessions/state spec

* add majority of routes and datapaths, start on interactions

* nevermind, no interactions

* nevermind x2, tweetnacl is bad but SubtleCrypto has what we need apparently

* simplify interactions verify

* add brute force interactions tests

* every primary path API route is refactored!

* automatically import from legacy, or die trying.

* check that we only fetch legacy once, ever

* remove old-src, same some historic pieces

* remove interactions & worker-utils package, update misc/types

* update some packages we don't need specific pinning for anymore

* update web references to API routes since they all changed

* fix all linting issues, upgrade most packages

* fix tests, divorce enzyme where-ever possible

* update web, fix integration issues

* pre-build api

* fix tests

* move api pretest to api package.json instead of CI

* remove interactions from terraform, fix deploy side configs

* update to tf 1.1.4

* prevent double writes to worker in GCS, port to newer GCP auth workflow

* fix api.tf var refs, upgrade node action

* change to curl-based script upload for worker script due to terraform provider limitations

* oh no, cloudflare freaked out :(
2022-01-31 20:35:22 -05:00
0d96a4f973 feat(editor): add permalink section in editor 2022-01-22 22:07:11 -05:00
c1e0e65823 fix(picker): uncache on role updates 2021-07-18 03:23:12 -04:00
2d88c4bf23 fix(picker): on access control violation, do a navigate rather than redirectTo 2021-07-18 02:37:29 -04:00
9921410c9f chore: remove leaked webhook 2021-07-18 02:28:07 -04:00
3f45153b66 feat: add access control 2021-07-18 02:12:30 -04:00
4cc202b62a feat(Editor): make server utilities their own pages
Signed-off-by: Katalina Okano <git@kat.cafe>
2021-07-17 19:23:35 -04:00
acc604f83f
feat: add audit logging via webhook (#309)
* feat: add audit logging via webhook

* addd missing auditLogWebhook values in various places
2021-07-13 23:01:25 -04:00
57f58d7333 feat(Editor): refresh cache when in the editor 2021-07-09 07:07:10 -05:00
d8cdc1c62a fix(Editor): add empty role picker help page and link 2021-07-09 04:30:34 -05:00
d39b9db781 feat: bot-join machinery redirect 2021-07-08 17:10:50 -05:00
ab3f718e6d
Feat/editor as preview (#294)
* try editor as preview

* add databinding for editor actions and message

* add actions, reordering base interactions

* add drag and drop ordering for categoriers

* category skeleton

* fix linting issues

* add role list and add button, non-functional

* bump packages

* add role search prototype

* yarn.lock sync

* fix lint

* remove cfw-emulator bin
2021-07-08 16:51:00 -05:00
7d681d69d6
Feat/editor category pass2 (#290)
* feat(design-system): add editor skeletons

* use css media queries rather than JS media queries

* init remake

* feat: add basis of toggle atom

* finish toggle

* use pointer cursor with toggle

* sync

* feat: add server message in editor

* cleanup storybook

* add short editor item and data model for categories

* chore: fix build by moving jest version downward

* chore: remove old category editor

* chore: fix EditorCategoryShort index

* add editor wiring and styling updates

* fix linting issues
2021-07-05 12:18:40 -05:00
10e095656f chore: update codestyle due to prettier/rule updates 2021-06-30 08:02:36 -04:00
884be92db3
chore: refactor BreakpointsProvider to use hooks (#199) 2021-03-23 23:01:01 -04:00
a5f819bc3e
feat(web): add error pages (#193) 2021-03-22 21:18:56 -04:00
81b6de7f71
performance pass on /s/:id route (#183)
* chore(web): attempt a slightly faster unauthed /s/ load

* retype RouteWrapper
2021-03-15 20:22:18 -04:00
e0fcfc310e
feat: add skeleton masthead and generic loading page (#182)
* feat: add skeleton masthead and generic loading page

* add generic loader to picker page

* smooth out spinner, add no-motion state
2021-03-15 19:51:56 -04:00
fa85b30cf0 fix(web): new-session should load a new page rather than fix state 2021-03-14 19:47:54 -04:00
42323a46f6
Refactor SessionContext (#181)
* fix(web): refactor session context so it works more consistently

* add warning for when syncSession is locked but called again

* cd

* add tests to new-session
2021-03-14 19:20:30 -04:00
b6ae2abd2f chore: add postauthUrl link to skip broken auth flow 2021-03-14 16:44:28 -04:00
10522e73c2 chore: disable auth flow temporarily 2021-03-14 16:40:39 -04:00
fd02dad62b
Improve pre- and post-auth redirect flows (#180)
* fix(web): add /machinery/new-session/... route, start auth flow from there

* fix(api): change redirect to path-based format

* fix(api): remove extra / from login-callback redirect

* fix(web): /auth/login should skip flows if isAuthenticated is true
2021-03-14 16:28:51 -04:00
8fbf8f2519
feat(web): add /machinery/bot-join temporary page (#179)
* feat(web): add /machinery/bot-join temporary page

* add case for non-id'd bot-join route
2021-03-14 15:35:27 -04:00
0c586404e8
feat(web): add /machinery/logout (#177) 2021-03-14 15:09:52 -04:00
f24d2fcc99
chore: update prettier tab width for consistency (#175) 2021-03-13 22:54:34 -05:00
637be8bfa1
feat(web): add page titles (#170)
* feat(web): add page titles

* add html title
2021-03-13 21:17:00 -05:00
99952aa19f
Feat/recent guilds (#89) (#167)
* feat(web): add server-setup page for when bot isn't in the server picked

* chore: move contexts into their own folder

* feat(web): add recent guilds context, and app shell helper context

* feat(web): show recent guilds in masthead

* feat(web): functionally add recents to servers list

* fix(web): correct styling for servers listing recents/all headers

* fix(web): correct some type issues with appShellProps

* fix(web): don't show ServerListing recents when recents is empty
2021-03-13 19:31:36 -05:00
3a36d7a85d feat(web): wire up discord auth button 2021-03-13 16:48:50 -05:00
0a399938d6 fix(web): simplify callbackHost builder 2021-03-13 16:28:01 -05:00
6edfe7455f chore: temporarily loosen CORS, add OAuth state info for backend bouncing 2021-03-13 15:49:36 -05:00
ed82a67594 fix(web): better define stage url matcher to prevent unexpected use-cases :) 2021-03-13 05:57:33 -05:00
2b467b8452 fix(web): api context should pass it's current hostname into API URL selector 2021-03-13 05:21:09 -05:00
fac361d277 chore(web): memoize default url since it'll mostly always be the same no matter what 2021-03-13 05:16:25 -05:00
a87ccd9c54 fix(web): getDefaultApiUrl should handle stage.roleypoly.com as stage 2021-03-13 04:55:20 -05:00
cd448b56c9
Reach parity with last web iteration. (#162)
* feat: add Api and Session contexts

* feat(web): add machinery/new-session

* feat(web): add servers page

* chore(web): AppRouter spacing/ordering

* feat(web): add picker, missing update-roles call for now

* feat(web): add picker saves

* chore: add roleTransactions tests

* feat(web): add auth/login
2021-03-13 04:42:07 -05:00
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