Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
Tighten settings nav and add Escape back navigation (#1503)
Julius Marmingec426452239e0
diff --git a/apps/web/src/components/settings/SettingsSidebarNav.tsx b/apps/web/src/components/settings/SettingsSidebarNav.tsxindex ffca1e209..20914b499 100644--- a/apps/web/src/components/settings/SettingsSidebarNav.tsx+++ b/apps/web/src/components/settings/SettingsSidebarNav.tsx@@ -41,8 +41,8 @@ export function SettingsSidebarNav({ pathname }: { pathname: string }) {isActive={isActive}className={isActive- ? "gap-2 px-2 py-2 text-left text-sm text-foreground"- : "gap-2 px-2 py-2 text-left text-sm text-muted-foreground hover:text-foreground/80"+ ? "gap-2 px-2 py-2 text-left text-xs text-foreground"+ : "gap-2 px-2 py-2 text-left text-xs text-muted-foreground hover:text-foreground/80"}onClick={() => void navigate({ to: item.to, replace: true })}>@@ -68,7 +68,7 @@ export function SettingsSidebarNav({ pathname }: { pathname: string }) {<SidebarMenuItem><SidebarMenuButtonsize="sm"- className="gap-2 px-2 py-2 text-sm text-muted-foreground hover:bg-accent hover:text-foreground"+ className="gap-2 px-2 py-2 text-xs text-muted-foreground hover:bg-accent hover:text-foreground"onClick={() => window.history.back()}><ArrowLeftIcon className="size-4" />diff --git a/apps/web/src/routes/settings.tsx b/apps/web/src/routes/settings.tsxindex edee42673..45096fd6d 100644--- a/apps/web/src/routes/settings.tsx+++ b/apps/web/src/routes/settings.tsx@@ -1,6 +1,6 @@import { RotateCcwIcon } from "lucide-react";import { Outlet, createFileRoute, redirect } from "@tanstack/react-router";-import { useState } from "react";+import { useEffect, useState } from "react";import { useSettingsRestore } from "../components/settings/SettingsPanels";import { Button } from "../components/ui/button";@@ -13,6 +13,21 @@ function SettingsContentLayout() {setRestoreSignal((value) => value + 1),);+ useEffect(() => {+ const onKeyDown = (event: KeyboardEvent) => {+ if (event.defaultPrevented) return;+ if (event.key === "Escape") {+ event.preventDefault();+ window.history.back();+ }+ };++ window.addEventListener("keydown", onKeyDown);+ return () => {+ window.removeEventListener("keydown", onKeyDown);+ };+ }, []);+return (<SidebarInset className="h-dvh min-h-0 overflow-hidden overscroll-y-none bg-background text-foreground isolate"><div className="flex min-h-0 min-w-0 flex-1 flex-col bg-background text-foreground">