refactor(ui): use MMDS HeaderStandard in misc UI surfaces#29708
refactor(ui): use MMDS HeaderStandard in misc UI surfaces#29708brianacnguyen wants to merge 4 commits into
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
|
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. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Affected components and their test tag mapping:
The risk is medium because while the changes are purely cosmetic (component swap), the No performance impact expected from this UI component swap. Performance Test Selection: |
|



Description
This PR replaces
HeaderCompactStandardwithHeaderStandardfrom@metamask/design-system-react-nativeacross several flows that previously depended oncomponent-library/components-temp.Reason: Use the canonical design-system header and reduce reliance on temporary header components.
Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/DSYS-705
Manual testing steps
Screenshots/Recordings
Before
After
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
Note
Low Risk
Low risk UI refactor that swaps header components across several bottom sheets/modals; main risk is minor layout/close-button behavior differences and testID changes.
Overview
Replaces the temporary
HeaderCompactStandardheader with design-systemHeaderStandardacross several UI surfaces (card region selector, network manager sheet, OTA updates modal, seed phrase info sheet, generic select modal, and pooled staking learn-more modal).Updates the OTA updates modal to pass
closeButtonProps(for testability) and simplifies its Jest setup by removing the old header mock, while keeping existing close behavior via the bottom sheet ref.Reviewed by Cursor Bugbot for commit 17094af. Bugbot is set up for automated code reviews on this repo. Configure here.