Skip to content

Commit 034fd06

Browse files
authored
fix: make insufficient gallery images checklist item always show (#3692)
* fix(moderation): make insufficient gallery images checklist item always show * fix(moderation): Make gallery ordering more consistent
1 parent 49aac6b commit 034fd06

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

apps/frontend/src/components/ui/ModerationChecklist.vue

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,9 @@
256256
</p>
257257
<div class="options input-group">
258258
<button
259-
v-for="(option, index) in steps[currentStepIndex].options"
259+
v-for="(option, index) in steps[currentStepIndex].options.filter(
260+
(x) => x.shown !== false,
261+
)"
260262
:key="index"
261263
class="btn"
262264
:class="{
@@ -646,23 +648,24 @@ For a brief rundown of how this works:
646648
{
647649
id: "gallery",
648650
navigate: `/${props.project.project_type}/${props.project.slug}/gallery`,
649-
question: `Are the project's gallery images relevant?`,
650-
shown: props.project.gallery.length > 0,
651+
question: `Are this project's gallery images sufficient?`,
652+
shown: true,
651653
options: [
654+
{
655+
name: "Insufficient",
656+
resultingMessage: `## Insufficient Gallery Images
657+
We ask that projects like yours show off their content using images in the Gallery, or optionally in the Description, in order to effectively and clearly inform users of its content per section 2.1 of [Modrinth's content rules](https://modrinth.com/legal/rules#general-expectations).
658+
Keep in mind that you should:
659+
- Set a featured image that best represents your project.
660+
- Ensure all your images have titles that accurately label the image, and optionally, details on the contents of the image in the images Description.
661+
- Upload any relevant images in your Description to your Gallery tab for best results.`,
662+
},
652663
{
653664
name: "Not relevant",
665+
shown: props.project.gallery.length > 0,
654666
resultingMessage: `## Unrelated Gallery Images
655667
Per section 5.5 of [Modrinth's Content Rules](https://modrinth.com/legal/rules#miscellaneous) any images in your project's Gallery must be relevant to the project and also include a Title.`,
656668
},
657-
{
658-
name: "Insufficient images",
659-
resultingMessage: `## Insufficient Gallery Images
660-
We ask that projects like yours show off their content using images in the Gallery, or optionally in the Description, in order to effectively and clearly inform users of its content per section 2.1 of [Modrinth's content rules](https://modrinth.com/legal/rules#general-expectations).
661-
Keep in mind that you should:
662-
- Set a featured image that best represents your project.
663-
- Ensure all your images have titles that accurately label the image, and optionally, details on the contents of the image in the images Description.
664-
- Upload any relevant images in your Description to your Gallery tab for best results.`,
665-
},
666669
],
667670
},
668671
{

0 commit comments

Comments
 (0)