From 035efa948bb836033254de6dce50eb28799e83e4 Mon Sep 17 00:00:00 2001 From: librelad Date: Thu, 20 Aug 2026 23:33:09 +0100 Subject: [PATCH] copy(webui): drop 24 tooltips that only restate their own label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Swept the field mappings after the Updates one. Removed where the tooltip carried no information the label did not already give: PORT_1..20 "Port N for this application" label: "Port N" PORTS "Port configuration for the label: "Port Configuration" application" CATEGORY "The category this application label: "Category" belongs to" THEME "Visual theme for the application" label: "Theme" ...PRIVATE_KEY "WireGuard private key" label: "WireGuard Private Key" Deliberately kept several the crude word-overlap check also flagged, because they earn their place: DOMAIN says the value is a number and why, HEADSCALE and COMPOSE_FILE carry a requirement and a warning, VPN_TYPE says it depends on the chosen provider, and DESCRIPTION/LONG_DESCRIPTION distinguish brief from detailed — which is the only thing separating that pair on screen. config-form.js already guards on the field having a tooltip, so a field without one renders no help icon rather than an empty bubble. Confirmed on Bookstack's config page: 25 icons left, none with an empty or "undefined" title, and no stray "undefined" in the body text. Regenerated the served JSON too — 145 fields before and after, 135 tooltips down to 111, and no field changed in any other way. Worth a look separately: PORT_N holds the full pipe-delimited port descriptor, not a port number, so "Port 1 for this application" was mildly misleading as well as redundant. A tooltip explaining that format would be an improvement rather than a deletion. --- .../categories/webui_create_app_field_mappings.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/webui/data/generators/categories/webui_create_app_field_mappings.sh b/scripts/webui/data/generators/categories/webui_create_app_field_mappings.sh index c26e59c..87632b6 100755 --- a/scripts/webui/data/generators/categories/webui_create_app_field_mappings.sh +++ b/scripts/webui/data/generators/categories/webui_create_app_field_mappings.sh @@ -65,7 +65,6 @@ webuiCreateAppFieldMappings() { "category": "display", "label": "Category", "type": "text", - "tooltip": "The category this application belongs to", "readonly": true, "nonEditable": true, "displayInfo": true @@ -95,8 +94,7 @@ JSONEOF "PORT_${i}": { "category": "ports", "label": "Port ${i}", - "type": "text", - "tooltip": "Port ${i} for this application" + "type": "text" }, PORTEOF done @@ -107,7 +105,6 @@ PORTEOF "category": "network", "label": "Port Configuration", "type": "text", - "tooltip": "Port configuration for the application", "placeholder": "8080:80" }, "WHITELIST": { @@ -227,7 +224,6 @@ PORTEOF "category": "features", "label": "Theme", "type": "select", - "tooltip": "Visual theme for the application", "options": [ {"value": "light", "label": "Light"}, {"value": "dark", "label": "Dark"}, @@ -655,7 +651,6 @@ PORTEOF "category": "general", "label": "WireGuard Private Key", "type": "password", - "tooltip": "WireGuard private key", "hideByDefault": true }, "GLUETUN_WIREGUARD_ADDRESSES": {