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): make settings panel heading level consistent and fix tab rendering
Steven Enamakel32b9f52cd50c
diff --git a/app/src/components/settings/layout/SettingsPanel.test.tsx b/app/src/components/settings/layout/SettingsPanel.test.tsxindex 336f05fe73..86e25c96d3 100644--- a/app/src/components/settings/layout/SettingsPanel.test.tsx+++ b/app/src/components/settings/layout/SettingsPanel.test.tsx@@ -31,7 +31,7 @@ describe('<SettingsPanel />', () => {</SettingsPanel>);// The registry title key for the `privacy` route, rendered as the h2.- expect(getByRole('heading', { level: 2 })).toHaveTextContent('pages.settings.account.privacy');+ expect(getByRole('heading', { level: 1 })).toHaveTextContent('pages.settings.account.privacy');});it('lets an explicit title override the registry default', () => {@@ -41,7 +41,7 @@ describe('<SettingsPanel />', () => {<p>body</p></SettingsPanel>);- expect(getByRole('heading', { level: 2 })).toHaveTextContent('Custom title');+ expect(getByRole('heading', { level: 1 })).toHaveTextContent('Custom title');});it('renders the description and the header action', () => {diff --git a/app/src/components/settings/layout/SettingsTabbedPage.tsx b/app/src/components/settings/layout/SettingsTabbedPage.tsxindex 150ac6de83..0fad486319 100644--- a/app/src/components/settings/layout/SettingsTabbedPage.tsx+++ b/app/src/components/settings/layout/SettingsTabbedPage.tsx@@ -74,11 +74,16 @@ export default function SettingsTabbedPage<T extends string>({{headerAction != null && <div className="shrink-0">{headerAction}</div>}</header>{headerExtra}- {tabs && tabs.length > 0 && value != null && onChange && tabsAriaLabel ? (+ {/* Deliberately NOT gated on `tabsAriaLabel`. It used to be, which meant+ a panel that forgot the prop silently rendered no tab row at all —+ a missing accessible name should degrade the label, not delete the+ navigation. All five live panels do pass one; the fallback covers+ the sixth. */}+ {tabs && tabs.length > 0 && value != null && onChange ? (<div><ChipTabsclassName="flex flex-wrap gap-1.5"- ariaLabel={tabsAriaLabel}+ ariaLabel={tabsAriaLabel ?? 'Tabs'}testIdPrefix={tabsTestIdPrefix}items={tabs}value={value}