Commit Graph
1498 Commits
Author SHA1 Message Date
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
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
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
536e804d61 chore(deps): bump lodash from 4.17.15 to 4.17.19 (#3033)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-20 14:53:21 +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>
v6.3.0
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
Tessa ThorntonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
ace252eb72 continue polling for twitter iframe height longer (#3023)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-07-16 18:14:14 +00:00
Tessa ThorntonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
933d82e7c9 use padding-bottom trick to make giphy mp4s responsive (#3024)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-07-16 17:59:09 +00:00
Wyatt JohnsonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
6e64e6a01c fix: fixed bug with select dropdown (#3021)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-07-16 17:45:47 +00:00
Nick FunkGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
bb48e1fe33 Tweak up indent level padding/margins (#3025)
CORL-1186

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-07-16 17:31:55 +00:00
Nick FunkGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
58a91c2e42 Replace Dashboard - staff comments icon (#3028)
The badge icon was removed from material fonts.
There are several icons in this category that are
in flux on material's site. Lets keep a close eye
on this as it could mean other icons stop working
in future as well.

CORL-1184

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-07-16 17:18:07 +00:00
Nick FunkandGitHub 6a5a18e3a4 Enforce max width on mod card embeds (#3019)
Some gifs are too wide for the mod cards. Set
a max-width and force it on the media/iframe
so that it doesn't push out mod card controls.

CORL-1179
2020-07-16 16:18:02 +00:00
Wyatt JohnsonandGitHub d43fbe357a fix: add 'self' to the frame-ancestors directive (#3018) 2020-07-15 18:47:07 +00:00
5c863f1307 [CORL-1155] Fix theming for rebranded stream/admin (#3012)
* Repair theming and CSS variables for the rebrand

This separates the CSS variables into three sections
for admin, stream, as well as a shared set between
them.

This also adds injection of the raw colours from the
design team into post css variables.

Lastly, this re-maps the existing theme variables to
a new consolidated set with fallbacks for compatibility.

Since this is a singular commit from various WIP commits,
I am crediting @cvle as well as myself for this work.

Thank you all who helped make this rebrand with theming
possible!

CORL-1155

Co-authored-by: Chi Vinh Le <vinh@vinh.tech>

* Convert old css variables in CallOut

* Rename postive/negative => success/error

CORL-1155

* Change some CSS Variable names

* fix TextField/PasswordField colors

Co-authored-by: Chi Vinh Le <vinh@vinh.tech>
2020-07-15 18:20:25 +00:00
d4cb9cde9b [CORL-1174] Set height on iframe embeds in moderate cards (#3017)
* set height on iframe embeds in moderate cards

* fix: removed stripTags from server code

Co-authored-by: Wyatt Johnson <me@wyattjoh.ca>
2020-07-15 14:58:24 +00:00
c59c345756 [CORL-1108] Media Embeds (#3010)
* Create Twitter and YouTube embed components

Uses the `/api/oembed` endpoint to proxy the
oembed requests that the embed components drop
into an iframe.

CORL-1012

* Create preliminary embed link parsing/storage

CORL-1012

* Create preliminary embed section on comments

CORL-1012

* Preliminarily add admin embed config options

CORL-1012

* Show a "missing" message when embed is unavailable

CORL-1012

* Simplify naming of embeds in schema

embedLinks -> embed

CORL-1012

* Rename oEmbedHandler to oembedHandler

CORL-1012

* add backend services for giphy

* search gifs on frontend

* display selected gif

* show gif previews

* display giphy attribution and no results text

* save a gif to a comment

* use embeds feature for gif embeds

* clean up gif/video/tweet display

* style and configure post comment form

* preview and confirm twitter and youtube embeds

* moderate embeds on server

* update reply and edit forms

* update snaps

* fix some of the tests

* fix tests and types

* fix tests

* fix types

* show gifs in moderate cards

* correctly attach embeds to comments

* make gif rating configurable

* make gif rating configurable

* configure giphy api key

* refactor comment form

* only allow embeds if settings enabled

* scale youtube

* resize embeds if necessary

* make tweets and videos responsive

* set maxwidth on tweet embeds

* update copy for embed config

* force gif search results to fit container

* prevent double posting of gifs

* undo hiding html if empmty because now it doesn't contain random break tags

* use downsampled preview images

* update fixtures and snapshots

* remove unused css

* add i18n string

* remove console logs

* Fix styles on logged-out comment form

* click to pause gif in moderation

* style youtube and twitter embeds in mod stream"

* use mp4s for stream gifs

* use mp4 for moderation gifs

* clean up commentform

* fix dom tests

* update rte

* import oembed module with correct casing

* bump rte

* add correct return type for setInterval

* add migration for embeds config

* catch errors from gif search

* return early from iframe container size calculation if width and height are set

* remove unused classnames

* make giphy api key protected

* reorganize tenant embed settings schema

* update schema on backend to support single comment embed instead of array

* move findEmbedLinks to common

* wrap error

* return function for linkify instead of ternary

* remove unused url param

* clean up oembed service

* remove conditional in repeat post check

* use joi to validate giphy responses

* fix types for embeds

* fix optimistic responses

* move attachEmbeds function

* update snapshots

* fix: improved repeatPost checking

* force case change on oembed

* force rename file name

* feat: Rename Embed -> Media

* fix: cleanup of service functions

* fix: moved types

* fix: fixed logic bug

* fix: fixed translation

* show embeds on history comments

* fix: fixed iframe csp and query param bug

* correct validation for twitter oembed

* feat: save youtube still

* fix: typeerror

* fix: fixed errors related to final form

* fix: fixed issue with types

* fix: added docs to the schema

* fix: linting + tests

Co-authored-by: nick-funk <nick.funk@outlook.com>
Co-authored-by: Wyatt Johnson <me@wyattjoh.ca>
2020-07-15 02:16:06 +00:00
Wyatt JohnsonandGitHub f8234e53ed fix: added Other as flagging reason to ui (#3014) 2020-07-13 22:23:54 +00:00
Wyatt JohnsonandGitHub 7b2cdbad49 [CORL-1134] Site Moderators (#2995)
* feat: added server support for site moderators

* feat: added unscoped property to @auth directive

* feat: added frontend support for site moderator feature

* feat: added site moderator support to stream

* fix: linting

* fix: updated snapshots
2020-07-13 18:19:22 +00:00
Wyatt JohnsonandGitHub 00e074d49d fix: increased body size limit, added config option (#3011) 2020-07-09 22:02:01 +00:00
d848fc193e Fixed Spanish translation typo (#3008)
* Changed Envira to Enviar

* Changed Envira to Enviar

Co-authored-by: Natalie Stroud <stroudn1@nku.edu>
2020-06-30 01:48:24 +00:00
VinhGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2acc761a5d [CORL-1074] Upgrade dependencies (#2999)
* chore: upgrade eslint, typescript

* chore: upgrade deps

* chore: revert upgrade ts-node-dev

* chore: revert unneeded comments

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-06-26 22:38:52 +00:00
Wyatt JohnsonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
0db5bc846d fix: use [contenthash] for more consistancy (#3002)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-06-26 22:09:23 +00:00
Wyatt JohnsonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
e57940c418 fix: fixed usernames not displaying (#3005)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-06-26 21:51:13 +00:00
Wyatt JohnsonGitHubkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
ccb8f1defa fix: fixed anchor link for view conversation (#3006)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-06-26 21:36:10 +00:00
Wyatt JohnsonandGitHub 878c3bb3c0 fix: updated copy to reflect data (#3007) 2020-06-26 21:20:10 +00:00
Wyatt JohnsonandGitHub 86c81c7b9f feat: added kodiak config (#3003) 2020-06-26 19:47:25 +00:00
Wyatt Johnson 302613a185 Merge branch 'release/6.2' 2020-06-25 13:08:56 -06:00
Wyatt JohnsonandGitHub bf04b4c2a6 [CORL-1156] Q&A Feature Flag Fix (#3000)
* fix: fixed bug with feature flag handling

* chore: version bump
v6.2.3
2020-06-25 18:59:03 +00:00
Wyatt JohnsonandGitHub f3ef9ef778 Replace nodemailer with emailjs (#2983)
* chore: replace nodemailer with emailjs

* fix: bumped version
2020-06-24 22:24:37 +00:00
Wyatt JohnsonandGitHub db8c9de0e7 Bump 6.3.0 (#2996)
* chore: bump version 6.3.0

* chore: upgrade mongodb
2020-06-23 17:05:00 +00:00