Skip to content

fix: review leaderboard total didn't account for rejected/returned reviews - #75

Merged
EDRipper merged 1 commit into
mainfrom
fix-review-leaderboard-total
Jul 31, 2026
Merged

fix: review leaderboard total didn't account for rejected/returned reviews#75
EDRipper merged 1 commit into
mainfrom
fix-review-leaderboard-total

Conversation

@EDRipper

Copy link
Copy Markdown
Collaborator

Summary

  • the review leaderboard's total column was already COUNT(*) over every project_reviews row, but the table only broke that out into approved / changes_needed / banned, so rejected and returned (a first-pass approval overturned at second-pass audit) rows were silently folded into total with no visible column
  • backend: getReviewLeaderboard in backend/src/admin/admin.service.ts now also counts rejected and returned
  • frontend: leaderboard table in frontend/src/routes/admin/+page.svelte adds Rejected and Returned columns so total = sum of all shown columns

no "fraud pending" bucket here since that's a project status, not a project_reviews.status value.

Test plan

  • load /admin leaderboard tab, confirm total = approved + changes needed + banned + rejected + returned for each reviewer row

total was already COUNT(*) over all project_reviews statuses, but the
leaderboard only broke it into approved/changes_needed/banned, so
rejected and returned (overturned first-pass) rows were silently
folded into total without a visible column.
@EDRipper
EDRipper merged commit 0197028 into main Jul 31, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant