From 459b825daae42ef6d206c1858cc4eb9d8cc0b3fa Mon Sep 17 00:00:00 2001 From: pewdiepie-archdaemon Date: Tue, 9 Jun 2026 14:36:44 +0900 Subject: [PATCH] Settings: split Add/Added Models into 4 flat cards (no folds) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous 'Add Models' card had two collapsible folds (Local + API) inside it and 'Added Models' had two inline subsections. Both folded states added a click-to-expand step that wasn't earning its keep — users coming to Settings to add a model don't want a fold, they want the form. Reshape: four flat admin-cards in the Services panel, each with its own h2 title matching the rest of Settings: Add Local Model (was Add Models → Local fold) Add API (was Add Models → API fold) Added Local Models (was Added Models → Local subsection) Added API Endpoints (was Added Models → API subsection) The collapsible JS hook in admin.js already guards on 'if (!head) return' so removing the .adm-section-toggle headers turns it into a clean no-op — no breakage. All input/list IDs preserved (adm-epLocalUrl, adm-epList-local, adm-epList-api, etc.) so the rest of admin.js continues to work unchanged. Probe / Clear-offline live on the Local card and act on both lists together (existing behavior). --- static/index.html | 46 +++++++++++++++++----------------------------- 1 file changed, 17 insertions(+), 29 deletions(-) diff --git a/static/index.html b/static/index.html index 6dd1c1af9..7f9090735 100644 --- a/static/index.html +++ b/static/index.html @@ -1998,17 +1998,10 @@
-
-

Add Models (Endpoints)

-
Connect local models first, or add a cloud API.
- - -