From 936395484e7a6653da228bbdfffba64f773d5257 Mon Sep 17 00:00:00 2001 From: coolbot <76798835+coolbot100s@users.noreply.github.com> Date: Thu, 17 Jul 2025 21:32:31 -0800 Subject: [PATCH] fix: status alerts and version buttons no longer cause a failed to generate error. (#4017) * add empty message to actions with no message, fixing broken message generation. * fix typo in 2.2 / description message. --- packages/moderation/data/messages/description/non-english.md | 4 ++-- packages/moderation/data/stages/status-alerts.ts | 2 ++ packages/moderation/data/stages/versions.ts | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/moderation/data/messages/description/non-english.md b/packages/moderation/data/messages/description/non-english.md index 5ceb22ad..06ba8514 100644 --- a/packages/moderation/data/messages/description/non-english.md +++ b/packages/moderation/data/messages/description/non-english.md @@ -1,5 +1,5 @@ ## No English Description -Per section 2.2 of %RULES% a project's Summary and Description must be in English, unless meant exclusively for non-English use, such as translations. +Per section 2.2 of %RULES% a project's [Summary](%PROJECT_SETTINGS_LINK%) and %PROJECT_DESCRIPTION_FLINK% must be in English, unless meant exclusively for non-English use, such as translations. -You may include your non-English Description if you would like but we ask that you also add an English translation of the Description to your Description page, if you would like to use an online translator to do this, we recommend [DeepL](https://www.deepl.com/translator). +You may include your non-English Description if you would like but we ask that you also add an English translation of the Description to your project page, if you would like to use an online translator to do this, we recommend [DeepL](https://www.deepl.com/translator). diff --git a/packages/moderation/data/stages/status-alerts.ts b/packages/moderation/data/stages/status-alerts.ts index 628c0847..6c8dbc53 100644 --- a/packages/moderation/data/stages/status-alerts.ts +++ b/packages/moderation/data/stages/status-alerts.ts @@ -50,6 +50,8 @@ const statusAlerts: Stage = { project.project_type === 'mod' || project.project_type === 'shader' || project.project_type.toString() === 'plugin', + weight: -999999, + message: async () => '', enablesActions: [ { id: 'status_tec_source_request_options', diff --git a/packages/moderation/data/stages/versions.ts b/packages/moderation/data/stages/versions.ts index 8e31873b..951ac287 100644 --- a/packages/moderation/data/stages/versions.ts +++ b/packages/moderation/data/stages/versions.ts @@ -25,6 +25,8 @@ const versions: Stage = { label: 'Incorrect Project Type', suggestedStatus: 'rejected', severity: 'medium', + weight: -999999, + message: async () => '', enablesActions: [ { id: 'versions_incorrect_project_type_options', @@ -62,6 +64,8 @@ const versions: Stage = { label: 'Alternate Versions', suggestedStatus: 'flagged', severity: 'medium', + weight: -999999, + message: async () => '', enablesActions: [ { id: 'versions_incorrect_project_type_options',