From 15b99a65e073ad89d2f53ad5838cf817ae8ee217 Mon Sep 17 00:00:00 2001 From: Dorian Date: Wed, 15 Jul 2026 09:25:38 +0100 Subject: [PATCH] feat(demo): placeholder LND dashboard instead of the real lnd-ui shell The official shell reads poorly inside the demo iframe; serve a demoAppShell dashboard (balances, channels, node URI) consistent with the /proxy/lnd/v1/* mocks. Co-Authored-By: Claude Fable 5 --- neode-ui/mock-backend.js | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/neode-ui/mock-backend.js b/neode-ui/mock-backend.js index 63f13aed..122b6a2e 100755 --- a/neode-ui/mock-backend.js +++ b/neode-ui/mock-backend.js @@ -1249,7 +1249,8 @@ const DOCKER_UI = path.join(__dirname, '..', 'docker') for (const [prefixes, dir] of [ [['/app/bitcoin-core', '/app/bitcoin-knots', '/app/bitcoin-ui'], 'bitcoin-ui'], [['/app/electrumx', '/app/electrs', '/app/archy-electrs-ui'], 'electrs-ui'], - [['/app/lnd', '/app/lnd-ui', '/app/archy-lnd-ui', '/app/thunderhub'], 'lnd-ui'], + // lnd deliberately NOT here: the real lnd-ui shell reads poorly in the demo + // iframe, so /app/lnd/ gets a DEMO_APP_PAGES placeholder dashboard instead. [['/app/fedimint', '/app/fedimintd'], 'fedimint-ui'], ]) { for (const p of prefixes) app.use(p, express.static(path.join(DOCKER_UI, dir))) @@ -4741,6 +4742,34 @@ app.get('/app/thunderhub/api/forwards', (req, res) => res.json(MOCK_LND_DATA.for // something plausible in the in-app iframe. Registered before the generic // /app/:id notice handler so these win. const DEMO_APP_PAGES = { + // Placeholder LND dashboard — the real lnd-ui shell reads poorly inside the + // demo iframe. Numbers stay consistent with the /proxy/lnd/v1/* mocks. + lnd: () => demoAppShell('Lightning Network Daemon', 'archipelago-lnd · v0.18.3-beta · signet', '/assets/img/app-icons/lnd.png', ` +
+
Status
Running · synced
+
On-chain
2,450,000 sats
+
Lightning (local)
8,250,000 sats
+
Inbound capacity
11,750,000 sats
+
+
+
Channels
4 active
+
Peers
11
+
Block height
902,418
+
+
+
Channels
+ + + + + + +
PeerCapacityLocal / RemoteBalance
ACINQ5,000,0002,450,000 / 2,550,000
Voltage10,000,0004,500,000 / 5,500,000
Kraken3,000,0001,800,000 / 1,200,000
Wallet of Satoshi2,000,0001,200,000 / 800,000
+
+
+
Node URI
+
02c9f0a1…e47b@lnd7f3a2c9d1b4e8f6.onion:9735
+
`), 'btcpay-server': () => demoAppShell('BTCPay Server', 'Self-hosted payment processor · signet', '/assets/img/app-icons/btcpay-server.png', `
Store
Archipelago Shop