feat: move session sharing and collab rooms into a plugin (B12)

This commit is contained in:
LukeGus committed 2026-09-23 23:42:46 -05:00
1 parent 791d8656a1
commit a276f6898c
207 files changed
+35771 -11072

No files matched your search

+1 -22
View File
@@ -27,10 +27,9 @@ import {
Minimize2,
FolderOpen,
PanelRight,
Share2,
} from "lucide-react";
import { tabIcon } from "@/shell/tabUtils";
import { isSessionTabType, isShareableTabType } from "@/shell/tab-registry";
import { isSessionTabType } from "@/shell/tab-registry";
import { isElectron } from "@/lib/electron";
import type { Tab, TabType, SplitMode } from "@/types/ui-types";
import { SPLIT_MODES, PANE_COUNTS } from "@/lib/theme";
@@ -43,11 +42,6 @@ function isConnectionTab(type: TabType): boolean {
return isSessionTabType(type);
}
/** Connection tabs that also offer "Share session". */
function isShareableConnectionTab(type: TabType): boolean {
return isConnectionTab(type) && isShareableTabType(type);
}
export function TabBar({
tabs,
activeTabId,
@@ -63,7 +57,6 @@ export function TabBar({
onRemoveFromSplit,
onRenameTab,
onOpenFileManager,
onOpenShare,
isAppFullscreen,
onToggleAppFullscreen,
rightDockOpen,
@@ -84,7 +77,6 @@ export function TabBar({
onRemoveFromSplit: (tabId: string) => void;
onRenameTab?: (tabId: string, newLabel: string) => void;
onOpenFileManager?: (tabId: string) => void;
onOpenShare?: (tabId: string) => void;
isAppFullscreen: boolean;
onToggleAppFullscreen: () => void;
rightDockOpen?: boolean;
@@ -472,19 +464,6 @@ export function TabBar({
<RefreshCw className="size-3" />
</button>
)}
{isShareableConnectionTab(tab.type) && onOpenShare && (
<button
onPointerDown={(e) => e.stopPropagation()}
onClick={(e) => {
e.stopPropagation();
onOpenShare(tab.id);
}}
title={t("sessionSharing.shareButton")}
className="flex items-center justify-center size-5 md:size-4 rounded-sm transition-colors text-muted-foreground hover:text-foreground hover:bg-muted"
>
<Share2 className="size-3" />
</button>
)}
<button
onPointerDown={(e) => e.stopPropagation()}
onClick={(e) => {