diff --git a/src/App.tsx b/src/App.tsx index 2a042b8..ff1e5ee 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,23 +1,23 @@ -import { Routes, Route } from 'react-router-dom' +import { Routes, Route, Navigate } from 'react-router-dom' import { Dashboard } from './pages/Dashboard/Dashboard' import { Metrics } from './pages/Metrics/Metrics' import { RouteDetail } from './pages/RouteDetail/RouteDetail' import { ExchangeDetail } from './pages/ExchangeDetail/ExchangeDetail' import { AgentHealth } from './pages/AgentHealth/AgentHealth' import { Inventory } from './pages/Inventory/Inventory' -import { AppDetail } from './pages/AppDetail/AppDetail' import { Admin } from './pages/Admin/Admin' import { ApiDocs } from './pages/ApiDocs/ApiDocs' export default function App() { return ( - } /> + } /> + } /> + } /> } /> } /> } /> } /> - } /> } /> } /> } /> diff --git a/src/design-system/layout/Sidebar/Sidebar.module.css b/src/design-system/layout/Sidebar/Sidebar.module.css index b930d0c..c9a4185 100644 --- a/src/design-system/layout/Sidebar/Sidebar.module.css +++ b/src/design-system/layout/Sidebar/Sidebar.module.css @@ -217,44 +217,6 @@ gap: 6px; width: 100%; padding: 8px 12px 4px; - font-size: 10px; - font-weight: 600; - text-transform: uppercase; - letter-spacing: 1px; - color: var(--sidebar-muted); - background: none; - border: none; - cursor: pointer; - text-align: left; - transition: color 0.12s; -} - -.treeSectionToggle:hover { - color: var(--sidebar-text); -} - -.treeSectionChevron { - font-size: 9px; - width: 10px; - display: inline-flex; - align-items: center; - justify-content: center; -} - -/* Section header as link (for Agents nav) */ -.treeSectionLink { - font-size: 10px; - font-weight: 600; - text-transform: uppercase; - letter-spacing: 1px; - color: var(--sidebar-muted); - text-decoration: none; - flex: 1; - transition: color 0.12s; -} - -.treeSectionLink:hover { - color: var(--amber-light); } .treeSectionChevronBtn { @@ -275,6 +237,24 @@ color: var(--sidebar-text); } +.treeSectionLabel { + font-size: 10px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 1px; + color: var(--sidebar-muted); + cursor: pointer; + transition: color 0.12s; +} + +.treeSectionLabel:hover { + color: var(--amber-light); +} + +.treeSectionLabelActive { + color: var(--amber-light); +} + .tree { list-style: none; margin: 0; diff --git a/src/design-system/layout/Sidebar/Sidebar.test.tsx b/src/design-system/layout/Sidebar/Sidebar.test.tsx index 091f201..740c373 100644 --- a/src/design-system/layout/Sidebar/Sidebar.test.tsx +++ b/src/design-system/layout/Sidebar/Sidebar.test.tsx @@ -74,9 +74,9 @@ describe('Sidebar', () => { expect(screen.getByText('Agents')).toBeInTheDocument() }) - it('renders Dashboards nav link', () => { + it('renders Metrics nav link', () => { renderSidebar() - expect(screen.getByText('Dashboards')).toBeInTheDocument() + expect(screen.getByText('Metrics')).toBeInTheDocument() }) it('renders bottom links', () => { diff --git a/src/design-system/layout/Sidebar/Sidebar.tsx b/src/design-system/layout/Sidebar/Sidebar.tsx index 35b90c2..0faac7e 100644 --- a/src/design-system/layout/Sidebar/Sidebar.tsx +++ b/src/design-system/layout/Sidebar/Sidebar.tsx @@ -234,7 +234,7 @@ export function Sidebar({ apps, className }: SidebarProps) { return (