WIP: neobank migrate kyc-controller orchestration to ramps-controller - #35142
Conversation
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Performance Test Selection: |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e3b5fcd. Configure here.
| updateStep('autoramp', { | ||
| status: 'success', | ||
| detail: `id = ${truncateId(account.id)} · status = ${account.status}`, | ||
| detail: `id = ${truncateId(provisioned.autoramp.id)} · status = ${provisioned.autoramp.status}`, |
There was a problem hiding this comment.
Failures misattributed to signing
Medium Severity
provisionMoneyAccount runs only under the signing timed step, then customer and autoramp are marked success afterward. KYC-pending or customer-mapping failures therefore appear on Sign wallet ownership, while Map identity to MoonPay customer and Create the autoramp stay queued, so the demo pipeline no longer surfaces which stage actually failed.
Reviewed by Cursor Bugbot for commit e3b5fcd. Configure here.
| callOrder.push('register'); | ||
| return { | ||
| type: 'registered', | ||
| registration: { |
There was a problem hiding this comment.
Weak element presence matchers
Low Severity
Rewritten assertions use toBeTruthy() on elements from getByText (for example the registration detail and pipeline stopped copy). Unit testing guidelines require toBeOnTheScreen() for element presence instead of weak matchers.
Triggered by project rule: Unit Testing Guidelines
Reviewed by Cursor Bugbot for commit e3b5fcd. Configure here.


Description
Move Money Account wallet registration and autoramp creation out of KYC init and VBA screens into
RampsController.provisionMoneyAccount/setMoneyAccountProvisioningIntent(MetaMask/core#9933).provisionMoneyAccountfor the pull path. KYC init no longer subscribes tostatusChanged.RampsController.resolveAutorampCustomerIdinstead of reading KYC state and calling NeoBank from the UI.registerMoneyAccountOnKycCompletion,registerSelectedMoneyAccountWallet,moneyAccountProvisioning).@metamask/ramps-controllerand@metamask/kyc-controllerto preview0b5bfc2. Iron identity (initialize / customer / SumSub) stays onKycController.Changelog
CHANGELOG entry: null
Related issues
Refs: MetaMask/core#9933
Manual testing steps
Screenshots/Recordings
N/A — internal orchestration move; no intended product UI change besides collapsing the demo success pipeline onto
provisionMoneyAccount.Before
N/A
After
N/A
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist