fix(shell): group shared config first in the global sidebar menu

Order is now MCP, Skills, Prompts, Sessions, Authorization, Usage:
the three configs synced to clients stay together, and Usage with its
daily cost sits right above the bottom bar.
This commit is contained in:
Jason committed 2026-10-03 23:29:00 +08:00
1 parent cc9d9de57f
commit 88e40de89a
1 file changed
+10 -10
+10 -10
View File
@@ -221,22 +221,22 @@ function MainDirectory({
trailing?: string;
alert?: string;
}[] = [
{
page: "usage",
label: t("nav.usage"),
icon: ChartColumn,
trailing: todayLabel,
},
{ page: "mcp", label: "MCP", icon: Server },
{ page: "skills", label: "Skills", icon: SkillsIcon },
{ page: "prompts", label: t("nav.prompts"), icon: BookOpen },
{ page: "sessions", label: t("nav.sessions"), icon: History },
{
page: "auth",
label: t("nav.auth"),
icon: KeyRound,
alert: authNeedsAttention ? t("nav.authNeedsReauth") : undefined,
},
{ page: "mcp", label: "MCP", icon: Server },
{ page: "skills", label: "Skills", icon: SkillsIcon },
{ page: "prompts", label: t("nav.prompts"), icon: BookOpen },
{ page: "sessions", label: t("nav.sessions"), icon: History },
{
page: "usage",
label: t("nav.usage"),
icon: ChartColumn,
trailing: todayLabel,
},
];
const isGlobalSelected = (page: GlobalPage) =>