Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

feat(web): add developer tab to account settings

Andrej Acevski2190eabb51a0
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/account.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/account.tsx
index fa1844bda..687f3363c 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/account.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/account.tsx
@@ -4,7 +4,7 @@ import {
Outlet,
useLocation,
} from "@tanstack/react-router";
-import { Settings, User } from "lucide-react";
+import { Code, Settings, User } from "lucide-react";
import useAuth from "@/components/providers/auth-provider/hooks/use-auth";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { cn } from "@/lib/cn";
@@ -73,6 +73,27 @@ function RouteComponent() {
))}
</nav>
</div>
+
+ <div>
+ <h3 className="text-xs font-medium text-muted-foreground uppercase tracking-wider mb-2">
+ Developer
+ </h3>
+ <nav className="space-y-0.5">
+ <Link
+ to="/dashboard/settings/account/developer"
+ className={cn(
+ "flex items-center gap-2 px-2 py-1.5 text-xs rounded-sm transition-colors",
+ "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
+ location.pathname === "/dashboard/settings/account/developer"
+ ? "bg-sidebar-accent text-sidebar-accent-foreground font-medium"
+ : "text-muted-foreground",
+ )}
+ >
+ <Code className="h-3.5 w-3.5" />
+ <span>API Keys</span>
+ </Link>
+ </nav>
+ </div>
</div>
</div>
</div>