Skip to content

Commit

Permalink
Merge pull request #4585 from coralproject/fix-dsa-report-copy
Browse files Browse the repository at this point in the history
update copy in DSA feature
  • Loading branch information
tessalt authored Mar 25, 2024
2 parents eabbc18 + 4a7004e commit 37207e5
Show file tree
Hide file tree
Showing 18 changed files with 48 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const FlagDetailsContainer: FunctionComponent<Props> = ({
<FlagDetails
category={
<Localized id="moderate-flagDetails-illegalContent">
<span>Illegal content</span>
<span>Potentially illegal content</span>
</Localized>
}
nodes={illegalContent}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const markers: Array<
(c.revision && c.revision.actionCounts.illegal.total > 0 && (
<Marker key={keyCounter++} color="reported">
<Localized id="moderate-marker-illegal">
<span>Illegal content</span>
<span>Potentially illegal content</span>
</Localized>{" "}
<MarkerCount>{c.revision.actionCounts.illegal.total}</MarkerCount>
</Marker>
Expand Down
4 changes: 2 additions & 2 deletions client/src/core/client/admin/routes/Reports/ReportHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ const ReportHistory: FunctionComponent<Props> = ({
>
<div
className={styles.reportHistoryText}
>{`${h.createdBy?.username} made a decision that this report contains illegal content`}</div>
>{`${h.createdBy?.username} made a decision that this report contains potentially illegal content`}</div>
</Localized>
) : (
<Localized
Expand All @@ -270,7 +270,7 @@ const ReportHistory: FunctionComponent<Props> = ({
>
<div
className={styles.reportHistoryText}
>{`${h.createdBy?.username} made a decision that this report does not contain illegal content`}</div>
>{`${h.createdBy?.username} made a decision that this report does not contain potentially illegal content`}</div>
</Localized>
)}
{h.decision?.legality === "ILLEGAL" && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ const ReportMakeDecisionModal: FunctionComponent<Props> = ({
<Flex alignItems="center" direction="column">
<Localized id="reports-decisionModal-prompt">
<div className={styles.decisionModalThisComment}>
Does this comment appear to contain illegal content?
Does this comment appear to contain potentially
illegal content?
</div>
</Localized>
<Flex margin={2} className={styles.buttonWrapper}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ const SingleReportRoute: FunctionComponent<Props> & {
<div>
<Localized id="reports-singleReport-decision-doesItContain">
<div className={styles.label}>
Does this comment contain illegal content?
Does this comment contain potentially illegal
content?
</div>
</Localized>
{dsaReport.decision.legality ===
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ it("can make a legality decision on a report", async () => {
userEvent.click(submitButton);
expect(
await within(container).findByText(
"Markus made a decision that this report contains illegal content"
"Markus made a decision that this report contains potentially illegal content"
)
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const ArchivedReportFlowContainer: FunctionComponent<Props> = ({
href={reportLink}
>
<Localized id="comments-reportForm-reportIllegalContent-button">
<span>This comment contains illegal content</span>
<span>This comment contains potentially illegal content</span>
</Localized>
<ButtonSvgIcon
className={styles.linkIcon}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const IllegalContentLink: FunctionComponent<{ reportLink: string }> = ({
href={reportLink}
>
<Localized id="comments-reportForm-reportIllegalContent-button">
<span>This comment contains illegal content</span>
<span>This comment contains potentially illegal content</span>
</Localized>
<ButtonSvgIcon className={styles.linkIcon} Icon={ShareExternalLinkIcon} />
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const render = (
const previouslyReportedError = getMessage(
localeBundles,
"comments-permalinkView-reportIllegalContent-additionalComments-previouslyReportedCommentError",
"You've previously reported this comment for containing illegal content. You may only report a comment for this reason one time."
"You've previously reported this comment for containing potentially illegal content. You may only report a comment for this reason one time."
);
onAddCommentError(previouslyReportedError, additionalComment.id);
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ const IllegalContentReportViewContainer: FunctionComponent<Props> = (props) => {
<div className={styles.confirmationDescription}>
Your report will now be reviewed by our moderation team.
You will receive a notification once a decision is made.
If the content is found to contain illegal content, it
If the content is found to contain potentially illegal
will be removed from the site and further action may be
taken against the commenter.
</div>
Expand All @@ -246,8 +246,8 @@ const IllegalContentReportViewContainer: FunctionComponent<Props> = (props) => {
<div className={styles.confirmationDescription}>
Your report will now be reviewed by our moderation team
and you will receive a notification once a decision is
made. If the content is found to contain illegal content,
it will be removed from our site.
made. If the content is found to contain potentially
illegal content it will be removed from our site.
</div>
</Localized>
</Flex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,13 @@ const DSAReportDecisionMadeNotificationBody: FunctionComponent<Props> = ({
>
<span>
On <strong>{date}</strong> you reported a comment written by{" "}
<strong>{username}</strong> for containing illegal content. After
reviewing your report, our moderation team has decide this comment{" "}
<strong>does not appear to contain illegal content.</strong> Thank
you for helping to keep our community safe.
<strong>{username}</strong> for containing potentially illegal
content. After reviewing your report, our moderation team has
decided this comment{" "}
<strong>
does not appear to contain potentially illegal content.
</strong>{" "}
Thank you for helping to keep our community safe.
</span>
</Localized>
)}
Expand All @@ -57,9 +60,10 @@ const DSAReportDecisionMadeNotificationBody: FunctionComponent<Props> = ({
>
<span>
On <strong>{date}</strong> you reported a comment written by{" "}
<strong>{username}</strong> for containing illegal content. After
reviewing your report, our moderation team has decided this
comment <strong>does contain illegal content</strong> and has been
<strong>{username}</strong> for containing potentially illegal
content. After reviewing your report, our moderation team has
decided this comment{" "}
<strong>does contain potentially illegal content</strong> and has
removed. Further action may be taken against the commenter,
however you will not be notified of any additional steps. Thank
you for helping to keep our community safe.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const getGeneralReason = (
return getMessage(
bundles,
"notifications-rejectionReason-illegalContent",
"This comment contains illegal content"
"This comment contains potentially illegal content"
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ beforeEach(async () => {

it("includes and submits report illegal content form", async () => {
await createTestRenderer();
await screen.findByText("Report illegal content");
await screen.findByText("Report potentially illegal content");
const currentTab = screen.getByTestId("current-tab-pane");

const lawBrokenTextbox = within(currentTab).getByRole("textbox", {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ it("report comment includes link to report illegal content", async () => {
userEvent.click(reportButton);
const form = within(comment).getByTestId("report-comment-form");
const reportIllegalContentButton = within(form).getByRole("link", {
name: "This comment contains illegal content share-external-link-1",
name: "This comment contains potentially illegal content share-external-link-1",
});
expect(reportIllegalContentButton).toHaveAttribute(
"href",
Expand All @@ -223,7 +223,7 @@ it("can report illegal content when not signed in", async () => {
userEvent.click(reportButton);
const form = within(comment).getByTestId("report-comment-form");
const reportIllegalContentButton = within(form).getByRole("link", {
name: "This comment contains illegal content share-external-link-1",
name: "This comment contains potentially illegal content share-external-link-1",
});
expect(reportIllegalContentButton).toHaveAttribute(
"href",
Expand Down
12 changes: 6 additions & 6 deletions locales/en-US/admin.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ moderate-marker-preMod = Pre-mod
moderate-marker-link = Link
moderate-marker-bannedWord = Banned word
moderate-marker-bio = Bio
moderate-marker-illegal = Illegal content
moderate-marker-illegal = Potentially illegal content
moderate-marker-possibleBannedWord = Possible Banned Word
moderate-marker-suspectWord = Suspect word
moderate-marker-possibleSuspectWord = Possible Suspect Word
Expand All @@ -1075,7 +1075,7 @@ moderate-flagDetails-abusive = Abusive
moderate-flagDetails-spam = Spam
moderate-flagDetails-bio = Bio
moderate-flagDetails-other = Other
moderate-flagDetails-illegalContent = Illegal content
moderate-flagDetails-illegalContent = Potentially illegal content
moderate-flagDetails-viewDSAReport = View DSA Report
moderate-card-flag-details-anonymousUser = Anonymous user
Expand Down Expand Up @@ -1954,8 +1954,8 @@ reports-singleReport-history = History
reports-singleReport-history-reportSubmitted = Illegal content report submitted
reports-singleReport-history-addedNote = { $username } added a note
reports-singleReport-history-deleteNoteButton = <icon></icon> Delete
reports-singleReport-history-madeDecision-illegal = { $username } made a decision that this report contains illegal content
reports-singleReport-history-madeDecision-legal = { $username } made a decision that this report does not contain illegal content
reports-singleReport-history-madeDecision-illegal = { $username } made a decision that this report contains potentially illegal content
reports-singleReport-history-madeDecision-legal = { $username } made a decision that this report does not contain potentially illegal content
reports-singleReport-history-legalGrounds = Legal grounds: { $legalGrounds }
reports-singleReport-history-explanation = Explanation: { $explanation }
reports-singleReport-history-changedStatus = { $username } changed status to { $status }
Expand All @@ -1968,7 +1968,7 @@ reports-singleReport-decisionLabel = Decision
reports-singleReport-decision-legalGrounds = Legal grounds
reports-singleReport-decision-explanation = Detailed explanation
reports-singleReport-makeDecisionButton = <icon></icon> Decision
reports-singleReport-decision-doesItContain = Does this comment contain illegal content?
reports-singleReport-decision-doesItContain = Does this comment contain potentially illegal content?
reports-singleReport-decision-doesItContain-yes = Yes
reports-singleReport-decision-doesItContain-no = No
Expand All @@ -1986,7 +1986,7 @@ reports-changeStatusModal-dontUpdateButton = No
reports-changeStatusModal-header = Update status?
reports-decisionModal-header = Report decision
reports-decisionModal-prompt = Does this comment appear to contain illegal content?
reports-decisionModal-prompt = Does this comment appear to contain potentially illegal content?
reports-decisionModal-yes = Yes
reports-decisionModal-no = No
reports-decisionModal-submit = Submit
Expand Down
18 changes: 9 additions & 9 deletions locales/en-US/stream.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ comments-permalinkView-section =
comments-permalinkView-viewFullDiscussion = View full discussion
comments-permalinkView-commentRemovedOrDoesNotExist = This comment has been removed or does not exist.
comments-permalinkView-reportIllegalContent-title = Report illegal content
comments-permalinkView-reportIllegalContent-title = Report potentially illegal content
comments-permalinkView-reportIllegalContent-description = Please fill this form out to the best of your ability so our moderation team can make a decision and if necessary consult with our site's legal department.
comments-permalinkView-reportIllegalContent-reportingComment = You are reporting this comment
comments-permalinkView-reportIllegalContent-lawBrokenDescription-inputLabel = What law do you believe has been broken? (required)
comments-permalinkView-reportIllegalContent-additionalInformation-inputLabel = Please include additional information why this comment is illegal (required)
comments-permalinkView-reportIllegalContent-additionalInformation-helperText = Any detail you include will help us investigate this further
comments-permalinkView-reportIllegalContent-additionalComments-inputLabel = Would you like to report any other comments for containing illegal content?
comments-permalinkView-reportIllegalContent-additionalComments-inputLabel = Would you like to report any other comments for containing potentially illegal content?
comments-permalinkView-reportIllegalContent-bonafideBelief-checkbox = I believe that the information included in this report is accurate and complete
comments-permalinkView-reportIllegalContent-additionalComments-addCommentURLButton = <Button></Button>Add
comments-permalinkView-reportIllegalContent-additionalComment-commentURLButton = Comment URL
Expand All @@ -174,10 +174,10 @@ comments-permalinkView-reportIllegalContent-additionalComments-commentNotFoundEr
comments-permalinkView-reportIllegalContent-additionalComments-validCommentURLError = This is not a valid URL. Please enter a valid comment URL
comments-permalinkView-reportIllegalContent-additionalComments-uniqueCommentURLError = You've already added this comment to this report. Please add a unique comment URL
comments-permalinkView-reportIllegalContent-additionalComments-validCommentURLLengthError = Additional comment URL length exceeds maximum.
comments-permalinkView-reportIllegalContent-additionalComments-previouslyReportedCommentError = You've previously reported this comment for containing illegal content. You may only report a comment for this reason one time.
comments-permalinkView-reportIllegalContent-additionalComments-previouslyReportedCommentError = You've previously reported this comment for containing potentially illegal content. You may only report a comment for this reason one time.
comments-permalinkView-reportIllegalContent-confirmation-successHeader = We have received your illegal content report
comments-permalinkView-reportIllegalContent-confirmation-description = Your report will now be reviewed by our moderation team. You will receive a notification once a decision is made. If the content is
found to contain illegal content, it will be removed from the site and further action may be taken against the commenter.
found to contain potentially illegal content, it will be removed from the site and further action may be taken against the commenter.
comments-permalinkView-reportIllegalContent-confirmation-errorHeader = Thank you for submitting this report
comments-permalinkView-reportIllegalContent-confirmation-errorDescription = We were unable to submit your report for the following reason(s):
comments-permalinkView-reportIllegalContent-confirmation-returnToComments = You may now close this tab to return to the comments
Expand Down Expand Up @@ -766,7 +766,7 @@ comments-reportPopover-receivedMessage =
comments-reportPopover-dismiss = Dismiss
comments-reportForm-reportIllegalContent-button = This comment contains illegal content
comments-reportForm-reportIllegalContent-button = This comment contains potentially illegal content
comments-reportForm-signInToReport = You have to sign in to report a comment that violates our guidelines
## Archived Report Comment Popover
Expand Down Expand Up @@ -1097,15 +1097,15 @@ notifications-repliedComment-hideOriginalComment = - Hide my original comment
notifications-repliedComment-showOriginalComment = + Show my original comment
notifications-dsaReportLegality-legal = Legal content
notifications-dsaReportLegality-illegal = Illegal content
notifications-dsaReportLegality-illegal = Potentially illegal content
notifications-dsaReportLegality-unknown = Unknown
notifications-rejectionReason-offensive = This comment contains offensive language
notifications-rejectionReason-abusive = This comment contains abusive language
notifications-rejectionReason-spam = This comment is spam
notifications-rejectionReason-bannedWord = Banned word
notifications-rejectionReason-ad = This comment is an advertisement
notifications-rejectionReason-illegalContent = This comment contains illegal content
notifications-rejectionReason-illegalContent = This comment contains potentially illegal content
notifications-rejectionReason-harassmentBullying = This comment contains harassing or bullying language
notifications-rejectionReason-misinformation = This comment contains misinformation
notifications-rejectionReason-hateSpeech = This comment contains hate speech
Expand All @@ -1115,9 +1115,9 @@ notifications-rejectionReason-other-customReason = Other - { $customReason }
notifications-rejectionReason-unknown = Unknown
notifications-reportDecisionMade-legal =
On <strong>{ $date }</strong> you reported a comment written by <strong>{ $author }</strong> for containing illegal content. After reviewing your report, our moderation team has decided this comment <strong>does not appear to contain illegal content.</strong> Thank you for helping to keep our community safe.
On <strong>{ $date }</strong> you reported a comment written by <strong>{ $author }</strong> for containing potentially illegal content. After reviewing your report, our moderation team has decided this comment <strong>does not appear to contain illegal content.</strong> Thank you for helping to keep our community safe.
notifications-reportDecisionMade-illegal =
On <strong>{ $date }</strong> you reported a comment written by <strong>{ $author }</strong> for containing illegal content. After reviewing your report, our moderation team has decided this comment <strong>does contain illegal content</strong> and has been removed. Further action may be taken against the commenter, however you will not be notified of any additional steps. Thank you for helping to keep our community safe.
On <strong>{ $date }</strong> you reported a comment written by <strong>{ $author }</strong> for containing potentially illegal content. After reviewing your report, our moderation team has decided this comment <strong>does contain illegal content</strong> and has been removed. Further action may be taken against the commenter, however you will not be notified of any additional steps. Thank you for helping to keep our community safe.
notifications-methodOfRedress-none =
All moderation decisions are final and cannot be appealed
Expand Down
Loading

0 comments on commit 37207e5

Please sign in to comment.