Commit graph

11 commits

Author SHA1 Message Date
Roland
5b3f1bef9d
fix: update to alby go-nostr fork which reconnects after receiving CLOSED message (#2331) 2026-05-11 12:34:56 +07:00
Roland
d7e29a2eb6
chore: check for an error when getting public key when creating new app (#1989) 2025-12-16 23:07:27 +07:00
René Aaron
0c7cf4fcf6
fix: delete lightning address when deleting a sub-wallet (#1858)
* fix: delete lightning address when deleting a sub-wallet

* fix: pass app to useDeleteApp hook

* fix: move deletion to server

* fix: merge changes

* Update frontend/src/components/connections/DisconnectApp.tsx

Co-authored-by: Adithya Vardhan <imadithyavardhan@gmail.com>

* fix: create helper function

---------

Co-authored-by: Roland Bewick <roland.bewick@gmail.com>
Co-authored-by: Adithya Vardhan <imadithyavardhan@gmail.com>
2025-11-06 16:41:12 +05:30
Roland
92c6b54b27
feat: new connection wizard (#1690)
* feat: new connection wizard (WIP)

* feat: move app created logic into finalize step on new app page

* feat: move superuser connection creation to new app wizard, make alby go a standard app

* chore: remove unused property

* chore: update suggested app guides (up to snort)

* chore: update suggested app guides (WIP)

* chore: update guides for rest of app store apps

* feat: add sheet selection for scope groups

* chore: add guide for buzzpay

* fix: show stepper controls when returnTo is set

* chore: use flex wrap

* fix: icons in scopes component

* fix: remove default connect button on internal apps

* fix: use responsive button for connect button in app store detail header

---------

Co-authored-by: im-adithya <imadithyavardhan@gmail.com>
2025-09-15 13:10:12 +07:00
Roland
ec590faa49
feat: create sub-wallet lightning address (#1452)
* feat: create sub-wallet lightning address (WIP)

* feat: create subwallet lightning address from show page, improve error toast

* feat: add delete lightning address

* chore: add wails handlers for creating and deleting lightning addresses

* fix: delete request

* fix: log property format

* chore: use full address from response instead of hardcoding alby domain

* chore: rename lightning address hooks

* chore: check plan code for creating lightning address on show app page
2025-07-08 22:57:41 +07:00
Roland
3e1d16d423
Feat: NWA auth for self-hosted hubs (#1016)
* feat: nwc create_connection command (WIP)

* feat: allow creating superuser apps from the ui

* fix: pass methods rather than scopes in create_connection method

* chore: add extra tests

* fix: use browser router in http mode

* fix: update links to not use hash router

* fix: add redirect from hash router url

* fix: return nostrWalletConnectUrl in nwc connection success event and message

* feat: publish nwa event

* chore: use nwc info event instead of nwa event

* feat: create custom alby go detail page

* chore: allow creating/editing apps with the same name

* fix: convert budget from msats to sats (#1111)

* chore: address NWA feedback

* chore: address feedback

- adjust button copy
- make create_connection methods consistent with http deeplink flow
- remove unused constant
- add empty string check before adding lud16 tag
- fix test

* feat: add support for notification_types in create_connection method

* fix: shorter button copy

* fix: do not include lud16 tag in published info event

* Feat: add lud16 to get_info response (#1128)

feat: add lud16 to get_info response

* chore: minor alby go screen improvements

* fix: incorrect unlock password error message to create app with superuser access

* chore: minor ui improvements on alby go detail page

* chore: avoid duplicate app names by adding a suffix

* chore: move scopes check to apps service, add new tests, DRY controller test setup

* fix: scopes component full access scopes and isolated scope group check

* fix: use supported capabilities for Alby Go

* fix: return correct app name

* chore: address minor comments

---------

Co-authored-by: im-adithya <imadithyavardhan@gmail.com>
2025-02-27 19:12:55 +07:00
Moritz Kaminski
fae02f39df
Rename "Isolated" app permission to "Sub-wallet" (#982)
* Rename "Isolated" app permission to "Sub-wallet"

* chore: undo comment

* chore: more renaming of isolated app to sub-wallet

---------

Co-authored-by: Roland <33993199+rolznz@users.noreply.github.com>
Co-authored-by: Roland Bewick <roland.bewick@gmail.com>
2025-01-17 15:17:21 +07:00
Moritz Kaminski
c96d78998f
Rename subaccount to sub-wallet (#980) 2025-01-14 13:53:04 +07:00
Roland
0063bf09cf
feat: add budget warning event, rename app events (#813) 2024-11-27 14:45:33 -06:00
frnandu
5fdc803f7a
feat: app child key derived from wallet master key (#736)
* feat(appwalletKey): add GetBIP32ChildKey

* feat: fix interface

* feat: adding subscription WiP

* feat: handle nostr subscriptions for lifecycle of apps

* Delete .idea/.gitignore

* Delete .idea/hub.iml

* Delete .idea/modules.xml

* Delete .idea/vcs.xml

* fix: remove unnecessary

* fix: missing handling legacy app

* fix: review fixes

* fix: use app.ID for key calculation instead of passing in event

* fix: add TODO

* fix: remove unnecessary check

* fix: improve err handling and remove check

* chore: store master nostr key to avoid deriving each time

* chore: rename app nostr_pubkey to app_pubkey, extract app consumers into separate files

* chore: finish renaming

* fix: update app wallet pubkey on app creation

* fix: not NULL check

* fix: fix HandleEvent

* fix: error handling

* fix: error handling

* fix: move StartSubscription to start.go

* fix: remove duplicated error check

* fix: make tests use AppsService for creating apps

* chore: remove unused code

* chore: minor event handler improvements

- fix error code response when failing to update request event
- fix log content when failing to decrypt request event
- move logging of app to correct place

* fix: add event_handler tests for legacy app

* chore: add comment about legacy apps in deleteAppConsumer

* fix: remove unused app from tests

* fix: error handling in startAppWalletSubscription

* fix: only create event info and nostr subscription for master key if there are legacy apps

* fix: add legacy tests

* fix: move fetching of Nip47 event info to deleteAppConsumer

* fix: fixed arguments

* fix: use require instead of assert

* fix: adapt GetAppWalletKey to use DeriveKey with path 1'

* fix: for backends that don't use a mnemonic, create appKey from nostrSecretKey

* fix: cleanup eventPublisher Subscribers when relay reconnects

* fix: bip32.FirstHardenedChild + appID

* fix: remove unused env vars

* fix: generate new mnemonic if empty

* fix: add tests.CreateTestServiceWithMnemonic to fix TestEncryptedBackup

* fix: handle both relay and main ctx Done

* chore: add keys tests

* chore: add extra assertions to keys test

* chore: log when legacy app subscription is created

* chore: remove unnecessary break

* chore: add log when relay is successfully connected

* fix: only auto-start node if it has been started before

---------

Co-authored-by: Roland Bewick <roland.bewick@gmail.com>
2024-11-07 19:06:01 +07:00
Roland
731d248129
feat: increase isolated app balance (#710) 2024-10-28 13:29:34 +07:00
Renamed from db/db_service.go (Browse further)