From 45c518b3ba439e341b7f5b5b2f2de42ddcc3203b Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Sat, 28 Mar 2026 19:24:41 +0100 Subject: [PATCH] feat: add home sidebar nav (sites list, workspace, resources) Three nav groups in home mode: - Your Sites: each site with favicon, Add New Site - Workspace: Integrations, Pricing, Workspace Settings - Resources: Documentation (external link) Same styling as site dashboard sidebar nav items. --- components/dashboard/Sidebar.tsx | 141 +++++++++++++++++++++++++++++-- 1 file changed, 136 insertions(+), 5 deletions(-) diff --git a/components/dashboard/Sidebar.tsx b/components/dashboard/Sidebar.tsx index cdd057d..70662ba 100644 --- a/components/dashboard/Sidebar.tsx +++ b/components/dashboard/Sidebar.tsx @@ -14,7 +14,7 @@ import { getUserOrganizations, switchContext, type OrganizationMember } from '@/ import { setSessionAction } from '@/app/actions/auth' import { logger } from '@/lib/utils/logger' import { FAVICON_SERVICE_URL } from '@/lib/utils/favicon' -import { Gauge as GaugeIcon } from '@phosphor-icons/react' +import { Gauge as GaugeIcon, Plugs as PlugsIcon, Tag as TagIcon } from '@phosphor-icons/react' import { LayoutDashboardIcon, PathIcon, @@ -27,6 +27,7 @@ import { ChevronUpDownIcon, PlusIcon, XIcon, + BookOpenIcon, AppLauncher, UserMenu, type CipheraApp, @@ -330,9 +331,9 @@ function NavLink({ // ─── Settings Button (opens unified modal instead of navigating) ───── function SettingsButton({ - item, collapsed, onClick, + item, collapsed, onClick, settingsContext = 'site', }: { - item: NavItem; collapsed: boolean; onClick?: () => void + item: NavItem; collapsed: boolean; onClick?: () => void; settingsContext?: 'site' | 'workspace' }) { const { openUnifiedSettings } = useUnifiedSettings() @@ -340,7 +341,7 @@ function SettingsButton({