Skip to content

Commit 5436b15

Browse files
committed
Display tabs for agent logs
1 parent 0d1fb45 commit 5436b15

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

site/src/components/Tabs/Tabs.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ const styles = {
7070
fontSize: 14,
7171
display: "block",
7272
padding: `${TAB_PADDING_Y}px 16px`,
73+
fontWeight: 500,
74+
lineHeight: "1",
7375

7476
"&:hover": {
7577
color: theme.palette.text.primary,

site/src/modules/workspaces/WorkspaceBuildLogs/Logs.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { type FC, type ReactNode, useMemo } from "react";
55
import AnsiToHTML from "ansi-to-html";
66
import { MONOSPACE_FONT_FAMILY } from "theme/constants";
77

8+
export const DEFAULT_LOG_LINE_SIDE_PADDING = 24;
9+
810
const convert = new AnsiToHTML();
911

1012
export interface Line {
@@ -127,7 +129,7 @@ const styles = {
127129
height: "auto",
128130
// Whitespace is significant in terminal output for alignment
129131
whiteSpace: "pre",
130-
padding: "0 32px",
132+
padding: `0 ${DEFAULT_LOG_LINE_SIDE_PADDING}px`,
131133

132134
"&.error": {
133135
backgroundColor: theme.roles.error.background,

site/src/modules/workspaces/WorkspaceBuildLogs/WorkspaceBuildLogs.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import dayjs from "dayjs";
22
import { type FC, Fragment, type HTMLAttributes } from "react";
33
import type { ProvisionerJobLog } from "api/typesGenerated";
44
import { BODY_FONT_FAMILY, MONOSPACE_FONT_FAMILY } from "theme/constants";
5-
import { Logs } from "./Logs";
5+
import { DEFAULT_LOG_LINE_SIDE_PADDING, Logs } from "./Logs";
66
import { type Interpolation, type Theme, useTheme } from "@emotion/react";
77

88
const Language = {
@@ -99,7 +99,7 @@ const styles = {
9999
header: (theme) => ({
100100
fontSize: 13,
101101
fontWeight: 600,
102-
padding: "4px 24px",
102+
padding: `4px ${DEFAULT_LOG_LINE_SIDE_PADDING}px`,
103103
display: "flex",
104104
alignItems: "center",
105105
fontFamily: BODY_FONT_FAMILY,

site/src/pages/WorkspaceBuildPage/WorkspaceBuildPageView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export const WorkspaceBuildPageView: FC<WorkspaceBuildPageViewProps> = ({
155155
value={a.id}
156156
key={a.id}
157157
>
158-
{a.name}
158+
coder_agent.{a.name}
159159
</TabLink>
160160
))}
161161
</TabsList>

0 commit comments

Comments
 (0)