diff --git a/packages/moderation/src/data/checklist.ts b/packages/moderation/src/data/checklist.ts index 5fa75520c..712fc7045 100644 --- a/packages/moderation/src/data/checklist.ts +++ b/packages/moderation/src/data/checklist.ts @@ -5,6 +5,7 @@ import description from './stages/description' import gallery from './stages/gallery' import license from './stages/license' import links from './stages/links' +import postApproval from './stages/post-approval' import reupload from './stages/reupload' import ruleFollowing from './stages/rule-following' import sideTypes from './stages/side-types' @@ -29,4 +30,5 @@ export default [ modpackPermissionsStage, statusAlerts, undefinedProject, + postApproval, ] as ReadonlyArray diff --git a/packages/moderation/src/data/messages/misc-metadata/dependancies.md b/packages/moderation/src/data/messages/misc-metadata/dependancies.md new file mode 100644 index 000000000..5805fe6d3 --- /dev/null +++ b/packages/moderation/src/data/messages/misc-metadata/dependancies.md @@ -0,0 +1,3 @@ +## Missing Dependencies + +Since your project may require [%DEPENDENCY_NAME%](%DEPENDENCY_LINK%), please ensure that it and any other relevant dependencies are included in the Dependencies section for all applicable %PROJECT_VERSIONS_FLINK%. diff --git a/packages/moderation/src/data/messages/misc-metadata/inconsistent-license.md b/packages/moderation/src/data/messages/misc-metadata/inconsistent-license.md new file mode 100644 index 000000000..323ee54d1 --- /dev/null +++ b/packages/moderation/src/data/messages/misc-metadata/inconsistent-license.md @@ -0,0 +1,4 @@ +## Inconsistent Licensing + +Your project's files, source, or listings outside of Modrinth may list licensing information that does not match your %PROJECT_LICENSE_FLINK% settings. +We strongly encourage you to ensure your licensing is listed consistently anywhere your project can be found, and your licensing on Modrinth should match any in-file licensing. diff --git a/packages/moderation/src/data/messages/misc-metadata/loaders.md b/packages/moderation/src/data/messages/misc-metadata/loaders.md new file mode 100644 index 000000000..dda29e0a9 --- /dev/null +++ b/packages/moderation/src/data/messages/misc-metadata/loaders.md @@ -0,0 +1,6 @@ +## Supported Loaders + +Some %PROJECT_VERSIONS_FLINK% of your project may be labeled with loaders that are not properly supported. +Please ensure that your project's supported loaders are listed accurately for all %PROJECT_VERSIONS_FLINK%. + +%SPECIFICS% diff --git a/packages/moderation/src/data/messages/misc-metadata/mc-versions.md b/packages/moderation/src/data/messages/misc-metadata/mc-versions.md new file mode 100644 index 000000000..2280515c7 --- /dev/null +++ b/packages/moderation/src/data/messages/misc-metadata/mc-versions.md @@ -0,0 +1,6 @@ +## Supported Minecraft Versions + +Some %PROJECT_VERSIONS_FLINK% of your project may be labeled with Game Versions that are not properly supported. +Please ensure that your project's supported Game Versions are listed accurately for all %PROJECT_VERSIONS_FLINK%. + +%SPECIFICS% diff --git a/packages/moderation/src/data/messages/post-approval/issue-warning.md b/packages/moderation/src/data/messages/post-approval/issue-warning.md new file mode 100644 index 000000000..197204337 --- /dev/null +++ b/packages/moderation/src/data/messages/post-approval/issue-warning.md @@ -0,0 +1,5 @@ +--- + +Please note that failure to address these concerns in a timely manner may result in this project being temporarily or permanently unlisted or removed by moderation.
+If you believe the above notice has been issued in error or with incorrect information, feel free to send a message in this moderation thread letting us know.
+If you have other questions or need additional assistance, %SUPPORT% diff --git a/packages/moderation/src/data/messages/post-approval/metadata-issue.md b/packages/moderation/src/data/messages/post-approval/metadata-issue.md new file mode 100644 index 000000000..bcb9ecc59 --- /dev/null +++ b/packages/moderation/src/data/messages/post-approval/metadata-issue.md @@ -0,0 +1,5 @@ +## Incorrect Metadata + +Unfortunately, it has come to our attention that there may be issues with your project that require attention. + +Some information may be incorrect, per section 5.1 of %RULES% it's important that all project metadata be accurate to ensure the best experience for all modrinth users. diff --git a/packages/moderation/src/data/messages/post-approval/missed-deadline.md b/packages/moderation/src/data/messages/post-approval/missed-deadline.md new file mode 100644 index 000000000..e8b6af129 --- /dev/null +++ b/packages/moderation/src/data/messages/post-approval/missed-deadline.md @@ -0,0 +1,2 @@ +In accordance with the above notice, this project will be temporarily %STATUS%.
+We ask that you resubmit this project once all moderation concerns have been addressed. diff --git a/packages/moderation/src/data/messages/reports/action-taken.md b/packages/moderation/src/data/messages/reports/action-taken.md new file mode 100644 index 000000000..8400e686b --- /dev/null +++ b/packages/moderation/src/data/messages/reports/action-taken.md @@ -0,0 +1,3 @@ +Thank you for your report. + +After additional verification, we have taken this project down from Modrinth accordingly. diff --git a/packages/moderation/src/data/messages/reports/antivirus.md b/packages/moderation/src/data/messages/reports/antivirus.md index 338dd8d6f..6744b555a 100644 --- a/packages/moderation/src/data/messages/reports/antivirus.md +++ b/packages/moderation/src/data/messages/reports/antivirus.md @@ -1,3 +1,3 @@ -Unfortunately, anti-virus software has consistently been found to be an unreliable tool for Minecraft mods. +Unfortunately, anti-virus software has consistently been found to be an unreliable tool for Minecraft content. -If you have evidence of malicious activity concerning a specific mod, or of malicious code decompiled from a mod on Modrinth, please create a new Report and provide the required details, thank you. +If you have evidence of malicious activity concerning a specific project, or of malicious code decompiled from a project on Modrinth, please create a new report and provide the required details, thank you. diff --git a/packages/moderation/src/data/messages/reports/author-alerted.md b/packages/moderation/src/data/messages/reports/author-alerted.md new file mode 100644 index 000000000..a638b3632 --- /dev/null +++ b/packages/moderation/src/data/messages/reports/author-alerted.md @@ -0,0 +1,3 @@ +Thank you for your report. + +We have alerted the creator(s) to this issue and asked them to ensure full compliance with [Modrinth's Content Rules](https://modrinth.com/legal/rules). diff --git a/packages/moderation/src/data/messages/reports/confirmed-malware.md b/packages/moderation/src/data/messages/reports/confirmed-malware.md deleted file mode 100644 index 5f7cc2a51..000000000 --- a/packages/moderation/src/data/messages/reports/confirmed-malware.md +++ /dev/null @@ -1,3 +0,0 @@ -Thank you for your report. - -This project was confirmed to be malicious after a detailed investigation. Luckily, thanks to your report and quick action from our team, we have reason to believe this did not impact a significant amount of users and we have taken precautions to prevent this malicious code from appearing on Modrinth again. diff --git a/packages/moderation/src/data/messages/reports/functionality-disclosed.md b/packages/moderation/src/data/messages/reports/functionality-disclosed.md new file mode 100644 index 000000000..0837af0cd --- /dev/null +++ b/packages/moderation/src/data/messages/reports/functionality-disclosed.md @@ -0,0 +1,3 @@ +Upon review, this project appears to accurately and fully disclose its potentially hazardous features, and we believe no action is necessary at this time. + +If you have reason to believe a project on Modrinth may include undisclosed and potentially hazardous functionality, we ask that you create a new report with significant evidence of malicious activity or of malicious code from the decompiled project. diff --git a/packages/moderation/src/data/messages/reports/gameplay-issue.md b/packages/moderation/src/data/messages/reports/gameplay-issue.md index ee0c9dd99..fd78b8bfa 100644 --- a/packages/moderation/src/data/messages/reports/gameplay-issue.md +++ b/packages/moderation/src/data/messages/reports/gameplay-issue.md @@ -2,5 +2,5 @@ Unfortunately, the Moderation team is unable to assist with your issue. The reporting system is exclusively for reporting issues to Moderation staff; only violations of [Modrinth's Content Rules](https://modrinth.com/legal/rules) should be reported. The members of the project you're reporting do not see that you have submitted a report. -If you are having issues with crashes, please check out [our FAQ section](https://support.modrinth.com/aen/articles/8792916) to learn how to diagnose and fix crashes. +If you are having issues with crashes, please check out our helpful guide to [Debugging Minecraft Crashes](https://support.modrinth.com/aen/articles/8792916) to learn how to diagnose and fix crashes. For other project-specific issues consider asking the project's own community, check for a Discord or Issues link on the project page. diff --git a/packages/moderation/src/data/messages/reports/metadata-corrected.md b/packages/moderation/src/data/messages/reports/metadata-corrected.md new file mode 100644 index 000000000..5ee92e612 --- /dev/null +++ b/packages/moderation/src/data/messages/reports/metadata-corrected.md @@ -0,0 +1,3 @@ +Thank you for your report. + +After additional verification we have alerted the creator(s) and corrected the mislabeled information. diff --git a/packages/moderation/src/data/messages/reports/metadata-insufficient.md b/packages/moderation/src/data/messages/reports/metadata-insufficient.md new file mode 100644 index 000000000..e6f458d90 --- /dev/null +++ b/packages/moderation/src/data/messages/reports/metadata-insufficient.md @@ -0,0 +1,3 @@ +Upon review, this project's metadata appears to be reasonably accurate. + +If you have reason to believe this project's information may be mislabeled in some way which makes its use or compatibility with Modrinth services needlessly inconvenient, or that this project has been intentionally mislabeled, or otherwise violates [Modrinth's Content Rules](https://modrinth.com/legal/rules) we ask that you create a new report and provide the relevant information, thank you. diff --git a/packages/moderation/src/data/messages/reports/not-a-hack.md b/packages/moderation/src/data/messages/reports/not-a-hack.md new file mode 100644 index 000000000..ce4bd3ba8 --- /dev/null +++ b/packages/moderation/src/data/messages/reports/not-a-hack.md @@ -0,0 +1,4 @@ +Thank you for your report, we understand your concerns. + +Currently, Modrinth does not prohibit "%TERM%" style mods or consider these to de facto violate section 3 of [Modrinth's Content Rules](https://modrinth.com/legal/rules) due to their considerable legitimate use-cases. +If you have reason to believe a project on Modrinth is intentionally enabling or promoting cheating, we ask that you create a new report and provide sufficient evidence. diff --git a/packages/moderation/src/data/messages/reports/platform-issue.md b/packages/moderation/src/data/messages/reports/platform-issue.md index a6bcd943d..62258dcfd 100644 --- a/packages/moderation/src/data/messages/reports/platform-issue.md +++ b/packages/moderation/src/data/messages/reports/platform-issue.md @@ -2,4 +2,4 @@ Unfortunately, the Moderation team is unable to assist with your issue. The reporting system is exclusively for reporting issues to Moderation staff; only violations of [Modrinth's Content Rules](https://modrinth.com/legal/rules) should be reported. -Please reach out to the [Modrinth Help Center](https://support.modrinth.com/) so we can better assist you and bring up your concerns with our platform tean, +Please visit the [Modrinth Help Center](https://support.modrinth.com/) and click the green bubble to contact support so our support agents can better assist you. diff --git a/packages/moderation/src/data/messages/reports/reupload-insufficient.md b/packages/moderation/src/data/messages/reports/reupload-insufficient.md new file mode 100644 index 000000000..580e7b92f --- /dev/null +++ b/packages/moderation/src/data/messages/reports/reupload-insufficient.md @@ -0,0 +1,11 @@ +If you have reason to believe that a project on Modrinth is reuploading code or assets without permission, or otherwise violating section 4 of [Modrinth's Content Rules](https://modrinth.com/legal/rules), we ask that you create a new report and provide the necessary details for our Moderation team to take any applicable actions. + +We ask that you provide examples of identical or significantly derived code or assets likely to have been copied from an original work. +Be sure to include: + +- A link to the original work and its licensing, if available. +- The relative file path of the identical class(es) or asset(s) for the infringing and source work. +- Explanation of a reasonable belief that this content is copied from the provided source work, and not likely to have mutually originated or derived from another source. + +Keep in mind that our Moderation team only enforces [Modrinth's Content Rules](https://modrinth.com/legal/rules) and can not arbitrate copyright disputes. +For more information, please read our [Copyright Policy](https://modrinth.com/legal/copyright). diff --git a/packages/moderation/src/data/messages/reports/spam.md b/packages/moderation/src/data/messages/reports/spam.md index 876dda2bd..75911f2b1 100644 --- a/packages/moderation/src/data/messages/reports/spam.md +++ b/packages/moderation/src/data/messages/reports/spam.md @@ -1,3 +1,3 @@ The reporting system is exclusively for reporting issues to Modrinth staff; only violations of [Modrinth's Content Rules](https://modrinth.com/legal/rules) should be reported. The members of the project you're reporting do not see that you have submitted a report. -Please ensure you are using the Reports system appropriately, repeated misuse may result in account suspension. +Please ensure you are using the reporting system appropriately, repeated misuse may result in account suspension. diff --git a/packages/moderation/src/data/messages/reports/stale.md b/packages/moderation/src/data/messages/reports/stale.md index cc21f5f18..dc2cb3cc9 100644 --- a/packages/moderation/src/data/messages/reports/stale.md +++ b/packages/moderation/src/data/messages/reports/stale.md @@ -1,3 +1,3 @@ -We haven't received a response in some time, so we're closing this report thread. +We haven't received a response in some time, so this report thread is being closed. If you have additional information to share we ask that you create a new report. diff --git a/packages/moderation/src/data/messages/reports/suspected-ai.md b/packages/moderation/src/data/messages/reports/suspected-ai.md new file mode 100644 index 000000000..54f2f19f7 --- /dev/null +++ b/packages/moderation/src/data/messages/reports/suspected-ai.md @@ -0,0 +1,4 @@ +Thank you for your report, we understand your concerns. + +At this time, Modrinth does not prohibit the use of any specific tool, including AI tools, in the creation of project pages or content on Modrinth. +If you have reason to believe that this project does not or cannot function as advertised, may be intentionally misleading, or otherwise violates [Modrinth's Content Rules](https://modrinth.com/legal/rules) please create a new report with the relevant evidence. diff --git a/packages/moderation/src/data/messages/side-types/inaccurate-mod.md b/packages/moderation/src/data/messages/side-types/inaccurate-mod.md index be1be391a..408450436 100644 --- a/packages/moderation/src/data/messages/side-types/inaccurate-mod.md +++ b/packages/moderation/src/data/messages/side-types/inaccurate-mod.md @@ -1,9 +1,5 @@ -## Environment Information +## Environment Metadata -Per section 5.1 of %RULES%, it is important that the metadata of your projects is accurate, including whether the project runs on the client or server side. +Per section 5.1 of %RULES%, it is important that the metadata of your projects is accurate, including %PROJECT_ENVIRONMENT_FLINK%. -For a brief rundown of how this works: - -- **Client side** refers to a mod that is only required by the client, like [Sodium](https://modrinth.com/mod/sodium). -- **Server side** mods change the behavior of the server without the client needing the mod, like Datapacks, recipes, or server-side behaviors, like [Falling Tree](https://modrinth.com/mod/fallingtree). -- A mod that adds features, entities, or new blocks and items, generally will be required on **both** the server and the client, for example [Cobblemon](https://modrinth.com/mod/cobblemon). +We've recently overhauled how environment metadata works on Modrinth, please [Read this blogpost](%NEW_ENVIRONMENTS_LINK%) for full details and information on how to ensure your project is labeled correctly. diff --git a/packages/moderation/src/data/messages/side-types/inaccurate-modpack.md b/packages/moderation/src/data/messages/side-types/inaccurate-modpack.md index 2c66bdec3..408450436 100644 --- a/packages/moderation/src/data/messages/side-types/inaccurate-modpack.md +++ b/packages/moderation/src/data/messages/side-types/inaccurate-modpack.md @@ -1,10 +1,5 @@ -## Incorrect Environment Information +## Environment Metadata -Per section 5.1 of %RULES%, it is important that the metadata of your projects is accurate, including whether the project runs on the client or server side. +Per section 5.1 of %RULES%, it is important that the metadata of your projects is accurate, including %PROJECT_ENVIRONMENT_FLINK%. -For a brief rundown of how this works: - -- Some modpacks can be client-side, usually aimed at providing utility and optimization while allowing the player to join an unmodded server, for instance, [Fabulously Optimized](https://modrinth.com/project/1KVo5zza). -- Most other modpacks that change how the game is played are going to be required on both the client and server, like the modpack [Aged](https://modrinth.com/project/i4XHCd7Q). - -When in doubt, test for yourself or check the requirements of the mods in your pack. +We've recently overhauled how environment metadata works on Modrinth, please [Read this blogpost](%NEW_ENVIRONMENTS_LINK%) for full details and information on how to ensure your project is labeled correctly. diff --git a/packages/moderation/src/data/messages/status-alerts/fixed-approved.md b/packages/moderation/src/data/messages/status-alerts/fixed-approved.md new file mode 100644 index 000000000..e278db95c --- /dev/null +++ b/packages/moderation/src/data/messages/status-alerts/fixed-approved.md @@ -0,0 +1,4 @@ +## Corrections Applied + +These have been corrected by our Moderation Team so your project can remain Approved, be sure to read and understand each issue listed below to ensure a smooth review for your next submission. +If you have further questions, %SUPPORT% diff --git a/packages/moderation/src/data/messages/status-alerts/fixed.md b/packages/moderation/src/data/messages/status-alerts/fixed.md index 1300fd7be..472e6b37c 100644 --- a/packages/moderation/src/data/messages/status-alerts/fixed.md +++ b/packages/moderation/src/data/messages/status-alerts/fixed.md @@ -1,4 +1,4 @@ ## Corrections Applied -Your submission contained some issues which may have prevented your project from being published. +Your submission contained some issues that may have prevented your project from being published. These have been corrected by our Moderation Team so your project can be Approved, be sure to read and understand each issue listed below to ensure a smooth review for your next submission. diff --git a/packages/moderation/src/data/nags/core.ts b/packages/moderation/src/data/nags/core.ts index c1f449ca2..32efbce28 100644 --- a/packages/moderation/src/data/nags/core.ts +++ b/packages/moderation/src/data/nags/core.ts @@ -232,7 +232,7 @@ export const coreNags: Nag[] = [ return formatMessage( defineMessage({ id: 'nags.select-environments.description', - defaultMessage: `Select whether the {projectType} functions on the client and/or server-side.`, + defaultMessage: `Select the environments your {projectType} functions on.`, }), { projectType: formatProjectType(context.project.project_type).toLowerCase(), diff --git a/packages/moderation/src/data/report-quick-replies.ts b/packages/moderation/src/data/report-quick-replies.ts index b2c935bf3..d8847f4cd 100644 --- a/packages/moderation/src/data/report-quick-replies.ts +++ b/packages/moderation/src/data/report-quick-replies.ts @@ -2,33 +2,69 @@ import type { ReportQuickReply } from '../types/reports' export default [ { - label: 'Antivirus', - message: async () => (await import('./messages/reports/antivirus.md?raw')).default, + label: '✅⚖️ Action Taken', + message: async () => (await import('./messages/reports/action-taken.md?raw')).default, private: false, }, { - label: 'Spam', + label: '✅⚠️ Author Alerted', + message: async () => (await import('./messages/reports/author-alerted.md?raw')).default, + private: false, + }, + { + label: '✅🏷️ Metadata Corrected', + message: async () => (await import('./messages/reports/metadata-corrected.md?raw')).default, + private: false, + }, + { + label: '❌🏷️ Metadata Insufficient', + message: async () => (await import('./messages/reports/metadata-insufficient.md?raw')).default, + private: false, + }, + { + label: '❌📤 Reupload Insufficient', + message: async () => (await import('./messages/reports/reupload-insufficient.md?raw')).default, + private: false, + }, + { + label: '❌🏳️‍🌈 Spam', message: async () => (await import('./messages/reports/spam.md?raw')).default, private: false, }, { - label: 'Gameplay Issue', + label: '❌🛡️ Antivirus', + message: async () => (await import('./messages/reports/antivirus.md?raw')).default, + private: false, + }, + { + label: '❌👻 Functionality Disclosed', + message: async () => + (await import('./messages/reports/functionality-disclosed.md?raw')).default, + private: false, + }, + { + label: '❌🤖 Suspected AI', + message: async () => (await import('./messages/reports/suspected-ai.md?raw')).default, + private: false, + }, + { + label: '❌👩‍💻 Not a Hack', + message: async () => (await import('./messages/reports/not-a-hack.md?raw')).default, + private: false, + }, + { + label: '❌🕹️ Gameplay Issue', message: async () => (await import('./messages/reports/gameplay-issue.md?raw')).default, private: false, }, { - label: 'Platform Issue', + label: '❌🎧 Platform Issue', message: async () => (await import('./messages/reports/platform-issue.md?raw')).default, private: false, }, { - label: 'Stale', + label: '❌🪦 Stale', message: async () => (await import('./messages/reports/stale.md?raw')).default, private: false, }, - { - label: 'Confirmed Malware', - message: async () => (await import('./messages/reports/confirmed-malware.md?raw')).default, - private: false, - }, ] as ReadonlyArray diff --git a/packages/moderation/src/data/stages/post-approval.ts b/packages/moderation/src/data/stages/post-approval.ts new file mode 100644 index 000000000..efeecaaad --- /dev/null +++ b/packages/moderation/src/data/stages/post-approval.ts @@ -0,0 +1,117 @@ +import { ScaleIcon } from '@modrinth/assets' + +import type { ButtonAction } from '../../types/actions' +import type { Stage } from '../../types/stage' + +const postApproval: Stage = { + title: 'Issue warnings, notices, or takedowns?', + id: 'post-approval', + icon: ScaleIcon, + guidance_url: 'https://modrinth.com/legal/rules', + shouldShow: (project) => project.status === 'approved', + actions: [ + { + id: 'issue_warning', + type: 'button', + label: 'Issue warning', + weight: 3000, + suggestedStatus: 'approved', + severity: 'low', + message: async () => (await import('../messages/post-approval/issue-warning.md?raw')).default, + }, + { + id: 'missed_deadline', + type: 'button', + label: 'Missed due date', + weight: -999, + suggestedStatus: 'flagged', + severity: 'high', + message: async () => + (await import('../messages/post-approval/missed-deadline.md?raw')).default, + disablesActions: ['issue_warning', 'metadata_issue'], + relevantExtraInput: [ + { + label: 'What status is the project being set to?', + variable: 'STATUS', + required: true, + }, + ], + }, + { + id: 'metadata_issue', + type: 'button', + label: 'Incorrect metadata', + weight: 0, + suggestedStatus: 'approved', + severity: 'low', + message: async () => (await import('../messages/gallery/insufficient.md?raw')).default, + enablesActions: [ + { + id: 'dependencies', + type: 'button', + label: 'Missing Dependencies', + weight: 1, + severity: 'low', + message: async () => + (await import('../messages/misc-metadata/dependancies.md?raw')).default, + relevantExtraInput: [ + { + label: 'Dependency Name', + variable: 'DEPENDENCY_NAME', + required: true, + }, + { + label: 'Dependency Link', + variable: 'DEPENDENCY_LINK', + required: true, + }, + ], + }, + { + id: 'mc_versions', + type: 'button', + label: 'Game versions', + weight: 2, + severity: 'low', + message: async () => + (await import('../messages/misc-metadata/mc-versions.md?raw')).default, + relevantExtraInput: [ + { + label: 'Provide more details about game versions issue?', + variable: 'SPECIFICS', + required: false, + large: true, + }, + ], + }, + { + id: 'loaders', + type: 'button', + label: 'Loaders', + weight: 3, + severity: 'low', + message: async () => (await import('../messages/misc-metadata/loaders.md?raw')).default, + relevantExtraInput: [ + { + label: 'Provide more details about loaders issue?', + variable: 'SPECIFICS', + required: false, + large: true, + }, + ], + }, + { + id: 'license', + type: 'button', + label: 'Inconsistent Licensing', + weight: 4, + severity: 'low', + message: async () => + (await import('../messages/misc-metadata/inconsistent-license.md?raw')).default, + }, + ], + } as ButtonAction, + ], +} + +export default postApproval diff --git a/packages/moderation/src/data/stages/side-types.ts b/packages/moderation/src/data/stages/side-types.ts index c841e8eb9..8d43b8042 100644 --- a/packages/moderation/src/data/stages/side-types.ts +++ b/packages/moderation/src/data/stages/side-types.ts @@ -8,7 +8,7 @@ const sideTypes: Stage = { id: 'environment', icon: GlobeIcon, guidance_url: 'https://modrinth.com/legal/rules#miscellaneous', - navigate: '/settings', + navigate: '/settings/environment', text: async () => (await import('../messages/checklist-text/side_types.md?raw')).default, actions: [ { diff --git a/packages/moderation/src/data/stages/status-alerts.ts b/packages/moderation/src/data/stages/status-alerts.ts index f238cc08d..2a6336c2d 100644 --- a/packages/moderation/src/data/stages/status-alerts.ts +++ b/packages/moderation/src/data/stages/status-alerts.ts @@ -19,8 +19,20 @@ const statusAlerts: Stage = { weight: -999999, suggestedStatus: 'approved', disablesActions: ['status_private_use', 'status_account_issues'], + shouldShow: (project) => project.status !== 'approved', message: async () => (await import('../messages/status-alerts/fixed.md?raw')).default, } as ButtonAction, + { + id: 'status_corrections_applied-approved', + type: 'button', + label: 'Corrections applied', + weight: -999999, + suggestedStatus: 'approved', + disablesActions: ['status_private_use', 'status_account_issues'], + shouldShow: (project) => project.status === 'approved', + message: async () => + (await import('../messages/status-alerts/fixed-approved.md?raw')).default, + } as ButtonAction, { id: 'status_private_use', type: 'button', diff --git a/packages/moderation/src/locales/en-US/index.json b/packages/moderation/src/locales/en-US/index.json index a0c9c4b84..64af46a5a 100644 --- a/packages/moderation/src/locales/en-US/index.json +++ b/packages/moderation/src/locales/en-US/index.json @@ -123,7 +123,7 @@ "defaultMessage": "Select correct resolution" }, "nags.select-environments.description": { - "defaultMessage": "Select whether the {projectType} functions on the client and/or server-side." + "defaultMessage": "Select the environments your {projectType} functions on." }, "nags.select-environments.title": { "defaultMessage": "Select environments" diff --git a/packages/moderation/src/utils.ts b/packages/moderation/src/utils.ts index b426da997..1cdc56427 100644 --- a/packages/moderation/src/utils.ts +++ b/packages/moderation/src/utils.ts @@ -313,6 +313,7 @@ export function flattenProjectVariables(project: Project): Record