Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(settings): make settings panel heading level consistent and fix tab rendering\n\nThe settings panel heading was changed from h2 to h1 to match the correct document outline hierarchy, and the tab row no longer requires the `tabsAriaLabel` prop to render, falling back to a default label instead of silently hiding the navigation when the prop is omitted.\n\nAuto-committed-on: macbook\n

Steven Enamakel7978ad0c62b4
diff --git a/app/src/components/settings/layout/SettingsPanel.test.tsx b/app/src/components/settings/layout/SettingsPanel.test.tsx
index 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.tsx
index 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>
<ChipTabs
className="flex flex-wrap gap-1.5"
- ariaLabel={tabsAriaLabel}
+ ariaLabel={tabsAriaLabel ?? 'Tabs'}
testIdPrefix={tabsTestIdPrefix}
items={tabs}
value={value}