mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 20:43:36 +00:00
Changes from terminals-mpve
This commit is contained in:
@@ -1032,12 +1032,6 @@ export function Sidebar() {
|
|||||||
icon: UserCircle,
|
icon: UserCircle,
|
||||||
shortcut: shortcuts.profiles,
|
shortcut: shortcuts.profiles,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: "terminal",
|
|
||||||
label: "Terminal",
|
|
||||||
icon: Terminal,
|
|
||||||
shortcut: shortcuts.terminal,
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// Filter out hidden items
|
// Filter out hidden items
|
||||||
@@ -1051,29 +1045,39 @@ export function Sidebar() {
|
|||||||
if (item.id === "profiles" && hideAiProfiles) {
|
if (item.id === "profiles" && hideAiProfiles) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (item.id === "terminal" && hideTerminal) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Build project items - Terminal is conditionally included
|
||||||
|
const projectItems: NavItem[] = [
|
||||||
|
{
|
||||||
|
id: "board",
|
||||||
|
label: "Kanban Board",
|
||||||
|
icon: LayoutGrid,
|
||||||
|
shortcut: shortcuts.board,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "agent",
|
||||||
|
label: "Agent Runner",
|
||||||
|
icon: Bot,
|
||||||
|
shortcut: shortcuts.agent,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
// Add Terminal to Project section if not hidden
|
||||||
|
if (!hideTerminal) {
|
||||||
|
projectItems.push({
|
||||||
|
id: "terminal",
|
||||||
|
label: "Terminal",
|
||||||
|
icon: Terminal,
|
||||||
|
shortcut: shortcuts.terminal,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
label: "Project",
|
label: "Project",
|
||||||
items: [
|
items: projectItems,
|
||||||
{
|
|
||||||
id: "board",
|
|
||||||
label: "Kanban Board",
|
|
||||||
icon: LayoutGrid,
|
|
||||||
shortcut: shortcuts.board,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "agent",
|
|
||||||
label: "Agent Runner",
|
|
||||||
icon: Bot,
|
|
||||||
shortcut: shortcuts.agent,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Tools",
|
label: "Tools",
|
||||||
|
|||||||
Reference in New Issue
Block a user