Skip to content

Conversation

leoAshu
Copy link
Owner

@leoAshu leoAshu commented Aug 23, 2025

🚀 Summary

This PR introduces mocked OTP verification logic and a complete mocked KYC flow to enable end-to-end testing of the verification process without requiring real API integrations at this stage.

This PR also integrates countries data from Supabase, centralizing the source of truth for all country-related information in the app.

As part of this update, the previous fiat currencies integration has been removed to simplify configuration and avoid redundant data sources.

Key updates:

  • Fetch countries dynamically from Supabase and store in a global state via the useCountry hook.
  • Refactored screens and features that previously relied on hardcoded or fiat-based country data.
  • Deprecated and removed all references to the old fiat currencies integration.
  • Ensures compatibility with verification flows, KYC processes, and forms where country selection is required.
  • Mocked OTP verification logic to simulate phone/email verification.
  • Implemented a mocked KYC flow, covering identity verification steps and state transitions.
  • Introduced useKycStore to manage KYC state globally and integrated it with the existing verify flow.

🧩 Related Issues / Tasks

N/A

🛠️ Type of Change

  • 🐞 Bug fix
  • ✨ New feature
  • 🧨 Breaking change
  • 🔨 Enhancement/Refactor
  • 📝 Documentation
  • 📜 Other (please describe):

✅ Checklist

  • The code is formatted with Prettier (npm run format or npx prettier --write .)
  • PR references a linked Issue or Task number
  • Tested on both iOS and Android devices/emulators
  • No unnecessary logs or commented-out code
  • UI changes, if any, have been reviewed visually
  • All tests are passing (if applicable)
  • Added or updated documentation where necessary

📸 Screenshots / Videos (UI changes only)

N/A

🧪 Test Plan

  • Verified that OTP mock correctly simulates success/failure cases.
  • Ensured KYC flow progresses through identity/phone verification using mocked data.
  • Confirmed useKycStore persists and updates KYC state consistently across screens.
  • Checked that integration with verify flow works without regressions.

@leoAshu leoAshu requested a review from mano-ranjan August 23, 2025 03:18
@leoAshu leoAshu self-assigned this Aug 23, 2025
@leoAshu leoAshu added enhancement Refactor style or logic feature New feature or request labels Aug 23, 2025
@leoAshu leoAshu changed the title Integrate Countries Data from Supabase & Deprecate Fiat Currencies Integration Mock OTP & KYC Verification Logic with useKycStore Integration Aug 23, 2025
@leoAshu leoAshu merged commit b2b7e08 into main Aug 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Refactor style or logic feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants