From a99bccacead30b02acab705ead77f74d1e9e6109 Mon Sep 17 00:00:00 2001 From: moe-berri Date: Mon, 5 Oct 2026 11:10:10 -0700 Subject: [PATCH] fix(ui): restore inline Lens onboarding and responsive layout (#44604) * fix(ui): improve gateway layouts on mobile * fix(ui): limit mobile cleanup to navigation and header * fix(ui): restore inline Lens onboarding and responsive layout * fix(ui): smooth Lens tab and panel connections * fix(ui): keep trace time controls within narrow panels --- .../src/components/lens/LensModeSwitch.tsx | 10 +- .../lens/LensPage.integration.test.tsx | 3 +- .../lens/LensSetup.integration.test.tsx | 109 +++++------ .../lens/LensWorkspace.integration.test.tsx | 21 ++- .../src/components/lens/LensWorkspace.tsx | 175 +++++++++++------- .../components/lens/hooks/useLensReadiness.ts | 5 +- .../lens/investigations/InvestigationList.tsx | 1 + .../InvestigationsView.integration.test.tsx | 41 +--- .../investigations/InvestigationsView.tsx | 10 +- .../components/lens/model/readiness.test.ts | 22 ++- .../src/components/lens/model/readiness.ts | 8 + .../lens/onboarding/LensGettingStarted.tsx | 9 +- .../lens/onboarding/LensIntroDialog.tsx | 80 -------- .../lens/onboarding/LensIntroduction.tsx | 18 +- .../lens/onboarding/OnboardingSetup.tsx | 5 +- .../lens/onboarding/OnboardingSteps.tsx | 30 ++- .../TracingSetupCard.integration.test.tsx | 30 ++- .../onboarding/tracing/TracingSetupCard.tsx | 2 - .../components/lens/settings/LensSettings.tsx | 22 +-- .../src/components/lens/storage.ts | 5 - .../lens/traces/detail/run/RunHeader.tsx | 24 +-- .../AgentTracesSection.integration.test.tsx | 23 +-- .../lens/traces/list/AgentTracesTable.tsx | 1 + .../lens/traces/list/runSearch/RunSearch.tsx | 4 +- .../traces/list/runSearch/RunsToolbar.tsx | 12 +- .../components/lens/ui/LensPreviewButton.tsx | 24 --- .../src/components/lens/ui/frame.ts | 20 +- .../components/shared/search/SearchBox.tsx | 4 +- .../shared/timeline/TimeRangeControls.tsx | 11 +- .../shared/timeline/Timeline.test.ts | 16 +- .../components/shared/timeline/Timeline.tsx | 12 +- .../tests/lens-test-utils.tsx | 7 - 32 files changed, 345 insertions(+), 419 deletions(-) delete mode 100644 ui/litellm-dashboard/src/components/lens/onboarding/LensIntroDialog.tsx delete mode 100644 ui/litellm-dashboard/src/components/lens/ui/LensPreviewButton.tsx diff --git a/ui/litellm-dashboard/src/components/lens/LensModeSwitch.tsx b/ui/litellm-dashboard/src/components/lens/LensModeSwitch.tsx index 0cfa9e47bce..c68a1112c8b 100644 --- a/ui/litellm-dashboard/src/components/lens/LensModeSwitch.tsx +++ b/ui/litellm-dashboard/src/components/lens/LensModeSwitch.tsx @@ -30,13 +30,12 @@ function ActivityDot({ activity }: { activity: InvestigationActivity }) { ); } -/** Inverted corner joining the tab's side border to the card's top border; plain CSS borders so both snap to the same pixels. */ function NotchCorner({ side, demo }: { side: "left" | "right"; demo: boolean }) { return (