Skip to content

The open-source app everyone uses to manage agents at work

ui: move settings to footer icon beside theme toggle

Dottaf3a9b6de21e6
diff --git a/ui/src/components/Layout.tsx b/ui/src/components/Layout.tsx
index 9c272b6476..06ae69a69f 100644
--- a/ui/src/components/Layout.tsx
+++ b/ui/src/components/Layout.tsx
@@ -1,7 +1,7 @@
import { useCallback, useEffect, useRef, useState, type UIEvent } from "react";
import { useQuery } from "@tanstack/react-query";
-import { BookOpen, Moon, Sun } from "lucide-react";
-import { Outlet, useLocation, useNavigate, useParams } from "@/lib/router";
+import { BookOpen, Moon, Settings, Sun } from "lucide-react";
+import { Link, Outlet, useLocation, useNavigate, useParams } from "@/lib/router";
import { CompanyRail } from "./CompanyRail";
import { Sidebar } from "./Sidebar";
import { SidebarNavItem } from "./SidebarNavItem";
@@ -221,6 +221,11 @@ export function Layout() {
icon={BookOpen}
className="flex-1 min-w-0"
/>
+ <Button asChild type="button" variant="ghost" size="icon-sm" className="text-muted-foreground shrink-0">
+ <Link to="/company/settings" aria-label="Open company settings" title="Company settings">
+ <Settings className="h-4 w-4" />
+ </Link>
+ </Button>
<Button
type="button"
variant="ghost"
@@ -256,6 +261,11 @@ export function Layout() {
icon={BookOpen}
className="flex-1 min-w-0"
/>
+ <Button asChild type="button" variant="ghost" size="icon-sm" className="text-muted-foreground shrink-0">
+ <Link to="/company/settings" aria-label="Open company settings" title="Company settings">
+ <Settings className="h-4 w-4" />
+ </Link>
+ </Button>
<Button
type="button"
variant="ghost"
diff --git a/ui/src/components/Sidebar.tsx b/ui/src/components/Sidebar.tsx
index ae5e83d433..5ba16dff1d 100644
--- a/ui/src/components/Sidebar.tsx
+++ b/ui/src/components/Sidebar.tsx
@@ -8,7 +8,6 @@ import {
Search,
SquarePen,
Network,
- Settings,
} from "lucide-react";
import { useQuery } from "@tanstack/react-query";
import { SidebarSection } from "./SidebarSection";
@@ -99,7 +98,6 @@ export function Sidebar() {
<SidebarNavItem to="/org" label="Org" icon={Network} />
<SidebarNavItem to="/costs" label="Costs" icon={DollarSign} />
<SidebarNavItem to="/activity" label="Activity" icon={History} />
- <SidebarNavItem to="/company/settings" label="Settings" icon={Settings} />
</SidebarSection>
</nav>
</aside>