From d92c831ea41ee125d5a9a76c744eb059df8ed95a Mon Sep 17 00:00:00 2001 From: GreenAsJade Date: Sat, 10 Aug 2024 21:21:03 +0930 Subject: [PATCH] Tell CMs that they can Ignore reports. --- src/views/HelpFlows/CommunityModeratorIntro.tsx | 10 +++++++++- src/views/ReportsCenter/ViewReport.tsx | 7 ++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/views/HelpFlows/CommunityModeratorIntro.tsx b/src/views/HelpFlows/CommunityModeratorIntro.tsx index f8ac57a7a9..26ec3abf4b 100644 --- a/src/views/HelpFlows/CommunityModeratorIntro.tsx +++ b/src/views/HelpFlows/CommunityModeratorIntro.tsx @@ -78,7 +78,15 @@ export function CommunityModeratorIntro(): JSX.Element {
{pgettext( "A help message describing a community moderator voting option", - "Use this option if you think a full moderator needs to take a look - if the outcome is not clear to you. This will go straight to the moderator queue.", + "Use this option if you think a full moderator needs to take a look - serious or repeat offenders. This will go straight to the moderator queue.", + )} +
+ + +
+ {pgettext( + "A help message describing the community moderator 'ignore' button", + "If you are unsure about a report, you can ignore it! It will stay in the queue for others to look at.", )}
diff --git a/src/views/ReportsCenter/ViewReport.tsx b/src/views/ReportsCenter/ViewReport.tsx index ee0098f9a5..7a612b5995 100644 --- a/src/views/ReportsCenter/ViewReport.tsx +++ b/src/views/ReportsCenter/ViewReport.tsx @@ -40,6 +40,7 @@ import { openAnnulQueueModal, AnnulQueueModal } from "AnnulQueueModal"; import { ReportTypeSelector } from "./ReportTypeSelector"; import { alert } from "swal_config"; import { ErrorBoundary } from "ErrorBoundary"; +import * as DynamicHelp from "react-dynamic-help"; // Used for saving updates to the report let report_note_id = 0; @@ -73,6 +74,9 @@ export function ViewReport({ report_id, reports, onChange }: ViewReportProps): J const related = report_manager.getRelatedReports(report_id); + const { registerTargetItem } = React.useContext(DynamicHelp.Api); + const { ref: ignore_button } = registerTargetItem("ignore-button"); + React.useEffect(() => { if (report_id) { // For some reason we have to capture the state of the report at the time that report_id goes valid @@ -428,8 +432,9 @@ export function ViewReport({ report_id, reports, onChange }: ViewReportProps): J {!claimed_by_me && (