From 281a735e8430c1c59a1049718a64c6e6b06d65c3 Mon Sep 17 00:00:00 2001 From: ScreenTinker Date: Wed, 22 Apr 2026 19:36:20 -0500 Subject: [PATCH] Fix white-label settings not applying on page load MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Root cause: the Settings page loaded /api/white-label into the form inputs but never applied the saved values (primary_color, bg_color, brand_name, favicon, custom_css) to the actual document. Nothing in app.js bootstrap touched branding. So the save hit the DB correctly, reload kept the DB value correctly, but the page always rendered the hardcoded defaults from css/variables.css and the static "ScreenTinker" label in index.html — which looked like the save had reverted. Fix: new frontend/js/branding.js module that fetches /api/white-label once at startup (app.js) and applies values to: - --accent and --bg-primary CSS vars - document.title and the .sidebar-header .logo span text - all /apple-touch-icon hrefs - a