feat: row detail options for hosts and credentials, open manage from sidebar header

This commit is contained in:
LukeGus committed 2026-10-06 14:41:57 -05:00
1 parent 08db1fcdde
commit a72aa5b57b
18 files changed
+415 -45

No files matched your search

+8 -4
View File
@@ -55,6 +55,7 @@ import { reconnectDisconnectedTabs } from "@/shell/reconnect-tabs";
import { canCloseTab } from "@/shell/tab-close-guards";
import {
MANAGE_REQUEST_EVENT,
type ManageMode,
requestFromLegacyEvent,
requestManage,
} from "@/manage/manage-requests";
@@ -2963,10 +2964,13 @@ export function AppShell({
const dockProps = (view: RailView) => ({
title: sidebarTitle(view),
onOpenAsTab:
!isMobile && promotableIds().includes(view)
? () => openSingletonTab(view as TabType)
: undefined,
onOpenAsTab: isMobile
? undefined
: view === "hosts" || view === "credentials"
? () => requestManage({ kind: "browse", mode: view as ManageMode })
: promotableIds().includes(view)
? () => openSingletonTab(view as TabType)
: undefined,
});
return (