From 775a8080037e12fffcf352a2378482b5ab88f2eb Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 3 Oct 2026 18:19:40 -0700 Subject: [PATCH] refactor(lens): name now reading conditions --- .../lens/investigations/live/NowReading.tsx | 24 ++++++++++++------- .../src/components/lens/model/stage.test.ts | 7 +++++- .../src/components/lens/model/stage.ts | 17 ++++++++----- 3 files changed, 32 insertions(+), 16 deletions(-) diff --git a/ui/litellm-dashboard/src/components/lens/investigations/live/NowReading.tsx b/ui/litellm-dashboard/src/components/lens/investigations/live/NowReading.tsx index b785616eea9..f89c6cfbc6d 100644 --- a/ui/litellm-dashboard/src/components/lens/investigations/live/NowReading.tsx +++ b/ui/litellm-dashboard/src/components/lens/investigations/live/NowReading.tsx @@ -8,6 +8,11 @@ import { ModelName } from "./LiveStrip"; const RED = "text-[#e5484d]"; +function dotTone(reading: boolean, issueShown: boolean): string { + if (reading) return "bg-foreground motion-safe:animate-pulse"; + return issueShown ? "bg-[#e5484d]" : "bg-foreground/50"; +} + function LaneRow({ lane, now, charMs }: { lane: Lane; now: number; charMs: number }) { const { review } = lane; const text = review ? laneText(review.reasoning) : ""; @@ -17,13 +22,7 @@ function LaneRow({ lane, now, charMs }: { lane: Lane; now: number; charMs: numbe return (
  • -