Commit Graph
1272 Commits
Author SHA1 Message Date
Tessa ThorntonandGitHub 5d2ab3d061 adjust spacing on configure tab on mobile (#3087) 2020-08-07 12:02:46 -04:00
Tessa ThorntonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
df6f666447 make spacing between discussions and headers explicit (#3084)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-06 19:20:57 +00:00
VinhGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
e412b27c1e fix: auto focus on reply (#3083)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-06 19:03:04 +00:00
VinhGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
0fe0be832e fix: use same focus styling (#3078)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-06 18:48:08 +00:00
Tessa ThorntonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
288809ee14 add PERMIT argunment to auth directives that should be accessible to suspended or banned users (#3085)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-06 17:49:49 +00:00
Wyatt JohnsonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
b97ec638b2 fix: ensure anonymousId or userId is added to the payload (#3075)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-06 16:35:02 +00:00
2bbfbc7ddd [CORL-1242] Ensure SSO Access Tokens are not persisted (#3080)
* fix: ensure access tokens from sso are not persisted

* fix: increment storage key field to bust existing usage

Co-authored-by: Vinh <vinh@vinh.tech>
2020-08-06 15:20:46 +00:00
Wyatt JohnsonGitHubChi Vinh Lekodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
b029a01bd9 setTimeout Fixes (#3082)
* fix: fixed types and some unmanaged timeouts

* fix: refetch type

Co-authored-by: Chi Vinh Le <vinh@vinh.tech>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-06 14:56:57 +00:00
Wyatt JohnsonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
6fabeb2755 [CORL-1243] Subscription Errors (#3074)
* fix: fixed subscription event error

* fix: further subscription refinements

* fix: review fixes

* fix: exhastive deps

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-06 14:42:04 +00:00
VinhGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
459e11a5fa fix: correctly cleanup timeout (#3081)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-05 23:32:14 +00:00
Nick FunkGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
ce7d6969dd Add read more opens new tab feature flag (#3079)
If the feature flag READ_MORE_NEW_TAB is
set, then clicking on "Read more of this
conversation" will open a new tab.

CORL-1246

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-05 21:10:55 +00:00
VinhGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
6a8d6b07d6 [CORL-1240] Check existing data before handling subscriptions (#3077)
* fix: check existing data before handling subscriptions

* fix: typo

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-05 20:56:11 +00:00
8ede245a8d feat: added data-coral-count to count elements (#3055)
Co-authored-by: Vinh <vinh@vinh.tech>
2020-08-05 19:10:13 +00:00
Nick FunkGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
88eb9555c7 [CORL-1227] Fix scroll-able modal position popping (#3069)
* Disable scrolling on site moderators modal

The site moderator modal already has a scroll bar
inside it and its height is less than 480px. We
don't need a scrollbar on the modal background since
the modal window will always be fully visible on
even the smallest screens.

This eliminates the bug of the modal sliding away
when there are enough sites in the org to cause the
background scroll to be activated.

CORL-1227

* Stop checkboxes from shoving input element down

The checkbox input element that we style away
using ::before css was being shoved down the
dom non-relative to the checkbox root.

Now it's relative to the checkbox root and positioned
accordingly.

CORL-1227

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-05 15:49:33 +00:00
Nick FunkGitHubWyatt Johnsonkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
ce53134736 [CORL-794] Create a common date formatter (#3073)
* Create a common date formatter

Updates all uses of Intl.DateTimeFormat(...)
with re-usable date time formatter functions.

The formatter functions have default formatting
options, but these can be overridden.

CORL-794

* Include options in useMemo

Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>

* Make date formatting accept single locale string

Makes formatDate and createDateFormatter accept
string | string[] | undefined for the locales
argument.

CORL-794

Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-05 15:34:42 +00:00
Tessa ThorntonGitHubWyatt Johnsonkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
0f1dd7d707 add react hooks eslint plugin (#3059)
* add eslint react hooks

* fix code breaking the rules-of-hooks eslint rule

* fix spinnerWhileRendering for tests

Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-05 14:42:50 +00:00
Wyatt JohnsonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
9d02391062 [CORL-1239] Swap setTimeout for setLongTimeout (#3071)
* fix: ensure user editable time use setLongTimeout

* fix: fixed wrong type

* fix: fixed snapshots

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-04 18:24:31 +00:00
Wyatt JohnsonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
8aac2d33fc [CORL-1238] Duplicate User Race (#3068)
* fix: added a single retry to user create

* feat: added additional error context

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-04 18:09:55 +00:00
Tessa ThorntonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
3eddf5f155 [CORL-1233] Mobile display fixes (#3067)
* mobile display fixes

* show button full text at larger breakpoint

* update snaps

* hardcode in media query for reaction buttons

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-04 17:55:30 +00:00
Nick FunkandGitHub 94ff8ff880 fix: replace outdated keys with signingSecrets (#3070)
Looks like this was missed during the migration
of `auth.integrations.sso.keys` renamed to
`auth.integrations.sso.signingSecrets`.

CORL-1159
2020-08-04 11:09:24 -06:00
7dfc064c9f Better use flex to align callout contents (#3060)
CORL-1201

Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
2020-08-03 17:25:47 -06:00
Wyatt JohnsonandGitHub d602cf873c fix: support mobile twitter links (#3066) 2020-08-03 16:51:15 +00:00
Wyatt JohnsonandGitHub 79627af8d6 fix: fixed incorrect connection access (#3064) 2020-08-03 15:21:09 +00:00
871d3f80c1 [CORL-1230] corrects logic for editing comments with media attachments (#3063)
* correctly attach media to edited comments

* ensure media can be removed in edits

* fix: updates to support repeat post

Co-authored-by: Kim Gardner <kgardnr@gmail.com>
Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
2020-07-31 18:03:54 +00:00
Wyatt JohnsonandGitHub f7d01174d7 fix: fixed overflow scrollbar appearing in dropdown (#3062) 2020-07-31 13:30:08 -04:00
Nick FunkandGitHub 6966bb8d12 Replace positive/negative naming for success/error (#3058)
CORL-1200
2020-07-31 15:40:48 +00:00
Tessa ThorntonandGitHub 40ad2ed0cb remove hook causing crash from conversation modal replies (#3057) 2020-07-31 14:37:05 +00:00
802f656caa Stream UI bugfixes (#3041)
* fix: various ui fixes

* fix: tooltip button active color

* fix: teal color

* fix: RTE borders

* fix: snapshots

* fix: reduce padding of show more of this conversation button

* Fix font weight fallback values

* Replace RTE validation messages with v3 CallOuts

CORL-1213

* More styling classnames

* chore: remove not used style

* fix: reaction button primary color

* fix snapshots

* harmonize data-variant on buttons

* [CORL-1215] Install Style Tweaks (#3046)

* fix logic around repeat posts with or without media embeds: (#3042)

* fix: restore ReportCommentEvent (#3037)

Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>

* fix: fixed issue with graphiql (#3043)

* README.md Update (#3045)

* chore: update README.md

* fix: removed README from doctoc

* fix: replaced emoji codes with emjoi

* fix: removed emoji's due to browser rendering issues

* fix: fixed bugs with install styles

Co-authored-by: Tessa Thornton <tessathornton@gmail.com>
Co-authored-by: Vinh <vinh@vinh.tech>

* fix: remove lineheight css variables and make them relative

* fix: adjust line-heights

* fix: update snapshots

* More css bindings for client styling

Set bindable class on community guidelines
Set bindable classname on "Comment on" label

* fix: more tweaks

* fix: snapshots

* fix: lint and tests

Co-authored-by: nick-funk <nick.funk@outlook.com>
Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
Co-authored-by: Tessa Thornton <tessathornton@gmail.com>
2020-07-31 00:19:59 +02:00
dfdea2b9d2 [CORL-1150] Discussions Tab (#3050)
* feat: Added Site.topStories edge

* feat: Added User.ongoingDiscussions edge

* connect discussions tab to relay

* style discussions tab

* add message if no ongoing discussions

* style site name in story row

* fix: make line-heights relative

* add custom class hooks

* feat: condition display based on feature flag

* add target attribute to story links

* fix: expose some featureFlags

* fix: fixed sorting

* fix: copy fixes

Co-authored-by: tessalt <tessathornton@gmail.com>
Co-authored-by: Chi Vinh Le <vinh@vinh.tech>
2020-07-30 17:18:59 -04:00
Wyatt JohnsonandGitHub 9a9c92d360 Site Moderator Fixes (#3054)
* fix: disable banning for site moderators

* fix: fixed redirect issue for site moderators
2020-07-30 16:04:28 +00:00
ceadcc7ae1 fix warning about media key in tests (#3048)
Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
Co-authored-by: Kim Gardner <kgardnr@gmail.com>
2020-07-29 23:29:51 +00:00
7a099bbf05 don't save clientMutationId when creating announcement (#3049)
* don't save clientMutationId when creating announcement

* move mutationId filtering from resolver to mutation

Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
2020-07-29 21:38:12 +00:00
Wyatt JohnsonandGitHub 51112a11c0 [CORL-1219] Media Type Fixes (#3051)
* fix: better graphql types

* fix: fixed tests

* fix: fixed tests
2020-07-29 21:11:53 +00:00
Wyatt JohnsonandGitHub 6e50b28d8b [CORL-1149] Active Stories (#3040)
* fix: removed type assertions in place of stricter types

* fix: fixed bug with module ordering

* feat: support for story activity jsonp route
2020-07-28 16:34:05 +00:00
Tessa ThorntonandGitHub 1f72cdbfb3 ensure preloaded css is actually used (#3047) 2020-07-28 08:42:39 -04:00
Wyatt JohnsonandGitHub 9aa4591655 fix: fixed issue with graphiql (#3043) 2020-07-24 17:19:08 +00:00
87d32680f0 fix: restore ReportCommentEvent (#3037)
Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
2020-07-24 16:48:02 +00:00
Tessa ThorntonandGitHub 25a1dcdf8d fix logic around repeat posts with or without media embeds: (#3042) 2020-07-23 15:36:08 -06:00
e90272aa58 remove debug style from comment stream (#3038)
Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
2020-07-22 23:32:27 +00:00
bbbff98270 pass custom stream css url through to html (#3039)
* pass custom stream css url through to html

* rename streamcssURL to customCSSURL

* only enable custom css query on stream route

* Update src/core/server/app/router/client.ts

Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>

* simplify template for client html

Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
2020-07-22 18:57:47 +00:00
Nick FunkGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
fe19ffd7e1 Show nice error message on network time out (#3036)
Shows "Network error. Please refresh your page
and try again." when the retry middleware times
out from too many attempts on failed/timed out
requests.

CORL-1199

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-07-22 00:02:27 +00:00
Nick FunkandGitHub 7f98f13990 Send staff comments to Slack with all comments enabled (#3035)
When we set up a Slack channel, you can select to have
"All comments" sent to the slack channel. If we do this
we want staff comments to come through as well.

This wasn't happening before because there is a `staffCreated`
flag instead of `created` when a staff member comments.

So we change the trigger return type to an array, and when
a staff comment appears, return `staffCreated` as well as
`created` so the all filter lets it through.

I also changed `getBlocks(...)` to `getContent(...)` as it
now returns a JSON object with both a `blocks` array and a
`text` string field. This fixes the problem where Slack would
notifications would say "this content cannot be displayed".
Now it will say the text provided.

CORL-1172
2020-07-21 18:01:38 +00:00
Nick FunkandGitHub 1a9bd27236 Implement TODO for rejected message when replying (#3034)
Implements the proper callout for when a user
submits a comment with a banned word when replying
to another comment.

CORL-1191
2020-07-20 16:44:49 +00:00
Tessa ThorntonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
43d5d56c90 correct dashboard spacing (#3032)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-07-17 18:53:48 +00:00
Tessa ThorntonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
cdcc991255 [CORL-1195] Fix bug with displaying site dashboards (#3031)
* fix bug where dashboard would not display data for sites beyond first page of results

* remove unused param

* remove unused file

* undo rename

* rename selectedSite to site

* check that sites.edges.length is greater than 0

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-07-17 17:25:19 +00:00
Tessa ThorntonandGitHub b221baff82 [CORL-1194] correct typo in config (#3030)
* correct typo in config

* update snap
2020-07-17 15:14:52 +00:00
Wyatt JohnsonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
5b589bfe2b [CORL-1180] Moderation + Editing Improvements (#3020)
* fix: handle moderating edited comments better

* fix: add back deleted audit trail entry

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-07-16 19:59:51 +00:00
Wyatt JohnsonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
4f5c0e285c [CORL-1192] Reduced Security Mode (#3027)
* feat: add support for disabling persisted query requirements

* fix: fixed type errors

* fix: rename flag

* fix: fixed logic around validation

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-07-16 19:34:16 +00:00
Tessa ThorntonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
f26ab60398 [CORL-1185] translate error from iframe embeds (#3026)
* translate error from iframe embeds

* use transtlate function for iframe error message

* fix import order

* Fix typo in translation key

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-07-16 18:45:03 +00:00
Tessa ThorntonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
e7f395190d [CORL-1183] Fix edit comment form (#3022)
* Fix edit comment form

* clean up editcomment stack for media attachments

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-07-16 18:29:05 +00:00