refactor: move project settings to Project section, rename global settings

- Move "Settings" from Tools section to Project section in sidebar
- Rename bottom settings link from "Settings" to "Global Settings"
- Update keyboard shortcut description accordingly
This commit is contained in:
Stefan de Vogelaere
2026-01-16 23:17:50 +01:00
parent 6a23e6ce78
commit 8b7700364d
2 changed files with 13 additions and 11 deletions

View File

@@ -151,7 +151,7 @@ export function SidebarFooter({
sidebarOpen ? 'justify-start' : 'justify-center',
'hover:scale-[1.02] active:scale-[0.97]'
)}
title={!sidebarOpen ? 'Settings' : undefined}
title={!sidebarOpen ? 'Global Settings' : undefined}
data-testid="settings-button"
>
<Settings
@@ -168,7 +168,7 @@ export function SidebarFooter({
sidebarOpen ? 'block' : 'hidden'
)}
>
Settings
Global Settings
</span>
{sidebarOpen && (
<span
@@ -194,7 +194,7 @@ export function SidebarFooter({
'translate-x-1 group-hover:translate-x-0'
)}
>
Settings
Global Settings
<span className="ml-2 px-1.5 py-0.5 bg-muted rounded text-[10px] font-mono text-muted-foreground">
{formatShortcut(shortcuts.settings, true)}
</span>

View File

@@ -123,12 +123,6 @@ export function useNavigation({
icon: Brain,
shortcut: shortcuts.memory,
},
{
id: 'project-settings',
label: 'Settings',
icon: Settings,
shortcut: shortcuts.projectSettings,
},
];
// Filter out hidden items
@@ -174,6 +168,14 @@ export function useNavigation({
});
}
// Add Project Settings to Project section
projectItems.push({
id: 'project-settings',
label: 'Settings',
icon: Settings,
shortcut: shortcuts.projectSettings,
});
const sections: NavSection[] = [
{
label: 'Project',
@@ -265,11 +267,11 @@ export function useNavigation({
});
});
// Add settings shortcut
// Add global settings shortcut
shortcutsList.push({
key: shortcuts.settings,
action: () => navigate({ to: '/settings' }),
description: 'Navigate to Settings',
description: 'Navigate to Global Settings',
});
}