Commit 6da3bbe
feat: add node alias setting to General settings page
Add inline node alias editing on the Settings > General page so
self-hosted users can change their Lightning node alias without
needing an Alby paid plan. The alias input pre-populates from
useInfo().nodeAlias and POSTs to /api/node/alias. A toast reminds
the user to restart for the change to take effect.
Also adds Go doc comments to exported types in api/models.go,
config/models.go, and lnclient/models.go to satisfy the 80%
docstring coverage threshold. Includes tests for SetNodeAlias API
covering success, empty alias, and config error scenarios.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2174f02 commit 6da3bbe
5 files changed
Lines changed: 252 additions & 14 deletions
File tree
- api
- config
- frontend/src/screens/settings
- lnclient
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
16 | 23 | | |
17 | 24 | | |
18 | 25 | | |
| |||
221 | 228 | | |
222 | 229 | | |
223 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
224 | 267 | | |
225 | 268 | | |
226 | 269 | | |
| |||
0 commit comments