chore: updated DSRN to v22#29596
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. Ignoring alerts on:
|
|
@SocketSecurity ignore npm/@metamask/design-system-react-native@0.22.0 |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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 4d13db1. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: All affected components have been migrated to the new API:
The test infrastructure (selectors, page objects, spec file) for Trending search has been updated to match the new testID. However, the other components' testIDs remain the same values — they're just now passed via Tags selected:
Performance Test Selection: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #29596 +/- ##
==========================================
- Coverage 82.15% 81.82% -0.33%
==========================================
Files 5178 5226 +48
Lines 137450 138583 +1133
Branches 31079 31456 +377
==========================================
+ Hits 112924 113401 +477
- Misses 16875 17452 +577
- Partials 7651 7730 +79 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|




Description
This PR bumps
@metamask/design-system-react-nativefrom 0.21.0 to 0.22.0 (with@metamask/design-system-shared0.14.0 → 0.15.0 via the lockfile).0.22.0 changes the design-system
TextFieldandTextFieldSearchcontract: nativeTextInputprops must be passed underinputProps, imperative access to the real input usesinputRefinstead ofref, rootreftargets the outer container,placeholderTextColoris not supported on the publicTextFieldAPI, and spellings likeisReadonlyare normalized toisReadOnlyin the design system (not used in these edits).This branch updates every in-repo consumer that imports
TextField/TextFieldSearchfrom@metamask/design-system-react-nativeso types and runtime behavior match the new API (Login, OAuth rehydration, choose/reset password, manual backup, rewards onboarding referral field, reveal SRP password entry, trending explore search, and card authentication).CardAuthenticationnow importsTextFieldfrom the design system and uses the sameinputPropssplit soyarn lint:tscstays green after the upgrade.Unit tests were adjusted where they assumed the old structure (
CardAuthenticationhelpers;OnboardingMainStepmock forwardsinputProps.testIDto the inner input).Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
Pre-merge reviewer checklist
(Reviewer completes.)
Note
Medium Risk
Updates a shared UI dependency and refactors multiple password/authentication inputs (login, reset/choose password, card auth, OAuth rehydration), so regressions in text entry, focus/submit behavior, and testIDs are possible despite mostly mechanical changes.
Overview
Bumps
@metamask/design-system-react-nativeto0.22.0(and@metamask/design-system-sharedvia lockfile), and migrates in-app consumers to the newTextField/TextFieldSearchAPI.All affected screens now pass native
TextInputprops viainputPropsand useinputReffor imperative focus/clear, with updates to testIDs and E2E selectors (notably Explore/Trending search) to target the inner text input.Adjusts unit tests/mocks to align with the new component contract (e.g.,
inputProps.testIDforwarding and simpler value assertions).Reviewed by Cursor Bugbot for commit 6815add. Bugbot is set up for automated code reviews on this repo. Configure here.