diff --git a/pkg/ui/workspaces/cluster-ui/src/activeExecutions/activeStatementsTable/activeStatementsTable.tsx b/pkg/ui/workspaces/cluster-ui/src/activeExecutions/activeStatementsTable/activeStatementsTable.tsx
index 38890dd32ade..6f3411717c87 100644
--- a/pkg/ui/workspaces/cluster-ui/src/activeExecutions/activeStatementsTable/activeStatementsTable.tsx
+++ b/pkg/ui/workspaces/cluster-ui/src/activeExecutions/activeStatementsTable/activeStatementsTable.tsx
@@ -19,6 +19,8 @@ import {
getLabel,
} from "../execTableCommon";
import { ActiveStatement } from "../types";
+import { Tooltip } from "@cockroachlabs/ui-components";
+import { limitText } from "../../util";
export function makeActiveStatementsColumns(
isCockroachCloud: boolean,
@@ -29,9 +31,11 @@ export function makeActiveStatementsColumns(
name: "execution",
title: executionsTableTitles.execution("statement"),
cell: (item: ActiveStatement) => (
-
- {item.query}
-
+
+
+ {limitText(item.query, 70)}
+
+
),
sort: (item: ActiveStatement) => item.query,
},
diff --git a/pkg/ui/workspaces/cluster-ui/src/activeExecutions/activeTransactionsTable/activeTransactionsTable.tsx b/pkg/ui/workspaces/cluster-ui/src/activeExecutions/activeTransactionsTable/activeTransactionsTable.tsx
index 454478efaae3..419a86deaee2 100644
--- a/pkg/ui/workspaces/cluster-ui/src/activeExecutions/activeTransactionsTable/activeTransactionsTable.tsx
+++ b/pkg/ui/workspaces/cluster-ui/src/activeExecutions/activeTransactionsTable/activeTransactionsTable.tsx
@@ -19,6 +19,8 @@ import {
getLabel,
} from "../execTableCommon";
import { ActiveTransaction, ExecutionType } from "../types";
+import { Tooltip } from "@cockroachlabs/ui-components";
+import { limitText } from "../../util";
export function makeActiveTransactionsColumns(
isCockroachCloud: boolean,
@@ -30,9 +32,11 @@ export function makeActiveTransactionsColumns(
name: "mostRecentStatement",
title: executionsTableTitles.mostRecentStatement(execType),
cell: (item: ActiveTransaction) => (
-
- {item.query}
-
+
+
+ {limitText(item.query || "", 70)}
+
+
),
sort: (item: ActiveTransaction) => item.query,
},
diff --git a/pkg/ui/workspaces/cluster-ui/src/activeExecutions/activeTransactionsTable/execContentionTable.tsx b/pkg/ui/workspaces/cluster-ui/src/activeExecutions/activeTransactionsTable/execContentionTable.tsx
index 5d14f24496a3..0045f5114fad 100644
--- a/pkg/ui/workspaces/cluster-ui/src/activeExecutions/activeTransactionsTable/execContentionTable.tsx
+++ b/pkg/ui/workspaces/cluster-ui/src/activeExecutions/activeTransactionsTable/execContentionTable.tsx
@@ -9,12 +9,13 @@
// licenses/APL.txt.
import React from "react";
-import { SortedTable, ColumnDescriptor } from "../../sortedtable";
+import { ColumnDescriptor, SortedTable } from "../../sortedtable";
import { ContendedExecution, ExecutionType } from "../types";
import { Link } from "react-router-dom";
import { StatusIcon } from "../statusIcon";
import { executionsTableTitles } from "../execTableCommon";
-import { DATE_FORMAT, Duration } from "../../util";
+import { DATE_FORMAT, Duration, limitText } from "../../util";
+import { Tooltip } from "@cockroachlabs/ui-components";
const getID = (item: ContendedExecution, execType: ExecutionType) =>
execType === "transaction"
@@ -24,7 +25,7 @@ const getID = (item: ContendedExecution, execType: ExecutionType) =>
export function makeContentionColumns(
execType: ExecutionType,
): ColumnDescriptor[] {
- const columns: ColumnDescriptor[] = [
+ return [
{
name: "executionID",
title: executionsTableTitles.executionID(execType),
@@ -42,9 +43,11 @@ export function makeContentionColumns(
name: "mostRecentStatement",
title: executionsTableTitles.mostRecentStatement(execType),
cell: item => (
-
- {item.query}
-
+
+
+ {limitText(item.query, 50)}
+
+
),
sort: item => item.query,
},
@@ -72,7 +75,6 @@ export function makeContentionColumns(
sort: item => item.contentionTime.asSeconds(),
},
];
- return columns;
}
interface ContentionTableProps {
diff --git a/pkg/ui/workspaces/cluster-ui/src/detailsPanels/waitTimeInsightsPanel.tsx b/pkg/ui/workspaces/cluster-ui/src/detailsPanels/waitTimeInsightsPanel.tsx
index 3ddc24d036f3..5e8e92db4c85 100644
--- a/pkg/ui/workspaces/cluster-ui/src/detailsPanels/waitTimeInsightsPanel.tsx
+++ b/pkg/ui/workspaces/cluster-ui/src/detailsPanels/waitTimeInsightsPanel.tsx
@@ -67,7 +67,9 @@ export const WaitTimeInsightsPanel: React.FC = ({
const showWaitTimeInsightsDetails = waitTime != null;
return (
-
+
{WaitTimeInsightsLabels.SECTION_HEADING}
@@ -122,12 +124,12 @@ export const WaitTimeInsightsPanel: React.FC = ({
)}
{blockingExecutions.length > 0 && (
-
+
{WaitTimeInsightsLabels.BLOCKING_TXNS_TABLE_TITLE(
executionID,
execType,
)}
-
+
= ({
)}
{waitingExecutions.length > 0 && (
-
+
{WaitTimeInsightsLabels.WAITING_TXNS_TABLE_TITLE(
executionID,
execType,
)}
-
+