From 106af334a36ce7f8ecd9bec453618aa372cc207c Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 18 Jun 2026 18:02:09 +0000 Subject: [PATCH] Remove standalone Network page, add as future tab on Infrastructure Drop the /network route, page, and sidebar entry. Network will instead become a tab alongside Overview on the Infrastructure page later, so add a disabled placeholder tab for now. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01BbJV5nm8KPVH1oNJYKpnoF --- src/App.tsx | 2 - src/components/Sidebar.tsx | 2 - src/components/TopBar.tsx | 1 - src/pages/Infrastructure.tsx | 18 ++ src/pages/Network.tsx | 383 ----------------------------------- 5 files changed, 18 insertions(+), 388 deletions(-) delete mode 100644 src/pages/Network.tsx diff --git a/src/App.tsx b/src/App.tsx index 8a3f948..53b5c8c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -4,7 +4,6 @@ import Sidebar from './components/Sidebar' import TopBar from './components/TopBar' import Glance from './pages/Glance' import Infrastructure from './pages/Infrastructure' -import Network from './pages/Network' function App() { const [sidebarCollapsed, setSidebarCollapsed] = useState(false) @@ -56,7 +55,6 @@ function App() { } /> } /> - } /> diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index de748cb..2e72817 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -2,7 +2,6 @@ import { useLocation, Link } from 'react-router-dom' import { LayoutGrid, Server, - Globe, Bookmark, Terminal, Settings, @@ -18,7 +17,6 @@ interface SidebarProps { const navItems = [ { icon: LayoutGrid, label: 'Glance', route: '/' }, { icon: Server, label: 'Infrastructure', route: '/infrastructure' }, - { icon: Globe, label: 'Network', route: '/network' }, { icon: Bookmark, label: 'BookNest', route: '/booknest' }, { icon: Terminal, label: 'Terminal', route: '/terminal' }, { icon: Settings, label: 'Settings', route: '/settings' }, diff --git a/src/components/TopBar.tsx b/src/components/TopBar.tsx index 1594fec..118f4cb 100644 --- a/src/components/TopBar.tsx +++ b/src/components/TopBar.tsx @@ -5,7 +5,6 @@ import { Search, Bell, ChevronDown, User, Palette, LogOut, Shield, HelpCircle } const pageTitles: Record = { '/': 'Glance', '/infrastructure': 'Infrastructure', - '/network': 'Network', '/booknest': 'BookNest', '/terminal': 'Terminal', '/settings': 'Settings', diff --git a/src/pages/Infrastructure.tsx b/src/pages/Infrastructure.tsx index 48b6a4a..db38b46 100644 --- a/src/pages/Infrastructure.tsx +++ b/src/pages/Infrastructure.tsx @@ -3,6 +3,7 @@ import { PieChart, Pie, Cell, ResponsiveContainer, LineChart, Line, XAxis } from import { Plus, Server, Activity, AlertTriangle, DollarSign } from 'lucide-react' const subTabs = ['Overview'] +const futureSubTabs = ['Network'] const statusCards = [ { label: 'Total Resources', value: '128', icon: Server, sub: '+4 this week' }, @@ -174,6 +175,23 @@ export default function Infrastructure() { ) })} + {futureSubTabs.map((tab) => ( + + ))} - ) - })} - -
- - -
- - - {/* Status Cards */} -
- {statusCards.map((card) => { - const Icon = card.icon - return ( -
-

- {card.label} -

-
- - {card.value} -
-

{card.sub}

-
- ) - })} -
- - {/* Middle Row */} -
-
- {/* Top Talkers */} -
-
-

Top Talkers

-
- {topTalkers.map((t) => ( -
- {t.name} - {t.rate} -
- ))} -
-
-
- - {/* Network Topology */} -
-
-
-
-
-

Network Topology

-
- Live - Warning - Critical -
-
-
- - {regions.map((r) => ( -
-
-
- ))} -
-
-
- - {/* Interface Utilization + Alert Summary, stacked */} -
-
-

Interface Utilization

-
- {interfaces.map((iface) => ( -
-
- {iface.name} - {iface.percentage}% -
-
-
-
-
- ))} -
-
-
-

Alert Summary

-
- {alertSummary.map((a) => ( -
- {a.value} - {a.label} -
- ))} -
-
-
-
-
- - {/* Bottom Row */} -
-
- {/* Traffic Over Time */} -
-

Traffic Over Time

-
- - - - - - - - -
-
- - {/* Protocol Distribution */} -
-

Protocol Distribution

- -
- - {/* Recent Events */} -
-

Recent Events

-
- {recentEvents.map((item, i) => ( -
-
-

{item.title}

-

{item.source}

-
- {item.time} -
- ))} -
-
-
-
- - {/* Footer stats bar */} -
- 6 Regions| - 42 Sites| - 248 Devices| - 1,245 Interfaces| - 28,457 Connections| - 98.7% Health -
- - ) -}