Skip to content

Feature/796 kyc kyb verification modal#885

Merged
ONEONUORA merged 10 commits into
Fracverse:masterfrom
obacollins-lab:feature/796-kyc-kyb-verification-modal
Jun 28, 2026
Merged

Feature/796 kyc kyb verification modal#885
ONEONUORA merged 10 commits into
Fracverse:masterfrom
obacollins-lab:feature/796-kyc-kyb-verification-modal

Conversation

@obacollins-lab

@obacollins-lab obacollins-lab commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Changes Made
Frontend (Already Implemented):

✅ KYCVerificationModal: 5-step form flow (Personal → Identity → Address → Documents → Review)
✅ KYCContext: Real-time status polling with WebSocket support
✅ KYCRequiredGuard: Component preventing plan creation without approval
✅ Document upload with validation (size/type checks)
✅ Status views for Pending, Approved, and Rejected states
Backend (Added):

✅ GET /api/kyc/status - Retrieve user KYC verification status
✅ POST /api/kyc/submit - Submit KYC verification data
✅ POST /api/kyc/upload - Upload KYC documents
✅ GET /api/kyc/required - Check if KYC is required
✅ GET /api/kyc/requirements - Get KYC requirements and supported ID types
✅ KYC webhook handler with HMAC signature verification
✅ Database schema for users and KYC status tracking

closes #796

…erface

- Add useInactivityTimer hook for client-side countdown based on blockchain last-ping
- Create InactivityTimerCard component with timer display and ping controls
- Implement keep-alive ping API methods (pingKeepAlive, getInactivityStatus)
- Add visual status indicators (active/warning/claimable)
- Support wallet signing for keep-alive transactions
- Toast notifications for user feedback
- Comprehensive unit tests for hook and component
- Warning threshold at 24 hours before claimable state
- Create multi-step KYC verification form (personal, identity, address, documents, review)
- Implement real-time status tracking (pending, submitted, approved, rejected)
- Add document upload zone with validation and file size checks
- Integrate with backend KYC API endpoints
- Add KYCRequiredGuard component to block plan creation without approval
- Implement automatic polling for status updates while submitted
- Add rejection reason display and resubmission flow
- Comprehensive unit tests for modal and status tracking
- State persistence across page reloads via backend
- Move all step component imports from bottom to top of file
- Prevents runtime errors when components are referenced before definition
- Ensures proper TypeScript compilation and e2e test execution
- Cast conditional expressions to boolean using !! operator
- Fixes TypeScript type error where strings/objects were assigned to boolean type
- Ensures canProceed properly matches Record<FormStep, boolean> type
- GET /api/kyc/status: Retrieve user KYC verification status
- POST /api/kyc/submit: Submit KYC verification data
- POST /api/kyc/upload: Upload KYC documents
- GET /api/kyc/required: Check if KYC is required
- GET /api/kyc/requirements: Get KYC requirements and supported ID types

These endpoints integrate with the frontend KYC modal and workflow to:
- Support real-time status tracking (Pending, Approved, Rejected)
- Prevent plan creation/editing without KYC approval
- Persist state to the Axum backend
@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

@obacollins-lab 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! 🚀

Learn more about application limits

@ONEONUORA ONEONUORA left a comment

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.

GReat job @obacollins-lab
Thank you for your contribution

@ONEONUORA ONEONUORA merged commit 57224ff into Fracverse:master Jun 28, 2026
5 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.

[Frontend] Build KYC/KYB Verification Modal & Workflows

2 participants