refactor: migrate SRPInputGrid to design system components and Tailwi…#28137
refactor: migrate SRPInputGrid to design system components and Tailwi…#28137
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. |
| spellCheck: false, | ||
| importantForAutofill: 'no' as const, | ||
| showSoftInputOnFocus: true, | ||
| autoCapitalize: 'none' as const, |
There was a problem hiding this comment.
there is no blurOnSubmit (old behavior was explicit blurOnSubmit={false} on each SrpInput).
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.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Key impacts:
The changes are purely UI/styling (no logic changes to SRP handling), but the visual rendering of the SRP input grid changed significantly (new component library, different layout structure). This could affect E2E tests that rely on element visibility, testIDs, or interaction with the input fields. The testIDs themselves are preserved in the component, reducing risk of test breakage, but visual/layout changes warrant validation. Performance Test Selection: |
|
✅ E2E Fixture Validation — Schema is up to date |
|




…nd CSS
Description
This PR migrates the SRPInputGrid view away from legacy StyleSheet.create()-based styling toward the MetaMask design system and Tailwind CSS. Also migrated to Typescript as a functional component.
Jira Link: https://consensyssoftware.atlassian.net/browse/TO-646
Changelog
CHANGELOG entry: migrate SRPInputGrid to design system components and Tailwind CSS
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Screen.Recording.2026-03-31.at.1.14.08.PM.mov
Screen.Recording.2026-03-31.at.1.14.39.PM.mov
Screen.Recording.2026-03-31.at.1.16.04.PM.mov
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
UI-heavy refactor of the Secret Recovery Phrase input flow; while logic is mostly preserved, changes to component structure, styling, and input props/focus handling could introduce regressions in SRP entry/paste behavior.
Overview
Refactors
SrpInputGridto use MetaMask design-system primitives (Box,Button, design-systemText) and Tailwind-based styling, removing the legacyStyleSheet.createfile and updating layout/style behavior accordingly.Consolidates shared
TextInputprops intoSHARED_INPUT_PROPS, moves word validation helper out of the component, and replaces the inline paste/clearTextaction with a tertiaryButton; Jest snapshots are updated to reflect the new rendered structure and styling.Written by Cursor Bugbot for commit e7c1129. This will update automatically on new commits. Configure here.