Skip to content

feat: add submission claiming with auto-release timeout#262

Open
Tobi-8 wants to merge 2 commits into
samieazubike:mainfrom
Tobi-8:feat/claim-submissions
Open

feat: add submission claiming with auto-release timeout#262
Tobi-8 wants to merge 2 commits into
samieazubike:mainfrom
Tobi-8:feat/claim-submissions

Conversation

@Tobi-8

@Tobi-8 Tobi-8 commented Jun 30, 2026

Copy link
Copy Markdown

Summary

Add ability for admins to claim/review submissions in the approval queue, preventing duplicate reviews.

Changes

  • Migration (005_add_claim_fields.sql): Adds claimed_by (FK → users) and claimed_at columns to the projects table
  • Claim API (/api/projects/[id]/claim): PUT endpoint — claim (locks to you), release (unlocks), or get 409 conflict if someone else has a non-stale claim
  • Auto-release: Stale claims (>30 min) are released automatically when the queue or pending endpoints are fetched
  • Queue page (/queue): Shows a pulsing dot + "reviewing: [username]" when a submission is claimed
  • Admin dashboard (/admin): Pending tab shows claim status per card; Claim/Release buttons; non-claimers see "claimed by X" and cannot claim until released or stale
    To test: Run 005_add_claim_fields.sql in Supabase SQL Editor, then visit /admin → Pending tab.

closes #243

@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the webverse Team on Vercel.

A member of the Team first needs to authorize it.

@samieazubike

Copy link
Copy Markdown
Owner

Resolve conflict

@Tobi-8

Tobi-8 commented Jul 3, 2026

Copy link
Copy Markdown
Author

done

@Tobi-8

Tobi-8 commented Jul 3, 2026

Copy link
Copy Markdown
Author

please can you merge and close this issue?

@Tobi-8

Tobi-8 commented Jul 4, 2026

Copy link
Copy Markdown
Author

Hey maintainer I resolved the conflict .
Could you close the issue

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Claim/assign a submission to prevent double review

2 participants