Changes from terminals-mpve

This commit is contained in:
Cody Seibert
2025-12-18 23:48:47 -05:00
parent 46c3dd252f
commit 37ce09e07c

View File

@@ -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,16 +1045,11 @@ 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;
}); });
return [ // Build project items - Terminal is conditionally included
{ const projectItems: NavItem[] = [
label: "Project",
items: [
{ {
id: "board", id: "board",
label: "Kanban Board", label: "Kanban Board",
@@ -1073,7 +1062,22 @@ export function Sidebar() {
icon: Bot, icon: Bot,
shortcut: shortcuts.agent, 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 [
{
label: "Project",
items: projectItems,
}, },
{ {
label: "Tools", label: "Tools",