The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(settings): restore the dismissed chat mascot control
Steven Enamakela96605fd120c
diff --git a/app/src/components/settings/panels/AppearancePanel.test.tsx b/app/src/components/settings/panels/AppearancePanel.test.tsxindex 2192b00482..6027d051a8 100644--- a/app/src/components/settings/panels/AppearancePanel.test.tsx+++ b/app/src/components/settings/panels/AppearancePanel.test.tsx@@ -3,6 +3,7 @@ import { Provider } from 'react-redux';import { MemoryRouter, Route, Routes } from 'react-router-dom';import { describe, expect, it, vi } from 'vitest';+import { setChatMascotDismissed } from '../../../store/mascotSlice';import { createTestStore, renderWithProviders } from '../../../test/test-utils';import AppearancePanel from './AppearancePanel';@@ -30,6 +31,15 @@ function renderPanel(// (`/settings/theme`, `ThemeStudioPanel`) rather than as a tab inside// AppearancePanel — see ThemeStudioPanel.test.tsx for that coverage.describe('<AppearancePanel />', () => {+ it('lets a dismissed chat mascot be shown again', () => {+ const store = createTestStore();+ store.dispatch(setChatMascotDismissed(true));+ const { getByRole } = renderWithProviders(<AppearancePanel />, { store });+ const toggle = getByRole('switch', { name: 'settings.appearance.showChatMascot' });+ expect(toggle).toHaveAttribute('aria-checked', 'false');+ fireEvent.click(toggle);+ expect(store.getState().mascot.chatMascotDismissed).toBe(false);+ });it('renders the font size card and no theme gallery/customizer of its own', () => {const { getByTestId, getByRole, queryByTestId } = renderPanel();expect(getByTestId('font-size-card')).toBeInTheDocument();diff --git a/app/src/components/settings/panels/AppearancePanel.tsx b/app/src/components/settings/panels/AppearancePanel.tsxindex f5c9f1742b..083f39e409 100644--- a/app/src/components/settings/panels/AppearancePanel.tsx+++ b/app/src/components/settings/panels/AppearancePanel.tsx@@ -4,6 +4,7 @@ import { Navigate, useLocation } from 'react-router-dom';import { cn } from '../../../lib/cn';import { useT } from '../../../lib/i18n/I18nContext';import { useAppDispatch, useAppSelector } from '../../../store/hooks';+import { selectChatMascotDismissed, setChatMascotDismissed } from '../../../store/mascotSlice';import {FONT_SIZE_PX,type FontSize,@@ -13,7 +14,7 @@ import {setCustomFontSizePx,setFontSize,} from '../../../store/themeSlice';-import { Card, Slider } from '../../ui';+import { Card, Slider, Switch } from '../../ui';import { SettingsNumberField } from '../controls';import SettingsPanel from '../layout/SettingsPanel';import LayoutSettings from './theme/LayoutSettings';@@ -30,6 +31,7 @@ const AppearancePanel = () => {const { t } = useT();const dispatch = useAppDispatch();const effectiveFontSizePx = useAppSelector(selectEffectiveFontSizePx);+ const chatMascotDismissed = useAppSelector(selectChatMascotDismissed);const location = useLocation();// Local draft for the numeric px field so partial typing doesn't thrash the@@ -183,6 +185,19 @@ const AppearancePanel = () => {{body}{/* Corner rounding, border contrast, and which areas draw borders. */}<LayoutSettings />+ <Card title={t('settings.appearance.chatHeading')}>+ <div className="flex items-center justify-between gap-3 p-4">+ <label htmlFor="show-chat-mascot" className="text-sm font-medium text-content">+ {t('settings.appearance.showChatMascot')}+ </label>+ <Switch+ id="show-chat-mascot"+ aria-label={t('settings.appearance.showChatMascot')}+ checked={!chatMascotDismissed}+ onCheckedChange={shown => dispatch(setChatMascotDismissed(!shown))}+ />+ </div>+ </Card></SettingsPanel>);};