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.
This commit is contained in:
coolbot 2025-07-17 21:32:31 -08:00 committed by GitHub
parent 0c3e23db96
commit 936395484e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,5 @@
## No English Description ## 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).

View File

@ -50,6 +50,8 @@ const statusAlerts: Stage = {
project.project_type === 'mod' || project.project_type === 'mod' ||
project.project_type === 'shader' || project.project_type === 'shader' ||
project.project_type.toString() === 'plugin', project.project_type.toString() === 'plugin',
weight: -999999,
message: async () => '',
enablesActions: [ enablesActions: [
{ {
id: 'status_tec_source_request_options', id: 'status_tec_source_request_options',

View File

@ -25,6 +25,8 @@ const versions: Stage = {
label: 'Incorrect Project Type', label: 'Incorrect Project Type',
suggestedStatus: 'rejected', suggestedStatus: 'rejected',
severity: 'medium', severity: 'medium',
weight: -999999,
message: async () => '',
enablesActions: [ enablesActions: [
{ {
id: 'versions_incorrect_project_type_options', id: 'versions_incorrect_project_type_options',
@ -62,6 +64,8 @@ const versions: Stage = {
label: 'Alternate Versions', label: 'Alternate Versions',
suggestedStatus: 'flagged', suggestedStatus: 'flagged',
severity: 'medium', severity: 'medium',
weight: -999999,
message: async () => '',
enablesActions: [ enablesActions: [
{ {
id: 'versions_incorrect_project_type_options', id: 'versions_incorrect_project_type_options',