web icon indicating copy to clipboard operation
web copied to clipboard

Prioritization of user held assets in asset dropdown

Open sababa-2019 opened this issue 2 years ago • 5 comments

Overview

Gm - As noted in #2265 this was slated to be combined but it got lengthy so they were split.

Currently in the trade modal, when a user selects the asset dropdown, assets they hold in their active wallet are not prioritized.

We want to display to the user the assets that they hold in their active wallet at the top of the list, so the user can more easily select their desired asset to swap.

If there are any questions or mockups required, please tag me and i'll be over in a jiffy to answer anything that comes up.

References and additional details

Placeholder for technical implementation details.

Acceptance Criteria

  • User assets in active wallet are shown at top of asset dropdown list in trade modal

Need By Date

No response

Screenshots/Mockups

No response

Estimated effort

No response

sababa-2019 avatar Jul 28 '22 18:07 sababa-2019

Adding to the ticket - in the Acceptance Criteria - the users balances (that they have assets of) should also display. @reallybeard we're likely going to need a mock up on this one.

DiggyDiggy2 avatar Aug 08 '22 15:08 DiggyDiggy2

Screen_Shot_2022-08-08_at_10 34 06_AM

reallybeard avatar Aug 08 '22 15:08 reallybeard

@shapeshift/product this looks like it should be in v2 to me? can you plz confirm?

0xdef1cafe avatar Aug 10 '22 22:08 0xdef1cafe

yes, this can be for V2

DiggyDiggy2 avatar Aug 11 '22 16:08 DiggyDiggy2

This would also apply to the search and the "assets" list

DiggyDiggy2 avatar Sep 27 '22 20:09 DiggyDiggy2

@0xdef1cafe you mentioned some additional requirements on this one - could you please elaborate on what they are?

0xApotheosis avatar Nov 10 '22 05:11 0xApotheosis

From @0xdef1cafe on Discord:

  • this asset search component is becoming a core component, it's now used in 3 places - the asset list (top/sidebar of the app), the swapper, and fiat ramps
  • it's currently a dumb component and its consumers are managing business logic for what it should render
  • i've considered making it a "smarter" component, kind of like the asset dropdown, or at least being able to inject some filter/sort logic into it
  • different sort orders - by market cap, by user balance, composite of both, i.e. user balance first, then market cap, then ???
  • hide zero balances? ask beard
  • if you find a component that takes a god object keyed by asset id, kill it and make sure all take assetId[]
  • there's a lot of prop drillin smells - disableUnsupported

0xApotheosis avatar Nov 10 '22 22:11 0xApotheosis