as part of send payment UI flows rework, which focuses on improving the outgoing payment flows by converting key dialogs to fullscreen and refining UI behavior for LNURL payments and Lightning transactions.
Conversion to Fullscreen UI:
Created LnUrlPaymentPage & LNInvoicePage pages for handling all LNURL/LN payments, with proper error handling and display of payment information(fee, metadata, etc.) on fullscreen pages.
Converted ProcessingPaymentDialog and SuccessActionDialog to fullscreen dialogs.
Fee and Payment Information:
Fees are now pre-fetched if network limits are available for fixed-amount invoices. They are also updated dynamically for LNURL payments where the range of accepted amounts falls within network limits.
Amounts are pre-validated before fees are fetched to limit prepareLnurlPay API usage.
Error Handling:
Improved error messaging with warnings and validation messages, ensuring errors are shown in a user-friendly manner.
UI Adjustments:
Added maximum height & scrollability to certain payment information widgets such as LNURLMetadataText, Message widget used on SuccessActionDialog when a URL is present on success action data.
LnUrlPaymentPage is now scrollable.
Additional Features:
Added handling of LNURLPageResult's and consequently LNURL success actions.
This PR addresses
209
210
182
183
181
3
as part of send payment UI flows rework, which focuses on improving the outgoing payment flows by converting key dialogs to fullscreen and refining UI behavior for LNURL payments and Lightning transactions.
Conversion to Fullscreen UI: Created
LnUrlPaymentPage
&LNInvoicePage
pages for handling all LNURL/LN payments, with proper error handling and display of payment information(fee, metadata, etc.) on fullscreen pages.Converted
ProcessingPaymentDialog
andSuccessActionDialog
to fullscreen dialogs.Fee and Payment Information: Fees are now pre-fetched if network limits are available for fixed-amount invoices. They are also updated dynamically for LNURL payments where the range of accepted amounts falls within network limits.
Amounts are pre-validated before fees are fetched to limit
prepareLnurlPay
API usage.Error Handling: Improved error messaging with warnings and validation messages, ensuring errors are shown in a user-friendly manner.
UI Adjustments: Added maximum height & scrollability to certain payment information widgets such as
LNURLMetadataText
,Message
widget used onSuccessActionDialog
when a URL is present on success action data.LnUrlPaymentPage
is now scrollable.Additional Features: Added handling of
LNURLPageResult
's and consequently LNURL success actions.Cleanup Removed
LNURLPaymentDialog
,LNURLPaymentInfo
, 'PaymentRequestDialog' and it's components,Invoice
helper class.