5.4.0 Release Bug Fixes (#2789)

* fix: addresses CORL-848

Fixed copy for new commenters feature.

* fix: address CORL-847

Revert the line hight changes on select fields for now.

* fix: addressed CORL-851

Changed copy on CSS field.

* fix: addressed CORL-840

Changed deletion window to 24 hours.
Refactored durations to use TIME enum.
This commit is contained in:
Wyatt Johnson
2020-01-14 16:39:21 +00:00
committed by GitHub
parent a88644d98e
commit 9b8ab6de5f
36 changed files with 1061 additions and 1063 deletions
@@ -234,7 +234,7 @@ each of your sites stories.
<p
className="FormFieldDescription-root"
>
URL of a CSS stylesheet that will override default Embed Stream styles. Can be internal or external.
URL of a CSS stylesheet that will override default Embed Stream styles.
</p>
<div
className="Box-root HorizontalGutter-root HorizontalGutter-spacing-2"
@@ -367,7 +367,7 @@ for moderator approval before publication.
<label
className="Label-root"
>
Number of first comments sent for approval
Number of comments that must be approved
</label>
<div
className="TextField-root"
+5 -5
View File
@@ -1,7 +1,8 @@
import {
DEFAULT_SESSION_LENGTH,
DEFAULT_SESSION_DURATION,
TOXICITY_THRESHOLD_DEFAULT,
} from "coral-common/constants";
import TIME from "coral-common/time";
import { pureMerge } from "coral-common/utils";
import {
GQLComment,
@@ -77,8 +78,7 @@ export const settings = createFixture<GQLSettings>({
},
recentCommentHistory: {
enabled: false,
// 7 days in seconds.
timeFrame: 604800,
timeFrame: 7 * TIME.DAY,
// Rejection rate defaulting to 30%, once exceeded, comments will be
// pre-moderated.
triggerRejectionRate: 0.3,
@@ -94,7 +94,7 @@ export const settings = createFixture<GQLSettings>({
},
},
auth: {
sessionDuration: DEFAULT_SESSION_LENGTH,
sessionDuration: DEFAULT_SESSION_DURATION,
integrations: {
local: {
enabled: true,
@@ -175,7 +175,7 @@ export const settingsWithEmptyAuth = createFixture<GQLSettings>(
{
id: "settings",
auth: {
sessionDuration: DEFAULT_SESSION_LENGTH,
sessionDuration: DEFAULT_SESSION_DURATION,
integrations: {
local: {
enabled: true,