-
-
-
-
- %
-
-
-
{selectionErrors?.sample_percent?.message}
+
+
+
+ Sample
+
+ {eligible === undefined ? `${percent}% of matching runs` : `${percent}% of ${eligible.toLocaleString()}`}
+
+
+
+
+ {capped ? (
+
+ ) : (
+ Type a number to cap
+ )}
+
-
-
-
- (
+ field.onChange(Array.isArray(value) ? value[0] : value)}
/>
-
- runs
-
-
- {selectionErrors?.sample_size?.message}
-
+ )}
+ />
+
{selectionErrors?.sample_percent?.message ?? selectionErrors?.sample_size?.message}
{selectionErrors?.execution_ids?.message}
>
diff --git a/ui/litellm-dashboard/src/components/shared/DurationInput.tsx b/ui/litellm-dashboard/src/components/shared/DurationInput.tsx
index e15dd2ea253..2c85e1d5ca0 100644
--- a/ui/litellm-dashboard/src/components/shared/DurationInput.tsx
+++ b/ui/litellm-dashboard/src/components/shared/DurationInput.tsx
@@ -41,13 +41,13 @@ export function DurationInput({ label, value, onChange, base, max, className, ..
step={1 / scale}
value={Number.isFinite(value) ? value / scale : ""}
onChange={(event) => onChange(event.target.value === "" ? NaN : Number(event.target.value) * scale)}
- className="min-w-0 flex-1 bg-transparent px-3 text-base tabular-nums outline-none md:text-sm"
+ className="min-w-0 flex-1 border-0 bg-transparent px-3 py-0 shadow-none focus:ring-0 text-base tabular-nums outline-none md:text-sm"
/>