-
Notifications
You must be signed in to change notification settings - Fork 621
[NEB-248] Show native token balances in assets, show popular tokens on top #7056
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
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
apps/dashboard/src/app/nebula-app/(app)/components/AssetsSection/AssetsSection.tsx
Show resolved
Hide resolved
apps/dashboard/src/app/nebula-app/(app)/components/AssetsSection/AssetsSection.tsx
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7056 +/- ##
=======================================
Coverage 55.50% 55.50%
=======================================
Files 909 909
Lines 58402 58402
Branches 4070 4070
=======================================
Hits 32415 32415
Misses 25882 25882
Partials 105 105
🚀 New features to boost your workflow:
|
size-limit report 📦
|
apps/dashboard/src/app/nebula-app/(app)/components/AssetsSection/AssetsSection.tsx
Outdated
Show resolved
Hide resolved
apps/dashboard/src/app/nebula-app/(app)/components/AssetsSection/AssetsSection.tsx
Show resolved
Hide resolved
apps/dashboard/src/app/nebula-app/(app)/components/AssetsSection/AssetsSection.tsx
Show resolved
Hide resolved
Merge activity
|
bfe1daa to
c6b4d15
Compare
…n top (#7056) <!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR enhances the `AssetsSection` component by integrating wallet balance retrieval, modifying how assets are displayed, and implementing new logic for sorting tokens. It also introduces a new constant for native tokens and adjusts rendering based on whether an asset is native. ### Detailed summary - Added `NATIVE_TOKEN_ADDRESS` and `getWalletBalance` import from `thirdweb`. - Updated `key` for `AssetItem` to include `chain_id`. - Introduced `isNativeToken` to conditionally render the `ChainIconClient`. - Modified the `href` for `Link` based on whether the asset is a native token. - Added a new set `tokensToShowOnTop` for sorting specific tokens. - Implemented `nativeBalances` query to fetch wallet balances for various chains. - Combined `nativeBalances` and `assetsQuery` data for rendering in `AssetsSectionUI`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->

PR-Codex overview
This PR enhances the
AssetsSectioncomponent by incorporating wallet balance retrieval, improving asset sorting, and adjusting the rendering logic for native tokens. It also refines the key generation for asset items and updates the UI accordingly.Detailed summary
NATIVE_TOKEN_ADDRESSandgetWalletBalanceimports fromthirdweb.chain_id.ChainIconClientbased on token type.