Surface Didit KYC warnings on step 1, including under-review (master) - #2126
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
MusabShakeel576
force-pushed
the
claude/kyc-under-review-warnings-master
branch
from
June 7, 2026 09:41
17e2a65 to
a2d53de
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.
- 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 to the friendly-copy map.
Keeps kycDisplayHelpers.ts identical to the qa branch.
https://claude.ai/code/session_01S2muieprRUo3BGSh8yKBtR
MusabShakeel576
force-pushed
the
claude/kyc-under-review-warnings-master
branch
from
June 7, 2026 09:43
a2d53de to
c769978
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
Keeps
masterin sync with the qa-targeted branch (#2125) for the Diditunder_reviewwarnings display on step 1 of/card/activate.masteralready surfaces the attached warnings under review; this is the friendly-copy + robustness portion.Changes (
hooks/useCardSteps/kycDisplayHelpers.ts)DUPLICATED_DEVICE_FINGERPRINTto the friendly-copy map, so the reported user sees "This device has already been used to verify another account" instead of Didit's rawshort_description.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.under_reviewbranch.All attached warnings are shown — no
log_typefiltering.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 qa-targeted branch (#2125).https://claude.ai/code/session_01S2muieprRUo3BGSh8yKBtR