@@ -61,7 +61,7 @@ import {
6161 settlePromise ,
6262 squashAtomCommandFailure ,
6363} from "@t3tools/client-runtime/state/runtime" ;
64- import { Link , useLocation , useNavigate , useParams , useRouter } from "@tanstack/react-router" ;
64+ import { useLocation , useNavigate , useParams , useRouter } from "@tanstack/react-router" ;
6565import {
6666 MAX_SIDEBAR_THREAD_PREVIEW_COUNT ,
6767 MIN_SIDEBAR_THREAD_PREVIEW_COUNT ,
@@ -70,7 +70,6 @@ import {
7070 type SidebarThreadSortOrder ,
7171} from "@t3tools/contracts/settings" ;
7272import { isElectron } from "../env" ;
73- import { APP_STAGE_LABEL , APP_VERSION } from "../branding" ;
7473import { useOpenPrLink } from "../lib/openPullRequestLink" ;
7574import { isTerminalFocused } from "../lib/terminalFocus" ;
7675import { isMacPlatform } from "../lib/utils" ;
@@ -192,7 +191,6 @@ import {
192191 orderItemsByPreferredIds ,
193192 shouldClearThreadSelectionOnMouseDown ,
194193 sortProjectsForSidebar ,
195- resolveSidebarStageBadgeLabel ,
196194 useThreadJumpHintVisibility ,
197195 ThreadStatusPill ,
198196} from "./Sidebar.logic" ;
@@ -202,7 +200,7 @@ import { useCopyToClipboard } from "~/hooks/useCopyToClipboard";
202200import { useIsMobile } from "~/hooks/useMediaQuery" ;
203201import { CommandDialogTrigger } from "./ui/command" ;
204202import { useClientSettings , useUpdateClientSettings } from "~/hooks/useSettings" ;
205- import { primaryServerConfigAtom , primaryServerKeybindingsAtom } from "../state/server" ;
203+ import { primaryServerKeybindingsAtom } from "../state/server" ;
206204import {
207205 derivePhysicalProjectKey ,
208206 deriveProjectGroupingOverrideKey ,
@@ -2452,22 +2450,6 @@ const SidebarProjectListRow = memo(function SidebarProjectListRow(props: Sidebar
24522450 ) ;
24532451} ) ;
24542452
2455- function T3Wordmark ( ) {
2456- return (
2457- < svg
2458- aria-label = "T3"
2459- className = "h-2.5 w-auto shrink-0 text-foreground"
2460- viewBox = "15.5309 37 94.3941 56.96"
2461- xmlns = "http://www.w3.org/2000/svg"
2462- >
2463- < path
2464- d = "M33.4509 93V47.56H15.5309V37H64.3309V47.56H46.4109V93H33.4509ZM86.7253 93.96C82.832 93.96 78.9653 93.4533 75.1253 92.44C71.2853 91.3733 68.032 89.88 65.3653 87.96L70.4053 78.04C72.5386 79.5867 75.0186 80.8133 77.8453 81.72C80.672 82.6267 83.5253 83.08 86.4053 83.08C89.6586 83.08 92.2186 82.44 94.0853 81.16C95.952 79.88 96.8853 78.12 96.8853 75.88C96.8853 73.7467 96.0586 72.0667 94.4053 70.84C92.752 69.6133 90.0853 69 86.4053 69H80.4853V60.44L96.0853 42.76L97.5253 47.4H68.1653V37H107.365V45.4L91.8453 63.08L85.2853 59.32H89.0453C95.9253 59.32 101.125 60.8667 104.645 63.96C108.165 67.0533 109.925 71.0267 109.925 75.88C109.925 79.0267 109.099 81.9867 107.445 84.76C105.792 87.48 103.259 89.6933 99.8453 91.4C96.432 93.1067 92.0586 93.96 86.7253 93.96Z"
2465- fill = "currentColor"
2466- />
2467- </ svg >
2468- ) ;
2469- }
2470-
24712453type SortableProjectHandleProps = Pick <
24722454 ReturnType < typeof useSortable > ,
24732455 "attributes" | "listeners" | "setActivatorNodeRef"
@@ -2664,46 +2646,14 @@ const SidebarChromeHeader = memo(function SidebarChromeHeader({
26642646} : {
26652647 isElectron : boolean ;
26662648} ) {
2667- const primaryServerVersion =
2668- useAtomValue ( primaryServerConfigAtom ) ?. environment . serverVersion ?? null ;
2669- const stageBadgeLabel = resolveSidebarStageBadgeLabel ( {
2670- primaryServerVersion,
2671- fallbackStageLabel : APP_STAGE_LABEL ,
2672- } ) ;
2673- const wordmark = (
2674- < div className = "flex items-center gap-2" >
2675- < SidebarTrigger className = "shrink-0 md:hidden" />
2676- < Tooltip >
2677- < TooltipTrigger
2678- render = {
2679- < Link
2680- aria-label = "Go to threads"
2681- className = "ml-1 flex min-w-0 flex-1 cursor-pointer items-center gap-1 rounded-md outline-hidden ring-ring transition-colors hover:text-foreground focus-visible:ring-2"
2682- to = "/"
2683- >
2684- < T3Wordmark />
2685- < span className = "truncate text-sm font-medium tracking-tight text-muted-foreground" >
2686- Code
2687- </ span >
2688- < span className = "rounded-full bg-muted/50 px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.18em] text-muted-foreground/60" >
2689- { stageBadgeLabel }
2690- </ span >
2691- </ Link >
2692- }
2693- />
2694- < TooltipPopup side = "bottom" sideOffset = { 2 } >
2695- Version { APP_VERSION }
2696- </ TooltipPopup >
2697- </ Tooltip >
2698- </ div >
2699- ) ;
2700-
27012649 return isElectron ? (
2702- < SidebarHeader className = "drag-region h-[52px] flex-row items-center gap-2 px-4 py-0 pl-[90px] wco:h-[env(titlebar-area-height)] wco:pl-[calc(env(titlebar-area-x)+1em)] " >
2703- { wordmark }
2650+ < SidebarHeader className = "drag-region h-[var(--workspace-topbar-height)] shrink-0 flex-row items-center px-3 py-0" >
2651+ < SidebarTrigger className = "md:hidden" />
27042652 </ SidebarHeader >
27052653 ) : (
2706- < SidebarHeader className = "gap-3 px-3 py-2 sm:gap-2.5 sm:px-4 sm:py-3" > { wordmark } </ SidebarHeader >
2654+ < SidebarHeader className = "h-[var(--workspace-topbar-height)] shrink-0 flex-row items-center px-3 py-0" >
2655+ < SidebarTrigger className = "md:hidden" />
2656+ </ SidebarHeader >
27072657 ) ;
27082658} ) ;
27092659
0 commit comments