fix: add bridge missing-price warning flow#29250
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.
Reviewed by Cursor Bugbot for commit 3448bbe. Configure here.
AI PR Analysis🚫 Merge safe: false | 🟠 Risk: high
AI analysis did not complete. Manual review recommended. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
All changes are scoped to the Bridge/Swap feature area. The new modal intercepts the swap/bridge confirmation flow, so:
No changes to core controllers, navigation infrastructure, account management, network management, or other feature areas. The changes are UI-level additions to the bridge flow with no performance-critical impact (no list rendering, no state management changes, no app startup changes). Performance Test Selection: |
|
|
✅ E2E Fixture Validation — Schema is up to date |




Description
This PR adds the missing-price warning flow for bridge quotes when price data is unavailable. It shows an inline danger banner in the bridge view, presents a confirmation modal before submission, and keeps the warning order consistent so token warnings are handled before the missing-price prompt. It also adds unit coverage for the new banner, modal, and warning sequencing.
Changelog
CHANGELOG entry: Added a warning flow in bridge quotes when token price data is unavailable.
Related issues
Fixes: SWAPS-4387
Manual testing steps
Screenshots/Recordings
Before
N/A
After
N/A
Pre-merge author checklist
Performance checks (if applicable)
Not applicable for this warning-flow change.
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Medium Risk
Changes the bridge confirmation routing to block submission and require an extra modal confirmation when quote price data/price impact is missing, which could affect transaction flow if the detection logic misfires. UI-only banner/text updates are low risk, but the new gating impacts a core swap/bridge path.
Overview
Adds a missing price data warning flow for bridge quotes: when
activeQuote.quote.priceDataorpriceImpactis absent/empty, the Bridge view now shows an inline dangerBannerAlertand the confirm action routes to a newMissingPriceModalinstead of submitting.Introduces
hasMissingPriceData()for shared detection, wires the new modal intoRoutes/bridge modal stack, and ensures warning precedence: token warning modal is shown first, and proceeding fromTokenWarningModalcan redirect into the missing-price modal. Updates the English copy for the missing-price title/body and adds unit tests covering banner rendering and modal routing/ordering.Reviewed by Cursor Bugbot for commit 1285121. Bugbot is set up for automated code reviews on this repo. Configure here.