From 9eddaeafc3c69f5ad22a20766d6deebd5bcb016c Mon Sep 17 00:00:00 2001 From: "alexei.dolgolyov" Date: Sun, 8 Feb 2026 03:42:09 +0300 Subject: [PATCH] Move WLED config tips to footer, add Web UI link, move preview to calibration - Move WLED Configuration tips from Add Device modal to page footer - Add WLED Web UI link in footer (auto-populated with first device URL) - Add WLED Web UI button (globe icon) to device card actions - Move pixel preview button from device card to calibration modal footer - Add en/ru i18n keys for new UI elements Co-Authored-By: Claude Opus 4.6 --- server/src/wled_controller/static/app.js | 16 +++++++++++++--- server/src/wled_controller/static/index.html | 14 +++++++++----- .../src/wled_controller/static/locales/en.json | 4 ++++ .../src/wled_controller/static/locales/ru.json | 4 ++++ server/src/wled_controller/static/style.css | 14 ++++++++++++++ 5 files changed, 44 insertions(+), 8 deletions(-) diff --git a/server/src/wled_controller/static/app.js b/server/src/wled_controller/static/app.js index 41a0c9a..616566a 100644 --- a/server/src/wled_controller/static/app.js +++ b/server/src/wled_controller/static/app.js @@ -452,6 +452,14 @@ async function loadDevices() { container.innerHTML = devicesWithState.map(device => createDeviceCard(device)).join(''); + // Update footer WLED Web UI link with first device's URL + const webuiLink = document.querySelector('.wled-webui-link'); + if (webuiLink && devicesWithState.length > 0 && devicesWithState[0].url) { + webuiLink.href = devicesWithState[0].url; + webuiLink.target = '_blank'; + webuiLink.rel = 'noopener'; + } + // Attach event listeners devicesWithState.forEach(device => { attachDeviceListeners(device.id); @@ -569,9 +577,11 @@ function createDeviceCard(device) { - + ${device.url ? ` + + 🌐 + + ` : ''} `; diff --git a/server/src/wled_controller/static/index.html b/server/src/wled_controller/static/index.html index a42b578..e6f66a1 100644 --- a/server/src/wled_controller/static/index.html +++ b/server/src/wled_controller/static/index.html @@ -56,6 +56,14 @@