Skip to content

Commit 9b81c41

Browse files
committed
Don't show the environment icon, just the coloured label
1 parent 54be648 commit 9b81c41

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

apps/webapp/app/components/code/TSQLResultsTable.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { formatDurationMilliseconds, MachinePresetName } from "@trigger.dev/core/v3";
21
import type { OutputColumnMetadata } from "@internal/clickhouse";
3-
import { DateTime, DateTimeAccurate } from "~/components/primitives/DateTime";
4-
import { EnvironmentCombo } from "~/components/environments/EnvironmentLabel";
2+
import { formatDurationMilliseconds, MachinePresetName } from "@trigger.dev/core/v3";
3+
import { EnvironmentLabel } from "~/components/environments/EnvironmentLabel";
54
import { MachineLabelCombo } from "~/components/MachineLabelCombo";
5+
import { DateTimeAccurate } from "~/components/primitives/DateTime";
66
import {
77
CopyableTableCell,
88
Table,
@@ -12,21 +12,20 @@ import {
1212
TableHeaderCell,
1313
TableRow,
1414
} from "~/components/primitives/Table";
15-
import { formatCurrencyAccurate, formatNumber } from "~/utils/numberFormatter";
1615
import {
1716
descriptionForTaskRunStatus,
1817
isRunFriendlyStatus,
1918
isTaskRunStatus,
2019
runStatusFromFriendlyTitle,
2120
TaskRunStatusCombo,
2221
} from "~/components/runs/v3/TaskRunStatus";
22+
import { useOrganization } from "~/hooks/useOrganizations";
23+
import { useProject } from "~/hooks/useProject";
24+
import { formatCurrencyAccurate, formatNumber } from "~/utils/numberFormatter";
25+
import { v3ProjectPath, v3RunPathFromFriendlyId } from "~/utils/pathBuilder";
2326
import { Paragraph } from "../primitives/Paragraph";
2427
import { TextLink } from "../primitives/TextLink";
25-
import { v3ProjectPath, v3RunPathFromFriendlyId } from "~/utils/pathBuilder";
2628
import { SimpleTooltip } from "../primitives/Tooltip";
27-
import { InformationCircleIcon } from "@heroicons/react/20/solid";
28-
import { useOrganization } from "~/hooks/useOrganizations";
29-
import { useProject } from "~/hooks/useProject";
3029
import { QueueName } from "../runs/v3/QueueName";
3130

3231
const MAX_STRING_DISPLAY_LENGTH = 64;
@@ -198,7 +197,7 @@ function CellValue({
198197
["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"].includes(value)
199198
) {
200199
return (
201-
<EnvironmentCombo
200+
<EnvironmentLabel
202201
environment={{ type: value as "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW" }}
203202
/>
204203
);
@@ -342,7 +341,7 @@ function EnvironmentCellValue({ value }: { value: string }) {
342341
return <span>{value}</span>;
343342
}
344343

345-
return <EnvironmentCombo environment={environment} />;
344+
return <EnvironmentLabel environment={environment} />;
346345
}
347346

348347
/**

0 commit comments

Comments
 (0)