diff --git a/ee/tabby-ui/app/(dashboard)/cluster/page.tsx b/ee/tabby-ui/app/(dashboard)/cluster/page.tsx index 1c040e525e6d..29c36a94a5ab 100644 --- a/ee/tabby-ui/app/(dashboard)/cluster/page.tsx +++ b/ee/tabby-ui/app/(dashboard)/cluster/page.tsx @@ -3,7 +3,7 @@ import { Metadata } from 'next' import ClusterInfo from './components/cluster' export const metadata: Metadata = { - title: 'Cluster Information' + title: 'Cluster' } export default function IndexPage() { diff --git a/ee/tabby-ui/app/(dashboard)/components/sidebar.tsx b/ee/tabby-ui/app/(dashboard)/components/sidebar.tsx index e049b58fc8a0..8b47fd60dd4e 100644 --- a/ee/tabby-ui/app/(dashboard)/components/sidebar.tsx +++ b/ee/tabby-ui/app/(dashboard)/components/sidebar.tsx @@ -16,13 +16,11 @@ import { CollapsibleTrigger } from '@/components/ui/collapsible' import { - IconBarChart, + IconBookOpenText, IconChevronRight, IconGear, IconHome, IconLightingBolt, - IconNetwork, - IconScrollText, IconUser } from '@/components/ui/icons' @@ -64,17 +62,17 @@ export default function Sidebar({ children, className }: SidebarProps) { {isAdmin && ( <> - - Cluster Information - - - - Jobs - - - - Reports - + + Information + + } + > + Cluster + Jobs + Reports + @@ -157,14 +155,10 @@ interface SidebarCollapsibleProps { defaultOpen?: boolean } -function SidebarCollapsible({ - title, - children, - defaultOpen = true -}: SidebarCollapsibleProps) { +function SidebarCollapsible({ title, children }: SidebarCollapsibleProps) { return ( diff --git a/ee/tabby-ui/app/(dashboard)/layout.tsx b/ee/tabby-ui/app/(dashboard)/layout.tsx index 93479a35076e..1d8fdedb86b4 100644 --- a/ee/tabby-ui/app/(dashboard)/layout.tsx +++ b/ee/tabby-ui/app/(dashboard)/layout.tsx @@ -1,5 +1,6 @@ import { Metadata } from 'next' +import { ScrollArea } from '@/components/ui/scroll-area' import { Header } from '@/components/header' import Sidebar from './components/sidebar' @@ -19,10 +20,12 @@ export default function RootLayout({ children }: DashboardLayoutProps) { return (
-
+ + {/* Wraps right hand side into ScrollArea, making scroll bar consistent across all browsers */} +
{children}
-
+
) } diff --git a/ee/tabby-ui/app/(dashboard)/reports/components/report.tsx b/ee/tabby-ui/app/(dashboard)/reports/components/report.tsx index 6e341cc93bc3..e53705d6cdec 100644 --- a/ee/tabby-ui/app/(dashboard)/reports/components/report.tsx +++ b/ee/tabby-ui/app/(dashboard)/reports/components/report.tsx @@ -26,6 +26,7 @@ import { } from '@/components/ui/select' import { Skeleton } from '@/components/ui/skeleton' import LoadingWrapper from '@/components/loading-wrapper' +import { SubHeader } from '@/components/sub-header' import { queryDailyStats, queryDailyStatsInPastYear } from '../query' import type { DailyStats } from '../types/stats' @@ -147,15 +148,10 @@ export function Report() { return (
-
-
-

- Reports -

-

- Statistics around Tabby IDE / Extensions -

-
+
+ + Statistics around Tabby IDE / Extensions + ) { ) } +const IconBookOpenText = ({ + className, + ...props +}: React.ComponentProps) => ( + +) + export { IconEdit, IconNextChat, @@ -1378,5 +1385,6 @@ export { IconClock, IconStopWatch, IconBarChart, - IconActivity + IconActivity, + IconBookOpenText }