Surface Didit KYC warnings on step 1, including under-review - #2125
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
MusabShakeel576
force-pushed
the
claude/kyc-under-review-warnings
branch
from
June 7, 2026 09:42
789c803 to
d2aca7d
Compare
…nder review
For a Didit under_review user (e.g. held due to a duplicate device/IP), step 1
of /card/activate now lists the attached warning reasons instead of a generic
"being reviewed" message.
- The under_review step-1 description surfaces the attached warnings
("Your application is under additional review: ...") with a fallback to the
generic "few minutes" copy when there are none. (qa lacked this branch.)
- REJECTED / INCOMPLETE / under_review branches key off the formatted result so
a text-less warning set no longer renders an empty bullet list.
- Add DUPLICATED_DEVICE_FINGERPRINT (+ duplicate IP/device) to the friendly map.
https://claude.ai/code/session_01S2muieprRUo3BGSh8yKBtR
MusabShakeel576
force-pushed
the
claude/kyc-under-review-warnings
branch
from
June 7, 2026 09:43
d2aca7d to
2df179c
Compare
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
For a Didit
under_reviewuser (e.g. held due to a duplicate device/IP fingerprint), step 1 of/card/activatewasn't surfacing the warning reasons — onqait only showed a generic "being reviewed" message. This lists the attached reasons so the user knows what's being checked.Changes (
hooks/useCardSteps/kycDisplayHelpers.ts)under_reviewstep-1 description now surfaces the attached Didit warnings ("Your application is under additional review: …"), falling back to the generic "few minutes" copy when there are none. (This branch existed onmasterbut notqa.)REJECTED/INCOMPLETE/under_reviewbranches key off the formatted result instead of the rawwarnings.length, so a warning set that produces no display text no longer renders an empty-bullet.DUPLICATED_DEVICE_FINGERPRINT(+ duplicate IP/device) to the friendly-copy map.All attached warnings are shown — no
log_typefiltering — so the user gets the full picture.Note on the missing button
The disabled "Under Review" button already renders for a Didit
under_reviewuser (getStepButtonText→"Under Review", disabled). The screenshot's denied copy + no button is the RainDENIEDrender, which only appears ifrainApplicationStatus: "denied"reaches the client. If thisunder_reviewuser still shows the denied screen on a fresh build, share the/cards/statusresponse and I'll trace it.ESLint passes.
kycDisplayHelpers.tsis kept identical to the master-targeted branch (#2126).https://claude.ai/code/session_01S2muieprRUo3BGSh8yKBtR