stacker.news/api/resolvers
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
..
admin.js snl live banner 2023-06-20 09:57:06 -05:00
apiKey.js Limit scope of API Keys (#989) 2024-04-03 15:11:06 -05:00
blockHeight.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
chainFee.js [1124] - Use Mempool For Fee Rate (#1171) 2024-05-15 10:26:49 -05:00
growth.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
image.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
index.js Add chain fees to price carousel (#658) 2023-12-20 16:06:22 -06:00
invite.js Limit scope of API Keys (#989) 2024-04-03 15:11:06 -05:00
item.js Frontend payment UX cleanup (#1194) 2024-05-28 12:18:54 -05:00
lnurl.js Limit scope of API Keys (#989) 2024-04-03 15:11:06 -05:00
message.js Revert "Revert "shield your eyes; massive, squashed refactor; nextjs/react/react-dom/apollo upgrades"" 2023-07-23 10:08:43 -05:00
notifications.js @remindme bot support (#1159) 2024-05-19 15:52:02 -05:00
ofac.js mute territories 2023-12-30 17:16:09 -06:00
price.js require sub selection, allow editting 2023-05-10 19:30:51 -05:00
referrals.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
rewards.js reintroduce daily rewards (#1134) 2024-05-01 09:30:36 -05:00
search.js Search bookmarks (#1075) 2024-04-19 13:24:48 -05:00
serial.js count pending withdrawals toward balance 2024-04-27 18:37:57 -05:00
sub.js Merge serializeInvoiceable with serialize without bug (#1051) 2024-04-09 19:49:20 -05:00
upload.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
user.js Fix no red square for territory posts (#1187) 2024-05-23 09:35:06 -05:00
wallet.js Allow deletion of wallet logs (#1101) 2024-05-03 14:14:33 -05:00