feat: link asset details page from bridge asset list#40356
Merged
Conversation
Contributor
|
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.
Contributor
Builds ready [4935d6b]
⚡ Performance Benchmarks
🌐 Dapp Page Load BenchmarksCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚀 Bundle size reduced!]
|
Contributor
Builds ready [7abcd1c]
⚡ Performance Benchmarks
🌐 Dapp Page Load BenchmarksCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚀 Bundle size reduced!]
|
|
Contributor
Builds ready [0ccf738]
⚡ Performance Benchmarks
🌐 Dapp Page Load BenchmarksCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
davibroc
approved these changes
Mar 11, 2026
SteP-n-s
approved these changes
Mar 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
Implements a new info button that opens the asset details page, and sets the src/dest token on
Swapbutton clickChanges in
pages/assetasset.tsx: use token passed through the navigation state if the user does not have a balance for the decoded URL assetcomponents/asset-page.tsxChanges in
bridgedirectoriesducks/bridgerehydrateBridgeStoreaction that loads a cached bridge statehooks/bridgeuseBridgeNavigation: implementnavigateToAssetPage, which propagates the latest bridge redux state and token data to the asset-pageuseBridging, usePrefillFromBridgeState: support setting the destination asset using the location statebridge-asset-pickerChangelog
CHANGELOG entry: feat: link asset details page from bridge asset list
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/SWAPS-3899
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Medium risk because it changes bridge navigation/state rehydration and token selection behavior across routes, which can impact swap/bridge prefill and back-navigation flows.
Overview
Adds an asset details entrypoint from the bridge asset picker via a new info icon, navigating to
ASSET_ROUTEwhile passing the selected token plus the currentbridgeredux state so users can return without losing context.Moves bridge asset-picker open/close state into the
bridgeslice (with new selectors/actions andrehydrateBridgeStore), updates bridge prefill logic to restore state from location (including setting destination token when appropriate), and shiftssetToTokenswap/amount-reset logic into a thunk action.Improves asset page robustness by falling back to token data from navigation state when the user doesn’t own the token (including non‑EVM), and updates the asset page back button to
navigate(-1); metricsPageViewedis now emitted on bridge entry navigation rather than on bridge page mount.Written by Cursor Bugbot for commit 0ccf738. This will update automatically on new commits. Configure here.