Uh oh!
There was an error while loading. Please reload this page.
Refactor Token Filtering and Display Logic for Artist Coins - #12893
Conversation
|
| * Respects the ARTIST_COINS feature flag - when disabled, only shows AUDIO tokens | ||
| * Returns both owned tokens and all available tokens for different use cases | ||
| */ | ||
| export const useOwnedTokens = (allTokens: TokenInfo[]) => { |
There was a problem hiding this comment.
what's going on with allTokens? it is an arg but then gets returned with no changes?
can we just select allTokens from some other hook inside this hook?
and maybe don't need to return it?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
[ebb2f7f] [PE-6856] Add check to see if the coin has a discord before rendering (#12910) Ray Jacobson [89e990c] [PE-6852] Fix artist coin gradient (#12909) Dylan Jeffers [f3860d1] [PE-6791, PE-6838] Launchpad QA and updates (#12907) Dylan Jeffers [81ceb79] [PE-6850] Redo launchpad first buy with audio instead of sol (#12912) JD Francis [aa7565b] Fix bug in asset details navigation (#12919) Reed [412c9fe] small mobile lint fix for useArtistCoin hook (#12918) KJ [08b0163] Use subscript notation in artist coin table (#12917) Reed [076c1a8] Filter $AUDIO from artist coins tables (#12916) Reed [70ee92d] Update buy artist coin button to open buy sell modal on web (#12915) KJ [6bc6e31] Artist coin row clickable (#12903) Reed [f42dac0] Ellipsize coin names in ArtistCoinTable (#12904) Reed [1203e91] [PE-6825] Add coin batching and cleanup (#12905) Dylan Jeffers [c32dd72] [PE-6842] Mobile web artist coins explore (#12902) Reed [414104e] [PE-6817, PE-6818] Update track screen and track tile for coin gating (#12887) KJ [6e46c76] Reduce coin calls in user-badges (#12888) Dylan Jeffers [838d0f6] Drop legacy wallet modal (#12827) Dylan Jeffers [68c0fe2] Fix anchor tag warning (#12892) Farid Salau [5abeed7] Use correct route on artist coin hover card (#12901) Farid Salau [8492b52] [PE-6820] Update mobile web track page for coin gating (#12899) KJ [eb8b1da] Make swaps work for new artist coins (#12900) Farid Salau [96763dc] [PE-6816] Update mobile upload flow for coin gating (#12898) KJ [d2926f7] Use env var for AUDIO mint instead of prod mint (#12897) Farid Salau [7fc0b16] Refactor Token Filtering and Display Logic for Artist Coins (#12893) Farid Salau [00ca789] Misc launchpad changes (#12889) JD Francis [39adddd] Fix token-info-row tooltip mount (#12895) Dylan Jeffers [d531909] [QA-2325] Fix audio balance user badges (#12894) JD Francis [74d42f6] [PE-6798] Launchpad use actual quote logic (#12877) JD Francis [e59ff70] [PE-6824] Web artist coins table sort, pagination (#12886) Reed [54cf5fb] Use webp search explore background image (#12885) Reed [d086c89] [PE-6788] Mobile coins explore page (#12882) Reed [d738ea1] [API-100] Add error handling for rewards claiming (#12890) Ray Jacobson [b808da5] [API-100] Integrate new Rewards endpoint with client (#12875) Ray Jacobson [2bf3f9d] Use price from BE in formatter and deprecate `useTokenPrice` (#12883) Farid Salau [1589e25] Fix your coins table on resizing (#12881) Farid Salau [3014683] Fix tooltip positioning in buy/sell modal (#12880) Farid Salau [53ee9c8] Only show audio card when feature flag is disabled (#12878) Farid Salau [0bff6aa] Several UI updates for Artist Coins (#12876) Farid Salau [50b8fcf] [PE-6808, PE-6809] Update track page and track tiles for coin gating (#12871) KJ [f0a7e57] [PE-6799] Web artist coin explore page (#12869) Reed [d7e40eb] [PE-6750] Buy/sell/swap modal v2 (#12864) Dylan Jeffers [582b918] [PE-6807] Update upload flow for token gating (#12867) KJ [05e9fb5] Fix download all when track download not available (#12868) Dylan Jeffers
Description
There was a regression in this PR that allowed the "You Pay" section to show coins the user doesn't own. This reverses that
useOwnedTokenshook to filter tokens based on user ownership and balanceformatCurrencyWithSubscriptutility for improved formatting of very small currency values (e.g., 0.000068352 → 0.0₄68352)filterUserCoinsutility for consistent coin filtering based on feature flagsRefactoring
useFormattedTokenBalanceto use subscript formatting for better readabilityCoinCardcomponent layout and stylingYourCoinscomponent to use new filtering utilitiesuseGroupCoinPairshookImprovements
How Has This Been Tested?
npm run web:prodand play with flows