From 49e41eeea951c82e0af2ece591877b96c7fdf1d1 Mon Sep 17 00:00:00 2001 From: Patch Bot Date: Thu, 3 Sep 2026 14:50:27 +0000 Subject: [PATCH] =?UTF-8?q?ui:=20simplify=20element-calling=20port=20modal?= =?UTF-8?q?=20=E2=80=94=20trim=20verbose=20steps=20and=20remove=20extra=20?= =?UTF-8?q?verification=20task?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace 3 long instruction bullets with 1 plaintext line - Shorten intro (drop long parenthetical on IP location) - Remove 'how to confirm it worked' note — if router applies rules, ports are open - Keep port table intact (40000-40099 current set) --- app/sovran_systemsos_web/static/js/helpers.js | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/app/sovran_systemsos_web/static/js/helpers.js b/app/sovran_systemsos_web/static/js/helpers.js index 8d9ed68..ce58c98 100644 --- a/app/sovran_systemsos_web/static/js/helpers.js +++ b/app/sovran_systemsos_web/static/js/helpers.js @@ -67,7 +67,7 @@ function renderPortForwardGuideHtml(ports, opts) { var noteClass = opts.noteClass || "port-req-hint"; var ipHtml = opts.internalIp ? '' + escHtml(opts.internalIp) + '' - : 'this computer’s internal IP (shown as “Internal IP” at the top of the Hub dashboard)'; + : 'this computer’s internal IP'; var rows = (ports || []).map(function(p) { return '' + @@ -78,26 +78,17 @@ function renderPortForwardGuideHtml(ports, opts) { }).join(""); var forWhat = opts.serviceName - ? 'For ' + escHtml(opts.serviceName) + ' to be reachable from outside your home network, open' - : 'Open'; + ? 'To make ' + escHtml(opts.serviceName) + ' reachable from outside your home, forward these ports to ' + ipHtml + ':' + : 'Forward these ports to ' + ipHtml + ':'; - return '

' + - forWhat + ' the ports below in your router’s port forwarding settings ' + - 'and point them at ' + ipHtml + '.' + + return '

' + forWhat + '

' + + '

' + + 'Set the internal and external port to the same number. Match TCP or UDP exactly. For ranges like 40000-40099, use your router’s range fields (start 40000, end 40099).' + '

' + - '' + '' + '' + '' + rows + '' + - '
Port(s)ProtocolUsed for
' + - '

' + - '📱 How to confirm it worked: forwarding happens on your router, so it can only be verified from outside your network. ' + - 'Turn Wi-Fi off on your phone and open the service over mobile data — if it loads, your ports are open.' + - '

'; + ''; } function formatDuration(seconds) {