From d7a3218ea074bc2dd58c3ece8d20ef4b19c9aa5c Mon Sep 17 00:00:00 2001 From: Nicholai Date: Mon, 16 Feb 2026 01:27:57 -0700 Subject: [PATCH] fix(ui): make compass logo link to dashboard home (#96) The logo in the org switcher is now a separate clickable link to /dashboard (fullscreen chat). The org name + chevron still opens the workspace dropdown independently. Co-authored-by: Nicholai --- src/components/org-switcher.tsx | 140 ++++++++++++++++++-------------- 1 file changed, 77 insertions(+), 63 deletions(-) diff --git a/src/components/org-switcher.tsx b/src/components/org-switcher.tsx index bcb766a..ce2cc90 100644 --- a/src/components/org-switcher.tsx +++ b/src/components/org-switcher.tsx @@ -1,6 +1,7 @@ "use client" import * as React from "react" +import Link from "next/link" import { useRouter } from "next/navigation" import { IconBuilding, @@ -76,71 +77,84 @@ export function OrgSwitcher({ return ( - - - - - - {displayName} - - {hasOrgs && ( - - )} - - - + - {orgs.map((org, i) => { - const isActive = org.id === activeOrgId - const OrgIcon = - org.type === "personal" ? IconUser : IconBuilding + + + + + + + + {orgs.map((org, i) => { + const isActive = org.id === activeOrgId + const OrgIcon = + org.type === "personal" ? IconUser : IconBuilding - return ( - - {i > 0 && } - void handleOrgSwitch(org.id)} - disabled={isLoading} - className="gap-2 px-2 py-1.5" - > - - - {org.name} - - {isActive && ( - - )} - - - ) - })} - - + return ( + + {i > 0 && } + void handleOrgSwitch(org.id)} + disabled={isLoading} + className="gap-2 px-2 py-1.5" + > + + + {org.name} + + {isActive && ( + + )} + + + ) + })} + + + )