authorgravatar for me@t3.ggTheo Browne <me@t3.gg> 2026-09-04 06:32:44-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-04 06:32:44-07:00
log082cab224624eb3a6cd494df3719c59014fb0c99
tree612fc101f7c1996e2190ad1b9027a80d4f527170
parentcccd7e3c885065e925f559c5708378cdb3b51eb3
signature Signed by PGP key B5690EEEBB952194

fix(web): show machine icons in the environment picker (#9668)


1 files changed, 4 insertions(+), 1 deletions(-)

apps/web/src/components/CommandPalette.tsx+4-1
...@@ -30,6 +30,7 @@ import {...@@ -30,6 +30,7 @@ import {
30import {30import {
31 type DesktopWslState,31 type DesktopWslState,
32 type EnvironmentId,32 type EnvironmentId,
33 type EnvironmentMachineKind,
33 type FilesystemBrowseResult,34 type FilesystemBrowseResult,
34 type ProjectId,35 type ProjectId,
35 type SourceControlDiscoveryResult,36 type SourceControlDiscoveryResult,
...@@ -206,6 +207,7 @@ function getEnvironmentBrowsePlatform(os: string | null | undefined): string {...@@ -206,6 +207,7 @@ function getEnvironmentBrowsePlatform(os: string | null | undefined): string {
206interface AddProjectEnvironmentOption {207interface AddProjectEnvironmentOption {
207 readonly environmentId: EnvironmentId;208 readonly environmentId: EnvironmentId;
208 readonly label: string;209 readonly label: string;
210 readonly machine: EnvironmentMachineKind;
209 readonly isPrimary: boolean;211 readonly isPrimary: boolean;
210 readonly isConnected: boolean;212 readonly isConnected: boolean;
211 readonly status: string;213 readonly status: string;
...@@ -833,6 +835,7 @@ function OpenCommandPaletteDialog(props: {...@@ -833,6 +835,7 @@ function OpenCommandPaletteDialog(props: {
833 runtimeLabel: environment.label,835 runtimeLabel: environment.label,
834 }),836 }),
835 isPrimary,837 isPrimary,
838 machine: resolveEnvironmentMachineKind(environment.serverConfig),
836 isConnected: canCreateProjectInEnvironment(environment.connection.phase),839 isConnected: canCreateProjectInEnvironment(environment.connection.phase),
837 status: connectionStatusText(environment.connection),840 status: connectionStatusText(environment.connection),
838 };841 };
...@@ -1478,7 +1481,7 @@ function OpenCommandPaletteDialog(props: {...@@ -1478,7 +1481,7 @@ function OpenCommandPaletteDialog(props: {
1478 : option.environmentId1481 : option.environmentId
1479 : option.status,1482 : option.status,
1480 disabled: !option.isConnected,1483 disabled: !option.isConnected,
1481 icon: <FolderPlusIcon className={ITEM_ICON_CLASS} />,1484 icon: <EnvironmentMachineIcon kind={option.machine} className={ITEM_ICON_CLASS} />,
1482 keepOpen: true,1485 keepOpen: true,
1483 run: async () => {1486 run: async () => {
1484 startAddProjectSourceSelection(option.environmentId);1487 startAddProjectSourceSelection(option.environmentId);