diff --git a/site/src/components/Resources/AgentRowPreview.stories.tsx b/site/src/components/Resources/AgentRowPreview.stories.tsx index 86a92319e737e..76ec878eea1c4 100644 --- a/site/src/components/Resources/AgentRowPreview.stories.tsx +++ b/site/src/components/Resources/AgentRowPreview.stories.tsx @@ -33,3 +33,12 @@ BunchOfApps.args = { ], }, } + +export const NoApps = Template.bind({}) +NoApps.args = { + ...Example.args, + agent: { + ...MockWorkspaceAgent, + apps: [], + }, +} diff --git a/site/src/components/Resources/AgentRowPreview.tsx b/site/src/components/Resources/AgentRowPreview.tsx index 15c763b93d68a..df83817db9b73 100644 --- a/site/src/components/Resources/AgentRowPreview.tsx +++ b/site/src/components/Resources/AgentRowPreview.tsx @@ -1,5 +1,6 @@ import { makeStyles } from "@material-ui/core/styles" import { AppPreviewLink } from "components/AppLink/AppPreviewLink" +import { Maybe } from "components/Conditionals/Maybe" import { FC } from "react" import { useTranslation } from "react-i18next" import { combineClasses } from "util/combineClasses" @@ -91,6 +92,11 @@ export const AgentRowPreview: FC = ({ {agent.apps.map((app) => ( ))} + + + {t("labels.noApps")} + + diff --git a/site/src/i18n/en/agent.json b/site/src/i18n/en/agent.json index cd4203bb5f368..208954aa0e1ec 100644 --- a/site/src/i18n/en/agent.json +++ b/site/src/i18n/en/agent.json @@ -7,6 +7,7 @@ "labels": { "agent": "Agent", "os": "OS", - "apps": "Apps" + "apps": "Apps", + "noApps": "None" } }