From 6c7fd78896a950f8d848eb56ad16ba73f7038248 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Sun, 12 Apr 2026 17:53:27 -0700 Subject: [PATCH] chore(dashboard): remove devtools capability --- packages/dashboard/src/dashboard.tsx | 92 +++++++------------ packages/dashboard/src/dashboardChannel.ts | 2 +- .../src/server/android/android.ts | 2 +- .../src/server/bidi/bidiChromium.ts | 2 +- .../src/server/chromium/chromium.ts | 2 +- .../src/server/chromium/chromiumSwitches.ts | 10 +- .../src/tools/dashboard/dashboardApp.ts | 18 +--- .../tools/dashboard/dashboardController.ts | 89 +----------------- .../src/tools/mcp/browserFactory.ts | 20 ---- tests/mcp/dashboard.spec.ts | 14 --- tests/mcp/webdriver.spec.ts | 40 -------- 11 files changed, 42 insertions(+), 249 deletions(-) delete mode 100644 tests/mcp/webdriver.spec.ts diff --git a/packages/dashboard/src/dashboard.tsx b/packages/dashboard/src/dashboard.tsx index 3324570d15417..e987de6ddbc20 100644 --- a/packages/dashboard/src/dashboard.tsx +++ b/packages/dashboard/src/dashboard.tsx @@ -19,8 +19,7 @@ import './dashboard.css'; import { navigate } from './index'; import { DashboardClient } from './dashboardClient'; import { asLocator } from '@isomorphic/locatorGenerators'; -import { SplitView } from '@web/components/splitView'; -import { ChevronLeftIcon, ChevronRightIcon, CloseIcon, PlusIcon, ReloadIcon, PickLocatorIcon, InspectorPanelIcon } from './icons'; +import { ChevronLeftIcon, ChevronRightIcon, CloseIcon, PlusIcon, ReloadIcon, PickLocatorIcon } from './icons'; import { SettingsButton } from './settingsView'; import type { DashboardClientChannel } from './dashboardClient'; @@ -43,7 +42,6 @@ export const Dashboard: React.FC<{ wsUrl?: string }> = ({ wsUrl }) => { const [tabs, setTabs] = React.useState(null); const [url, setUrl] = React.useState(''); const [frame, setFrame] = React.useState(); - const [showInspector, setShowInspector] = React.useState(false); const [pickingTabId, setPickingTabId] = React.useState(null); const [locatorToast, setLocatorToast] = React.useState<{ text: string; timer: ReturnType }>(); @@ -103,7 +101,6 @@ export const Dashboard: React.FC<{ wsUrl?: string }> = ({ wsUrl }) => { setChannel(undefined); setInteractive(false); setPickingTabId(null); - setShowInspector(false); }; return () => { @@ -272,7 +269,6 @@ export const Dashboard: React.FC<{ wsUrl?: string }> = ({ wsUrl }) => { onClick={() => { channel?.cancelPickLocator(); setPickingTabId(null); - setShowInspector(false); setInteractive(false); }} > @@ -334,66 +330,40 @@ export const Dashboard: React.FC<{ wsUrl?: string }> = ({ wsUrl }) => { > - {selectedTab?.inspectorUrl && ( - - )} {/* Viewport */}
- -
e.preventDefault()} - > - screencast - {locatorToast - ?
Copied: {locatorToast.text}
- : picking - ?
Click an element to pick its locator
- : null - } -
- {overlayText &&
{overlayText}
} -
} - sidebar={