Skip to content

Commit c3411b3

Browse files
committed
Add back agent status
1 parent 0438f3a commit c3411b3

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

site/src/components/Resources/AgentRow.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import { AppLink } from "./AppLink/AppLink";
3636
import { PortForwardButton } from "./PortForwardButton";
3737
import { SSHButton } from "./SSHButton/SSHButton";
3838
import { TerminalLink } from "./TerminalLink/TerminalLink";
39+
import { AgentStatus } from "./AgentStatus";
3940

4041
// Logs are stored as the Line interface to make rendering
4142
// much more efficient. Instead of mapping objects each time, we're
@@ -164,7 +165,10 @@ export const AgentRow: FC<AgentRowProps> = ({
164165
>
165166
<header css={styles.header}>
166167
<div css={styles.agentInfo}>
167-
<div css={styles.agentName}>{agent.name}</div>
168+
<div css={styles.agentNameAndStatus}>
169+
<AgentStatus agent={agent} />
170+
<span css={styles.agentName}>{agent.name}</span>
171+
</div>
168172
{agent.status === "connected" && (
169173
<>
170174
<AgentVersion
@@ -615,7 +619,7 @@ const styles = {
615619
agentNameAndStatus: (theme) => ({
616620
display: "flex",
617621
alignItems: "center",
618-
gap: 32,
622+
gap: 12,
619623

620624
[theme.breakpoints.down("md")]: {
621625
width: "100%",

site/src/components/Resources/AgentStatus.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ export const AgentStatus: FC<AgentStatusProps> = ({ agent }) => {
272272

273273
const styles = {
274274
status: {
275-
width: 8,
276-
height: 8,
275+
width: 6,
276+
height: 6,
277277
borderRadius: "100%",
278278
flexShrink: 0,
279279
},
@@ -306,15 +306,15 @@ const styles = {
306306

307307
timeoutWarning: (theme) => ({
308308
color: theme.palette.warning.light,
309-
width: 16,
310-
height: 16,
309+
width: 14,
310+
height: 14,
311311
position: "relative",
312312
}),
313313

314314
errorWarning: (theme) => ({
315315
color: theme.palette.error.main,
316-
width: 16,
317-
height: 16,
316+
width: 14,
317+
height: 14,
318318
position: "relative",
319319
}),
320320
} satisfies Record<string, Interpolation<Theme>>;

0 commit comments

Comments
 (0)