From 7d3c5ac78c4e7c28bc638fc63ccf7acf37236fd7 Mon Sep 17 00:00:00 2001 From: Jeremy Ruppel Date: Wed, 8 Apr 2026 02:17:39 -0400 Subject: [PATCH] fix(site): inline dl/dt/dd classNames and use justify-between layout in session tables (#24118) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When we refactored into definition lists for tables, we lost the ability to have the rows extend beyond the vertical line between `
` and `
` This adds a wrapping `
` to make each row independent, which is [a-ok per MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dl#wrapping_name-value_groups_in_div_elements), an also is implied in the Figma: Screenshot 2026-04-07 at 4 29 14 PM --- Before Screenshot 2026-04-07 at 4 24 22 PM After Screenshot 2026-04-07 at 4 24 36 PM --- .../SessionSummaryTable.tsx | 194 ++++++++++-------- .../SessionTimeline/PromptTable.tsx | 69 ++++--- .../SessionTimeline/ToolCallTable.tsx | 6 +- 3 files changed, 147 insertions(+), 122 deletions(-) diff --git a/site/src/pages/AIBridgePage/SessionThreadsPage/SessionSummaryTable.tsx b/site/src/pages/AIBridgePage/SessionThreadsPage/SessionSummaryTable.tsx index 951babd654..bd14441ff1 100644 --- a/site/src/pages/AIBridgePage/SessionThreadsPage/SessionSummaryTable.tsx +++ b/site/src/pages/AIBridgePage/SessionThreadsPage/SessionSummaryTable.tsx @@ -3,7 +3,6 @@ import { Avatar } from "#/components/Avatar/Avatar"; import { Badge } from "#/components/Badge/Badge"; import { AIBridgeClientIcon } from "#/pages/AIBridgePage/RequestLogsPage/icons/AIBridgeClientIcon"; import { AIBridgeProviderIcon } from "#/pages/AIBridgePage/RequestLogsPage/icons/AIBridgeProviderIcon"; -import { cn } from "#/utils/cn"; import { formatDateTime } from "#/utils/time"; import { TokenBadges } from "../TokenBadges"; import { getProviderDisplayName, getProviderIconName } from "../utils"; @@ -43,105 +42,130 @@ export const SessionSummaryTable = ({ : undefined; return ( -
-
Session ID
-
- {sessionId} -
+
+
+
Session ID
+
+ {sessionId} +
+
-
Start time
-
- {formatDateTime(startTime)} -
+
+
Start time
+
+ {formatDateTime(startTime)} +
+
-
End time
-
- {endTime ? formatDateTime(endTime) : "—"} -
+
+
End time
+
+ {endTime ? formatDateTime(endTime) : "—"} +
+
-
Duration
-
- {durationInMs !== undefined - ? `${Math.round(durationInMs / 1000)} s` - : "—"} -
+
+
Duration
+
+ {durationInMs !== undefined + ? `${Math.round(durationInMs / 1000)} s` + : "—"} +
+
-
Initiator
-
-
+
+
Initiator
+
- + {initiator.name} -
-
- -
Client
-
- -
- -
- - {client ?? "Unknown"} - -
-
- -
Provider
-
- {providers.map((p) => ( - - - - {getProviderDisplayName(p)} - - - ))} -
- -
- +
-
In / out tokens
-
- -
+
+
Client
+
+ +
+ +
+ + {client ?? "Unknown"} + +
+
+
-
Threads
-
- {threadCount} -
+
+
+ Provider +
+
+ {providers.map((p) => ( + + + + {getProviderDisplayName(p)} + + + ))} +
+
-
Tool calls
-
- {toolCallCount} -
+ + +
+
+ In / out tokens +
+
+ +
+
+ +
+
Threads
+
+ {threadCount} +
+
+ +
+
Tool calls
+
+ {toolCallCount} +
+
); }; diff --git a/site/src/pages/AIBridgePage/SessionThreadsPage/SessionTimeline/PromptTable.tsx b/site/src/pages/AIBridgePage/SessionThreadsPage/SessionTimeline/PromptTable.tsx index be4c74a6e8..87d9b171e4 100644 --- a/site/src/pages/AIBridgePage/SessionThreadsPage/SessionTimeline/PromptTable.tsx +++ b/site/src/pages/AIBridgePage/SessionThreadsPage/SessionTimeline/PromptTable.tsx @@ -31,46 +31,47 @@ export const PromptTable: FC = ({ return (
-
Timestamp
-
- +
+
Timestamp
+
{formatDate(timestamp)} - -
+ + -
Model
-
- - - - - - {model} - - - {model} - - -
+
+
Model
+
+ + + + + + {model} + + + {model} + + +
+
-
In / out tokens
-
- -
+
+
In / out tokens
+
+ +
+
); }; diff --git a/site/src/pages/AIBridgePage/SessionThreadsPage/SessionTimeline/ToolCallTable.tsx b/site/src/pages/AIBridgePage/SessionThreadsPage/SessionTimeline/ToolCallTable.tsx index a0ee67619f..5c6b5b7324 100644 --- a/site/src/pages/AIBridgePage/SessionThreadsPage/SessionTimeline/ToolCallTable.tsx +++ b/site/src/pages/AIBridgePage/SessionThreadsPage/SessionTimeline/ToolCallTable.tsx @@ -29,7 +29,7 @@ export const ToolCallTable: FC = ({ )} >
- In / out tokens + In / out tokens = ({ />
- Started at + Started at = ({
{serverURL && (
- MCP server + MCP server {serverURL}