feat: Add prioritized coins display for unauthenticated users#3351
feat: Add prioritized coins display for unauthenticated users#3351
Conversation
- Added a set of priority ticker symbols for unauthenticated users. - Implemented sorting logic in `sortAssetIdsWithPriority` to prioritize these tickers. - Updated `AssetsList` to sort asset groups by priority tickers first, followed by others. - Adjusted comments in `wallet_main.dart` to reflect the new sorting behavior.
…rting logic - Deleted the set of priority ticker symbols for unauthenticated users. - Removed the `sortAssetIdsWithPriority` function that utilized these tickers for sorting. - Updated comments to reflect the removal of the priority sorting feature.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Visit the preview URL for this PR (updated for commit e961181): https://walletrc--pull-3351-merge-dyu1919h.web.app (expires Sun, 30 Nov 2025 08:06:45 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: f66a4ff03faa546f12f0ae5a841bd9eff2714dcc |
smk762
left a comment
There was a problem hiding this comment.
Confirm functioning as explained. Coins to be included in this list may be up to debate, and modified in future, but this PR functionally adds the described changes.
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: