From a3bd0a6613a4e6a94a01eecf5256ab339eb43328 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 3 Oct 2026 16:23:28 -0700 Subject: [PATCH] feat(lens): type job reviews and fill them in lens fixtures --- .../src/components/lens/demo/createLensDemo.ts | 2 ++ .../investigations/InvestigationsView.integration.test.tsx | 2 ++ .../src/components/lens/model/progress.test.ts | 2 ++ ui/litellm-dashboard/src/components/lens/model/status.test.ts | 2 ++ ui/litellm-dashboard/src/components/lens/model/types.ts | 4 ++++ 5 files changed, 12 insertions(+) diff --git a/ui/litellm-dashboard/src/components/lens/demo/createLensDemo.ts b/ui/litellm-dashboard/src/components/lens/demo/createLensDemo.ts index bc75214127d..65c3d081601 100644 --- a/ui/litellm-dashboard/src/components/lens/demo/createLensDemo.ts +++ b/ui/litellm-dashboard/src/components/lens/demo/createLensDemo.ts @@ -297,6 +297,8 @@ export function createLensDemoData(now = Date.now()) { })), attempts: 1, steps: [], + reviews: [], + reviewed: 0, trigger: "schedule" as const, error: "", cost: sample.length * 0.012, diff --git a/ui/litellm-dashboard/src/components/lens/investigations/InvestigationsView.integration.test.tsx b/ui/litellm-dashboard/src/components/lens/investigations/InvestigationsView.integration.test.tsx index b7343717aa1..15fe9bca2d1 100644 --- a/ui/litellm-dashboard/src/components/lens/investigations/InvestigationsView.integration.test.tsx +++ b/ui/litellm-dashboard/src/components/lens/investigations/InvestigationsView.integration.test.tsx @@ -87,6 +87,8 @@ const lens: Lens = { findings: [pattern, issue], assessments: [], steps: [], + reviews: [], + reviewed: 0, trigger: "schedule", attempts: 0, error: "", diff --git a/ui/litellm-dashboard/src/components/lens/model/progress.test.ts b/ui/litellm-dashboard/src/components/lens/model/progress.test.ts index 26ef40431b7..1a418e8855d 100644 --- a/ui/litellm-dashboard/src/components/lens/model/progress.test.ts +++ b/ui/litellm-dashboard/src/components/lens/model/progress.test.ts @@ -25,6 +25,8 @@ const coverage: Job["coverage"] = { const job: Job = { assessments: [], steps: [], + reviews: [], + reviewed: 0, trigger: "schedule", coverage, attempts: 0, diff --git a/ui/litellm-dashboard/src/components/lens/model/status.test.ts b/ui/litellm-dashboard/src/components/lens/model/status.test.ts index b77490e981e..2658d2bc40b 100644 --- a/ui/litellm-dashboard/src/components/lens/model/status.test.ts +++ b/ui/litellm-dashboard/src/components/lens/model/status.test.ts @@ -19,6 +19,8 @@ const coverage: Job["coverage"] = { const job: Job = { assessments: [], steps: [], + reviews: [], + reviewed: 0, trigger: "schedule", coverage, attempts: 0, diff --git a/ui/litellm-dashboard/src/components/lens/model/types.ts b/ui/litellm-dashboard/src/components/lens/model/types.ts index e88ca490c7c..a94f894229f 100644 --- a/ui/litellm-dashboard/src/components/lens/model/types.ts +++ b/ui/litellm-dashboard/src/components/lens/model/types.ts @@ -32,3 +32,7 @@ export type ActivitySelection = Pick & >; export type Worker = LensList["workers"][number]; + +export type Review = components["schemas"]["Review"]; + +export type ReviewVerdict = components["schemas"]["ReviewVerdict"];