Skip to content

Commit 18a96d5

Browse files
committed
Combine build statuses
1 parent 4b99e2d commit 18a96d5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

site/src/components/WorkspaceStats/WorkspaceStats.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
} from "util/workspace"
1010
import { Workspace } from "../../api/typesGenerated"
1111
import { Stats, StatsItem } from "components/Stats/Stats"
12+
import upperFirst from "lodash/upperFirst"
1213

1314
const Language = {
1415
workspaceDetails: "Workspace Details",
@@ -73,9 +74,13 @@ export const WorkspaceStats: FC<WorkspaceStatsProps> = ({
7374
/>
7475
<StatsItem
7576
label={Language.lastBuiltLabel}
76-
value={createDayString(workspace.latest_build.created_at)}
77+
value={
78+
<>
79+
{upperFirst(createDayString(workspace.latest_build.created_at))} by{" "}
80+
{initiatedBy}
81+
</>
82+
}
7783
/>
78-
<StatsItem label={Language.byLabel} value={initiatedBy} />
7984
{workspace.latest_build.daily_cost > 0 && (
8085
<StatsItem
8186
label={Language.costLabel}

0 commit comments

Comments
 (0)