Skip to content

Commit

Permalink
move DSAConfig to Admin > General
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-funk committed Sep 26, 2023
1 parent b560e0d commit 1e17cca
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { AdvancedConfigContainer_settings } from "coral-admin/__generated__/Adva
import AMPConfig from "./AMPConfig";
import CommentStreamLiveUpdatesContainer from "./CommentStreamLiveUpdatesContainer";
import CustomCSSConfig from "./CustomCSSConfig";
import { DSAConfigContainer } from "./DSAConfigContainer";
import EmbeddedCommentRepliesConfig from "./EmbeddedCommentRepliesConfig";
import ForReviewQueueConfig from "./ForReviewQueueConfig";
import StoryCreationConfig from "./StoryCreationConfig";
Expand All @@ -40,7 +39,6 @@ const AdvancedConfigContainer: React.FunctionComponent<Props> = ({
<StoryCreationConfig disabled={submitting} />
<AMPConfig disabled={submitting} />
<ForReviewQueueConfig disabled={submitting} />
<DSAConfigContainer disabled={submitting} />
</HorizontalGutter>
);
};
Expand All @@ -55,7 +53,6 @@ const enhanced = withFragmentContainer<Props>({
...CommentStreamLiveUpdatesContainer_settings
...AMPConfig_formValues @relay(mask: false)
...ForReviewQueueConfig_formValues @relay(mask: false)
...DSAConfigContainer_formValues @relay(mask: false)
}
`,
})(AdvancedConfigContainer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ interface Props {
export const DSAConfigContainer: FunctionComponent<Props> = ({ disabled }) => {
return (
<ConfigBoxWithToggleField
data-testid="configure-advanced-dsaConfig"
data-testid="configure-general-dsaConfig"
title={
<Localized id="configure-advanced-dsaConfig-title">
<Localized id="configure-general-dsaConfig-title">
<Header container="h2">DSA Features (TODO)</Header>
</Localized>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { HorizontalGutter } from "coral-ui/components/v2";

import { GeneralConfigContainer_settings as SettingsData } from "coral-admin/__generated__/GeneralConfigContainer_settings.graphql";

import { DSAConfigContainer } from "../General/DSAConfigContainer";
import AnnouncementConfigContainer from "./AnnouncementConfigContainer";
import BadgeConfig from "./BadgeConfig";
import ClosedStreamMessageConfig from "./ClosedStreamMessageConfig";
Expand Down Expand Up @@ -47,6 +48,7 @@ const GeneralConfigContainer: React.FunctionComponent<Props> = ({
className={styles.root}
>
<LocaleConfig disabled={submitting} />
<DSAConfigContainer disabled={submitting} />
<FlattenRepliesConfig disabled={submitting} />
<SitewideCommentingConfig disabled={submitting} />
<AnnouncementConfigContainer disabled={submitting} settings={settings} />
Expand All @@ -72,6 +74,7 @@ const enhanced = withFragmentContainer<Props>({
...AnnouncementConfigContainer_settings
...FlattenRepliesConfig_formValues @relay(mask: false)
...LocaleConfig_formValues @relay(mask: false)
...DSAConfigContainer_formValues @relay(mask: false)
...GuidelinesConfig_formValues @relay(mask: false)
...CommentLengthConfig_formValues @relay(mask: false)
...CommentEditingConfig_formValues @relay(mask: false)
Expand Down
4 changes: 2 additions & 2 deletions locales/en-US/admin.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -949,8 +949,6 @@ configure-advanced-for-review-queue-explanation =
mark them as "Reviewed".
configure-advanced-for-review-queue-label = Show "For review" queue
configure-advanced-dsaConfig-title = DSA Features (TODO)
## Decision History
decisionHistory-popover =
.description = A dialog showing the decision history
Expand Down Expand Up @@ -1605,6 +1603,8 @@ configure-general-rte-spoilerDesc =
Words and phrases formatted as Spoiler are hidden behind a
dark background until the reader chooses to reveal the text.
configure-general-dsaConfig-title = DSA Features (TODO)
configure-account-features-title = Commenter account management features
configure-account-features-explanation =
You can enable and disable certain features for your commenters to use
Expand Down

0 comments on commit 1e17cca

Please sign in to comment.