Commit Graph

1264 Commits

Author SHA1 Message Date
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 dcab8e1365 fix invoice waiting 2024-11-07 19:55:34 -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 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
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
ekzyis be212d1de9 Fix global wallet logs never fetch logs from server 2024-11-05 00:39:57 +01: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
Keyan d9e9a6722a
Merge pull request #1528 from riccardobl/trace
decode minified stacktrace
2024-11-03 17:28:25 -06:00
k00b a4440c991f add removeLocalWallets fixes from rblb 2024-11-03 01:15:10 -05:00
k00b 25facad5d9 merge master 2024-11-02 19:15:44 -05:00
Riccardo Balbo 1d6f1a962b
Merge branch 'master' into trace 2024-11-03 00:36:30 +01:00
Riccardo Balbo 3b523fe949
Merge branch 'master' into clearbug 2024-11-02 11:45:13 +01:00
Riccardo Balbo 2cd16a68c2
Merge branch 'master' into trace 2024-11-02 11:43:16 +01:00
Keyan 11a5bb5367
Merge branch 'master' into edit-ux 2024-11-01 20:18:49 -05:00
Keyan 2b136715a5
Merge branch 'master' into colored-badges 2024-11-01 19:12:34 -05:00
k00b 1f71a9e187 fix logout purge of localstorage 2024-10-31 15:36:51 -05:00
k00b b8216740d4 final touches 2024-10-31 14:06:58 -05:00
Riccardo Balbo be9b919b60 decode minified stacktrace 2024-10-31 15:43:20 +01:00
k00b 3cfbaf4638 validate generated fields 2024-10-30 22:26:45 -05:00
k00b b1fc341017 sync/desync from localstorage on vault connect/disconnect 2024-10-30 18:37:45 -05:00
k00b 0c8180d89c fix active vault check and optional vaultEntries 2024-10-30 13:49:57 -05:00
k00b dce5762f63 get vault working 2024-10-30 13:49:57 -05:00
k00b eae4c2b882 cancel button spacing 2024-10-30 13:49:57 -05:00
k00b 4f7bdadd80 better wallet security banner 2024-10-30 13:49:57 -05:00
k00b e96982c353 refactor wallet validation 2024-10-30 13:49:57 -05:00
k00b ccdf346954 server side config saves 2024-10-30 13:49:47 -05:00
k00b 4826ae5a7b wip upsertWallet 2024-10-30 13:45:09 -05:00
k00b 2bdbb433df webln saves at least *double kazoo* 2024-10-30 13:45:09 -05:00
k00b 48640cbed6 pages load *kazoo* 2024-10-30 13:45:05 -05:00
k00b da020cf899 complete fantasy scaffolding 2024-10-30 13:44:18 -05:00
Riccardo Balbo fdc3df9c15 force refresh client wallets when device sync is enabled 2024-10-30 13:42:55 -05:00
Riccardo Balbo 3acad86157 improve local storage hook implementation 2024-10-30 13:42:55 -05:00
Riccardo Balbo 86994c4c46 use openConfig instead of useConfig 2024-10-30 13:42:55 -05:00
Riccardo Balbo eeef7039b9 prevent stale me entry from causing vault configurator to delete the local vault key 2024-10-30 13:42:55 -05:00
Riccardo Balbo 4bc669c1c5 prevent double close 2024-10-30 13:42:55 -05:00
Riccardo Balbo 41b86c8251 unsetLocalKey 2024-10-30 13:42:55 -05:00
Riccardo Balbo 1beac3a405 ensure wallet id is in sync before saving the config 2024-10-30 13:41:41 -05:00
Riccardo Balbo 06afe2cda2 remove debug log 2024-10-30 13:41:41 -05:00
Riccardo Balbo 4604a7bac9 use SSR constant 2024-10-30 13:41:41 -05:00
Riccardo Balbo 49cf1f2e23 fix window checks for SSR 2024-10-30 13:41:41 -05:00
Riccardo Balbo b70dbeb6d6 user vault and server side client wallets 2024-10-30 13:41:09 -05:00
ekzyis b50bb2fcc1 Replace unicode currency symbols in inline math 2024-10-28 20:00:00 +01:00
ekzyis 146f578d3d Rename onEdit to toggleEdit 2024-10-25 22:10:15 +02:00
ekzyis 739509de4f Don't hide cancel if still in edit mode 2024-10-25 22:05:29 +02:00
Riccardo Balbo a267f3a476 use useIsClient 2024-10-24 19:58:04 +02:00
Riccardo Balbo 68dafa3684 disable clear button if field is readonly 2024-10-24 16:27:13 +02:00