Skip to content

feat: project review tables - #8541

Open
tdgao wants to merge 3 commits into
mainfrom
truman/project-review-tables
Open

tdgao wants to merge 3 commits into
mainfrom
truman/project-review-tables

Conversation

@tdgao

@tdgao tdgao commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@mergify

mergify Bot commented Dec 2, 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

@github-actions

github-actions Bot commented Dec 2, 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

@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5RetriggerView in Greptile

[Medium impact] The changes affect the project-moderation workflow and its internal queue requests.

The PR appears safe to merge, with non-blocking fixes recommended for paged queue loading and clearing unavailable skipped work.

Summary

Replaces project review cards with a filtered table and adds a queue chooser.

  • Moderators browse review projects in a table with filters and two queue views.
  • Moderators start a review from queue filters or a list of project IDs.
  • Review queues show progress and keep their filters for later.

Reviews (1) · Last reviewed commit: "feat: add project review tables" · Reviewed by Greptile

Comment on lines +86 to +90
const { projects, total } = await this.queryQueue({ ...selection, limit: 200, offset })
for (const project of projects) ids.add(project.id)
offset += projects.length
onProgress?.(ids.size, total)
if (offset >= total) return [...ids]

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 loading can miss projects

getAllQueueProjectIds can miss matching projects while other moderators work through the queue. After the first 200 projects load, removing an earlier project shifts every later position. The next request still uses offset 200, so it skips a project that still needs review. Deduplicating IDs does not recover missing entries. Use a fixed list of IDs or paging that stays stable when earlier projects leave.

Prompt To Fix With AI
This is a comment left during a code review.
Path: packages/api-client/src/modules/labrinth/moderation/internal.ts
Line: 86-90

Comment:
**Queue loading can miss projects**

`getAllQueueProjectIds` can miss matching projects while other moderators work through the queue. After the first 200 projects load, removing an earlier project shifts every later position. The next request still uses offset 200, so it skips a project that still needs review. Deduplicating IDs does not recover missing entries. Use a fixed list of IDs or paging that stays stable when earlier projects leave.

---

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

Comment on lines +543 to +544
const next = await findNextEligibleQueueProject(client, moderationQueue, candidates, true)
if (!next) return null

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 Finished skipped work stays visible

When every skipped project has already been reviewed, reviewSkippedQueue returns without removing any of those IDs. The banner keeps showing them as skipped and offering a review that cannot start. The previous flow removed unavailable IDs after checking them. Clear the unavailable candidates when next is null, while preserving the completed history.

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/frontend/src/pages/moderation/index.vue
Line: 543-544

Comment:
**Finished skipped work stays visible**

When every skipped project has already been reviewed, `reviewSkippedQueue` returns without removing any of those IDs. The banner keeps showing them as skipped and offering a review that cannot start. The previous flow removed unavailable IDs after checking them. Clear the unavailable candidates when `next` is null, while preserving the completed history.

---

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 2, 2026 •

Copy link
Copy Markdown
Contributor

Frontend previews

Last deployed commit is 35bada4778b183a9142d9c59aca6e970775e6ca2

Persistent

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

Latest commit

Environment URL
staging https://64dfedfd.frontend-staging.rinth.dev
production https://2e6b6761.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.

1 participant