ekzyis
5b561e22a9
Fix wallet logs refetch
...
onError does not exist on client.mutate
2024-07-07 18:31:41 +02:00
ekzyis
4bf9954c4e
Fix delete wallet logs on server
2024-07-07 18:31:41 +02:00
ekzyis
3b0605a691
Fix isConfigured
2024-07-07 18:31:41 +02:00
ekzyis
1f98a1a891
Fix usage of conditional hooks in useConfig
2024-07-07 18:31:41 +02:00
ekzyis
377ac04c85
Use same error format in toast and wallet log
2024-07-07 18:31:41 +02:00
ekzyis
9228328d3b
Remove FIXMEs
...
Rebase on master seemed to have fixed these, weird
2024-07-07 18:31:41 +02:00
ekzyis
2aa0c9bc99
Fix confusing UX around enabled
2024-07-07 18:31:41 +02:00
ekzyis
d7c81cfa9f
Fix sendPayment called with empty config
...
* removed useEffect such that config is available on first render
* fix hydration error using dynamic import without SSR
2024-07-07 18:31:41 +02:00
ekzyis
4a16cc17aa
Fix TypeError
2024-07-07 18:31:41 +02:00
ekzyis
4082a45618
wip: Add LND autowithdrawals
...
* receiving wallets need to export 'server' object field
* don't print macaroon error stack
* fix missing wallet logs order update
* mark autowithdrawl settings as required
* fix server wallet logs deletion
* remove canPay and canReceive since it was confusing where it is available
TODO
* also use numeric priority for sending wallets to be consistent with how status for receiving wallets is determined
* define createInvoice function in wallet definition
* consistent wallet logs: sending wallets use 'wallet attached'+'wallet enabled/disabled' whereas receiving wallets use 'wallet created/updated'
* see FIXMEs
2024-07-07 18:31:41 +02:00
ekzyis
ae0335d537
Don't require destructuring to pass props to input
2024-07-07 18:31:41 +02:00
ekzyis
91978171ed
Remove logger.error since already handled in useWallet
2024-07-07 18:31:41 +02:00
ekzyis
dae69ec4b3
Add FIXMEs for LNC
...
I can't get LNC to connect. It just hangs forever on lnc.connect(). See FIXMEs.
2024-07-07 18:31:40 +02:00
ekzyis
eda7fd6b46
Fix position of log start marker
2024-07-07 18:31:40 +02:00
ekzyis
fd08356d37
Remove follow and show recent logs first
2024-07-07 18:31:40 +02:00
ekzyis
61be80446d
Revert "Fix 20s page load for /settings/wallets.json?nodata=true"
...
This reverts commit deb476b3a966569fefcfdf4082d6b64f90fbd0a2.
Not using the dynamic import for LNC fixed the slow page load with ?nodata=true.
2024-07-07 18:31:40 +02:00
ekzyis
6059e8f691
Use normal imports
2024-07-07 18:31:40 +02:00
ekzyis
1bae891594
Fix extremely slow page load for LNC import
...
I noticed that the combination of
```
import { Form, PasswordInput, SubmitButton } from '@/components/form'
```
in components/wallet/lnc.js and the dynamic import via `await import` in components/wallet/index.js caused extremely slow page loads.
2024-07-07 18:31:40 +02:00
ekzyis
276e734a7a
Fix 20s page load for /settings/wallets.json?nodata=true
...
For some reason, if nodata is passed (which is the case if going back), the page takes 20s to load.
2024-07-07 18:31:40 +02:00
ekzyis
7b6602e386
wip: Add LNC
2024-07-07 18:31:40 +02:00
ekzyis
8e2dd45e23
Support help, optional, hint in wallet fields
2024-07-07 18:31:40 +02:00
ekzyis
7639390a16
Pass config with spread operator
2024-07-07 18:31:40 +02:00
ekzyis
29646eb956
Use INFO level for 'wallet disabled' message
2024-07-07 18:31:40 +02:00
ekzyis
dd47f2c02b
Run validation during save
2024-07-07 18:31:40 +02:00
ekzyis
a5ea53dc39
Fix enableWallet
...
* wrong storage key was used
* broke if wallets with no configs existed
2024-07-07 18:31:40 +02:00
ekzyis
399c62a7e3
Fix unused isDefault saved in config
2024-07-07 18:31:40 +02:00
ekzyis
034cb4e8b2
Add NWC wallet
2024-07-07 18:31:40 +02:00
ekzyis
b8b0a4f985
Add schema to wallet def
2024-07-07 18:31:40 +02:00
ekzyis
0957cb5b83
Add logging to attach & detach
2024-07-07 18:31:40 +02:00
ekzyis
71c753810c
Don't pass logger to sendPayment
2024-07-07 18:31:40 +02:00
ekzyis
0de82db78a
Enable wallet if just configured
2024-07-07 18:31:40 +02:00
ekzyis
1a2be99027
Set canPay, canReceive in useWallet
2024-07-07 18:31:40 +02:00
ekzyis
6ac8785c51
Update wallet logging + other stuff
...
* add canPay and canSend to wallet definition
* rename 'default payment method' to 'enabled' and add enable + disable method
2024-07-07 18:31:40 +02:00
ekzyis
a1b343ac89
Fix import error
2024-07-07 18:31:40 +02:00
ekzyis
5f047cbfc9
wip: Use uniform interface for wallets
2024-07-07 18:31:40 +02:00
keyan
3710840167
upgrade prisma for https://github.com/prisma/prisma/issues/16611 fix
2024-07-07 11:14:12 -05:00
Keyan
3bada4b5da
new referral scheme ( #1255 )
...
* capture/store data for new referral scheme
* simplify signup/forever referral rules
* no self-referrals and other fixes
* better post/comment distinction and support /items/1/related
2024-07-07 11:12:02 -05:00
keyan
fc781047d5
fix autowithdraw flag for lightning address
2024-07-06 12:56:20 -05:00
keyan
9213e3ad1a
fix settleHodlInvoice timing out paid action transition
2024-07-06 11:37:32 -05:00
keyan
bcdbf9cede
print imgproxy dimensions error
2024-07-04 17:54:54 -05:00
Keyan
79f0df17b2
improve pessimistic paid actions by letting the server perform actions and settle invoice on `HELD` ( #1253 )
...
* get rid of hash and hmac based pessimism
* fix readme
2024-07-04 12:30:42 -05:00
ekzyis
7c294478fb
Nostr crossposting backlink + content fix ( #1251 )
...
* Add backlink in nostr events
* Remove unnecessary async
* Use itemToContent function
* Fix duplicate title in discussion event
2024-07-03 10:11:24 -05:00
keyan
1a3785a865
only assume insufficient funds in paid action if the error says so
2024-07-03 09:10:04 -05:00
ekzyis
2dd96f4b83
Fix item mention of own items ( #1250 )
2024-07-02 14:22:58 -05:00
keyan
9145f290dc
fix lastCommentAt denorm
2024-07-02 09:26:40 -05:00
keyan
63e60fe2bc
subtle change to usePaidMutation callback order
2024-07-01 17:04:10 -05:00
keyan
0aa5ba4955
move invoice creation outside of interactive tx
2024-07-01 17:03:25 -05:00
keyan
6e8d7ef1b8
allow slog logs to be disabled/configured
2024-07-01 16:48:54 -05:00
ekzyis
e57c930f0c
Fix push notifications ( #1249 )
...
* Fix wrong author in reply push notification
* Fix duplicate mentions push notifications on save
* Fix item mention push notification argument
* Fix zap push notification using stale msats
2024-07-01 15:51:59 -05:00
keyan
6e1d67b3c0
fix optimistic responses of bounties and poll votes
2024-07-01 14:58:53 -05:00