Repository navigation
fix: include custom server modpacks in modpack checks - #8560
coolbot100s wants to merge 1 commit into
Conversation
Pull request changelogAppAddedChangedDeprecatedRemovedFixedSecurityWebsiteAddedChangedDeprecatedRemovedFixedSecurityHostingAddedChangedDeprecatedRemovedFixedSecurity |
|
Tick the box to add this pull request to the merge queue (same as
|
Confidence Score: 4/5
[Medium impact] The change reaches the moderation tech-review source-request workflow. The PR appears safe to merge, with a non-blocking empty file picker for custom server modpacks.
|
| section({ | ||
| shown: ({ projectV3, selected }) => | ||
| projectV3.project_types.includes('modpack') && | ||
| (projectV3.project_types.includes('modpack') || projectHasCustomServerModpack(projectV3)) && |
There was a problem hiding this comment.
The newly shown Affected files picker has no options for custom server modpacks. In project.ts, attributionQuery is disabled for every project with minecraft_server, so permissions.groups stays empty. Moderators can still complete the request, but must type every affected file manually. Either load the custom pack’s files or hide the picker when that data is unavailable.
Knowledge Base Used: Shared UI and frontend utilities
Prompt To Fix With AI
This is a comment left during a code review.
Path: packages/moderation/src/data/issues/tech-review.ts
Line: 149
Comment:
**File picker stays empty**
The newly shown `Affected files` picker has no options for custom server modpacks. In `project.ts`, `attributionQuery` is disabled for every project with `minecraft_server`, so `permissions.groups` stays empty. Moderators can still complete the request, but must type every affected file manually. Either load the custom pack’s files or hide the picker when that data is unavailable.
**Knowledge Base Used:** [Shared UI and frontend utilities](https://app.greptile.com/-/switch-tenant?tenant=modrinth&next=%2Fcustom-context%2Fknowledge-base%2Fmodrinth%2Fcode%2F-%2Fdocs%2Fui-and-frontend-utilities.md)
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Frontend previewsLast deployed commit is 3b2c5d23d50583933e8bce676e2384a64e85249e Persistent
Latest commit
|
No description provided.