Skip to content

split project visibility and review status (attempt 2) - #8393

Merged
aecsocket merged 18 commits into
mainfrom
boris/project-status-split-2
Nov 20, 2026
Merged

aecsocket merged 18 commits into
mainfrom
boris/project-status-split-2

Conversation

@aecsocket

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

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 Nov 19, 2026 •

Copy link
Copy Markdown

This pull request is merged.

@greptile-apps

greptile-apps Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[High impact] The PR appears safe to merge, with a non-blocking queue-card type fix remaining.

Summary

This PR separates project visibility from review state and records project history.

  • Projects keep visibility separate from their moderation state.
  • Moderators can read an ordered history of project changes.

aecsocket accepted missing or stale SQLx query-cache data because CI checks those failures.

Reviews (3) · Last reviewed commit: "rename listed -> public" · Reviewed by Greptile

Comment thread apps/labrinth/src/routes/v2/projects.rs Resolved
Comment thread packages/ui/src/utils/project-state.ts Resolved
Comment thread apps/labrinth/src/models/v2/projects.rs Resolved
Comment thread apps/labrinth/src/models/v3/projects.rs Resolved
<Badge :type="queueEntry.project.requested_status" class="text-sm" />
<Badge
:type="
queueEntry.project.visibility === 'listed' ? 'approved' : queueEntry.project.visibility

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 Queue card has type errors. queueEntry.project gets its type from Labrinth.Moderation.Internal.QueueProject, which still declares status and requested_status but no visibility. Both new accesses therefore produce missing-property errors when Vue checks this component. Update the shared queue type to match the server response alongside this consumer.

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/frontend/src/components/ui/moderation/ModerationQueueCard.vue
Line: 46

Comment:
**Queue card has type errors.** `queueEntry.project` gets its type from `Labrinth.Moderation.Internal.QueueProject`, which still declares `status` and `requested_status` but no `visibility`. Both new accesses therefore produce missing-property errors when Vue checks this component. Update the shared queue type to match the server response alongside this consumer.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Frontend previews

Last deployed commit is fad2a0d48b66a8537412f5b09d611d45503c9474

Persistent

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

Latest commit

Environment URL
staging https://9fbb1a95.frontend-staging.rinth.dev
production https://55b5f8f2.frontend.rinth.dev

@aecsocket
aecsocket merged commit ff9405c into main Nov 20, 2026
15 checks passed
@aecsocket
aecsocket deleted the boris/project-status-split-2 branch November 20, 2026 13:24
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