🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(ui): hide jump to playground button when not entitled (#6014)
Marc Klingen991f837ee517
diff --git a/web/src/ee/features/playground/page/components/JumpToPlaygroundButton.tsx b/web/src/ee/features/playground/page/components/JumpToPlaygroundButton.tsxindex a40fb06dfa..d8efc5ac20 100644--- a/web/src/ee/features/playground/page/components/JumpToPlaygroundButton.tsx+++ b/web/src/ee/features/playground/page/components/JumpToPlaygroundButton.tsx@@ -60,12 +60,12 @@ export const JumpToPlaygroundButton: React.FC<JumpToPlaygroundButtonProps> = (}, [props]);useEffect(() => {- if (capturedState && isEntitled) {+ if (capturedState) {setIsAvailable(true);} else {setIsAvailable(false);}- }, [capturedState, isEntitled, setIsAvailable]);+ }, [capturedState, setIsAvailable]);const handleClick = () => {capture(props.analyticsEventName);@@ -74,6 +74,8 @@ export const JumpToPlaygroundButton: React.FC<JumpToPlaygroundButtonProps> = (router.push(`/project/${projectId}/playground`);};+ if (!isEntitled) return null;+return (<Buttonvariant={props.variant ?? "secondary"}