Skip to content

port moderation to V3 API and use new status fields - #8544

Open
aecsocket wants to merge 9 commits into
mainfrom
boris/status-split-fix
Open

aecsocket wants to merge 9 commits into
mainfrom
boris/status-split-fix

Conversation

@aecsocket

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Dec 3, 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 3, 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 3, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5RetriggerView in Greptile

[High impact] The PR changes how project visibility and moderation state are set across V3 project workflows.

Update the remaining thread-page draft actions before merging; they can report success while leaving a project public.

Summary

Moves moderation decisions and visibility edits to the separate V3 project state fields.

  • V3 project edits separate visibility, review state, and review outcome.
  • Review actions now set moderation outcomes separately from review state.

Reviews (1) · Last reviewed commit: "prepare" · Reviewed by Greptile

Comment on lines 541 to 542
ProjectStatus::Draft => {
self.in_review = Some(false);

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.

P1 Draft action leaves projects public

The thread page still offers “Set to draft” through ConversationThread.vue, which sends status: 'draft'. This branch now only clears in_review. On an approved public project, the request succeeds but leaves the project approved and publicly visible. “Set to draft with reply” instead fails because it sends review_reason without an outcome change.

Remove or replace these remaining actions alongside this API change so moderators cannot mistake a successful request for hiding a project.

Knowledge Base Used: Project and version workflows

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/labrinth/src/routes/v3/projects/mod.rs
Line: 541-542

Comment:
**Draft action leaves projects public**

The thread page still offers “Set to draft” through `ConversationThread.vue`, which sends `status: 'draft'`. This branch now only clears `in_review`. On an approved public project, the request succeeds but leaves the project approved and publicly visible. “Set to draft with reply” instead fails because it sends `review_reason` without an outcome change.

Remove or replace these remaining actions alongside this API change so moderators cannot mistake a successful request for hiding a project.

**Knowledge Base Used:** [Project and version workflows](https://app.greptile.com/-/switch-tenant?tenant=modrinth&next=%2Fcustom-context%2Fknowledge-base%2Fmodrinth%2Fcode%2F-%2Fdocs%2Fbackend-project-version-workflows.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 3, 2026 •

Copy link
Copy Markdown
Contributor

Frontend previews

Last deployed commit is 25ef31b863f84ac20b0bb42cbc349e34831c1031

Persistent

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

Latest commit

Environment URL
staging https://116c51bc.frontend-staging.rinth.dev
production https://4a9e13bb.frontend.rinth.dev

@tdgao tdgao left a comment

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.

frontend lgtm

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