remove unused voice settings from navigation

This commit is contained in:
2026-03-14 14:35:09 +08:00
parent b37dc6ea1b
commit df5954c8e1

View File

@@ -95,7 +95,6 @@ const pageOrder: SettingsPageSlug[] = [
'usage', 'usage',
'skills.installed', 'skills.installed',
'skills.catalog', 'skills.catalog',
'voice',
]; ];
function buildRuntimeContext(isDesktop: boolean): SettingsRuntimeContext { function buildRuntimeContext(isDesktop: boolean): SettingsRuntimeContext {
@@ -147,8 +146,6 @@ function getSettingsNavIcon(slug: SettingsPageSlug): React.ComponentType<{ class
case 'usage': case 'usage':
return RiBarChart2Line; return RiBarChart2Line;
case 'voice':
return RiMicLine;
case 'home': case 'home':
return null; return null;
default: default:
@@ -434,8 +431,7 @@ export const SettingsView: React.FC<SettingsViewProps> = ({ onClose, forceMobile
case 'chat': case 'chat':
case 'shortcuts': case 'shortcuts':
case 'sessions': case 'sessions':
case 'notifications': case 'notifications': {
case 'voice': {
const section = openChamberSectionBySlug[slug] ?? 'visual'; const section = openChamberSectionBySlug[slug] ?? 'visual';
return <OpenChamberPage section={section} />; return <OpenChamberPage section={section} />;
} }
@@ -509,11 +505,6 @@ export const SettingsView: React.FC<SettingsViewProps> = ({ onClose, forceMobile
)} )}
> >
<span className="typography-ui-label font-normal truncate">{page.title}</span> <span className="typography-ui-label font-normal truncate">{page.title}</span>
{page.slug === 'voice' && (
<span className="shrink-0 typography-micro px-1 rounded leading-none pb-px text-[var(--status-warning)] bg-[var(--status-warning)]/10">
beta
</span>
)}
</span> </span>
</button> </button>
</TooltipTrigger> </TooltipTrigger>