mirror of
https://github.com/screentinker/screentinker.git
synced 2026-05-15 07:32:23 -06:00
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> |
||
|---|---|---|
| .. | ||
| activity.js | ||
| admin.js | ||
| billing.js | ||
| content-library.js | ||
| dashboard.js | ||
| designer.js | ||
| device-detail.js | ||
| help.js | ||
| kiosk.js | ||
| layout-editor.js | ||
| login.js | ||
| onboarding.js | ||
| playlists.js | ||
| reports.js | ||
| schedule.js | ||
| settings.js | ||
| teams.js | ||
| video-wall.js | ||
| widgets.js | ||