fix: show about settings only on mobile

Hides About from desktop settings navigation and command palette
Keeps About available in mobile settings
This commit is contained in:
Bohdan Triapitsyn
2026-06-13 01:59:33 +03:00
parent ca87428216
commit b8dc25c7c8
5 changed files with 37 additions and 9 deletions
+2 -1
View File
@@ -39,6 +39,7 @@ export interface SettingsRuntimeContext {
isVSCode: boolean;
isWeb: boolean;
isDesktop: boolean;
isMobile: boolean;
}
export interface SettingsPageMeta {
@@ -205,7 +206,7 @@ export const SETTINGS_PAGE_METADATA: readonly SettingsPageMeta[] = [
{ slug: 'notifications', title: 'Notifications', group: 'general', kind: 'single', keywords: ['alerts', 'native', 'summary', 'summarization'], },
{ slug: 'voice', title: 'Voice', group: 'advanced', kind: 'single', keywords: ['tts', 'speech', 'voice'], isAvailable: (ctx) => !ctx.isVSCode },
{ slug: 'tunnel', title: 'Remote Tunnel', group: 'advanced', kind: 'single', keywords: ['tunnel', 'cloudflare', 'qr', 'remote', 'mobile', 'share'], isAvailable: (ctx) => !ctx.isVSCode },
{ slug: 'about', title: 'About', group: 'advanced', kind: 'single', keywords: ['about', 'version', 'updates', 'release', 'changelog'], },
{ slug: 'about', title: 'About', group: 'advanced', kind: 'single', keywords: ['about', 'version', 'updates', 'release', 'changelog'], isAvailable: (ctx) => ctx.isMobile },
] as const;
export const LEGACY_SIDEBAR_SECTION_TO_SETTINGS_SLUG: Record<SidebarSection, SettingsPageSlug> = {