Skip to content

Commit e4b2aa1

Browse files
committed
Remove non apps from preview
1 parent 0490e89 commit e4b2aa1

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

site/src/components/Resources/AgentRowPreview.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { AppPreview } from "./AppLink/AppPreview";
66
import { BaseIcon } from "./AppLink/BaseIcon";
77
import { VSCodeIcon } from "components/Icons/VSCodeIcon";
88
import { DisplayAppNameMap } from "./AppLink/AppLink";
9+
import { TerminalIcon } from "components/Icons/TerminalIcon";
910

1011
interface AgentRowPreviewStyles {
1112
// Helpful when there are more than one row so the values are aligned
@@ -101,14 +102,9 @@ export const AgentRowPreview: FC<AgentRowPreviewProps> = ({
101102
{/* Additionally, we display any apps that are visible, e.g.
102103
apps that are included in agent.display_apps */}
103104
{agent.display_apps.includes("web_terminal") && (
104-
<AppPreview>{DisplayAppNameMap["web_terminal"]}</AppPreview>
105-
)}
106-
{agent.display_apps.includes("ssh_helper") && (
107-
<AppPreview>{DisplayAppNameMap["ssh_helper"]}</AppPreview>
108-
)}
109-
{agent.display_apps.includes("port_forwarding_helper") && (
110105
<AppPreview>
111-
{DisplayAppNameMap["port_forwarding_helper"]}
106+
<TerminalIcon sx={{ width: 12, height: 12 }} />
107+
{DisplayAppNameMap["web_terminal"]}
112108
</AppPreview>
113109
)}
114110
{/* VSCode display apps (vscode, vscode_insiders) get special presentation */}

0 commit comments

Comments
 (0)