From c5362be11bad2cd22f22ba91a3cbfbd4e01197cc Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Sun, 10 May 2026 22:17:37 +0200 Subject: [PATCH] refactor(web): drop obsolete overview lines, fold actions into state card MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The state card now duplicates everything the legacy overview paragraphs reported, so the redundant block between the card and the Customize details was visible-but-stale: SSH/Telnet status, the two Backup status paragraphs, Remote Services line, and the AfterTouch Local Root CA Trusted line. Removed wholesale, plus the original-config-pane and toggleOriginalConfig that the Show Original Config button drove. Kept "Trust CA Now" and "Download CA cert" (per user request), relocating both into the state card's CA / TLS cell as inline actions next to the verdict — the verdict text now writes to a #state-ca-line sub-span so re-renders don't clobber the buttons. Also gated the HTTPS Connection Test pane on summary.ssh_success: the backend's TestConnection uploads a temp CA file and runs curl on the device via SSH, so the panel makes no sense when SSH isn't reachable. A telnet-poke + service-side observation alternative is on the roadmap but not implemented yet. Stripped the dead JS branches that wrote to ssh-status, ca-trust-status, remote-services-status/found, original-config-status, no-original-config-status, original-config-content, original-config-pane, and backup-config-btn. Co-Authored-By: Claude Opus 4.7 (1M context) --- pkg/service/handlers/web/index.html | 78 ++++++--------------------- pkg/service/handlers/web/js/script.js | 68 ++++++++--------------- 2 files changed, 39 insertions(+), 107 deletions(-) diff --git a/pkg/service/handlers/web/index.html b/pkg/service/handlers/web/index.html index 4afcc34..a4f975f 100644 --- a/pkg/service/handlers/web/index.html +++ b/pkg/service/handlers/web/index.html @@ -548,7 +548,22 @@ CA / TLS - + + + + + Download CA cert + + @@ -575,10 +590,6 @@ -

SSH Connection:

-

Telnet (Port 17000): - -

- - -

- Remote Services Enabled: - - -

-

- AfterTouch Local Root CA Trusted: - - - Download CA cert -

- -