From 1d15997745205ecd88f0d75c452e50f585c46870 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Apr 2026 16:07:22 +0000 Subject: [PATCH] fix: remove misleading port status from enable-feature modal Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/15310f2a-9bf2-4813-b2be-7462cb923c9c Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> --- .../static/js/features.js | 145 ++++++------------ 1 file changed, 44 insertions(+), 101 deletions(-) diff --git a/app/sovran_systemsos_web/static/js/features.js b/app/sovran_systemsos_web/static/js/features.js index 5e239bf..4e3c2b4 100644 --- a/app/sovran_systemsos_web/static/js/features.js +++ b/app/sovran_systemsos_web/static/js/features.js @@ -222,116 +222,59 @@ function openPortRequirementsModal(featureName, ports, onContinue) { var continueBtn = onContinue ? '' : ''; + var rows = ports.map(function(p) { + return '
Checking port status for ' + escHtml(featureName) + '…
' + - 'Detecting which ports are open on this machine…
'; + function renderPortRequirements(internalIp) { + var ipLine = internalIp + ? 'Forward each port below to this machine\'s internal IP: ' + escHtml(internalIp) + '
Forward each port below to this machine's internal LAN IP in your router's port forwarding settings.
"; + + $portReqBody.innerHTML = + 'Port Forwarding Required
' + + 'For ' + escHtml(featureName) + " to work with clients outside your local network, " + + "you must configure port forwarding in your router's admin panel.
" + + ipLine + + '| Port(s) | Protocol | Purpose |
|---|
How to verify: Router-side forwarding cannot be checked from inside your network. " + + "To confirm ports are forwarded correctly, test from a device on a different network (e.g. a phone on mobile data) " + + "or check your router's port forwarding page.
" + + 'ℹ Search "how to set up port forwarding on [your router model]" for step-by-step instructions.
' + + 'Forward each port below to this machine\'s internal IP: ' + escHtml(internalIp) + '
Forward each port below to this machine's internal LAN IP in your router's port forwarding settings.
"; - - $portReqBody.innerHTML = - 'Port Forwarding Required
' + - 'For ' + escHtml(featureName) + " to work with clients outside your local network, " + - "you must configure port forwarding in your router's admin panel.
" + - ipLine + - '| Port(s) | Protocol | Purpose | Status |
|---|
How to verify: Router-side forwarding cannot be checked from inside your network. " + - "To confirm ports are forwarded correctly, test from a device on a different network (e.g. a phone on mobile data) " + - "or check your router's port forwarding page.
" + - 'ℹ Search "how to set up port forwarding on [your router model]" for step-by-step instructions.
' + - 'Port Forwarding Required
' + - 'For ' + escHtml(featureName) + ' to work with clients outside your local network, ' + - 'you must configure port forwarding in your router\'s admin panel and forward each port below to this machine\'s internal LAN IP.
' + - '| Port(s) | Protocol | Purpose |
|---|
ℹ Search "how to set up port forwarding on [your router model]" for step-by-step instructions.
' + - '