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

[VDG] Fix Amount Paste #12661

Merged
merged 7 commits into from Mar 25, 2024
Merged

[VDG] Fix Amount Paste #12661

merged 7 commits into from Mar 25, 2024

Conversation

ichthus1604
Copy link
Collaborator

@ichthus1604 ichthus1604 commented Mar 13, 2024

  • Removes the restriction to paste amounts larger than current wallet balance
  • Removes the automatic replacement that occurs when trying to paste amounts larger than total BTC in existence. This rule doesn't make sense for clipboard.
  • Validations continue to work for both cases in the Send dialog: user won't be able to hit Continue button if input is invalid.
  • Paste suggestions (flyout) keep their existing behavior: they will only appear if you have enough funds and there's a valid value to paste in the box.
  • Pasting any kind of nonsense (non numeric characters, etc) is disallowed.
  • Fixes [UI] Allow more than balance amount paste #12645

@soosr
Copy link
Collaborator

soosr commented Mar 13, 2024

@ichthus1604 Please fix the tests too

@pull-request-size pull-request-size bot added size/M and removed size/S labels Mar 14, 2024
@ichthus1604
Copy link
Collaborator Author

After #12660 is merged, I need to fix this: #12660 (comment) in this PR. Since this PR touches flyout related code, it will be less problematic to include this fix in here rather than in the other PR.

@soosr
Copy link
Collaborator

soosr commented Mar 14, 2024

After #12660 is merged, I need to fix this: #12660 (comment) in this PR. Since this PR touches flyout related code, it will be less problematic to include this fix in here rather than in the other PR.

Merged.
Also please fix CurrencyInputTests.
Thanks!

@ichthus1604
Copy link
Collaborator Author

Also please fix CurrencyInputTests.

Done ;)

Copy link
Collaborator

@soosr soosr left a comment

Choose a reason for hiding this comment

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

pasting amount with a different decimal separator doesn't work.

Copy link
Collaborator

@wieslawsoltes wieslawsoltes left a comment

Choose a reason for hiding this comment

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

Tested LGTM

@soosr soosr merged commit d10f474 into zkSNACKs:master Mar 25, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UI] Allow more than balance amount paste
3 participants