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 {
3030import {
3131 type DesktopWslState,
3232 type EnvironmentId,
33 type EnvironmentMachineKind,
3334 type FilesystemBrowseResult,
3435 type ProjectId,
3536 type SourceControlDiscoveryResult,
......@@ -206,6 +207,7 @@ function getEnvironmentBrowsePlatform(os: string | null | undefined): string {
206207interface AddProjectEnvironmentOption {
207208 readonly environmentId: EnvironmentId;
208209 readonly label: string;
210 readonly machine: EnvironmentMachineKind;
209211 readonly isPrimary: boolean;
210212 readonly isConnected: boolean;
211213 readonly status: string;
......@@ -833,6 +835,7 @@ function OpenCommandPaletteDialog(props: {
833835 runtimeLabel: environment.label,
834836 }),
835837 isPrimary,
838 machine: resolveEnvironmentMachineKind(environment.serverConfig),
836839 isConnected: canCreateProjectInEnvironment(environment.connection.phase),
837840 status: connectionStatusText(environment.connection),
838841 };
......@@ -1478,7 +1481,7 @@ function OpenCommandPaletteDialog(props: {
14781481 : option.environmentId
14791482 : option.status,
14801483 disabled: !option.isConnected,
1481 icon: <FolderPlusIcon className={ITEM_ICON_CLASS} />,
1484 icon: <EnvironmentMachineIcon kind={option.machine} className={ITEM_ICON_CLASS} />,
14821485 keepOpen: true,
14831486 run: async () => {
14841487 startAddProjectSourceSelection(option.environmentId);