status-im / status-desktop

Status Desktop client made in Nim & QML
https://status.app
Mozilla Public License 2.0
271 stars 76 forks source link

`TokenSelector` doesn't show list of all known assets #15278

Closed caybro closed 1 day ago

caybro commented 1 week ago

The TokenSelector should list all the known assets under the "Popular assets" section at the bottom, with no balances:

image

Design: image

micieslak commented 1 week ago

@caybro Isn't the popular assets section relevant only to the receive section? What's the sense of choosing in "pay" section something that we don't own?

noeliaSD commented 1 week ago

I also have another doubt here.. Do we also need the community assets? For Send Modal yes, and probably a specific category / section for them. Not sure about swap @dlipicar @Khushboo-dev-cpp

caybro commented 1 week ago

@caybro Isn't the popular assets section relevant only to the receive section? What's the sense of choosing in "pay" section something that we don't own?

Yeah good point, we'll have to make this distinction in Swap; I'll fix/amend the PR

caybro commented 1 week ago

I also have another doubt here.. Do we also need the community assets? For Send Modal yes, and probably a specific category / section for them. Not sure about swap @dlipicar @Khushboo-dev-cpp

Yeah, in case of SendModal, we'll need it and the current view/adaptor already has support for optionally showing them

dlipicar commented 1 week ago

@caybro Isn't the popular assets section relevant only to the receive section? What's the sense of choosing in "pay" section something that we don't own?

@micieslak the original design was like that (showing only assets with balance >0 for the Pay selector), but it was changed a couple of days ago (https://www.figma.com/design/TS0eQX9dAZXqZtELiwKIoK/Swap---Milestone-1?node-id=3802-77911&t=xBodPGGHwoAggJlC-0) for a couple of reasons:

So yeah, we decided we would show the same lists on both sides.

dlipicar commented 1 week ago

I also have another doubt here.. Do we also need the community assets? For Send Modal yes, and probably a specific category / section for them. Not sure about swap @dlipicar @Khushboo-dev-cpp

Asked Ben about this a while ago, he said we should include them. I'm guessing in most cases there won't be a valid Swap proposal for those, but there's nothing preventing someone from setting up a Swap pool in Uniswap (or some other DEX) for their community asset, which would make Swapping possible. There doesn't seem to be a special section for those in the list though.

caybro commented 1 week ago

I also have another doubt here.. Do we also need the community assets? For Send Modal yes, and probably a specific category / section for them. Not sure about swap @dlipicar @Khushboo-dev-cpp

Asked Ben about this a while ago, he said we should include them. I'm guessing in most cases there won't be a valid Swap proposal for those, but there's nothing preventing someone from setting up a Swap pool in Uniswap (or some other DEX) for their community asset, which would make Swapping possible. There doesn't seem to be a special section for those in the list though.

OK, we can potentially show those as well :)