ekzyis
9af8e63355
Fix error per invalid bip39 word
2024-07-08 08:26:51 +02:00
ekzyis
8a36bffb85
Fix autowithdraw priority order
2024-07-08 08:07:14 +02:00
ekzyis
8ea4d0c8a7
Fix duplicate CLN error
2024-07-08 07:59:28 +02:00
ekzyis
2051dd0e88
Use touches instead of dnd on mobile
...
Browsers don't support drag events for touch devices.
To have a consistent implementation for desktop and mobile, we would need to use mousedown/touchstart, mouseup/touchend and mousemove/touchmove.
For now, this commit makes changing the order possible on touch devices with simple touches.
2024-07-08 07:33:10 +02:00
ekzyis
5d678ced23
Fix draggable false on first page load due to SSR
2024-07-08 06:54:27 +02:00
ekzyis
459478036f
Fix priority ignored when fetching enabled wallet
2024-07-08 05:49:54 +02:00
ekzyis
a69bca0f05
Use inject function for resolvers and typeDefs
2024-07-07 20:04:33 +02:00
ekzyis
85cfda330b
Remove Wallet in lib/constants
2024-07-07 18:35:57 +02:00
ekzyis
85464f93b9
Detach wallets and delete logs on logout
2024-07-07 18:35:57 +02:00
ekzyis
dddbb53792
Add CLN autowithdrawal
2024-07-07 18:35:57 +02:00
ekzyis
ebe741dc92
Add missing hints
2024-07-07 18:35:57 +02:00
ekzyis
6bee659f2f
Fix autowithdraw loop
2024-07-07 18:35:57 +02:00
ekzyis
bd0e4d906c
Fix draggable
2024-07-07 18:35:57 +02:00
ekzyis
7528e5c2b6
Add optional wallet short name for logging
2024-07-07 18:35:57 +02:00
ekzyis
1ce09051b1
Add autowithdrawal to lightning address
2024-07-07 18:35:56 +02:00
ekzyis
8dac53d7d5
Fix wallet security banner shown for server wallets
2024-07-07 18:31:41 +02:00
ekzyis
cd074a47b7
Fix success autowithdrawal log
2024-07-07 18:31:41 +02:00
ekzyis
12bedae01a
Use wallet.createInvoice for autowithdrawals
2024-07-07 18:31:41 +02:00
ekzyis
b569c8faa0
Fix import inconsistency between app and worker
2024-07-07 18:31:41 +02:00
ekzyis
ba00c3d9fa
Generate wallet resolver from fields
2024-07-07 18:31:41 +02:00
ekzyis
00f78daadc
Generate wallet mutation from fields
2024-07-07 18:31:41 +02:00
ekzyis
0a0085fe82
Remove unnecessary WALLETS_QUERY
2024-07-07 18:31:41 +02:00
ekzyis
48ead97615
Run lnbits url.replace in validate and sendPayment
2024-07-07 18:31:41 +02:00
ekzyis
6463e6eec8
Split arguments into [value,] config, context
2024-07-07 18:31:41 +02:00
ekzyis
0ebe097a70
Fix noisy changes in lib/validate
...
I moved the schema for lnbits, nwc and lnc out of lib/validate only to put them back in there later.
This commit should make the changeset cleaner by removing noise.
2024-07-07 18:31:41 +02:00
ekzyis
850c534c91
Fix typo
2024-07-07 18:31:41 +02:00
ekzyis
83fd39b035
Fix onCanceled missing
2024-07-07 18:31:41 +02:00
ekzyis
9bbf2056e9
Save dedicated enabled flag for server wallets
...
* wallet table now contains boolean column 'enabled'
* 'priority' is now a number everywhere
* use consistent order between how autowithdrawals are attempted and server wallets cards
2024-07-07 18:31:41 +02:00
ekzyis
8acf74c787
Fix autowithdrawSettings not applied
...
Form requires config in flat format but mutation requires autowithdraw settings in a separate 'settings' field.
I have decided that config will be in flat form format. It will be transformed into mutation format during save.
2024-07-07 18:31:41 +02:00
ekzyis
55928ac252
Save order as priority
2024-07-07 18:31:41 +02:00
ekzyis
c270805649
Use dynamic import for WalletCard
...
This fixes a lot of issues with hydration
2024-07-07 18:31:41 +02:00
ekzyis
eb2f4b980f
Implement drag & drop w/o persistence
2024-07-07 18:31:41 +02:00
ekzyis
b96757b366
Move all validation schema into lib/validate
2024-07-07 18:31:41 +02:00
ekzyis
39d8928772
Disable checkbox if not configured yet
2024-07-07 18:31:41 +02:00
ekzyis
da6d262e0a
Also enable server wallets on create
2024-07-07 18:31:41 +02:00
ekzyis
d20e258649
Consistent logs between local and server wallets
...
* 'wallet attached' on create
* 'wallet updated' on config updates
* 'wallet enabled' and 'wallet disabled' if checkbox changed
* 'wallet detached' on delete
2024-07-07 18:31:41 +02:00
ekzyis
d60e26bfdf
Fix wallet logs not updated after server delete
2024-07-07 18:31:41 +02:00
ekzyis
9509833b88
Also use 'enabled' for server wallets
2024-07-07 18:31:41 +02:00
ekzyis
645ff78365
Fix server config not updated after save or detach
2024-07-07 18:31:41 +02:00
ekzyis
c18263dc73
Fix another hydration error
2024-07-07 18:31:41 +02:00
ekzyis
d8e82ddea5
Only include local/server config if required
2024-07-07 18:31:41 +02:00
ekzyis
e091377d94
Fix TypeError in isConfigured if no enabled wallet found
2024-07-07 18:31:41 +02:00
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