Commit graph

2420 commits

Author SHA1 Message Date
Roland Bewick
e107e05d80 chore: remove unused green and breezlight backends 2025-03-15 13:11:36 +07:00
Roland
473105ff62
build(deps): bump google.golang.org/grpc from 1.70.0 to 1.71.0 (#1166)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from
1.70.0 to 1.71.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/grpc/grpc-go/releases">google.golang.org/grpc's
releases</a>.</em></p>
<blockquote>
<h2>Release 1.71.0</h2>
<h1>API Changes</h1>
<ul>
<li>balancer: Custom LB policies that record metrics must use the new
<code>MetricsRecorder</code> method on <code>Balancer.ClientConn</code>
instead of the removed
<code>Balancer.BuildOptions.MetricsRecorder</code> field to obtain a
metrics recorder. (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8027">#8027</a>)</li>
<li>balancer: <code>balancer.ClientConn</code> implementations must now
embed a delegate implementation. This allows grpc-go to add new methods
to the interface and remain backward compatible. (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8026">#8026</a>)</li>
<li>balancer/endpointsharding: The constructor accepts the child
balancer's builder and a struct with optional configuration. (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8052">#8052</a>)</li>
</ul>
<h1>New Features</h1>
<ul>
<li>xds: Add support for dualstack via the <a
href="df394a41c8/api/envoy/config/endpoint/v3/endpoint_components.proto (L91-L96)">additional_addresses</a>
field in the Endpoint resource. To disable this feature, set the
environment variable
<code>GRPC_EXPERIMENTAL_XDS_DUALSTACK_ENDPOINTS=false</code>. (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8134">#8134</a>)</li>
<li>stats/opentelemetry: Add experimental support for OpenTelemetry
tracing. (<a
href="https://redirect.github.com/grpc/grpc-go/issues/7852">#7852</a>)</li>
<li>xds/internal/xdsclient: Add counter metrics for valid and invalid
resource updates. (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8038">#8038</a>)</li>
<li>balancer/leastrequest, roundrobin: Add dualstack support. (<a
href="https://redirect.github.com/grpc/grpc-go/issues/7969">#7969</a>,
<a
href="https://redirect.github.com/grpc/grpc-go/issues/7966">#7966</a>)</li>
<li>balancer/endpointsharding: Balancers created with the new
<code>DisableAutoReconnect</code> option will not attempt to call
<code>ExitIdle</code> automatically on their children when the children
report idle. (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8052">#8052</a>)</li>
</ul>
<h1>Bug Fixes</h1>
<ul>
<li>client: Fix support for proxies when using
<code>grpc.NewClient</code> so the target is resolved by the proxy as
expected. (<a
href="https://redirect.github.com/grpc/grpc-go/issues/7881">#7881</a>)
<ul>
<li>Added <code>WithLocalDNSResolution()</code> dial option to
explicitly force target resolution on the client instead. (<a
href="https://redirect.github.com/grpc/grpc-go/issues/7881">#7881</a>)</li>
</ul>
</li>
<li>weightedtarget: Return erroring picker when no targets are
configured. (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8070">#8070</a>)</li>
<li>xds: Fail RPCs with <code>UNAVAILABLE</code> when the EDS resource
is missing or contains no endpoints (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8070">#8070</a>)</li>
<li>xdsclient: Fix a bug where connectivity failures were reported to
resource watchers before trying all listed servers. (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8075">#8075</a>)</li>
<li>grpc: Fix the number of bytes reported in the error message when
encoded messages are larger than 4GB. (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8033">#8033</a>)</li>
<li>xds: Fixed a bug preventing tests from creating multiple servers or
channels with different bootstrap configs. (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8050">#8050</a>)</li>
<li>grpc: Fix message length checks when compression is enabled and
<code>maxReceiveMessageSize</code> is <code>MaxInt</code> (<a
href="https://redirect.github.com/grpc/grpc-go/issues/7918">#7918</a>)
<ul>
<li>Special Thanks: <a
href="https://github.com/vinothkumarr227"><code>@​vinothkumarr227</code></a></li>
</ul>
</li>
</ul>
<h1>Documentation</h1>
<ul>
<li>client: Improve documentation of <code>grpc.NewClient</code> and
<code>ClientConn.CanonicalTarget</code> by providing examples. (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8078">#8078</a>)</li>
<li>examples/features/dualstack: New example demonstrating usage of
endpoints and dualstack functionality. (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8098">#8098</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="d01db5ccc8"><code>d01db5c</code></a>
Change version to 1.71.0 (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8105">#8105</a>)</li>
<li><a
href="012f8bf873"><code>012f8bf</code></a>
xds: Enable dualstack flag (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8134">#8134</a>)</li>
<li><a
href="bf0c885feb"><code>bf0c885</code></a>
examples/features/dualstack: Demonstrate Dual Stack functionality (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8098">#8098</a>)
(<a
href="https://redirect.github.com/grpc/grpc-go/issues/8">#8</a>...</li>
<li><a
href="05bdd66f51"><code>05bdd66</code></a>
ringhash: Remove TODO comment (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8096">#8096</a>)</li>
<li><a
href="ddb2484e69"><code>ddb2484</code></a>
xds: remove obsolete xDS transport custom dialer option (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8079">#8079</a>)</li>
<li><a
href="8528f4387f"><code>8528f43</code></a>
cleanup: replace Dial with NewClient (<a
href="https://redirect.github.com/grpc/grpc-go/issues/7975">#7975</a>)</li>
<li><a
href="ae2a04f564"><code>ae2a04f</code></a>
ringhash: Replace DNS resolver before sending xDS Update in test (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8091">#8091</a>)</li>
<li><a
href="e55819e1e6"><code>e55819e</code></a>
lazy: Use channel to wait for resolver error being received in test (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8088">#8088</a>)</li>
<li><a
href="b524c08e44"><code>b524c08</code></a>
xdsclient: include xds node ID in errors from the WatchResource API (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8093">#8093</a>)</li>
<li><a
href="91eb6aafd3"><code>91eb6aa</code></a>
client: improve documentation of target strings (<a
href="https://redirect.github.com/grpc/grpc-go/issues/8078">#8078</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/grpc/grpc-go/compare/v1.70.0...v1.71.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=google.golang.org/grpc&package-manager=go_modules&previous-version=1.70.0&new-version=1.71.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
2025-03-15 12:58:45 +07:00
Roland
a5d90ad888
fix: nil pointer when getting network graph (#1180)
Fixes https://github.com/getAlby/hub/issues/1179 (hopefully)
2025-03-15 12:22:07 +07:00
Roland Bewick
b6ada29691 chore: add NodeMetrics reset option to debug tools 2025-03-14 23:46:28 +07:00
Roland
8e82addbd6
fix: initialize pending sweep balance to empty slice to avoid null value in frontend (#1185)
If you close a channel in LND and stay there, the frontend crashes
because `PendingSweepBalancesDetails` is `null` instead of empty array
`[]`
2025-03-14 11:33:21 +07:00
im-adithya
c5c97e8d15 fix: initialize pending sweep balance to empty slice to avoid null value in frontend 2025-03-13 22:07:07 +05:30
Roland Bewick
cb6f1d5159 fix: graph node check 2025-03-13 22:45:23 +07:00
Roland
4367b557f3
chore: update LDK-node with exponential peer reconnect backoff (#1181)
Fixes https://github.com/getAlby/hub/issues/1172
2025-03-13 16:09:04 +07:00
Roland Bewick
50c4b30d13 chore: update LDK-node with exponential peer reconnect backoff 2025-03-13 13:57:41 +07:00
Roland
06e8c74a9b
fix: set target conf to 1 while withdrawing (#1175)
Fixes https://github.com/getAlby/hub/issues/684

Sets the target conf to 1 so LND can adjust the fee accordingly to
process the tx ASAP 
2025-03-13 12:09:11 +07:00
Roland
f43672bc09
fix: cleanup sidebar (#1176)
Guides, Feedback board and support options will be linked from
support.getalby.com


![image](https://github.com/user-attachments/assets/fe10da91-cdcc-4b33-b7bb-cf310fea56c3)
2025-03-13 11:47:37 +07:00
Roland Bewick
c3eabd38ec fix: nil pointer when getting network graph 2025-03-13 11:44:19 +07:00
Roland
7360e7ac9b
chore: fix some typos (#1177)
fix some typos
2025-03-13 10:35:41 +07:00
yudrywet
2daced5ef4 chore: fix some typos
Signed-off-by: yudrywet <yudeyao@yeah.net>
2025-03-12 23:02:19 +08:00
René Aaron
7e722dd549 fix: cleanup sidebar 2025-03-12 15:05:20 +01:00
im-adithya
a475bbdd63 fix: set target conf to 1 while withdrawing 2025-03-12 19:26:29 +05:30
Roland
5df6e581f9
fix: font styles (#1157)
Fixes various font styles on wallet & transaction list
2025-03-11 13:17:25 +07:00
Roland
cc3e81d400
feat: show total and reserved balance in spending balance tooltip (#1161)
We can point people to check this if they think sats are missing from
the spending balance (actually are part of channel reserves)

Fixes https://github.com/getAlby/hub/issues/1159

Alternative to https://github.com/getAlby/hub/pull/1105
2025-03-11 12:03:30 +07:00
Roland
001a532856
feat: backup LDK channels after connecting alby account (#1165)
Fixes https://github.com/getAlby/hub/issues/1154
2025-03-11 11:51:56 +07:00
Roland
8ffe7e5e4e
chore: remove duplicated nip-47 notifier (#1164)
we were starting a nip-47 notifier for each subscription rather than
once per relay connection.

I also removed some unused dependencies from the notifier.
2025-03-11 11:50:07 +07:00
Roland
8eec1bbfa3
fix: do not publish info events on relay reconnect (#1163)
This is redundant and causes a lot of events to be published on the
relay at the same time
2025-03-11 11:49:08 +07:00
Roland
e007a04b92
feat: add swap alert (#1158)
Closes https://github.com/getAlby/hub/issues/1134

Adds an alert to swap rather than opening/closing channels in certain
relevant places:
- when opening a channel
- when closing a channel
- low receiving capacity on channels page

The alert on other pages will open a link to `/channels?swap=true` which
will auto-detect which swap should be used.

Channels page - low receiving capacity


![image](https://github.com/user-attachments/assets/338b6a31-5e0d-428c-aabc-ee4b87d6aa31)

Open new channel pages


![image](https://github.com/user-attachments/assets/42f6971b-d4de-4345-bb8d-75f2b1a4289c)

Close channel dialog


![image](https://github.com/user-attachments/assets/5ff5e81b-00a2-48bb-96dd-c90fb5bd2b28)

I'm wondering if we should have a similar alert somewhere to swap in to
"top up" channels. Maybe on the receive page?

Copy needs review.

Swap dialogs were moved into a separate file to keep the channels
component as small as possible.
2025-03-11 11:32:44 +07:00
Roland Bewick
6768100937 chore: display swap direction in swap alert button 2025-03-11 11:30:48 +07:00
Roland Bewick
079c3205bc chore: display swap direction in swap alert 2025-03-11 11:29:11 +07:00
dependabot[bot]
b5d0393cc2
build(deps): bump google.golang.org/grpc from 1.70.0 to 1.71.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.70.0 to 1.71.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.70.0...v1.71.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-10 15:41:55 +00:00
René Aaron
3d930343be fix: ui improvements 2025-03-10 15:14:10 +01:00
Roland Bewick
41f2896970 feat: backup LDK channels after connecting alby account 2025-03-10 20:57:21 +07:00
Roland Bewick
d1c8a442b5 chore: remove duplicated nip-47 notifier
we were starting a nip-47 notifier for each subscription rather than once per relay.

I also removed some unused dependencies from the notifier.
2025-03-10 20:35:40 +07:00
Roland Bewick
ab573ee81b fix: do not publish info events on relay reconnect 2025-03-10 20:11:23 +07:00
Roland
1cf8e5b069
fix: still start legacy app subscription when legacy info event fails to be published (#1162) 2025-03-10 19:44:26 +07:00
Roland Bewick
4d21cf78ef feat: show total and reserved balance in spending balance tooltip 2025-03-10 14:59:03 +07:00
Roland Bewick
87e045e12e feat: add swap alert 2025-03-07 17:39:33 +07:00
René Aaron
9382c1eb8b fix: responsive font styles 2025-03-06 15:54:48 +01:00
Roland
3dd11b26b4
fix: do not allow changing unlock password to an empty password (#1151) 2025-03-06 21:39:48 +07:00
Roland
32acb14aed
fix: disconnect ldk peer before re-connecting (#1150) 2025-03-06 21:39:14 +07:00
René Aaron
579f049ca8
fix: adjust animation for darkmode (#1155)
* fix: adjust animation for darkmode

* fix: minify
2025-03-06 16:43:51 +07:00
Roland
88b4046db1
fix: channels sorting on node page (#1152)
* fix: channels sorting on node page

* fix: optimize sort func

---------

Co-authored-by: René Aaron <rene@twentyuno.net>
2025-03-06 09:27:32 +01:00
René Aaron
2af93853ba fix: font sizes on wallet page 2025-03-05 15:01:40 +01:00
Roland
fb3de53d58
fix: redirect to app created page after creating alby go app with one tap connections (#1148) 2025-03-05 13:25:49 +01:00
Roland
eeba63cdea
fix: add connected state for connect app card (#1149)
* fix: add connected state for connect app card

* fix: badge layout

---------

Co-authored-by: René Aaron <rene@twentyuno.net>
2025-03-05 11:16:09 +01:00
Pavan Joshi
cf01b485ed
remove transfer alby hosted balance + new designs for node table (#1058)
* feat: update ui for balance cards in node page

* chore: lower icons size

* feat: remove hosted balance card and transfer funds

* fix: remove /api/alby/drain

* chore: change variable name

* fix: remove migrateChannel variable

* chore: minor stylings

* fix: remove canMigrateFunds

* chore: text size for channels table

* chore: update copy in firstChannel

* fix: update copy to mention fee credits

* fix: remove albyBalance check from useOnboardingData

* fix: fee credits copy, add link to fee credits guide

* chore: improve channels cards stying

---------

Co-authored-by: Roland Bewick <roland.bewick@gmail.com>
2025-03-05 13:53:26 +07:00
dependabot[bot]
d10641aee4
build(deps): bump gopkg.in/DataDog/dd-trace-go.v1 from 1.71.1 to 1.72.1 (#1144)
Bumps gopkg.in/DataDog/dd-trace-go.v1 from 1.71.1 to 1.72.1.

---
updated-dependencies:
- dependency-name: gopkg.in/DataDog/dd-trace-go.v1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-05 11:26:36 +07:00
dependabot[bot]
7c886fbe88
build(deps): bump github.com/wailsapp/wails/v2 from 2.9.2 to 2.10.1 (#1142)
Bumps [github.com/wailsapp/wails/v2](https://github.com/wailsapp/wails) from 2.9.2 to 2.10.1.
- [Release notes](https://github.com/wailsapp/wails/releases)
- [Commits](https://github.com/wailsapp/wails/compare/v2.9.2...v2.10.1)

---
updated-dependencies:
- dependency-name: github.com/wailsapp/wails/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-05 11:25:43 +07:00
Roland
efef57238a
chore: include information about channels in shutdown message (#1103) 2025-03-05 11:24:10 +07:00
Roland
36168c0e7b
feat: add app cleanup page (#1138)
* feat: add app cleanup page

* chore: show skipped and deleted apps in cleanup

* fix: overlap in app card notice and actions, rename isolated to sub-wallet

* chore: update copy

* fix: only show cleanup unused apps button when there are actually apps to cleanup

* chore: memoize unusedApps

* fix: exclude sub-wallets

* fix: ux improvements

* fix: copy of warning

* fix: don't show notice if app card has actions

* fix: do not show warning once app cleanup has finished

---------

Co-authored-by: René Aaron <rene@twentyuno.net>
2025-03-04 17:19:50 +01:00
Roland
cd9cd6fd9a
chore: show wallet pubkey on connection page (#1146) 2025-03-04 19:08:08 +07:00
dependabot[bot]
e6e0df4445
build(deps): bump golang.org/x/oauth2 from 0.26.0 to 0.27.0 (#1143)
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.26.0 to 0.27.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.26.0...v0.27.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-04 13:42:04 +07:00
Roland
2281ccb402
fix: unstable self payments test (#1147) 2025-03-04 13:41:04 +07:00
dependabot[bot]
98426a42ff
build(deps): bump golang.org/x/crypto from 0.32.0 to 0.35.0 (#1141)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.32.0 to 0.35.0.
- [Commits](https://github.com/golang/crypto/compare/v0.32.0...v0.35.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-04 13:10:09 +07:00
René Aaron
5c8dab2b43
fix: close swap dialogs after opening new window (#1145) 2025-03-03 22:23:16 +07:00