-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chain Badge consolidation & backend delivery #6328
Merged
Merged
+665
−4,186
Conversation
This file contains 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
walmat
commented
Dec 12, 2024
ibrahimtaveras00
requested changes
Dec 20, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
walmat
commented
Jan 17, 2025
…nbow-me/rainbow into @matthew/backend-chain-badge
…nbow-me/rainbow into @matthew/backend-chain-badge
derHowie
approved these changes
Jan 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2nd round lgtm
ibrahimtaveras00
added a commit
that referenced
this pull request
Jan 17, 2025
* start work on backend driven chain badge * Update src/components/expanded-state/AvailableNetworksv2.tsx * consolidate SwapCoinIcon into RainbowCoinIcon * replace ChainBadge with ChainImage and consolidate + cleanup * fix missing native asset icon URL from swaps * more badge sizing fixes * add migration and clearing of FastImage cache in dev section to fix mainnet sizing * fix lint * fix up swaps * address more swaps nuances * more sizing issues fixed * remove size={40} from RainbowCoinIcon as it's default * Convert Chain Selection DropdownMenu to Backend Networks (#6344) * start work on converting existing chain selection dropdowns to Zeego * available networks v2 convert * add token icons to claim dropdown and fix but with AvailableNetworks not showing ever * latest changes to try to get hitslop to work * refactor trending tokens to remove SwapCoinIcon and fix APP-2217 * fix APP-2218 * chain badge sizing fix on sign transaction sheet * remove debug layouts * fixes * remove hitslop prop and bake it into children * remove hitslop prop from claimable menu * port over Kane's work for dropdown menu * fix instances of menu item being checkbox * Fix most chain badge issues * Remove unrelated change * Update src/components/expanded-state/asset/ChartExpandedState.js * fix radial gradient color issue + spacing fix * Fix network switcher badges * Remove unused RainbowCoinIcon styles * Fix EthCard mainnet icon * Fix MintSheet chain badge * Fix GasSpeedButton legacy network chain badge * fix ClaimCustomization badge invalid size and position * Fix MintsSheet chain badges * Fix L2Disclaimer network name casing * fix transaction details row size change * fix SignTransactionSheet size change * fix WalletConnectApprovalSheet position relative * revert animated coin icon changes * revert changes * revert collectible send row position change * fix WalletConnectV2ListItem * remove change to useWallets * fix AddCash ProviderCard * cleanup unused vars in ClaimCustomization * fix two coin icons sizing and position on transaction details row --------- Co-authored-by: Ibrahim Taveras <[email protected]> Co-authored-by: Christian Baroni <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
WHEN REVIEWING FILES, MAKE SURE YOU FILTER OUR .png / .json FILES
Blocked until #6344 lands as we currently rely on local ios imagesets for chain selectors.
What changed (plus any additional context for devs)
1. Badge System Refactoring
Changes to Chain Badge Implementation
ios/Images.xcassets/badges/
ChainBadge
component with newChainImage
componentgetChainsBadge()
method tobackendNetworksStore
to manage badge URLsComponent Updates
ChainBadge
orEthCoinIcon
to use the newChainImage
component, including:WalletConnectApprovalSheet
TransactionDetailsValueAndFeeSection
MintSheet
ClaimCustomization
FastTransactionCoinRow
2. Image Caching Improvements
FastImage Integration
clearImageCache
function in DevSection to clear both ImgixImage and FastImage caches3. Menu System Updates
Dropdown Menu Refactoring
DropdownMenu
toClaimableMenu
in claimables section4. UI/UX Improvements
Chain Badge Positioning
Component Cleanup
This PR represents a significant refactoring of the chain badge system, moving from static assets to remote images while improving the overall architecture and maintainability of the codebase.
Screen recordings / screenshots
// wip
What to test
TestFlight:
1.9.50 (3)
https://www.notion.so/rainbowdotme/App-Chain-Image-QA-Checklist-15fb001b85b480839cb1e0cf1665de12