Logo
Explore Help
Sign In
fa/breadcrumb-the-shire
1
0
Fork 1
You've already forked breadcrumb-the-shire
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
Files
0486ebf2a22bcb27b190df653d9de4f76aee040e
breadcrumb-the-shire/db/updates/2026-04-24-theme-simplification.sql

8 lines
406 B
MySQL
Raw Normal View History

refactor(theme): drop dark-green and collapse theme registry to light/dark Remove the extensible theme catalog (config/themes.php + ThemeConfigGateway) in favor of a two-entry const on SettingsAppGateway. appThemes() now returns the list directly — no container lookup, no file include. Drop the dark-green theme assets, narrow [data-theme^="dark"] selectors to [data-theme="dark"], and tighten isDarkTheme() to an exact match. Ship an idempotent migration that corrects any leftover 'dark-green' rows on users and tenants to safe defaults (light / NULL). Tenant scoping (default_theme, allow_user_theme) and per-user override stay intact; only the catalog extensibility and the third theme are removed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 16:15:10 +02:00
-- Theme simplification: collapse catalog to light + dark.
-- Migrates any leftover 'dark-green' values back to safe defaults.
-- Idempotent — re-runs are a no-op because the WHERE clauses filter
-- on the exact legacy value that the preceding run already replaced.
UPDATE users SET theme = 'light' WHERE theme = 'dark-green';
UPDATE tenants SET default_theme = NULL WHERE default_theme = 'dark-green';
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 48ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API