From cf39e2892167822070cab99ae6829624b0718d50 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Apr 2026 15:01:26 +0000 Subject: [PATCH 1/2] Initial plan From 43016296062b64fa5fc8e2a06a93348441290c9f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Apr 2026 15:07:23 +0000 Subject: [PATCH 2/2] feat: add dedicated domain reconfigure modal flow Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/34ab0742-1af8-46e9-9b12-a480c93366f1 Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> --- .../static/js/features.js | 78 +++++++++++++++++++ .../static/js/service-detail.js | 13 +++- 2 files changed, 87 insertions(+), 4 deletions(-) diff --git a/app/sovran_systemsos_web/static/js/features.js b/app/sovran_systemsos_web/static/js/features.js index 2bdc568..5e239bf 100644 --- a/app/sovran_systemsos_web/static/js/features.js +++ b/app/sovran_systemsos_web/static/js/features.js @@ -132,6 +132,84 @@ function openDomainSetupModal(feat, onSaved) { $domainSetupModal.classList.add("open"); } +function openDomainReconfigureModal(feat, existingDomain, onSaved) { + if (!$domainSetupModal) return; + if ($domainSetupTitle) $domainSetupTitle.textContent = "🔄 Reconfigure Domain — " + feat.name; + + var npubField = ""; + if (feat.id === "haven") { + var currentNpub = ""; + if (feat.extra_fields && feat.extra_fields.length > 0) { + for (var i = 0; i < feat.extra_fields.length; i++) { + if (feat.extra_fields[i].id === "nostr_npub") { + currentNpub = feat.extra_fields[i].current_value || ""; + break; + } + } + } + npubField = '
'; + } + + var externalIp = _cachedExternalIp || "your external IP"; + var currentDomain = existingDomain || ""; + + $domainSetupBody.innerHTML = + 'Your domain ' + escHtml(currentDomain || "this domain") + ' is configured but isn\'t resolving correctly.
' + + 'Troubleshooting steps:
' + + 'ℹ Paste the full curl command from your Njal.la dashboard\'s Dynamic record
Could not load service details.
';