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

fix: sell asset input loading state #7785

Merged
merged 1 commit into from
Sep 23, 2024
Merged

Conversation

0xApotheosis
Copy link
Contributor

Description

Fixes a UI quirk introduced in #7741, which was a little aggressive with loading states making it difficult to enter a precise input amount in the swapper.

Issue (if applicable)

Closes #7775

Risk

Low

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

None

Testing

When entering the sell amount of an asset, particularly the sell amount, a user should be able to do this unencumbered by loading skeletons triggered by the input itself.

Engineering

☝️

Operations

  • 🏁 My feature is behind a flag and doesn't require operations testing (yet)

☝️

Screenshots (if applicable)

N/A

@0xApotheosis 0xApotheosis requested a review from a team as a code owner September 23, 2024 05:51
@NeOMakinG NeOMakinG self-requested a review September 23, 2024 07:13
Copy link
Collaborator

@NeOMakinG NeOMakinG left a comment

Choose a reason for hiding this comment

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

I was afraid about the accounts loading state but it seems to work pretty fine as destination asset has the skeletons

image

I feel like we could add a skeleton to the swapper quotes in case the users asked for quotes but accounts are loading, as a follow up maybe, wdyt?

Actual fix

image
image

Removing the skeletons works pretty fine, I have been able to enter very precise amount of ETH to swap for FOX

As the swapper has been tested while implementing these skeletons, the only specific part to test seems to be the account loading step and so it's seems happy!

lgtm! ✅

@0xApotheosis
Copy link
Contributor Author

@NeOMakinG I don't mind your proposed follow-up at all, it would make things look a little nicer 👌

@0xApotheosis 0xApotheosis merged commit d9b7082 into develop Sep 23, 2024
3 checks passed
@0xApotheosis 0xApotheosis deleted the fix-sell-asset-inpup branch September 23, 2024 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trade rates calculating before finished typing in amount to trade
2 participants