diff --git a/app/sovran_systemsos_web/static/js/service-detail.js b/app/sovran_systemsos_web/static/js/service-detail.js index 7b562e9..f787284 100644 --- a/app/sovran_systemsos_web/static/js/service-detail.js +++ b/app/sovran_systemsos_web/static/js/service-detail.js @@ -2,6 +2,21 @@ // ── Service detail modal ────────────────────────────────────────── +function _getZeusConnectGuideHtml() { + return '
' + + '
📱 Connect to Zeus
' + + '

This connection URL is an LND REST connection — the direct way to use Zeus with your node for full admin access. It connects securely through Tor, allowing you to manage channels, balances, and your full node on the go.

' + + '
' + + '
1
Download Zeus from the App Store or Google Play.
' + + '
2
Open Zeus and open the Wallets screen.
' + + '
3
Tap the + (Add Wallet) button in the top-right corner.
' + + '
4
On Wallet Configuration, tap the scan icon in the top-right corner, then scan the QR code above.
' + + '
5
Zeus detects the LND REST QR and fills in the connection details. Review them, then tap Save Wallet Config.
' + + '
' + + '
💡 Note: This is not the same as the NWC pairing QR shown in Lightning Wallet Connections — that gives your wallet sandboxed, limited access for everyday spending. LND REST connects Zeus directly to your node for full admin control.
' + + '
'; +} + function _renderCredsHtml(credentials, unit) { var html = ""; for (var i = 0; i < credentials.length; i++) { @@ -10,7 +25,7 @@ function _renderCredsHtml(credentials, unit) { var qrBlock = ""; if (cred.qrcode) { var qrHint = (unit === "zeus-connect-setup.service") - ? "In Zeus: Settings → Connect a node → Scan LN node QR. This is an LND REST QR for direct node access." + ? "This is an LND REST connection QR — in Zeus, add a wallet and use the scan icon (see steps below)." : "In Zeus: Wallets → + → scan icon. This is an LND REST QR for direct node access."; qrBlock = '
QR Code for ' + escHtml(cred.label) + '
' + qrHint + '
'; } @@ -852,6 +867,7 @@ async function openServiceDetailModal(unit, name, icon) { html += '
' + '
Credentials & Access
' + _renderCredsHtml(data.credentials, unit) + + (unit === "zeus-connect-setup.service" ? _getZeusConnectGuideHtml() : "") + (unit === "matrix-synapse.service" ? '
' + '' + @@ -1070,17 +1086,7 @@ async function openCredsModal(unit, name, icon) { '
'; } if (unit === "zeus-connect-setup.service") { - html += '
' + - '
📱 Connect to Zeus (Direct Node Access)
' + - '

This QR is an LND REST connection — the direct way to use Zeus with your Lightning node for full admin control. It lets you manage channels, balances, and payments from your phone.

' + - '
' + - '
1
Download Zeus from the App Store or Google Play.
' + - '
2
Open Zeus and go to Settings → Connect a node (or Scan Node Config).
' + - '
3
Tap Scan LN node QR and scan the QR code above.
' + - '
4
Review the connection details, then tap Save Node Config.
' + - '
' + - '
💡 Note: This is not the same as the NWC pairing QR shown in Lightning Wallet Connections — that gives your wallet sandboxed, limited access for everyday spending. LND REST connects Zeus directly to your node for full admin control.
' + - '
'; + html += _getZeusConnectGuideHtml(); } $credsBody.innerHTML = html; _attachCopyHandlers($credsBody);