feat(swaps): add verified badges to asset picker#27878
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. |
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:
The E2E test helper change ( SmokeTrade is selected because the changes directly affect bridge and swap token selector UI and E2E mock data. No other tags are needed - the changes are isolated to the Bridge/Swap token selector component and its test infrastructure. The changes are additive (new optional field + new UI element) and don't affect core wallet, accounts, network, or other flows. Performance Test Selection: |
|
✅ E2E Fixture Validation — Schema is up to date |
|




Description
This adds a verified trust signal to the swap/bridge asset picker when the backend returns
isVerifiedon popular and search token results. The change threads the new field through the bridge token models, preserves it during token-to-balance merging, renders the verified badge inline in picker rows, and adds focused coverage for popular tokens, search results, and row rendering.Changelog
CHANGELOG entry: Added verified badges to swap asset picker tokens
Related issues
Fixes:
Refs: SWAPS-4219
Manual testing steps
Screenshots/Recordings
Before
N/A
After
N/A
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk UI/model threading of a new optional
isVerifiedflag; main risk is minor layout/test regressions in the token picker row rendering.Overview
Adds support for an optional
isVerifiedtrust signal on Bridge API token results and threads it into the in-appBridgeTokenmodel.Updates the token picker row (
TokenSelectorItem) to render a small verified icon next to the token symbol whentoken.isVerifiedis true, and extends unit tests/fixtures to assert the flag is preserved through popular/search fetching and balance-merging, and is passed throughBridgeTokenSelectorinto row rendering.Written by Cursor Bugbot for commit 02a4efd. This will update automatically on new commits. Configure here.