Skip to content

feat: group assets in selector by owned vs all#3770

Merged
kyleleighton merged 5 commits into
developmentfrom
PROD-612/token-balance
Sep 4, 2025
Merged

feat: group assets in selector by owned vs all#3770
kyleleighton merged 5 commits into
developmentfrom
PROD-612/token-balance

Conversation

@kyleleighton

@kyleleighton kyleleighton commented Sep 4, 2025

Copy link
Copy Markdown
Contributor
  1. When USD balances are < $0.01, they showed as $0.00. Now they show as < $0.01
  2. All assets now show in the source selector, divided by owned versus all, with all dimmed and your owned ones undimmed.
  3. Removes the 'Select a Token' and 'Tokens on X' text for cleanliness
  4. Changes 'Choose a network' with 'Choose chain'
Screenshot 2025-09-03 at 7 13 17 PM Screenshot 2025-09-03 at 7 13 23 PM

https://linear.app/wormholelabs/issue/PROD-611/possibly-show-all-tokens-in-the-source-asset-picker-when-connected-to

https://linear.app/wormholelabs/issue/PROD-612/possibly-show-something-other-than-dollar0-as-the-token-balance-amount

@netlify

netlify Bot commented Sep 4, 2025

Copy link
Copy Markdown

Deploy Preview for wormhole-connect-mainnet ready!

Name Link
🔨 Latest commit b9d198b
🔍 Latest deploy log https://app.netlify.com/projects/wormhole-connect-mainnet/deploys/68b9b5ef02da6700085f581b
😎 Deploy Preview https://deploy-preview-3770--wormhole-connect-mainnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Sep 4, 2025

Copy link
Copy Markdown

Deploy Preview for wormhole-connect ready!

Name Link
🔨 Latest commit b9d198b
🔍 Latest deploy log https://app.netlify.com/projects/wormhole-connect/deploys/68b9b5ef02da6700085f5819
😎 Deploy Preview https://deploy-preview-3770--wormhole-connect.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread src/utils/index.ts
Comment thread src/views/v3/Bridge/AssetPicker/TokenItem.tsx Outdated
Comment thread src/views/v3/Bridge/AssetPicker/TokenList.tsx
Comment thread src/views/v3/Bridge/AssetPicker/TokenList.tsx Outdated
Comment thread src/hooks/useTokenListGrouping.ts
@kyleleighton
kyleleighton merged commit a0e6703 into development Sep 4, 2025
20 of 21 checks passed
@kyleleighton
kyleleighton deleted the PROD-612/token-balance branch September 4, 2025 16:19
Comment thread src/utils/index.ts
}

if (price > 0 && price < 0.01) {
return '<$0.01';

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It probably doesn't matter for now since its all USD....but I would say still use the Intl.NumberFormat here for the 0.01, can prefix it with <$.

Passing in { maximumFractionDigits: n } to NumberFormat can help.

isFetchingBalance={props.isFetchingBalances}
/>
<Fragment key={token.key}>
<TokenSectionHeader

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this move inside the in which case you won't need wrapping Fragment/key? Might need hasHeader prop added.

Comment thread src/hooks/useTokenListGrouping.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants