Skip to content

fix: include custom server modpacks in modpack checks - #8560

Open
coolbot100s wants to merge 1 commit into
mainfrom
coolbot/adjust-tec-rev-msgs
Open

coolbot100s wants to merge 1 commit into
mainfrom
coolbot/adjust-tec-rev-msgs

Conversation

@coolbot100s

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Pull request changelog

App

Added

Changed

Deprecated

Removed

Fixed

Security

Website

Added

Changed

Deprecated

Removed

Fixed

Security

Hosting

Added

Changed

Deprecated

Removed

Fixed

Security

@mergify

mergify Bot commented Dec 5, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

@greptile-apps

greptile-apps Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5RetriggerView in Greptile

[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.

Summary

This PR extends modpack-specific source requests to custom server modpacks.

  • Custom server modpacks get modpack-specific source requests.

Reviews (1) · Last reviewed commit: "fix: include custom server modpacks in m..." · Reviewed by Greptile

section({
shown: ({ projectV3, selected }) =>
projectV3.project_types.includes('modpack') &&
(projectV3.project_types.includes('modpack') || projectHasCustomServerModpack(projectV3)) &&

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 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

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.

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Frontend previews

Last deployed commit is 3b2c5d23d50583933e8bce676e2384a64e85249e

Persistent

Environment URL
staging https://pr-8560.frontend-staging.rinth.dev
production https://pr-8560.frontend.rinth.dev
storybook https://pr-8560-storybook.modrinth.workers.dev

Latest commit

Environment URL
staging https://ba97ef36.frontend-staging.rinth.dev
production https://f8c2e345.frontend.rinth.dev

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants