TypeScript
fix(web): show machine icons in the environment picker (#9668)
Theo Browne082cab224624
diff --git a/apps/web/src/components/CommandPalette.tsx b/apps/web/src/components/CommandPalette.tsxindex c6be4649816..06813228b8e 100644--- a/apps/web/src/components/CommandPalette.tsx+++ b/apps/web/src/components/CommandPalette.tsx@@ -30,6 +30,7 @@ import {import {type DesktopWslState,type EnvironmentId,+ type EnvironmentMachineKind,type FilesystemBrowseResult,type ProjectId,type SourceControlDiscoveryResult,@@ -206,6 +207,7 @@ function getEnvironmentBrowsePlatform(os: string | null | undefined): string {interface AddProjectEnvironmentOption {readonly environmentId: EnvironmentId;readonly label: string;+ readonly machine: EnvironmentMachineKind;readonly isPrimary: boolean;readonly isConnected: boolean;readonly status: string;@@ -833,6 +835,7 @@ function OpenCommandPaletteDialog(props: {runtimeLabel: environment.label,}),isPrimary,+ machine: resolveEnvironmentMachineKind(environment.serverConfig),isConnected: canCreateProjectInEnvironment(environment.connection.phase),status: connectionStatusText(environment.connection),};@@ -1478,7 +1481,7 @@ function OpenCommandPaletteDialog(props: {: option.environmentId: option.status,disabled: !option.isConnected,- icon: <FolderPlusIcon className={ITEM_ICON_CLASS} />,+ icon: <EnvironmentMachineIcon kind={option.machine} className={ITEM_ICON_CLASS} />,keepOpen: true,run: async () => {startAddProjectSourceSelection(option.environmentId);