refactor(predict): use MMDS HeaderStandard#29704
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. |
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 f00630c. Configure here.
| onClose={handleSheetClosed} | ||
| > | ||
| <HeaderCompactStandard | ||
| <HeaderStandard |
There was a problem hiding this comment.
Close button may vanish if HeaderStandard lacks onClose
High Severity
The old HeaderCompactStandard explicitly converted its onClose prop into an endButtonIconProps entry with IconName.Close, rendering a visible close button. HeaderStandard from @metamask/design-system-react-native is used elsewhere in the codebase (MoneyHeader, PerpsHomeHeader) but none of those usages pass onClose — they all use endButtonIconProps for end-side actions. If HeaderStandard does not implement the same onClose-to-close-button convenience, this bottom sheet header silently loses its close button, breaking dismiss behavior.
Reviewed by Cursor Bugbot for commit f00630c. Configure here.
…to refactor/headerstandard-titles-predict
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
This is a pure UI component swap with no logic changes. The risk is low — the main concern is visual regression (header rendering, back/close button behavior, title display) in the Predict screens. Tags selected:
No other tags are warranted — the changes are isolated to Predict UI components and do not touch navigation, accounts, networks, swaps, browser, snaps, or any other feature area. Performance Test Selection: |
|





Description
This PR replaces the temporary
HeaderCompactStandardcomponent withHeaderStandardfrom@metamask/design-system-react-nativeon Predict screens and sheets.Reason: Align Predict UI with the MetaMask design system and rely less on
component-library/components-tempfor standard headers.What changed:
HeaderStandardwithincludesTopInset, back handling, and the existing title string. Unused design-system imports (Icon,IconColor,IconSize) were removed from this file after the swap.HeaderStandardwith the same title fallback logic (activityDetails?.headerTitlevs. the default activity-details string).HeaderStandardwithtestID, title, and close behavior unchanged.Behavior is intended to match the previous headers (navigation, titles, safe area).
Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/DSYS-701
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 a temporary header component for the design-system
HeaderStandard; primary risk is minor layout/safe-area or button behavior differences across screens/sheets.Overview
Updates Predict UI to use the design-system
HeaderStandardin place of the temporaryHeaderCompactStandardon the feed screen, activity detail screen, and the “Predict unavailable” bottom sheet.Keeps existing titles and back/close wiring (including testIDs and
includesTopInset) while removing now-unused icon-related imports inPredictFeed.Reviewed by Cursor Bugbot for commit 391f93a. Bugbot is set up for automated code reviews on this repo. Configure here.