stacker.news/pages
ekzyis 94cce9155d
Frontend payment UX cleanup (#1194)
* Replace useInvoiceable with usePayment hook

* Show WebLnError in QR code fallback

* Fix missing removal of old zap undo code

* Fix payment timeout message

* Fix unused arg in super()

* Also bail if invoice expired

* Fix revert on reply error

* Use JIT_INVOICE_TIMEOUT_MS constant

* Remove unnecessary PaymentContext

* Fix me as a dependency in FeeButtonContext

* Fix anon sats added before act success

* Optimistic updates for zaps

* Fix modal not closed after custom zap

* Optimistic update for custom zaps

* Optimistic update for bounty payments

* Consistent error handling for zaps and bounty payments

* Optimistic update for poll votes

* Use var balance in payment.request

* Rename invoiceable to prepaid

* Log cancelled invoices

* Client notifications

We now show notifications that are stored on the client to inform the user about following errors in the prepaid payment flow:

- if a payment fails
- if an invoice expires before it is paid
- if a payment was interrupted (for example via page refresh)
- if the action fails after payment

* Remove unnecessary passing of act

* Use AbortController for zap undos

* Fix anon zap update not updating bolt color

* Fix zap counted towards anon sats even if logged in

* Fix duplicate onComplete call

* Fix downzap type error

* Fix "missing field 'path' while writing result" error

* Pass full item in downzap props

The previous commit fixed cache updates for downzaps but then the cache update for custom zaps failed because 'path' wasn't included in the server response.

This commit is the proper fix.

* Parse lnc rpc error messages

* Add hash to InvoiceExpiredError
2024-05-28 12:18:54 -05:00
..
[name] fix scroll on profile pages 2024-05-23 10:23:13 -05:00
api give lnurlp invoices longer expirations for tor channels 2024-05-06 10:08:28 -05:00
auth Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
invites Merge serializeInvoiceable with serialize without bug (#1051) 2024-04-09 19:49:20 -05:00
invoices Frontend payment UX cleanup (#1194) 2024-05-28 12:18:54 -05:00
items/[id] enhance navigation 2024-03-26 18:36:31 -05:00
referrals fix: custom calendar dark theme (#1123) 2024-05-11 20:32:44 -05:00
rewards Frontend payment UX cleanup (#1194) 2024-05-28 12:18:54 -05:00
satistics fix #1132 broken satistics links 2024-04-30 17:52:34 -05:00
settings Frontend payment UX cleanup (#1194) 2024-05-28 12:18:54 -05:00
stackers chart skeletons 2024-03-25 15:35:32 -04:00
wallet add lnc attached wallet (#1104) 2024-04-26 21:22:30 -05:00
withdrawals Show preimage of confirmed withdrawals (#1106) 2024-04-25 19:33:24 -05:00
~ reintroduce daily rewards (#1134) 2024-05-01 09:30:36 -05:00
404.js upgrade to next-auth 4 (bonus: improve error pages) 2023-07-29 14:38:20 -05:00
500.js upgrade to next-auth 4 (bonus: improve error pages) 2023-07-29 14:38:20 -05:00
_app.js Frontend payment UX cleanup (#1194) 2024-05-28 12:18:54 -05:00
_document.js enhance navigation 2024-03-26 18:36:31 -05:00
_error.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
email.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
live.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
login.js add NEXT_PUBLIC_URL 2024-04-08 17:54:39 -05:00
notifications.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
offline.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
search.js search all territories by default + more intuitive search filters 2024-03-26 18:37:40 -05:00
share.js Service worker rework, Web Target Share API & Web Push API (#324) 2023-07-04 14:36:07 -05:00
signup.js enhance navigation 2024-03-26 18:36:31 -05:00
territory.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00