mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-05 09:33:07 +00:00
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:
@@ -151,7 +151,7 @@ export function SidebarFooter({
|
|||||||
sidebarOpen ? 'justify-start' : 'justify-center',
|
sidebarOpen ? 'justify-start' : 'justify-center',
|
||||||
'hover:scale-[1.02] active:scale-[0.97]'
|
'hover:scale-[1.02] active:scale-[0.97]'
|
||||||
)}
|
)}
|
||||||
title={!sidebarOpen ? 'Settings' : undefined}
|
title={!sidebarOpen ? 'Global Settings' : undefined}
|
||||||
data-testid="settings-button"
|
data-testid="settings-button"
|
||||||
>
|
>
|
||||||
<Settings
|
<Settings
|
||||||
@@ -168,7 +168,7 @@ export function SidebarFooter({
|
|||||||
sidebarOpen ? 'block' : 'hidden'
|
sidebarOpen ? 'block' : 'hidden'
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
Settings
|
Global Settings
|
||||||
</span>
|
</span>
|
||||||
{sidebarOpen && (
|
{sidebarOpen && (
|
||||||
<span
|
<span
|
||||||
@@ -194,7 +194,7 @@ export function SidebarFooter({
|
|||||||
'translate-x-1 group-hover:translate-x-0'
|
'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">
|
<span className="ml-2 px-1.5 py-0.5 bg-muted rounded text-[10px] font-mono text-muted-foreground">
|
||||||
{formatShortcut(shortcuts.settings, true)}
|
{formatShortcut(shortcuts.settings, true)}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -123,12 +123,6 @@ export function useNavigation({
|
|||||||
icon: Brain,
|
icon: Brain,
|
||||||
shortcut: shortcuts.memory,
|
shortcut: shortcuts.memory,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 'project-settings',
|
|
||||||
label: 'Settings',
|
|
||||||
icon: Settings,
|
|
||||||
shortcut: shortcuts.projectSettings,
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// Filter out hidden items
|
// 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[] = [
|
const sections: NavSection[] = [
|
||||||
{
|
{
|
||||||
label: 'Project',
|
label: 'Project',
|
||||||
@@ -265,11 +267,11 @@ export function useNavigation({
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// Add settings shortcut
|
// Add global settings shortcut
|
||||||
shortcutsList.push({
|
shortcutsList.push({
|
||||||
key: shortcuts.settings,
|
key: shortcuts.settings,
|
||||||
action: () => navigate({ to: '/settings' }),
|
action: () => navigate({ to: '/settings' }),
|
||||||
description: 'Navigate to Settings',
|
description: 'Navigate to Global Settings',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user