refactor(perps): use MMDS BannerAlert for service interruption banner#33364
refactor(perps): use MMDS BannerAlert for service interruption banner#33364brianacnguyen wants to merge 2 commits into
Conversation
Replace the custom outage banner with BannerAlert Warning and an action button, and place it above the Perps Home title with 16px spacing. 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 244f441. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Tag selection rationale:
Risk is low because this is a UI refactor (component swap + repositioning) with no changes to business logic, data fetching, or navigation routing. Performance Test Selection: |
|




Description
Align the Perps service interruption (outage) banner with the MetaMask Design System by replacing the custom Box/Text/Icon layout with
BannerAlert(BannerAlertSeverity.Warning) and a Contact support action button. Also move the banner above the Perps Home title with 16px bottom spacing so it’s more visible during an outage.What changed:
PerpsServiceInterruptionBannerUI with MMDSBannerAlert(warning severity, title, description,actionButtonLabel/actionButtonOnPressfor Contact support)TitleHub, wrapped withpx-4 mb-4(16px bottom spacing)isServiceInterruptionBannerEnabledat the Perps Home placement sitetestIDChangelog
CHANGELOG entry: Updated the Perps service interruption banner to use the design system warning alert with a Contact support action, and moved it above the Perps Home title
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/TAT-3565
Manual testing steps
Unit tests:
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
UI and layout-only changes with unchanged support webview navigation; no auth, data, or trading logic touched.
Overview
Replaces the custom Perps outage banner with design-system
BannerAlert(warning severity, description, and a Contact support action button instead of an inline link).On Perps Home, the banner is moved above the
TitleHub(with horizontal padding and 16px bottom spacing) and is only mounted whenisServiceInterruptionBannerEnabledis true at the home screen level.Unit tests now assert support navigation via the Contact support action label rather than the old support-link
testID.Reviewed by Cursor Bugbot for commit 169fcce. Bugbot is set up for automated code reviews on this repo. Configure here.