feat(kyc): port the cu-16 identity verification screen#36
Merged
Conversation
A static, full-screen KYC flow reached from Profile and the wallet withdraw tab. The front and back ID slots simulate an upload (Empty -> Uploading -> Uploaded) with a mock DNI preview; the progress meter and submit gate track both photos, Submit advances to the Pending review banner, and Replace clears a slot. The review outcomes (Verified, Suspended, Error) collapse the screen to a single status banner and are exercised through @Preview until the KYC repository drives them. Real camera / gallery capture and the Firebase Storage upload land with that repository in a later entrega. Replaces the KYC placeholder in StackNavHost. Tests: KycFormTest (uploadedCount and the canSubmit gate) and KycScreenTest (empty / both / pending rendering and the back callback).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ports the cu-16 KYC screen (mockup/js/screens/kyc.js) and wires it into the nav graph in place of the placeholder. It is a static, full-screen identity-verification flow reached from Profile (Verify Identity) and the wallet withdraw tab. The front and back ID slots simulate an upload (Empty -> Uploading -> Uploaded) with a mock DNI preview; the progress meter and submit gate track both photos, Submit advances to the Pending review banner, and Replace clears a slot.
Rationale
uploadedCount/canSubmitderive the progress meter and submit gate.@Previewuntil the KYC repository drives them.KycScreen(scaffold + form),KycSlot(the upload slot states),KycBanners(review outcomes),KycUiState(state + the testable helpers).Verification
./gradlew ktlintCheck detekt testDebugUnitTest-> BUILD SUCCESSFUL./gradlew assembleDebug-> BUILD SUCCESSFUL./gradlew compileDebugAndroidTestKotlin-> BUILD SUCCESSFULTest plan
KycFormTestgreen (uploadedCount, canSubmit gate)KycScreenTestcompiles (instrumented; not run in the CI matrix)Checklist
feat/).[Unreleased].