bitsongofficial / sinfonia-ui

https://sinfonia-ui.vercel.app
6 stars 11 forks source link

Improve the token selector #385

Open giorgionocera opened 2 years ago

giorgionocera commented 2 years ago

At the moment, we are using a select (dropdown) to let the user select a token in the swap component. Due to the fact that we have a big number of tokens (which number should increase soon), we should propose a new component for the token selection.

Some suggestions:

Some references:

We need the design for such a component (also the swap one). swap-component

giannnni commented 2 years ago

Due to a redesign of the entire Swap Component, I could suggest a better solution that could include some extra help for users like a search field and a small "Recent Swapped Token" carousel.

You could see the new select component just below: image

You can also see the Swap Component redesigned here:

Schermata 2022-07-13 alle 16 04 51
giorgionocera commented 2 years ago

I think it is a nice solution. Thank you! Do you have also the mobile and tablet versions?

Anyway, let's see what @angelorc thinks about it.

giannnni commented 2 years ago

Yes, you could see here a minimized version for mobile only (opened as a bottom sheet):

· Base version: image · Slippage menu open: image · Select Token open: image

giorgionocera commented 2 years ago

It is very nice. However I think this blur could be an issue at the moment, but let's wait for feedback from @DavideSegullo.

DavideSegullo commented 2 years ago

@Giorgionocera It's better if we doesn't use it if not required

giorgionocera commented 2 years ago

@giannnni, can we remove it? Or is it required?

giannnni commented 2 years ago

Ok, let's move to solid color #311D3E

giorgionocera commented 2 years ago

Okay, so now let's only wait for feedback from @angelorc 😄

giorgionocera commented 2 years ago

As from the meeting with @angelorc, we need:

giannnni commented 2 years ago

I fixed the table reducing margins and moving fantoken name under symbol. Tell me if it's enough or you need less margins (I suggest not).

Here my proposal: image

giorgionocera commented 2 years ago

Yeah, I think it could be nice! Thank you @giannnni ! @DavideSegullo we can move it in development!

giorgionocera commented 2 years ago

This also includes issue #335.

giorgionocera commented 2 years ago

Thank you!

giorgionocera commented 2 years ago

I think that in the desktop version the information on the amount of token available should be visible at every moment of the swap action. We need to bring it back.