feat: adds routing case for users who have submitted their kyc #21819
+32
−6
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.



Description
This PR fixes a bug that would not route users away from OnFido after submitting their KYC documents. It adds a case for
SUBMITTEDwhen polling for user's KYC data. Previously users were stuck on the onFido screen. Now they are correctly routed our verification page to be shown the loading, success or error cases.This PR also updates .yarnrc.yml to add the ramp consensys packages to bypasses the
npmMinimalAgeGaterequirement that packages to be at least 3 days old before they can be installed.Changelog
CHANGELOG entry: Fixed a bug that would not route users away from OnFido after submitting their KYC documents
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/TRAM-2785
Manual testing steps
Screenshots/Recordings
Before
Video showing user stuck on KYC modal after document submission:
https://www.loom.com/share/0ef683e7c7314136b6b48e9f2e1741e1
After
video showing the user being redirected after uploading documents:
https://www.loom.com/share/d67dfecd614f402a9ad48ae75cf132bd
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Route KYC status
SUBMITTEDtoKycProcessing, add test coverage, bump@consensys/native-ramps-sdkto 2.1.6, and allow@consensys/*packages in Yarn age gate.SUBMITTEDby navigating toKycProcessinginuseDepositRouting.ts.SUBMITTEDflow inuseDepositRouting.test.ts.@consensys/native-ramps-sdkfrom2.1.5to2.1.6.@consensys/*in.yarnrc.ymlnpmPreapprovedPackagesto bypass the minimal age gate.Written by Cursor Bugbot for commit 2295fc5. This will update automatically on new commits. Configure here.