feat: implement admin KYC review UI and server integration #165#176
Conversation
|
@bytebinders is attempting to deploy a commit to the paul joseph's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@bytebinders Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
…database service for client management
|
Hi @anonfedora, I noticed the Vercel check is currently failing due to deployment authorization. The changes themselves should be independent of deployment, but please let me know if any adjustments are needed from my side. Happy to make updates if required. Thanks! |
|
You have 1 merge conflict, ser |
|
Fix so I can, please |
…w-UI-Backed-by-Server-Endpoints
|
I @anonfedora fixed |
|
did you run |
… Stellar wallet services with Prisma schema
…or user asset management
…w-UI-Backed-by-Server-Endpoints
…, transactions, matches, and governance
…-by-Server-Endpoints' of https://github.com/bytebinders/ArenaX into Arenax-gaming#165--FRONTEND]-Admin-KYC-Review-UI-Backed-by-Server-Endpoints
…ial ledgers, blockchain transactions, and governance proposals
…ial ledgers, transactions, and governance
…, transactions, governance, and dispute management
|
marge |
|
Hi @anonfedora, Thanks for the feedback, I’ve gone back and properly resolved the schema conflicts. You were right, I had mistakenly accepted both sides during the merge, which introduced duplicate properties. I’ve now cleaned up the Prisma schema, removed the duplicates, and re-ran npm run prisma:generate locally to ensure everything is consistent. All checks (CI contracts, frontend, and server) are passing on my end. The Vercel authorization issue is unrelated to the code changes, but I’m available to adjust if needed. Could you please take another look when you get a chance? Appreciate your time 🙏 |
Overview
This PR completes the end-to-end admin workflow for account risk and KYC decisions by implementing a dedicated review queue UI and its corresponding server-side logic.
Changes Made
💾 Database & Backend
KycReviewmodel andKycStatusenum (PENDING,APPROVED,REJECTED,ESCALATED) to track user identity verifications.KycServicefor robust database operations, including status updates and user verification transitions.KycControllerwith full audit logging integration viaAuditService./admin/kycendpoints in the main admin route table, ensuring strictADMINrole-gating.🎨 Frontend & UI
ApiClientwith methods for fetching and processing KYC reviews./admin/kycfeaturing:Why this is needed
Admins previously lacked a streamlined way to process account risk and KYC decisions. This implementation provides a specialized, role-gated workflow that scales with the user base while maintaining a strict audit trail for security compliance.
How it was verified
npx prisma generateto ensure all backend and frontend types are synchronized.AuditLogtable.Closes #165