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

feat: improve pasting #496

Merged
merged 5 commits into from Mar 11, 2024
Merged

feat: improve pasting #496

merged 5 commits into from Mar 11, 2024

Conversation

dni
Copy link
Member

@dni dni commented Mar 9, 2024

closes #305

it pretty though too differentiate between invalid amount (max) or invalid characters on the regex, can we do 1 error message for all i think it is sufficient?

Copy link

vercel bot commented Mar 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
webapp ✅ Ready (Inspect) Visit Preview Mar 11, 2024 11:09am
webapp-mainnet ✅ Ready (Inspect) Visit Preview Mar 11, 2024 11:09am

Copy link
Member

@kilrau kilrau left a comment

Choose a reason for hiding this comment

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

  • the generic message is good enough 👍
    image

  • pasting a float that is within min/max works
    image
    but instead of throwing it somehow breaks the autoswitch to btc denomination if paste amount is full bitcoin and >max while in sats denomination
    image

@dni dni requested a review from kilrau March 10, 2024 14:25
Copy link
Member

@kilrau kilrau left a comment

Choose a reason for hiding this comment

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

Still not fixed for me:
image

@dni
Copy link
Member Author

dni commented Mar 11, 2024

Still not fixed for me: image

sorry, i accidently requested a review to early :)

Copy link
Member

@kilrau kilrau left a comment

Choose a reason for hiding this comment

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

Previous issue fixed. One more tiny thing: if I try pasting with cursor in the middle of this amount where max digits of the input box are reached it should throw the error as well. Right now it just doesn't paste.

image

Copy link
Member

@kilrau kilrau left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Improve pasting
3 participants