Commit Graph

1870 Commits

Author SHA1 Message Date
keyan e9a78e2d07 fix spending growth view 2024-01-19 16:40:29 -06:00
keyan 968263ba6a have datepicker store unix timestamps 2024-01-19 15:30:36 -06:00
keyan eb99fcef9e improve stat gathering 2024-01-19 15:19:26 -06:00
keyan 0134968fc1 don't trigger date picker onchange until 2 dates are picked 2024-01-19 15:14:52 -06:00
keyan c41ad5d469 fix for 404 on empty search results 2024-01-19 15:12:47 -06:00
keyan 64e49934d4 disconnect greedy rewards connection after they run 2024-01-19 15:11:44 -06:00
keyan d14123cc42 improved comment linking 2024-01-17 19:03:49 -06:00
ekzyis 2ceada66d6
Remove plausible link (#762) 2024-01-17 18:11:00 -06:00
keyan 61a66127d1 search/related posts refinements 2024-01-17 17:39:48 -06:00
Ben Allen f915b2b8b3
add support for scanning bip21 qr (#755) 2024-01-17 15:17:18 -06:00
keyan c58d3c778a search filter help text for exact phrase 2024-01-17 09:28:05 -06:00
keyan fe5991112e support query quoting for exact matches 2024-01-16 20:01:06 -06:00
ekzyis 9ef0c81245
refactor: replace recursion with promise sequence in `useInvoiceable` (#752)
* refactor: replace recursion with promise sequence

This commit refactors `useInvoicable`. The hard-to-follow recursion was replaced by awaiting promises which resolve or reject when one step of our JIT invoice flow is done.

Therefore, `onSubmit` is now fully agnostic of JIT invoices. The handler only returns when payment + action was successful or canceled - just like when a custodial zap was successful.

* refactor more and fix bugs

* move invoice cancel logic into hook where invoice is also created
* fix missing invoice cancellation if user closes modal or goes back.
* refactor promise logic: it makes more sense to wrap the payment promise with the modal promise than the other way around.

* Fix unhandled rejection

* Fix unnecessary prop drilling

* Fix modal not closed after successful action

* Fix unnecessary async promise executor

* Use function to set state
2024-01-16 18:40:11 -06:00
Keyan 1f355140f3
Merge pull request #751 from stackernews/fix-title-in-logs
Fix logged title
2024-01-16 15:18:02 -06:00
keyan 9af3388353 semantic search 2024-01-15 17:22:57 -06:00
ekzyis f450a00073 Fix logged title 2024-01-14 21:14:14 +01:00
Keyan 75bf4aced9
Merge pull request #750 from stackernews/fix-day-filter
Fix 'column Item.day does not exist'
2024-01-14 13:01:00 -06:00
ekzyis b7413e9e32 Fix 'column Item.day does not exist' 2024-01-14 19:10:31 +01:00
keyan d45a46e7a4 improve copy on autowithdraw 2024-01-13 11:28:14 -06:00
Keyan 11b05b0f8a
Merge pull request #748 from stackernews/524-autowithdraw-lnaddr-review
Small changes regarding automated withdrawals
2024-01-13 11:11:48 -06:00
ekzyis 40f2697675 Disallow automated withdrawals to same node 2024-01-13 17:32:54 +01:00
ekzyis 5dd4136c0b Fix missing HTTPS support for automated withdrawals during development 2024-01-13 17:32:54 +01:00
ekzyis 12f9c4761d Fix isNaN checks 2024-01-13 17:32:53 +01:00
keyan 59ff146cc9 fix fee percent typo 2024-01-12 23:50:17 -06:00
keyan 09f459b569 fix fee percent type error 2024-01-12 23:47:05 -06:00
keyan 6288db1b83 fix autowithdraw wording 2024-01-12 23:45:38 -06:00
keyan b530b611f5 disable self sends in autowithdraw 2024-01-12 09:37:50 -06:00
keyan 1d388942e9 fix attach wallet styling for mobile 2024-01-12 08:56:39 -06:00
keyan 1dae33312f allow territories to be renamed 2024-01-11 17:48:08 -06:00
Keyan cd2979b022
Merge pull request #746 from stackernews/524-autowithdraw-lnaddr
autowithdraw to lightning address
2024-01-11 13:31:04 -06:00
keyan 86e8350994 autowithdraw to lightning address 2024-01-11 13:10:07 -06:00
keyan efc566c3da improve newsletter script 2024-01-11 13:08:37 -06:00
keyan 572103b2e3 improve wallet limit phrasing 2024-01-11 13:08:37 -06:00
ekzyis bdf9b1f0fd
Territory post notifications (#745)
* Notify founders of new posts

* Only merge notifications of same territory

* Show territory posts in /notifications

* Don't notify on own posts
2024-01-11 11:27:54 -06:00
ekzyis 39c9775c4c
Fix TypeError on item creation if JIT invoicing is used (#744)
* Fix TypeError on item creation if JIT invoicing is used

* Fix bad if body

---------

Co-authored-by: ekzyis <ek@stacker.news>
2024-01-10 19:24:49 -06:00
ekzyis c267bf92fd
Fix TypeError (reading 'catch') (#742)
Co-authored-by: ekzyis <ek@stacker.news>
2024-01-10 14:18:41 -06:00
keyan c243a6d8be robust lnd subscriptions and robust held recording 2024-01-10 09:50:57 -06:00
ekzyis df1edd5b79
Fix push notification counting on iOS devices (#739)
Co-authored-by: ekzyis <ek@stacker.news>
2024-01-10 09:25:30 -06:00
keyan 9a9e81b109 refine territory details on post form 2024-01-08 19:02:00 -06:00
ekzyis f8cbd43be7
Show territory details in post form (#725)
* Show territory details in post form

* Style territory details in post form

* Keep details closed by default

* Use SUB_FULL

* Undo unused changes to specify accordian default

---------

Co-authored-by: ekzyis <ek@stacker.news>
2024-01-08 17:46:23 -06:00
ekzyis 2151323c8d
Use LND subscriptions (#726)
* Use parallel invoice subscriptions

* Fix missing idempotency

* Log error

* Use cursor for invoice subscription

* Subscribe to outgoing payments for withdrawals

* Add TODO comments regarding migration to LND subscriptions

* Also use isPoll variable in checkInvoice

* Queue status check of pending withdrawals

* Use for loop to check pending withdrawals

* Reconnect to LND gRPC API on error

* Fix hash modified of applied migrations

* Separate wallet code from worker index

* refactor subscription code some more

* remove unnecessary subWrapper abstraction
* move all wallet related code into worker/wallet.js such that only a single import is needed in worker/index.js

* Migrate from polling to LND subscriptions

* Remove unnecessary reconnect code

* Add FIXME

* Add listener for HODL invoice updates

* Remove obsolete comment

* Update README

* Add job to cancel hodl invoice if expired

* Fix missing else

* small bug fixes and readability enhancements

* refine and add periodic redundant deposit/withdrawal checks

---------

Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2024-01-08 16:37:58 -06:00
SatsAllDay cb076eca77
add link to email signup page for newsletter in newsletter signature (#737) 2024-01-07 10:43:00 -06:00
keyan 5137f1423d change reply placeholder 2024-01-04 18:48:10 -06:00
ekzyis 045ba28c41
Remove logging to browser (#733)
* Don't log to browser console

* Don't log options (too verbose)

---------

Co-authored-by: ekzyis <ek@stacker.news>
2024-01-04 13:53:52 -06:00
ekzyis 4d953fc3a9
Fix invalid DOM property (#732)
Code works but it prints a warning in the console:

> Warning: Invalid DOM property `autocomplete`. Did you mean `autoComplete`?

Co-authored-by: ekzyis <ek@stacker.news>
2024-01-04 11:17:57 -06:00
keyan 48e9cdef64 default to server provided sub name 2024-01-03 21:15:54 -06:00
keyan 6495ce9454 keep citext cast from 8996fd0 2024-01-03 21:02:04 -06:00
keyan 29a8640493 deal with territory case using clientside redirect 2024-01-03 20:51:01 -06:00
keyan 26e0dd6f7e Revert "fix #703"
This reverts commit 8996fd085a.
2024-01-03 20:39:26 -06:00
keyan 6a600c2043 fix null sub in select 2024-01-03 19:45:30 -06:00