feat(servers): switch the sidebar listing between local and linked servers

The Servers section becomes a Local/server switcher shared by the desktop sidebar, collapsed rail and mobile repo sheet. Selecting a linked server lists its projects and sessions with the same navigation as local repos, and a remote project page mirrors the local repo page.
This commit is contained in:
Chris Scott committed 2026-10-19 10:16:32 -04:00
1 parent cb9b7645e6
commit 36b8c1b200
29 files changed
+2080 -201

No files matched your search

@@ -0,0 +1,36 @@
import type { LucideIcon } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { Card } from '@/components/ui/card'
interface LinkedServerStateCardProps {
icon: LucideIcon
title: string
description: string
actionLabel: string
onAction: () => void
}
/**
* Centered notice for a linked-server page that cannot render its content, such as a missing or
* disabled server or a route without its project directory.
*/
export function LinkedServerStateCard({
icon: Icon,
title,
description,
actionLabel,
onAction,
}: LinkedServerStateCardProps) {
return (
<Card className="flex flex-col items-center gap-3 p-6 text-center">
<Icon className="h-8 w-8 text-muted-foreground" />
<div>
<p className="font-medium">{title}</p>
<p className="text-sm text-muted-foreground">{description}</p>
</div>
<Button variant="outline" size="sm" onClick={onAction}>
{actionLabel}
</Button>
</Card>
)
}