From fd6208a376bc5b126562a92a38a739b444351ae0 Mon Sep 17 00:00:00 2001 From: Arseniy Romenskiy Date: Sun, 12 Apr 2026 02:19:03 +0300 Subject: [PATCH] Fix tooltips and error icons after config parsing - Call updateTooltips() after clearAllTooltips() to restore tooltip attributes - Add error icons to all input fields (context-length, kv-heads, head-size, num-heads, num-layers, parallel, full-attention, hf-model) - Update showConfigErrors() to handle hf-model field correctly --- index.html | 8 ++++++++ js/app.js | 10 +++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 479b645..32c1d8e 100644 --- a/index.html +++ b/index.html @@ -21,6 +21,7 @@ +
@@ -44,24 +45,28 @@ +
+
+
+
@@ -74,12 +79,14 @@ +
+
@@ -94,6 +101,7 @@ +
diff --git a/js/app.js b/js/app.js index 5102cdd..bd63d83 100644 --- a/js/app.js +++ b/js/app.js @@ -597,6 +597,9 @@ // Populate from config populateFromConfig(config); + // Update tooltips after clearing them + updateTooltips(); + // Hide loading and set focus loadingIndicator.style.display = 'none'; hfModelInput.focus(); @@ -628,7 +631,12 @@ // Show config errors function showConfigErrors() { Object.keys(window.configErrors).forEach(fieldId => { - const errorIcon = document.querySelector(`#${fieldId} ~ .error-icon`); + let errorIcon; + if (fieldId === 'hf-model') { + errorIcon = document.querySelector('#hf-model + .error-icon'); + } else { + errorIcon = document.querySelector(`#${fieldId} ~ .error-icon`); + } if (errorIcon) { errorIcon.style.display = 'inline-block'; errorIcon.setAttribute('data-tooltip-ru', window.configErrors[fieldId]);