aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Lnurlp.svelte
Commit message (Collapse)AuthorAgeFilesLines
* send: stop the Max buttons from cancelling their own submit, show LNURL ↵Adam Soltys2026-09-211-2/+7
| | | | | | | | | | | | | | | | | | | | | | | action errors Choosing Max on the LNURL-pay page left the button spinning forever. Two things combined: The Max buttons set `loading` from their click handler. Svelte flushes `disabled={loading}` to the DOM before the browser runs the button's submit activation, and a disabled button submits nothing. Set loading from the form's onsubmit instead, the way the Send button always did. The /ln page never passed `form` into the Lnurlp and Lnurlw components, so any action failure (pay, max or withdraw) rendered nothing and never reset the spinner. Pass it through, and reset loading when a result arrives. Verified in headless Chrome against the dev stack: the bolt11 Max lands on the fee view, and the LNURL Max surfaces the server's error and re-enables the buttons. Co-Authored-By: Claude Fable 5.1 <[email protected]>
* send: quote the lightning routing fee up front and add Max to lightning sendsAdam Soltys2026-09-211-3/+14
| | | | | | | | | | | | | | | | | | | The lightning send page now asks the server what the payment will cost before showing the Send button: the exact routing fee from the route query, the platform fee, and the total. The quoted fee is submitted as the maxfee, so what the user sees is what gets debited; advanced settings still let them override it, and if the quote fails the page falls back to the old 2% reserve. Max on the amount step asks the server for the largest amount whose amount + routing fee + platform fee lands exactly on the balance, and for an offer picks up the invoice fetched for that exact amount. LNURL-pay gets a Max button too. The invoice only exists once we name an amount, so the action fetches a probe invoice at the ceiling, lets the server solve for the amount, then fetches the real invoice for it. Co-Authored-By: Claude Fable 5.1 <[email protected]>
* cached ratesAdam Soltys2024-12-051-3/+1
|
* warningsAdam Soltys2024-11-261-1/+1
|
* warningsAdam Soltys2024-11-261-12/+4
|
* svelte 5Adam Soltys2024-11-081-6/+16
|
* dark stylesAdam Soltys2024-11-061-5/+1
|
* hide maxfee unless errorAdam Soltys2024-10-141-1/+1
|
* support lnurl commentsAdam Soltys2024-10-141-3/+14
|
* fix enter button on send lnurlAdam Soltys2023-12-181-3/+5
|
* forgot passwordAdam Soltys2023-12-071-2/+1
|
* prettierAdam Soltys2023-12-041-1/+1
|
* change component importsAdam Soltys2023-12-011-1/+2
|
* prettierAdam Soltys2023-12-011-48/+48
|
* currency displayAdam Soltys2023-03-291-2/+4
|
* fee sliderfee-sliderAdam Soltys2023-02-231-1/+1
|
* fix default lnurlp amountAdam Soltys2023-02-221-1/+1
|
* lnurlwAdam Soltys2023-01-271-0/+58