Commit Graph
1538 Commits
Author SHA1 Message Date
nick-funk 6e896a189d Try out axios requests for perspective
CORL-1277
2020-08-12 12:52:18 -06:00
nick-funk 0e8449c5cd Try a promise oriented fetch timeout for perspective
If this mitigates issues of failed requests, this means we
can switch over to this version of time out based fetch
requests.

CORL-1277
2020-08-12 11:52:46 -06:00
d67c3d2907 Mark and allow word list timed out comments (#3097)
Will mark the comment's metdata as a word list
time out if it happens and also tag them with
suspect or banned word.

Then we show "possible suspect/banned word"
markers on the moderate card so moderators can
manually review them.

CORL-1264

Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
v6.3.2
2020-08-11 22:05:50 +00:00
Wyatt JohnsonandGitHub 3398bd12c4 fix: export public flag, fix button (#3098) 2020-08-11 21:49:32 +00:00
Wyatt JohnsonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
fc6de50dde fix: move deps (#3095)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-11 20:28:20 +00:00
Nick FunkandGitHub 6c32316595 6.3.2 mobile and responsive UI fixes (#3096)
* Remove vertical padding and line height on badges

Allows them to align with the time and user name
text elements.

* Hide report button text on mobile screens

* Allow read more links to wrap text on mobile

* Wrap comment tags when on mobile screens

* Fix collapse alignment on mobile screens

* Update top bar responsive scaling

* Use MatchMedia inside ReportButton

* Fix justification on comment TopBarRight
2020-08-11 20:13:11 +00:00
bowser2010GitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
47abd030ef Adding new translation (#3093)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-10 21:13:22 +00:00
Nick FunkGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
5ffb53d0eb Add media to comment data downloads (#3089)
This will update the admin and user CSV
downloads to include a "Media" column that
will specify the media type and the URL
for the media content.

CORL-1188

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-10 20:59:30 +00:00
Nick FunkGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
af842e98ee Move wordlist check after staff approval check (#3094)
This allows staff members to comment anything
they want, even if it's on the banned word list.

CORL-1255

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-10 20:42:47 +00:00
Kim GardnerGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
281f19d21c Bump version 6.3.2 (#3092)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-10 20:27:44 +00:00
Nick FunkGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
45cd0e6628 [CORL-1248] Allow users to auto-show media in stream (#3086)
* Create preliminary media preferences

Allows user to select whether they want to
automatically show media or not.

CORL-1248

* Fix up the copy around media preferences

CORL-1248

* Rename EmbedPreferences to UserMediaSettings

CORL-1248

* Add error/validation messages to media prefs

CORL-1248

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-10 20:12:56 +00:00
Tessa ThorntonandGitHub adc508c7dc remove duplicate code and add comment to wrapper component (#3076)
* remove duplicate code and add comment to wrapper component:

* use react hooks recommended settings
2020-08-10 12:30:25 -04:00
Nick FunkandGitHub 88a77f8712 Show media in the moderate view conversation modal (#3088) 2020-08-10 09:29:17 -06:00
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>
v6.3.1
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
e0db803a21 Bump version 6.3.1 (#3053)
* Bump version 6.3.1

* chore: bump version in package-lock.json

Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
2020-07-29 19:12:05 -04: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 87aba459d6 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
2020-07-24 19:06:33 +00:00