Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: remove popup from count for historic eval elements (#7098)

Max Deichmann787f5d8d104b
diff --git a/web/src/ee/features/evals/components/execution-count-tooltip.tsx b/web/src/ee/features/evals/components/execution-count-tooltip.tsx
index a7115338b9..8c4b2b7e16 100644
--- a/web/src/ee/features/evals/components/execution-count-tooltip.tsx
+++ b/web/src/ee/features/evals/components/execution-count-tooltip.tsx
@@ -1,12 +1,5 @@
-import { InfoIcon, Loader } from "lucide-react";
import { type EvalFormType } from "@/src/ee/features/evals/utils/evaluator-form-utils";
import { api } from "@/src/utils/api";
-import { useState } from "react";
-import {
- Tooltip,
- TooltipContent,
- TooltipTrigger,
-} from "@/src/components/ui/tooltip";
import { compactNumberFormatter } from "@/src/utils/numbers";
import { useEvalTargetCount } from "@/src/ee/features/evals/hooks/useEvalTargetCount";
@@ -21,8 +14,6 @@ export const ExecutionCountTooltip = ({
item,
filter,
}: ExecutionCountTooltipProps) => {
- const [isOpen, setIsOpen] = useState(false);
-
const globalConfig = api.evals.globalJobConfigs.useQuery({
projectId,
});
@@ -31,30 +22,24 @@ export const ExecutionCountTooltip = ({
projectId,
item,
filter,
- enabled: isOpen, // utilize `isOpen` to only query if user hovers over tooltip to avoid unnecessary queries
+ enabled: true,
});
return (
- <Tooltip open={isOpen} onOpenChange={setIsOpen}>
- <TooltipTrigger>
- <InfoIcon className="h-4 w-4" />
- </TooltipTrigger>
- <TooltipContent>
- <div className="text-sm">
- We execute the evaluation on{" "}
- {isLoading ? (
- <Loader className="inline-block h-4 w-4 animate-spin" />
- ) : (
- compactNumberFormatter(
- !globalConfig.data ||
- (totalCount && totalCount < globalConfig.data)
- ? totalCount
- : globalConfig.data,
- )
- )}{" "}
- {isTraceTarget ? "traces" : "dataset run items"}.
- </div>
- </TooltipContent>
- </Tooltip>
+ <>
+ <span className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70">
+ (
+ {isLoading ? (
+ <span className="inline-block font-mono">...</span>
+ ) : (
+ compactNumberFormatter(
+ !globalConfig.data || (totalCount && totalCount < globalConfig.data)
+ ? totalCount
+ : globalConfig.data,
+ )
+ )}
+ {isTraceTarget ? " traces" : " dataset run items"})
+ </span>
+ </>
);
};