screentinker/frontend/js/views
ScreenTinker 281a735e84 Fix white-label settings not applying on page load
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 <link rel="icon">/apple-touch-icon hrefs
  - a <style id="wl-custom-css"> tag for custom_css
  - the theme-color meta tag

Settings save now calls resetBranding() after POST so changes apply
immediately without a reload.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-22 19:36:20 -05:00
..
activity.js Security audit remediation: auth, IDOR, XSS, hardening 2026-04-11 22:48:07 -05:00
admin.js Mobile: fix modal and form control overflow 2026-04-21 18:48:51 -05:00
billing.js Security audit remediation: auth, IDOR, XSS, hardening 2026-04-11 22:48:07 -05:00
content-library.js Mobile: fix modal and form control overflow 2026-04-21 18:48:51 -05:00
dashboard.js Mobile: grid + layout reflow (Commit 2/4) 2026-04-21 15:50:56 -05:00
designer.js Fix widget assignments, designer scaling, and cache strategy 2026-04-08 16:25:05 -05:00
device-detail.js Mobile: fix modal and form control overflow 2026-04-21 18:48:51 -05:00
help.js Initial open source release 2026-04-08 12:14:53 -05:00
kiosk.js Initial open source release 2026-04-08 12:14:53 -05:00
layout-editor.js Initial open source release 2026-04-08 12:14:53 -05:00
login.js Add DISABLE_REGISTRATION env var to block public sign-ups 2026-04-22 19:35:32 -05:00
onboarding.js Mobile: fix modal and form control overflow 2026-04-21 18:48:51 -05:00
playlists.js Mobile: fix modal and form control overflow 2026-04-21 18:48:51 -05:00
reports.js Mobile: horizontal-scroll tables + tab fade (Commit 4/4) 2026-04-21 15:56:01 -05:00
schedule.js Mobile: grid + layout reflow (Commit 2/4) 2026-04-21 15:50:56 -05:00
settings.js Fix white-label settings not applying on page load 2026-04-22 19:36:20 -05:00
teams.js Mobile: fix modal and form control overflow 2026-04-21 18:48:51 -05:00
video-wall.js Initial open source release 2026-04-08 12:14:53 -05:00
widgets.js Add directory board editor UI with content picker, category/entry management 2026-04-21 22:28:47 -05:00