From 1f4afe082b62e6df3719c54d593e6cefbc1f243e Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Sun, 28 Jun 2026 20:31:00 +0200 Subject: [PATCH] fix: show all built-in themes in admin theme controls #496 --- app/(main)/admin/_tabs/themes.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/(main)/admin/_tabs/themes.tsx b/app/(main)/admin/_tabs/themes.tsx index 80c32759..b872a056 100644 --- a/app/(main)/admin/_tabs/themes.tsx +++ b/app/(main)/admin/_tabs/themes.tsx @@ -5,12 +5,11 @@ import { Upload, Trash2, Power, PowerOff, Loader2, Palette, Save, Shield, Lock, import type { SettingsPolicy } from '@/lib/admin/types'; import { DEFAULT_POLICY, DEFAULT_THEME_POLICY } from '@/lib/admin/types'; import { apiFetch } from '@/lib/browser-navigation'; +import { BUILTIN_THEMES } from '@/lib/builtin-themes'; -const BUILTIN_THEME_OPTIONS = [ - { id: 'builtin-nord', name: 'Nord' }, - { id: 'builtin-catppuccin', name: 'Catppuccin' }, - { id: 'builtin-solarized', name: 'Solarized' }, -]; +// Derive from the single source of truth so newly added built-in themes show +// up here automatically (was previously a hardcoded subset — see #496). +const BUILTIN_THEME_OPTIONS = BUILTIN_THEMES.map(t => ({ id: t.id, name: t.name })); interface ThemeEntry { id: string;