Skip to content
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

Filter curated assets to only ones with icon_url #5768

Merged
merged 1 commit into from
May 24, 2024
Merged

Conversation

walmat
Copy link
Contributor

@walmat walmat commented May 24, 2024

Fixes RNBW-4727

What changed (plus any additional context for devs)

Screen recordings / screenshots

What to test

Copy link

linear bot commented May 24, 2024

@@ -75,7 +76,7 @@ export function useSearchCurrencyLists() {
// static search data
const { data: verifiedAssets, isLoading: verifiedAssetsLoading } = useTokenSearch(
{ list: 'verifiedAssets' },
{ staleTime: 60 * 60 * 1000, cacheTime: 24 * 60 * 60 * 1000 }
{ select: filterNonTokenIconAssets, staleTime: 60 * 60 * 1000, cacheTime: 24 * 60 * 60 * 1000 }
Copy link
Member

Choose a reason for hiding this comment

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

two questions:

  1. should we apply this filter to the other search queries (target verified/unverified)?
  2. should this filter be at the response parsing level instead of selector level? assuming we will use the verifiedAssets elsewhere in the app, maybe we'd want the same standard of data completeness (must have icon url) everywhere in the app

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. No. We only want this requirement for curated assets. Verified / Unverified assets should be able to not have this in case a user searches for a specific token.
  2. Again related to Supporting default transaction (non ETH and non token transfer) #1, but I think we only want this for the static curated assets list

@walmat walmat merged commit df06c6a into develop May 24, 2024
6 checks passed
@walmat walmat deleted the @matthew/RNBW-4727 branch May 24, 2024 17:01
BrodyHughes added a commit that referenced this pull request May 28, 2024
…licious-dapp-warning-e2e

* 'develop' of github.com:rainbow-me/rainbow:
  Swaps: package upgrades, fix SwapBackground and AnimatedSwapSpinner (#5775)
  Swaps: fix safe math negative number support, add comparison functions (#5776)
  Reanimated v3.11.0 (#5683)
  Gas (#5757)
  add degen chain to network selector (#5766)
  prefer local chain image over custom (#5772)
  add safe math fns (#5765)
  filter out assets from curated assets with no icon_url (#5768)
  fix isQuoteStale lag (#5769)
  fix icon sizing (#5771)
  Preliminary work: Update formatter functions to take in object params (#5760)
  APP-1500 (#5763)
  chore: i18n updates (#5762)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants