From 2913b4d791c1ba96202bfbdd23ba01084df853bd Mon Sep 17 00:00:00 2001 From: Pratham-Mishra04 Date: Mon, 29 Jun 2026 15:50:53 +0530 Subject: [PATCH] fix: mcp sessions ui fixes --- ui/app/workspace/mcp-sessions/page.tsx | 2 +- .../mcp-sessions/views/sessionsTable.tsx | 259 +++++++++--------- 2 files changed, 137 insertions(+), 124 deletions(-) diff --git a/ui/app/workspace/mcp-sessions/page.tsx b/ui/app/workspace/mcp-sessions/page.tsx index d97e6ce2de..721595ecdd 100644 --- a/ui/app/workspace/mcp-sessions/page.tsx +++ b/ui/app/workspace/mcp-sessions/page.tsx @@ -77,7 +77,7 @@ export default function MCPSessionsPage() { const handleClearFilters = () => setUrlState({ q: null, kind: null, status: null, auth_mode: null, mcp_client_id: null, identity: null, offset: 0 }); return ( -
+
+
!open && setPendingDelete(null)}> @@ -148,7 +148,7 @@ export default function SessionsTable({ -
+

MCP Auth Sessions

@@ -157,134 +157,147 @@ export default function SessionsTable({

- +
+ +
-
- - - - MCP server - - - - - - - - - - - - - Created - - - - - {sessions.length === 0 ? ( +
+
+
+ - - {hasActiveFilters ? ( -
No sessions match these filters.
- ) : ( - - No sessions yet. Sessions appear here when an inference request or MCP gateway call triggers per-user authentication - (OAuth or header submission). - - )} -
+ MCP server + + + + + + + + + + + + + Created +
- ) : ( - sessions.map((row) => ( - - {row.mcp_client?.name || row.mcp_client?.client_id || "-"} - - - - - - - - - - -
- {formatAccessExpiry(row)} - {row.last_refreshed_at && refreshed {formatRelativePast(row.last_refreshed_at)}} -
-
- {formatRelativePast(row.created_at)} - - handleReauth(row)} - onRevoke={() => setPendingDelete(row)} - /> +
+ + {sessions.length === 0 ? ( + + + {hasActiveFilters ? ( +
No sessions match these filters.
+ ) : ( + + No sessions yet. Sessions appear here when an inference request or MCP gateway call triggers per-user authentication + (OAuth or header submission). + + )}
- )) - )} -
-
-
+ ) : ( + sessions.map((row) => ( + + {row.mcp_client?.name || row.mcp_client?.client_id || "-"} + + + + + + + + + + +
+ {formatAccessExpiry(row)} + {row.last_refreshed_at && refreshed {formatRelativePast(row.last_refreshed_at)}} +
+
+ {formatRelativePast(row.created_at)} + + handleReauth(row)} + onRevoke={() => setPendingDelete(row)} + /> + +
+ )) + )} + + +
- {totalCount > 0 && ( -
-

- Showing {offset + 1}-{Math.min(offset + limit, totalCount)} of {totalCount} -

-
- - + {totalCount > 0 && ( +
+
+ {(offset + 1).toLocaleString()}-{Math.min(offset + limit, totalCount).toLocaleString()} of {totalCount.toLocaleString()}{" "} + entries +
+ +
+ + +
+ Page + {Math.floor(offset / limit) + 1} + of {Math.ceil(totalCount / limit)} +
+ + +
-
- )} + )} +
); }