Commit Graph

2778 Commits

Author SHA1 Message Date
ekzyis 3044c2e98f
Fix outlawed can show up on front page (#1565)
If an item has a lot of comments, it gets ranked higher.

When an item is now downzapped, it can become outlawed but still show up on the front page because of the comments.

This fixes it by filtering outlawed items out instead of relying on the ranking to make them not show up.
2024-11-12 19:47:14 -06:00
Keyan a44d0daf09
paid action payment methods as an array (#1584)
* introduce fee credits & allow paid actions to specify payment method priority

* fix merge issue

* express supported paid action payment methods as an array

* log force payment method skipping methods

* fix stuff

* immutable context

* immutable paidAction context and other fixes

---------

Co-authored-by: Riccardo Balbo <riccardo0blb@gmail.com>
2024-11-12 19:00:51 -06:00
k00b d1c770dbbc noop walletLogger if wallet isn't provided 2024-11-12 09:22:51 -06:00
k00b cb8cce77f0 don't let args overwrite withdrawal/deposit checking params 2024-11-12 08:50:54 -06:00
Riccardo Balbo 7e5a8310df
fix lnd hostname (#1580) 2024-11-11 17:52:15 -06:00
Riccardo Balbo 18700b4201
configurable sybil fee (#1577)
* configurable sybil fee

* document getSybilFeePercent

* fixes

* remove null check

* refine at the margins

---------

Co-authored-by: k00b <k00b@stacker.news>
2024-11-11 16:59:52 -06:00
ekzyis fdd34b2eb3
Fix edit countdown on deleted items (#1571)
* Clarify conditions to show edit countdown

* Fix edit countdown shown for deleted items

* refactor: Minimize canEdit state

I noticed that only anonEdit requires state because it needs to use useEffect to fetch from local storage.

The other conditions can simply be checked during render.

* refactor: Use datePivot for edit countdown
2024-11-11 09:23:08 -06:00
ekzyis 406ae81693
Fixes around account switching / authentication (#1575)
* Fix missing page reload after account switch on logout

* Fix missing key

* Explain why we set multi_auth cookies on login/signup

* Fix 500 if multi_auth cookie missing
2024-11-11 09:16:32 -06:00
Keyan 4675a2c29d
sndev cleanup (#1563)
* begin sndev cleanup

* cleanup sndev

* fix posix shell compliance

* add tests to sndev
2024-11-09 15:52:04 -06:00
Keyan c31cf97288
fix precedence of op for not full hot sort (#1564) 2024-11-09 14:25:52 -06:00
ekzyis d06f4ae70d
Fix offcanvas not closed before showing logout prompt (#1561) 2024-11-09 14:00:36 -06:00
ekzyis afb71012af
Only send push notification if referrer was updated (#1562) 2024-11-09 14:00:07 -06:00
ekzyis 72e2d19433
supercharged wallet logs (#1516)
* Inject wallet logger interface

* Include method in NWC logs

* Fix wrong page total

* Poll for new logs every second

* Fix overlapping pagination

* Remove unused total

* Better logs for incoming payments

* Use _setLogs instead of wrapper

* Remove inconsistent receive log

* Remove console.log from wallet logger on server

* Fix missing 'wallet detached' log

* Fix confirm_withdrawl code

* Remove duplicate autowithdrawal log

* Add context to log

* Add more context

* Better table styling

* Move CSS for wallet logs into one file

* remove unused logNav class
* rename classes

* Align key with second column

* Fix TypeError if context empty

* Check content-type header before calling res.json()

* Fix duplicate 'failed to create invoice'

* Parse details from LND error

* Fix invalid DOM property 'colspan'

* P2P zap logs with context

* Remove unnecessary withdrawal error log

* the code assignment was broken anyway
* we already log withdrawal errors using .catch on payViaPaymentRequest

* Don't show outgoing fee to receiver to avoid confusion

* Fix typo in comment

* Log if invoice was canceled by payer

* Automatically populate context from bolt11

* Fix missing context

* Fix wrap errors not logged

* Only log cancel if client canceled

* Remove unused imports

* Log withdrawal/forward success/error in payment flow

* Fix boss not passed to checkInvoice

* Fix TypeError

* Fix database timeouts caused by logger

The logger shares the same connection pool with any currently running transaction.

This means that we enter a classic deadlock when we await logger calls: the logger call is waiting for a connection but the currently running transaction is waiting for the logger call to finish before it can release a connection.

* Fix cache returning undefined

* Fix typo in comment

* Add padding-right to key in log context

* Always use 'incoming payment failed:'

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-11-08 13:26:40 -06:00
k00b f1b2197d31 find lightning module relative to project directory 2024-11-08 09:37:45 -06:00
ekzyis d6916fa3f4
Merge pull request #1557 from stackernews/fix-invoice-waiting
fix invoice waiting
2024-11-08 05:25:05 +01:00
k00b dcab8e1365 fix invoice waiting 2024-11-07 19:55:34 -06:00
Keyan e9a5925c50
Merge pull request #1556 from stackernews/fix-1544
fix invoice status display
2024-11-07 19:25:06 -06:00
k00b 544a54399c fix invoice status display 2024-11-07 19:17:50 -06:00
Keyan 0891e51c9e
fix passphrase scanning (#1553) 2024-11-07 16:24:41 -06:00
Keyan a67ef43f6e
listen for local storage wallet changes (#1552) 2024-11-07 13:15:39 -06:00
Keyan d117549348
fix lightning module resolution (#1551)
* fix tsx usage

* Revert "Revert "Merge pull request #1521 from riccardobl/tordev""

This reverts commit 4cc3780eca.

* lightning module resolution

* fix our one test
2024-11-07 09:03:54 -06:00
k00b 4cc3780eca Revert "Merge pull request #1521 from riccardobl/tordev"
This reverts commit 3112fc30d8, reversing
changes made to 803daed2df.
2024-11-05 20:08:33 -06:00
Keyan 4ad93cd4ab
Merge pull request #1546 from stackernews/fix-1543
fix vault key changes not seen by all instances of useVault
2024-11-05 19:45:16 -06:00
k00b f0a5bc4f27 fix vault key changes not seen by all instances of useVault 2024-11-05 17:25:18 -06:00
Keyan 281757dd81
Merge pull request #1545 from riccardobl/passhide
Use -webkit-text-security to hide passphrase
2024-11-05 12:59:11 -06:00
Riccardo Balbo 49caec5b63 do not override passed style 2024-11-05 18:06:45 +01:00
Riccardo Balbo 4d8f85508a Use -webkit-text-security to hide passphrase 2024-11-05 17:16:27 +01:00
Keyan 532abcb486
Merge pull request #1540 from riccardobl/inputdefault
add explicit support for default values in input fields
2024-11-05 09:37:23 -06:00
Riccardo Balbo cd4fcdff83 Merge remote-tracking branch 'upstream/master' into inputdefault 2024-11-05 16:35:16 +01:00
Riccardo Balbo 7eb668e0e2 explicit default values 2024-11-05 16:27:48 +01:00
Keyan 7efd0899c8
Merge pull request #1539 from stackernews/fix-1538
fix #1538
2024-11-05 07:02:38 -06:00
Keyan 3112fc30d8
Merge pull request #1521 from riccardobl/tordev
TOR patch
2024-11-04 19:41:54 -06:00
Keyan 40ff3a83f4
Merge branch 'master' into tordev 2024-11-04 19:20:29 -06:00
Keyan 803daed2df
Merge pull request #1535 from stackernews/fix-global-wallet-logs
Fix global wallet logs never fetch logs from server
2024-11-04 18:52:02 -06:00
Keyan 6feaf383b9
Merge pull request #1536 from stackernews/fix-wallet-priority-reorder
Fix wallet priority reorder inconsistency
2024-11-04 18:50:07 -06:00
k00b db55cc7a00 fix 1538 2024-11-04 18:39:52 -06:00
ekzyis bcaa135270 Fix wallet priority reorder 2024-11-05 00:40:06 +01:00
ekzyis be212d1de9 Fix global wallet logs never fetch logs from server 2024-11-05 00:39:57 +01:00
Keyan 8ab44e19fd
Merge pull request #1537 from riccardobl/rqwt
requiredWithout doesn't expect an array
2024-11-04 15:43:07 -06:00
Riccardo Balbo 0416ebbdd8 requiredWithout doesn't expect an array 2024-11-04 22:18:43 +01:00
Riccardo Balbo 571a230b3c fix require is not defined in ES module scope 2024-11-04 20:09:34 +01:00
Keyan d6caee5b42
Merge pull request #1510 from stackernews/fix-more-shown-after-delete
Fix more button shown after logs deleted
2024-11-04 07:28:58 -06:00
ekzyis 0901f15249 Fix more button shown after logs deleted by wrapping setLogs 2024-11-04 14:05:41 +01:00
ekzyis 58c37bbd63 Fix more button shown after logs deleted 2024-11-04 13:22:40 +01:00
Riccardo Balbo 048c27fa7e
Merge branch 'master' into tordev 2024-11-04 10:38:00 +01:00
Riccardo Balbo c708c5bf6f fix lnd paths 2024-11-04 10:13:22 +01:00
Riccardo Balbo 7a8646c516 stacker_cln get_onion -> stacker_clncli get_onion 2024-11-04 10:12:52 +01:00
Keyan d9e9a6722a
Merge pull request #1528 from riccardobl/trace
decode minified stacktrace
2024-11-03 17:28:25 -06:00
Keyan 08b160d663
Merge branch 'master' into tordev 2024-11-03 14:52:21 -06:00
Keyan e375cc7c76
Merge pull request #1507 from stackernews/wallet-fantasy-refactor
Fantasy wallet refactor
2024-11-03 09:10:01 -06:00