feat: update token details security trust designs#29230
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. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #29230 +/- ##
===========================================
- Coverage 82.23% 56.96% -25.28%
===========================================
Files 5107 5123 +16
Lines 134974 135445 +471
Branches 30358 30497 +139
===========================================
- Hits 110997 77157 -33840
- Misses 16410 52028 +35618
+ Partials 7567 6260 -1307 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
AI PR Analysis🚫 Merge safe: false | 🟠 Risk: high
AI analysis did not complete. Manual review recommended. |
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 4dbe41d. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Tag selection rationale:
Not selected:
Performance Test Selection: |
|
|
✅ E2E Fixture Validation — Schema is up to date |




Description
This PR refactors and unifies security badge/icon display logic across the Token Details page, Trending tokens, and Security Trust screens to ensure consistent visual presentation and centralized configuration.
https://www.figma.com/design/iqPZeL5rVg7tWGmacjIeyH/Token-details?node-id=6753-29048&p=f&m=dev
Key Changes
getSecurityBadgeConfigintogetResultTypeConfigwith explicit badge configuration🎨 UI/UX Improvements
Security Badge Bottom Sheet (
SecurityBadgeBottomSheet.tsx):Token Details Page (
AssetOverviewContent.tsx):Trending Tokens (
TrendingTokenRowItem.tsx):IconAlertcomponent for consistent icon displayChangelog
CHANGELOG entry: Implements new trust security token details design specs
Related issues
Fixes: https://consensyssoftware.atlassian.net/jira/software/c/projects/ASSETS/boards/1567?assignee=61a5edc8b0b630006a140ec1&selectedIssue=ASSETS-3105
Fixes: https://consensyssoftware.atlassian.net/jira/software/c/projects/ASSETS/boards/1567?assignee=61a5edc8b0b630006a140ec1&selectedIssue=ASSETS-3105
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Screen.Recording.2026-04-24.at.10.42.28.mov
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Medium Risk
Updates security severity config and reworks token security warnings/bottom-sheet UI across multiple entry points, which could affect navigation params and what security indicators render for each result type.
Overview
Centralizes security severity presentation by expanding
getResultTypeConfigto includeIconAlertseverity, inline badge config, and bottom-sheet copy helpers, and removing the separategetSecurityBadgeConfigpath.Updates token security UI to use the shared config everywhere: feature tags in
SecurityTrustScreenandSecurityTrustEntryCardnow renderIconAlert, Trending token rows use the new badge config (withIconAlertwhen available), and Token Details switches from inline warning badges to a newSecurityBannerfor Warning/Spam/Malicious (Verified remains an inline icon).Redesigns
SecurityBadgeBottomSheet: supports passingfeatures, shows up to 5 feature tags for Warning/Spam/Malicious, shows a malicious-specific banner/wording, and changes the primary action label toContinue anywaywith malicious styling. Updates/enriches related tests and English strings accordingly.Reviewed by Cursor Bugbot for commit 0661445. Bugbot is set up for automated code reviews on this repo. Configure here.