Commit graph

128 commits

Author SHA1 Message Date
5aa5a6ae1c add /pick-role and /remove-role, refactor responses 2022-02-04 21:21:32 -05:00
0836d548b2 add an instant cache refresh to the editor 2022-02-04 11:59:11 -05:00
68b2b7323b fix tests, add /roleypoly and /pickable-roles handlers 2022-02-04 11:16:18 -05:00
8c61bfd4c7 add Embed footer to interactions types 2022-02-04 01:39:00 -05:00
5c5258ef5e add /roleypoly and /pickable-roles slash commands, fix framework issues 2022-02-04 01:37:14 -05:00
fd7ed13e9d fix tests as output types changed a little 2022-02-03 22:59:32 -05:00
544ef1b2f0 fix interactions, apparently cfw doesn't speak Buffer 2022-02-03 22:57:37 -05:00
7007cfea9d add a test for when attemptLegacyImport encounters an error 2022-02-02 13:57:00 -05:00
c7bfed8bae attemptLegacyImport should not break the entire request when it fails 2022-02-02 13:52:01 -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
c28e53c6b4 scroll to bottom when a new category is created 2022-02-01 17:23:17 -05:00
e0a0d1d87a uncacheGuild a second time, prospective fix for state desync 2022-02-01 17:16:56 -05:00
5404047bd2 fix help page not correctly injecting all AppShellProps 2022-02-01 01:28:35 -05:00
7ba0b6316e makes login use location.href instead of navigate() 2022-02-01 00:45:24 -05:00
b3f9f57035 forcibly bump api code so it'll deploy 2022-02-01 00:41:35 -05:00
872e9b8734 fix new-session tests, remove newly unused param 2022-02-01 00:25:36 -05:00
e7994d394b update storybook to 6.4.17 2022-01-31 23:52:45 -05:00
b24f3fd00a normalize auth/callback redirect url 2022-01-31 23:50:05 -05:00
8d7d331c82 fix footer patreon link 2022-01-31 23:34:28 -05:00
1cb04c8b5a update login flow to prevent session leakage 2022-01-31 23:32:41 -05:00
be826b613e fix typo on auth/callback redirect 2022-01-31 21:51:15 -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
b644a38aa7 fix(branding): adjust LunarNewYear date captures 2022-01-27 16:55:21 -05:00
8c07ed3123 chore: fix linting 2022-01-22 22:14:16 -05:00
20efb22605 fix(editor): make permalink types more sane 2022-01-22 22:10:57 -05:00
0d96a4f973 feat(editor): add permalink section in editor 2022-01-22 22:07:11 -05:00
f86eaae5e9 chore: rename uses of "Guilds" to "Servers" 2022-01-22 20:27:54 -05:00
8eb4377044 fix(design-system): organisms/editor-shell: add spacer above masthead 2022-01-22 20:22:02 -05:00
7a52653260 fix(bot): update discord.js to 13, ignore non-direct mentions 2022-01-22 18:49:10 -05:00
cba0d1f35a fix(design-system): molecules/editor-category: handleRoleListUpdate should not be nested function 2022-01-22 18:13:00 -05:00
dac2af43a2 fix(api): disable access control 2021-08-13 08:52:44 -04:00
d5acea4abb fix: missing tools on a composable handler 2021-08-07 18:05:34 -04:00
76a03c2d2c chore: refactor asyncResponse to take a preflight response 2021-08-07 18:04:29 -04:00
26bc74bcbc fix(interactions): add async responses 2021-08-07 18:00:20 -04:00
285e23c0ed fix(bot-join): fix commands scope 2021-08-01 20:56:06 -04:00
066f68ffef
feat: Slash Commands (#337)
* feat: add discord interactions worker

* feat(interactions): update CI/CD and terraform to add interactions

* chore: fix lint issues

* chore: fix build & emulation

* fix(interactions): deployment + handler

* chore: remove worker-dist via gitignore

* feat: add /pickable-roles and /pick-role basis

* feat: add pick, remove, and update the general /roleypoly command

* fix: lint missing Member import
2021-08-01 20:26:47 -04:00
dde05c402e add feature flag stuff
Signed-off-by: Katalina Okano <git@kat.cafe>
2021-07-27 23:03:00 -04:00
3074db0a21 chore: set new features behind feature flags 2021-07-27 20:34:49 -04: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
9c07ff0e54 chore: remove leftover BUILD.bazel files 2021-07-17 20:38:54 -04:00
6708f5c6fc chore: add create-component tool 2021-07-17 20:37:58 -04:00
62687ced78 fix(editor): fix style linting issue 2021-07-17 19:46:16 -04:00
b150462f2b fix(api): remove references to x-create-roleypoly-data 2021-07-17 19:43:21 -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
d52508a046 feat(api): update-roles will report x-audit-log-reason to discord
Signed-off-by: Katalina Okano <git@kat.cafe>
2021-07-17 19:22:16 -04:00
824fee0703 refactor(api): Abstract discord API base url to config.ts
Signed-off-by: Katalina Okano <git@kat.cafe>
2021-07-17 19:21:38 -04:00