From b975262a975375f58647acc2bcc085e473f96848 Mon Sep 17 00:00:00 2001 From: Danny Kopping Date: Thu, 30 Apr 2026 10:04:20 -0500 Subject: [PATCH] fix(site): remove Request Logs from admin menu, redirect /aibridge to sessions (#24840) *Disclaimer: implemented by a Coder Agent using Claude Opus 4.6* Remove the "AI Bridge Logs" menu item from the Admin settings dropdown, keeping only the "AI Bridge Sessions" link. The `/aibridge` index now redirects to `/aibridge/sessions` instead of `/aibridge/request-logs`. The request-logs route and view remain accessible via direct URL (`/aibridge/request-logs`) for users who still need it. Fixes https://linear.app/codercom/issue/AIGOV-205
Changes - `DeploymentDropdown.tsx`: Removed "AI Bridge Logs" menu item; the `canViewAIBridge` block now only renders the "AI Bridge Sessions" link - `router.tsx`: Changed `/aibridge` index redirect from `request-logs` to `/aibridge/sessions` - All request-logs page files, route, and components are preserved for direct URL access
--- .../modules/dashboard/Navbar/DeploymentDropdown.tsx | 11 +++-------- site/src/router.tsx | 5 ++++- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/site/src/modules/dashboard/Navbar/DeploymentDropdown.tsx b/site/src/modules/dashboard/Navbar/DeploymentDropdown.tsx index e31463851f..fc9ab9baaa 100644 --- a/site/src/modules/dashboard/Navbar/DeploymentDropdown.tsx +++ b/site/src/modules/dashboard/Navbar/DeploymentDropdown.tsx @@ -92,14 +92,9 @@ const DeploymentDropdownContent: FC = ({ )} {canViewAIBridge && ( - <> - - AI Bridge Logs - - - AI Bridge Sessions - - + + AI Bridge Sessions + )} {canViewHealth && ( diff --git a/site/src/router.tsx b/site/src/router.tsx index a643d3bb5e..d6dcd4e95a 100644 --- a/site/src/router.tsx +++ b/site/src/router.tsx @@ -662,7 +662,10 @@ export const router = createBrowserRouter( }> - } /> + } + /> } />