-
Notifications
You must be signed in to change notification settings - Fork 41
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
Initial Template for Request Payment page #435
base: main
Are you sure you want to change the base?
Conversation
The piece I'm most concerned about this form is the Amount input field and how to properly sanitize and convert the field. The current object backing it doesnt quite feel right but I am limited by the inability to extend the actual TextInput class. |
{ | ||
QString result = text; | ||
|
||
// Remove any invalid characters |
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.
Is this the right thing to do?
QT gui simply refuses to paste when there are invalid characters.
yeah there are a couple weird things:
|
This control is primarily used in wallet forms where the user is expected to input values for sending or receiving transactions. It contains a Label describing the input as well as a TextInput where the actual string is entered. A Icon is also available on the right side of the component for extra actions.
The copy icon will be used to initiate a copy to clipboard when it is clicked.
The flip-veritcal icon is primarily used when flipping the units displayed when clicked
The pending icon will be used to show the status of transactions
1b869eb
to
e642461
Compare
BitcoinAmount is a helper object can be used to manage inputs in sats or btc.
This page contains the form for the user to fill out to create a payment request.
This page contains the details of a payment request. It is pushed onto the RequestPayment page's stack after the user has clicke don Continue.
e642461
to
adff8f2
Compare
From from 1b869eb to adff8f
|
These commits introduce the Request Payment flow. This view is available under the "Receive" tab on the Desktop Wallets main navigation view.
The Request Payment form itself currently only includes fields currently supported by the Qt wallet (label, message, and amount). Follow up PR will add support for local notes.
The Amount field in the Request form takes only valid Satoshi/Bitcoin amounts and supports flipping the units with the associated button toggle.
When the Continue button is pressed the Request Confirmation page gets pushed to the stack will eventually reflect the fields inputted in the previous form backed by the output of the WalletModel result. In its current implemention it just has statically defined properties to check the visual layout. The page also contains an address field with the copy icon that can be used to move the address into your clipboard.
Ubuntu screenshots