-
Notifications
You must be signed in to change notification settings - Fork 55
[ABA 🎵 Impact] - Fallback message and Loader #1916
Conversation
|
5cf45de
to
99ec561
Compare
Hey @W3stside, In generel it works and the messages shows up and disappear. For 1Inch and stake it didn't work I got the error loading price messages but for other tokens it worked as expected. However, I noticed that the error messages always shows up if you insert new values see video: Bildschirmaufnahme.2021-11-25.um.14.22.19.movAlso it doesn't quite work if you already have inserted a high value in the token amount field. Bildschirmaufnahme.2021-11-25.um.14.23.39.mov |
faabb53
to
019685e
Compare
99ec561
to
e75da37
Compare
019685e
to
4686541
Compare
e75da37
to
339bbd8
Compare
Hey @W3stside , I'd like to add some cases:
|
Should we show this warning when we select XDAI/ETH as a token to trade? Currently, we have a task not to show fee warning when these tokens are selected #1853 |
339bbd8
to
50957a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love the loading, i think is a great solution!
I would delay the appearance fo the loadera bit maybe? at least in xDAI was loading fast and making an effect like everything was moving a lot. I was feeling it takes too much attention (maybe good, but i don't like this part a lot).
The numbers are completely weird, or this is out of this PR?
1. include in relevant files: SwapMod and SwapModal
50957a7
to
2f45b0f
Compare
Loading looks great to me. However, sometimes it runs too long. In addition, sometimes I am able to get more than a huge % after a loading, but then in a sec the value was changed: https://watch.screencastify.com/v/BiSQvhtOZrFx8AWuu0ZT But I still see Swap button disabled when there is no price impact warning Or these changes are out of scope for this PR? Again, I still see this issue #1916 (comment) . Please let me know if I need to open a separate issue for this. Another nitpick, is that there is a different padding between warnings on the Swap form and confirmation modals. It would be good to have the same one |
Hey @W3stside , now the 'Swap/ button is enabled, but a bit weird to see Price impact message in the confirmation modal. See the video: |
[ABA - fixes] - Fix warning showing when not needed, and show correct impact in modal
[ABA] Final logic check - use SELL > SELL and BUY > SELL
@anxolin @gnosis/gp-frontend @gnosis/gp-qa please post merge review if necessary, tho this one is outdated from the others merged in (safe to ignore) |
Summary
Closes #1908
Description && screenshots in #1908
TODO: there are some tweaks to make:
better hiding/showing of message based on price impact - idea will be to (in another PR) make a global flag for ABA impact loading/not existing and wait for that to return before showing/hiding messagedone using fallback price impact error checkinga loader potentiatlly?done loader in commitLOADER screenshot
To Test
4a. see loader in price impact spot