feat: Add prioritized coins display for unauthenticated users #3351
+42
−3
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.
This PR adds priority-based sorting for the asset list displayed to unauthenticated users on the wallet page. Priority coins (BTC, KMD, ETH, BNB, LTC, DASH, ZEC, DOGE) are now displayed first in a specified order, followed by all other coins sorted alphabetically.
This change improves user experience by ensuring that when users first launch the wallet, they immediately see familiar and popular cryptocurrencies (such as Bitcoin, Ethereum, Komodo) instead of less-known assets that might appear first in alphabetical order (e.g., "1inch", "Aave", etc.). This makes the onboarding experience more intuitive and helps users quickly identify well-known assets.
Changes
1. Priority Tickers Configuration
unauthenticatedUserPriorityTickersconstant inlib/app_config/app_config.dartList<String>to preserve order (BTC, KMD, ETH, BNB, LTC, DASH, ZEC, DOGE)2. Asset List Sorting Logic
AssetsList._groupAssetsByTicker()inlib/views/wallet/wallet_page/common/assets_list.dartunauthenticatedUserPriorityTickersBehavior
For unauthenticated users (
AuthorizeMode.noLoginandAuthorizeMode.hiddenLogin):For authenticated users: