Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat: make Kestrel Neon the default theme for new instances
Adam Eivy08e334ca7475
diff --git a/client/src/hooks/useTheme.test.jsx b/client/src/hooks/useTheme.test.jsxindex f997b7400b..1b15c07b16 100644--- a/client/src/hooks/useTheme.test.jsx+++ b/client/src/hooks/useTheme.test.jsx@@ -50,6 +50,12 @@ describe('useTheme applies the manifest to <html>', () => {});describe('useTheme localStorage resilience', () => {+ it('starts a fresh instance with Kestrel Neon', () => {+ const { result } = renderHook(() => useTheme());+ expect(result.current.themeId).toBe('kestrel-neon');+ expect(document.documentElement.dataset.portTheme).toBe('kestrel-neon');+ });+it('initializes to the default theme when reads throw (blocked storage)', () => {vi.spyOn(window.localStorage, 'getItem').mockImplementation(() => {throw new DOMException('The operation is insecure.', 'SecurityError');@@ -88,10 +94,14 @@ describe('useTheme localStorage resilience', () => {expect(result.current.theme.id).toBe(OTHER_THEME_ID);});- it('applies a valid stored theme on init when storage is healthy', () => {- window.localStorage.setItem('portos-theme', OTHER_THEME_ID);+ it.each([+ ['classic-midnight', 'classic-midnight'],+ ['midnight', 'classic-midnight'],+ ])('preserves stored theme %s as %s', (saved, expected) => {+ window.localStorage.setItem('portos-theme', saved);const { result } = renderHook(() => useTheme());- expect(result.current.themeId).toBe(OTHER_THEME_ID);+ expect(result.current.themeId).toBe(expected);+ expect(document.documentElement.dataset.portTheme).toBe(expected);});it('does not warn when the login screen receives the expected auth challenge', async () => {